1. 기본적인 요청/응답 인터페이스 예시
Request
- Method:GET
- URL:/articles
Response
- HTTP Status Code:200
- Payload:{ articleId: number, content: string, authorId: number }[]
2. Body를 가진 (POST, PUT, DELETE, ... 등의 Method)를 가진 인터페이스 예시
Request
- Method:POST
- URL:/articles
- Body:{ content: string, authorId: number }
Response
- HTTP Status Code:201
- Payload:{ articleId: number }
3. URL에 Params가 있는 API 예시
Request
- Method:PUT
- URL:/articles/:articleId
- Body:{ content: string }
Response
- HTTP Status Code:200
- Payload:{ articleId: number, content: string, authorId: number }