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
{"title": string,// 50자 제한 "contents": String,// 1000자 제한}
Response
Status code
200 - 대회 공지사항 생성 성공
400 - title 혹은 content가 없습니다.
401 - 대회의 개최자가 아닙니다.
404 - 대회가 존재하지 않습니다.
Response body
{}
Todo
Announcement 생성하기 API
Announcement 생성시 Slack 알림 기능
ETC
GWT
Feature: 대회 공지사항 생성
Scenario: 대회 공지사항을 생성합니다.Given agenda가 생성되어 있습니다.
And 개최자가 로그인되어 있습니다.
And agenda_id를 쿼리 파라미터 받습니다.
And 공지사항의 title과 content를 request body로 받습니다.
When 대회 announcement를 생성합니다.
Then 대회 announcement가 생성되고, 200 코드를 받환합니다.
Scenario: title이 없는 공지사항을 생성합니다.Given agenda가 생성되어 있습니다.
And 개최자가 로그인되어 있습니다.
And agenda_id를 쿼리 파라미터 받습니다.
And 공지사항의 content만 request body로 받습니다.
When 대회 announcement를 생성합니다.
Then 400 오류 코드를 반환합니다.
Scenario: title이 빈 문자열인 공지사항을 생성합니다.Given agenda가 생성되어 있습니다.
And 개최자가 로그인되어 있습니다.
And agenda_id를 쿼리 파라미터 받습니다.
And 빈 문자열인 title과 content를 request body로 받습니다.
When 대회 announcement를 생성합니다.
Then 400 오류 코드를 반환합니다.
Scenario: content이 없는 공지사항을 생성합니다.Given agenda가 생성되어 있습니다.
And 개최자가 로그인되어 있습니다.
And agenda_id를 쿼리 파라미터 받습니다.
And 공지사항의 title만 request body로 받습니다.
When 대회 announcement를 생성합니다.
Then 400 오류 코드를 반환합니다.
Scenario: content이 빈 문자열 공지사항을 생성합니다.Given agenda가 생성되어 있습니다.
And 개최자가 로그인되어 있습니다.
And agenda_id를 쿼리 파라미터 받습니다.
And title과 빈 문자열인 content를 request body로 받습니다.
When 대회 announcement를 생성합니다.
Then 400 오류 코드를 반환합니다.
Scenario: 개최자가 아닌 유저가 대회 공지사항을 생성합니다.Given agenda가 생성되어 있습니다.
And 개최자가 아닌 유저가 로그인되어 있습니다.
And agenda_id를 쿼리 파라미터 받습니다.
And 공지사항의 title과 content를 request body로 받습니다.
When 대회 announcement를 생성합니다.
Then 401 오류 코드를 반환합니다.
Scenario: 유효하지 않은 agenda에 공지사항을 생성합니다.Given 유효하지 않은 agenda_id를 쿼리 파라미터 받습니다.
And 공지사항의 title과 content를 request body로 받습니다.
When 대회 announcement를 생성합니다.
Then 404 오류 코드를 반환합니다.
The text was updated successfully, but these errors were encountered:
Description
Announcement 생성하기 API
Request
URI
POST
/agenda/announcement?agenda_id={agenda_id}
Request body
Response
Status code
Response body
Todo
ETC
GWT
The text was updated successfully, but these errors were encountered: