검색하기
검색하기 기능입니다. 제목, 본문내용에 대해 검색합니다.
URL
/post/search?keyword=(검색내용)
Method
GET
Response
예시
URL : http://localhost:8000/post/search?keyword=안녕~
결과
200 OK
{
"count": 3,
"next": null,
"previous": null,
"results": [
{
"pk": 19,
"author": 321,
"title": "안녕~",
"photo": "http://localhost:8000/.media/post/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7_2017-08-02_22-32-12.png",
"content": "테스트 content 부분입니다",
"category": "e",
"trading_type": "d",
"post_code": null,
"road_address": null,
"detail_address": null,
"comments": [],
"like_users": [],
"is_sold": false,
"exchange_count": 0,
"created_date": "2017-08-14T13:31:07.555983",
"modified_date": "2017-08-14T13:31:07.556041"
},
{
"pk": 22,
"author": 321,
"title": "안녕~",
"photo": "http://localhost:8000/.media/post/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7_2017-08-02_22-32-12_bttoGSh.png",
"content": "철규",
"category": "e",
"trading_type": "d",
"post_code": null,
"road_address": null,
"detail_address": null,
"comments": [],
"like_users": [],
"is_sold": false,
"exchange_count": 0,
"created_date": "2017-08-14T13:31:35.151453",
"modified_date": "2017-08-14T13:31:35.151485"
},
{
"pk": 23,
"author": 321,
"title": "안녕~",
"photo": "http://localhost:8000/.media/post/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7_2017-08-02_22-32-12_e7MAXyJ.png",
"content": "철규",
"category": "e",
"trading_type": "d",
"post_code": null,
"road_address": null,
"detail_address": null,
"comments": [],
"like_users": [],
"is_sold": false,
"exchange_count": 0,
"created_date": "2017-08-14T13:33:56.149777",
"modified_date": "2017-08-14T13:33:56.149809"
}
]
}