게시판
+검색 필드 및 무한 스크롤
+ +/posts
+$ curl 'http://localhost:8080/posts?title=Your+Title&content=Your+Content' -i -X GET
+GET /posts?title=Your+Title&content=Your+Content HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json;charset=UTF-8
+Content-Length: 1124
+
+{"result":{"content":[{"postId":1,"title":"흑구팀 화이팅팅","content":"언제나 응원해 흑구팀팀","memberName":"\"김별\""},{"postId":2,"title":"흑구영수팀 화이팅","content":"흑구영수팀 언제나 응원해","memberName":"\"김별\""},{"postId":3,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀","memberName":"\"김별\""},{"postId":4,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀","memberName":"\"김별\""},{"postId":5,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀","memberName":"\"김별\""},{"postId":6,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀","memberName":"\"김별\""},{"postId":7,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀","memberName":"\"김별\""}],"pageable":{"sort":{"empty":true,"unsorted":true,"sorted":false},"offset":0,"pageNumber":0,"pageSize":20,"paged":true,"unpaged":false},"size":20,"number":0,"sort":{"empty":true,"unsorted":true,"sorted":false},"first":true,"last":true,"numberOfElements":7,"empty":false},"resultCode":200,"resultMsg":"SELECT SUCCESS"}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+Result details |
+
|
+
|
+The list of content items |
+
|
+
|
+Pagination information |
+
|
+
|
+Indicates if the sort is empty |
+
|
+
|
+Indicates if the sort is sorted |
+
|
+
|
+Indicates if the sort is unsorted |
+
|
+
|
+Offset value for pagination |
+
|
+
|
+Page size for pagination |
+
|
+
|
+Page number |
+
|
+
|
+Indicates if the page is unpaged |
+
|
+
|
+Indicates if the page is paged |
+
|
+
|
+The page size |
+
|
+
|
+The current page number |
+
|
+
|
+Indicates if the sort is empty |
+
|
+
|
+Indicates if the sort is sorted |
+
|
+
|
+Indicates if the sort is unsorted |
+
|
+
|
+Indicates if this is the first page |
+
|
+
|
+Indicates if this is the last page |
+
|
+
|
+Number of elements in the current page |
+
|
+
|
+Indicates if the content is empty |
+
|
+
|
+The result code of the response |
+
|
+
|
+The result message of the response |
+
게시판 업데이트
+ +/posts/{id}
+$ curl 'http://localhost:8080/posts/1' -i -X PATCH \
+ -H 'Content-Type: application/json;charset=UTF-8' \
+ -d '{"title": "흑구팀 화이팅팅", "content": "언제나 응원해 흑구팀팀", "memberId": 1}'
+PATCH /posts/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Content-Length: 97
+Host: localhost:8080
+
+{"title": "흑구팀 화이팅팅", "content": "언제나 응원해 흑구팀팀", "memberId": 1}
+HTTP/1.1 200 OK
+Content-Type: application/json;charset=UTF-8
+Content-Length: 173
+
+{"result":{"postId":1,"title":"흑구팀 화이팅팅","content":"언제나 응원해 흑구팀팀","memberName":"\"김별\""},"resultCode":204,"resultMsg":"UPDATE SUCCESS"}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+The id of the updated post |
+
|
+
|
+The title of the updated post |
+
|
+
|
+The content of the updated post |
+
|
+
|
+The name of the member who made the update |
+
|
+
|
+The result code of the response |
+
|
+
|
+The result message of the response |
+
게시판 조회
+ +/posts/{id}
+$ curl 'http://localhost:8080/posts/1' -i -X GET
+GET /posts/1 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json;charset=UTF-8
+Content-Length: 173
+
+{"result":{"postId":1,"title":"흑구팀 화이팅팅","content":"언제나 응원해 흑구팀팀","memberName":"\"김별\""},"resultCode":200,"resultMsg":"SELECT SUCCESS"}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+The id of the detailed post |
+
|
+
|
+The title of the detailed post |
+
|
+
|
+The content of the detailed post |
+
|
+
|
+The name of writer |
+
|
+
|
+The result code of the response |
+
|
+
|
+The result message of the response |
+
게시글 등록
+ +/posts
+$ curl 'http://localhost:8080/posts' -i -X POST \
+ -H 'Content-Type: application/json;charset=UTF-8' \
+ -d '{"memberId":1,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀"}'
+POST /posts HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Content-Length: 84
+Host: localhost:8080
+
+{"memberId":1,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀"}
+HTTP/1.1 201 Created
+Location: http://localhost:8080/posts/7
+Content-Type: application/json;charset=UTF-8
+Content-Length: 108
+
+{"postId":7,"title":"흑구영수팀 화이팅","content":"흑구영수팀팀팀","memberName":"\"김별\""}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+The id of the saved post |
+
|
+
|
+The title of the saved post |
+
|
+
|
+The content of the saved post |
+
|
+
|
+The name of writer |
+