Added parameter favorite_only to /api/v1/trips. If it's true, the result will be only favorited by current user trips. Otherwise - all trips.
Added new endpoints /api/v1/trips/{id}/add_to_favorite and /api/v1/trips/{id}/remove_from_favorite, which will add or remove trip to favorites of the current user. In case of success the result will be { success: true }, otherwise there will be an errror.
Added new field favorite: true/false to all trip related endpoint.
favorite_only
to/api/v1/trips
. If it's true, the result will be only favorited by current user trips. Otherwise - all trips./api/v1/trips/{id}/add_to_favorite
and/api/v1/trips/{id}/remove_from_favorite
, which will add or remove trip to favorites of the current user. In case of success the result will be{ success: true }
, otherwise there will be an errror.favorite: true/false
to all trip related endpoint.