Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [Feature] Admin AgendaTeam 상세 조회하기 #901

Closed
1 task done
yhames opened this issue Jul 23, 2024 · 0 comments · Fixed by #919
Closed
1 task done

✨ [Feature] Admin AgendaTeam 상세 조회하기 #901

yhames opened this issue Jul 23, 2024 · 0 comments · Fixed by #919
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@yhames
Copy link
Contributor

yhames commented Jul 23, 2024

Description

✨ [Feature] Admin AgendaTeam 상세 조회하기

Todo

  • Admin AgendaTeam 상세 조회하기

ETC

삭제된 팀도 조회 가능하게

Request

URI

GET /agenda/team?agenda_id=agenda_id

삭제된 팀도 보여주기

Request body

{
		"teamKey": string,  // 랜덤하게 생성되는 팀별 고유 키
}

Response

Status code

  • 200
  • 401
    • 어드민이 아니에요
  • 404
    • AGENDA_NOT_FOUND
    • TEAM_NOT_FOUND

teamConfirm : request / cancel / approve

coalition : gun gon gam lee spring summer autumn winter

Response body

{
		"teamName": string,
		"teamLeaderIntraId": string,
		"teamStatus": string,
		"teamAward": string,
		"teamAwardPriority": number,
		"teamIsPrivate": bool,
		"teamLocation" : string,
		"teamMates": 
		[
				{
						"intraId": string,
						"coalition": string,
				}
				...
		],
}

GWT

Feature: 팀 상세 조회

	Scenario: 팀의 상세정보를 조회합니다.
		Given agenda가 생성되어 있습니다.
		And team이 생성되어 있습니다.
		And 조회할 팀이 속한 agenda_id를 쿼리파라미터로 받습니다.
		And 조회할 팀의 Key를 request body로 받습니다.
		When 해당 팀 상세조회 요청을 받으면
		Then 팀 상세 조회가 성공하고 200을 반환합니다.
		
	Scenario: agenda가 없을 경우 조회에 실패합니다.
		Given 없는 agenda의 정보를 쿼리파라미터로 받습니다.
		When 해당 팀 상세조회 요청을 받으면
		Then 팀 상세 조회가 실패하고 404 에러코드를 반환합니다. // AGENDA_NOT_FOUND 404
	
	Scenario: 팀의 식별키가 올바르지 않을 조회에 실패합니다.
		Given agenda가 생성되어 있습니다.
		And 없는 팀의 식별 키에 대한 정보를 입력합니다.
		When 해당 팀 상세조회 요청을 받으면
		Then 팀 상세 조회가 실패하고 404 에러코드를 반환합니다. // TEAM_NOT_FOUND 404
@yhames yhames added the enhancement New feature or request label Jul 23, 2024
@yhames yhames added this to the 7th Sprint 4 milestone Jul 23, 2024
@yhames yhames self-assigned this Jul 23, 2024
@AreSain AreSain removed this from the 7th Sprint 4 milestone Jul 29, 2024
@yhames yhames added this to the 7th Sprint 5 milestone Jul 29, 2024
@yhames yhames linked a pull request Jul 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants