์ค๋์ ์ฃผ์์ฌํญ (6/23, ๊ธ์์ผ)
- Lv2 ๊ณผ์ ์๋ฃ
Lv2 ๊ณผ์ Repository
์ผ๋จ ๋๋ด๊ณ , ์ ์ถ ์ ๊น์ง ์ถ๊ฐ๋ก ํ์ตํ ๊ฒ๋ค์ ํ ๋๋ก ๋ฆฌํฉํ ๋ง ํด ๋ณผ ์๊ฐ์ด๋ค.
๊ตฌ๋ถ | Method | URL | Request Head | Request | Response | Response Header |
---|---|---|---|---|---|---|
ํ์๊ฐ์ | POST | /blog/auth/signup | - | { "username":"user1234", "password":"Password1234" } | { "msg":"ํ์๊ฐ์ ์ฑ๊ณต", "statusCode":200 } | - |
๋ก๊ทธ์ธ | POST | /blog/auth/login | - | { "username":"user1234", "password":"Password1234" } | { "msg":"๋ก๊ทธ์ธ ์ฑ๊ณต", "statusCode":200 } | Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdW IiOiJ1c2VyMTIzNCIsImV4cCI 6MTY4NzUzNTUyNywiaWF0I joxNjg3NTMxOTI3fQ.ZUDqo EhmxqEMj8B6AreqdiCbDo4e sMaraS_U2k6GNuM |
๊ฒ์๊ธ ์์ฑ | POST | /blog/write | Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdW IiOiJ1c2VyMTIzNCIsImV4cCI 6MTY4NzUzNTUyNywiaWF0I joxNjg3NTMxOTI3fQ.ZUDqo EhmxqEMj8B6AreqdiCbDo4e sMaraS_U2k6GNuM | { "title":"์ ๋ชฉ1", "content":"๋ด์ฉ1" } | { "createdAt":"2023-06-23T12:56:36.821474", "modifiedAt":"2023-06-23T12:56:36.821474" "id":1, "title":"๊ฒ์๊ธ1" "content":"๋ด์ฉ1" "username":"user1234" } | |
์ ์ฒด ๊ฒ์๊ธ ๋ชฉ๋ก ์กฐํ | GET | /blog/posts | - | { "title":"์ ๋ชฉ1", "content":"๋ด์ฉ1" } | { { "createdAt":"2023-06-24T12:56:36.821474", "modifiedAt":"2023-06-24T12:56:36.821474" "id":2, "title":"๊ฒ์๊ธ2" "content":"๋ด์ฉ2" "username":"user1234" }, { "createdAt":"2023-06-23T12:56:36.821474", "modifiedAt":"2023-06-23T12:56:36.821474" "id":1, "title":"๊ฒ์๊ธ1" "content":"๋ด์ฉ1" "username":"user1234" } } | - |
์ ํํ ๊ฒ์๊ธ ์กฐํ | GET | /blog/posts/{id} | - | { "createdAt":"2023-06-24T12:56:36.821474", "modifiedAt":"2023-06-24T12:56:36.821474" "id":2, "title":"๊ฒ์๊ธ2" "content":"๋ด์ฉ2" "username":"user1234" } | - | |
์ ํํ ๊ฒ์๊ธ ์์ | PUT | /blog/posts/{id} | Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdW IiOiJ1c2VyMTIzNCIsImV4cCI 6MTY4NzUzNTUyNywiaWF0I joxNjg3NTMxOTI3fQ.ZUDqo EhmxqEMj8B6AreqdiCbDo4e sMaraS_U2k6GNuM | { "title":"์ ๋ชฉ2์์ ", "content":"๋ด์ฉ2์์ " } | { "createdAt":"2023-06-24T12:56:36.821474", "modifiedAt":"2023-06-25T12:56:36.821474" "id":2, "title":"๊ฒ์๊ธ2์์ " "content":"๋ด์ฉ2์์ " "username":"user1234" } | - |
์ ํํ ๊ฒ์๊ธ ์ญ์ | DELETE | /blog/posts/{id} | Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdW IiOiJ1c2VyMTIzNCIsImV4cCI 6MTY4NzUzNTUyNywiaWF0I joxNjg3NTMxOTI3fQ.ZUDqo EhmxqEMj8B6AreqdiCbDo4e sMaraS_U2k6GNuM | - | { "msg":"๊ฒ์๊ธ ์ญ์ ์ฑ๊ณต", "statusCode":200 } | - |