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] Announcement 전체 조회 API #863

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

✨ [Feature] Announcement 전체 조회 API #863

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

Comments

@yhames
Copy link
Contributor

yhames commented Jul 1, 2024

Description

Announcement 전체 조희 API

Request

URI

POST /agenda/announcement/agenda_id={agenda_id}

Request body

{
	"page": number,
	"size": number,
}

Response

Status code

  • 200 - 조회 성공
  • 404 - 대회가 존재하지 않습니다.

Response body

[
	{
			"id" : number,
			"title": string, //50자 제한 
			"contents": String, // 1000자 제한
			"createdAt" : Date,
	}
...
]

Todo

  • Announcement 전체 조희 API

ETC

GWT

Feature: 대회 공지사항 전체 조회

	Scenario: 대회 공지사항을 전체 조회합니다.
		Given 여러개의 agenda가 생성되어 있습니다.
		And agenda_id를 쿼리 파라미터로 받습니다.
		And page와 size를 request body로 받습니다.
		When 대회 공지사항을 전체 조회합니다.
		Then size 기준 해당 page 공지사항들과 200 코드를 반환합니다.
		
	Scenario: page가 없이 대회 공지사항을 전체 조회 합니다.
		Given 여러개의 agenda가 생성되어 있습니다.
		And agenda_id를 쿼리 파라미터로 받습니다.
		And size만 request body로 받습니다.
		When 대회 공지사항을 전체 조회합니다.
		Then size 기준 1 번쨰 page 공지사항들과 200 코드를 반환합니다.

	Scenario: size가 없이 대회 공지사항을 전체 조회 합니다.
		Given 여러개의 agenda가 생성되어 있습니다.
		And agenda_id를 쿼리 파라미터로 받습니다.
		And page만 request body로 받습니다.
		When 대회 공지사항을 전체 조회합니다.
		Then 20개 기준 해당 page 공지사항들과 200 코드를 반환합니다.
		
	Scenario: page와 size 없이 대회 공지사항을 전체 조회 합니다.
		Given 여러개의 agenda가 생성되어 있습니다.
		And agenda_id를 쿼리 파라미터로 받습니다.
		When 대회 공지사항을 전체 조회합니다.
		Then 20개 기준 1 번쨰 page 공지사항들과 200 코드를 반환합니다.
		
	Scenario: 유효하지 않은 agenda에 공지사항을 생성합니다.
		Given 유효하지 않은 agenda_id를 쿼리 파라미터로 받습니다.
		And page와 size를 request body로 받습니다.
		When 대회 공지사항을 전체 조회합니다.
		Then 404 오류 코드를 반환합니다.
@yhames yhames added the enhancement New feature or request label Jul 1, 2024
@yhames yhames self-assigned this Jul 1, 2024
@yhames yhames added this to the 7th Sprint 1 milestone Jul 1, 2024
@AreSain AreSain changed the title ✨ [Feature] Announcement 전체 조희 API ✨ [Feature] Announcement 전체 조회 API Jul 3, 2024
@yhames yhames modified the milestones: 7th Sprint 1, 7th Sprint 2 Jul 9, 2024
@yhames yhames linked a pull request Jul 15, 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.

1 participant