특정 게시글 반환 [GET]
path variable로 게시글 id를 받아서 해당 게시글을 반환한다.
GET
http://3.135.231.171/api/post/{post_id}
URI Parameter
Name | In | Required | Type | Description |
---|---|---|---|---|
post_id | path | true | Long | 게시글 id |
Response
Status code | Type | Description |
---|---|---|
200 OK | Post | 게시글 |
예제
Sample Request
GET
http://3.135.231.171/api/post/1032
Sample Response
Status code: 200
{
"id": 1025,
"interest":{
"id": 0,
"subject": "general"
},
"title": "teset",
"content": "test",
"member":{
"id": 1001,
"username": "jjj",
"password": "$2a$10$nl1du0FdjzK9HQmWw1eT0eXJtuO3g.9aL22JbXSHymW7gQ1XhCOJe"
},
"writingDate": "2021-12-04T15:41:08"
}