inflearn의 "따라하며 배우는 NestJS" 강의를 수강한 결과물입니다.
Nest.js, TypeORM, JWT, Passport, PostgreQL
URI: /boards
Method: GET
URI: /boards
Method: POST
-
Request
{ "title": "제목", "description": "내용" }
-
Response
{ "id": "게시글 ID", "title": "제목", "description": "내용", "status": BoardStatus, // PUBLIC, PRIVATE "user": User // id, username, password }
URI: /boards/:id/status
Method: PATCH
-
Request
{ "status": "PUBLIC" || "PRIVATE", }
-
Response
{ "id": "게시글 ID", "title": "제목", "description": "내용", "status": BoardStatus, // PUBLIC, PRIVATE "user": User // id, username, password }
URI: /boards/:id
Method: Delete
- Response:
status 200
URI: /boards/:id/status
Method: PATCH
-
Request
{ "username": "유저명", "password": "비밀번호" }
-
Response:
status 200
URI: /auth/signup
Method: POST
-
Request
{ "username": "유저명", "password": "비밀번호" }
-
Response:
access token: string