HTTP Status Code
- 2xx
- 200 OK
- 201 Created : 일반적으로 POST 요청 또는 일부 PUT 요청 이후
- 204 No Content : 요청에 대해서 보내줄 수 있는 콘텐츠가 없지만, 헤더는 의미있음
- 4xx
- 400 Bad Request
- 401 Unauthorized : 클라이언트가 인증이 안되서(unauthenticated) 작업을 진행할 수 없음
- 403 Forbidden : 클라이언트가 권한이 없기 때문에 작업을 진행할 수 없는 경우
- 404 Not Found : 요청한 자료/경로 없음
- 405 Method Not Allowed : 자원(URI)은 존재하지만 해당 자원이 지원하지 않는 메소드일 때
- 5xx
- 500 Server Error
RestAPI
slam domain 상세
backUp
WebSocket
Client Socket
Server Socket
{ court: { id: number, name: string }, creator: { id: number, nickname: string, image: string }, conversation: { content: string, } | null, loudSpeaker : { startTime: string, } | null, createdAt: string, updatedAt: string, }
courts
[POST] /api/v1/courts/newfavorites
[GET] /api/v1/favorites[POST] /api/v1/favorites[DELETE] /api/v1/favorites/{favoriteId}reservations
[GET] /api/v1/reservations/expired/?params[GET] /api/v1/reservations/upcoming[POST] /api/v1/reservations[PATCH] /api/v1/reservations/{reservationId}[DELETE] /api/v1/reservations/{reservationId}notifications
[GET] /api/v1/notifications?params[POST] /api/v1/notification[PUT] /api/v1/notifications/readchat
[GET] /api/v1/chat/room/court?params[GET] /api/v1/chat/court/{courtId}?params[POST] /api/v1/chat/court/{courtId}(web socket 처리) 채팅 내용 추가[DELETE] /api/v1/chat/court/{courtId}management
[GET] /api/v1/management/newCourts/ready[GET] /api/v1/courts[PATCH] /api/v1/newCourts/accept[PATCH]/api/v1/management/newCourt/deny
추가
[POST] api/v1/users/images[DELETE] api/v1/users/image[POST] api/v1/court/imagesPOST
url: post/comment
{
postId: string
commentContent: {
}
}
POST
url: post/[postId]/comment
{
}
POST
Header: token
api/v1/courts/favorite
{
courtId: string
}
(약속)[GET] /api/v1/users/me/{userId}/reservation 1