😀여행 조회
여행에서 여행 전체 조회, 여행 개별 조회, 키워드를 통한 여행 검색 api
전체 여행 리스트를 조회할 수 있습니다.
GET http://localhost:8080/api/trip/all
전체 사용자는 전체 여행 리스트를 조회합니다.
{
"status": "OK",
"msg": "모든 여행 조회 완료",
"data": [
{
"tripId": 3,
"userId": 1,
"tripName": "일본일본일본일본",
"startDate": "2023-10-22",
"endDate": "2023-10-29",
"isDomestic": false,
"tripPeriod": "7days"
},
{
"tripId": 4,
"userId": 1,
"tripName": "~일본~",
"startDate": "2023-03-02",
"endDate": "2023-03-10",
"isDomestic": false,
"tripPeriod": "8days"
},
{
"tripId": 5,
"userId": 2,
"tripName": "즐거운일본여행",
"startDate": "2023-03-02",
"endDate": "2023-03-10",
"isDomestic": false,
"tripPeriod": "8days"
},
{
"tripId": 6,
"userId": 3,
"tripName": "유럽 여행",
"startDate": "2023-03-02",
"endDate": "2023-04-01",
"isDomestic": true,
"tripPeriod": "30days"
}
]
}특정 여행 정보를 조회할 수 있습니다.
GET http://localhost:8080/api/trip/{tripId}
전체 사용자는 특정 여행을 조회합니다.
특정 여행 정보에는 여행, 여정들, 댓글, 좋아요 수가 있습니다.
Path Parameters
Name
Type
Description
tripId*
Long
여행의 id
키워드를 통한 특정 여행 정보를 검색합니다.
GET http://localhost:8080/api/trip/search
전체 사용자는 여행을 특정 키워드로 검색 가능합니다.
Query Parameters
Name
Type
Description
keyword*
String
이름 검색 키워드
Last updated