You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[{"teamName": string,"teamStatus": string,// ENUM 참조"teamScore": number,"teamIsPrivate": bool,"teamLeaderIntraId": string,"teamMateCount" : number,"teamKey": string,// 랜덤하게 생성되는 팀별 고유 키}...],
GWT
Feature: 팀 전체 조회
Scenario: 팀 전체 리스트를 조회합니다.Given agenda가 생성되어 있습니다.
And team이 생성되어 있습니다. // request / cancel / approve
And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
And 조회할 페이지의 페이지 넘버와 size를 조회받습니다.
When 팀 전체조회 요청을 받으면
Then 팀 전체조회가 성공하고 200을 반환합니다.
Scenario: 존재하지 않는 대회의 팀 전체를 조회합니다.Given 존재하지 않는 agendaId를 쿼리 파라미터로 받습니다.
When 해당 팀 전체조회 요청을 받으면
Then 팀 전체조회가 실패하고 404 에러코드를 반환합니다. // AGENDA_NOT_FOUND 404
Scenario: size가 없이 팀 전체를 조회합니다.Given agenda가 생성되어 있습니다.
And team이 생성되어 있습니다. (request/cancel/approve)
And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
And page만 request body로 전달받습니다. (size == null)
When 팀 전체 조회를 요청합니다.
Then 200 코드와 함께 20개 기준 page에 해당하는 대회 리스트 20개를 반환합니다.
Scenario: 유효하지 않은 page로 팀 전체를 조회합니다.Given agenda가 생성되어 있습니다.
And team이 생성되어 있습니다. (request/cancel/approve)
And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
And size와 전체 페이지 개수보다 큰 page를 reqeust body로 전달합니다.
When 팀 전체 조회를 요청합니다.
Then 200 코드와 함께 빈 리스트를 반환합니다.
Scenario: page가 없이 팀 전체를 조회합니다.Given agenda가 생성되어 있습니다.
And team이 생성되어 있습니다. (request/cancel/approve)
And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
And size만 reqeust body로 전달합니다. (page == null)
When 팀 전체 조회를 요청합니다.
Then 400 에러 코드를 반환합니다.
Scenario: page와 size 모두 없이 팀 전체를 조회합니다.Given agenda가 생성되어 있습니다.
And team이 생성되어 있습니다. (request/cancel/approve)
And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
When 팀 전체 조회를 요청합니다.
Then 400 에러 코드를 반환합니다.
Scenario: 30 초과의 size로 팀 전체를 조회합니다.Given agenda가 생성되어 있습니다.
And team이 생성되어 있습니다. (request/cancel/approve)
And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
And page와 30 초과의 size를 reqeust body로 전달합니다.
When 팀 전체 조회를 요청합니다.
Then 400 에러 코드를 반환합니다.
Scenario: 1 이하의 size로 팀 전체를 조회합니다.Given agenda가 생성되어 있습니다.
And team이 생성되어 있습니다. (request/cancel/approve)
And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
And page와 1 이하의 size를 reqeust body로 전달합니다.
When 팀 전체 조회를 요청합니다.
Then 400 에러 코드를 반환합니다.
The text was updated successfully, but these errors were encountered:
Description
✨ [Feature] Admin AgendaTeam 전체 조회하기
Todo
ETC
Request
URI
GET /agenda/admin/team/list?agenda_id={agenda_id}
삭제된 팀, 비공개 팀도 보이게
Request body
Response
Status code
Response body
GWT
The text was updated successfully, but these errors were encountered: