
새로운 스프링 프로젝트를 시작하였다. 이 프로젝트의 주 목표는 간단한 게시판 기능을 DB와 연동하여 구현하는 것이다.
| Method | URL | Request | Response |
|---|---|---|---|
| GET | /api/data | - | List of data (title, author, contents, nowTime) |
| GET | /api/data/{id} | - | Single data (title, author, contents, nowTime) |
| POST | /api/data | { "title": "title", "author": "author", "contents": "contents", "pw": "password" } | Data with (title, author, contents, nowTime, id) |
| PUT | /api/data/{id} | { "title": "changeTitle", "author": "author", "contents": "contents", "pw": "pw" } | Updated data (title, author, contents, nowTime) |
| DELETE | /api/data/{id} | { "pw": "pw" } | { "success": "true" } |