List of available API endpoints for the Rental Core system.
| Method | Endpoint | Name | Controller Action |
|---|---|---|---|
| POST |
/api/auth/register
|
- | Api\AuthController@register |
| POST |
/api/auth/login
|
- | Api\AuthController@login |
| POST |
/api/auth/logout
|
- | Api\AuthController@logout |
| GET |
/api/auth/me
|
- | Api\AuthController@me |
| POST |
/api/auth/upgrade
|
- | Api\AuthController@upgrade |
| GET |
/api/listings/mine
|
- | Api\ListingController@myListings |
| POST |
/api/listings
|
- | Api\ListingController@store |
| PUT |
/api/listings/{listing}
|
- | Api\ListingController@update |
| DELETE |
/api/listings/{listing}
|
- | Api\ListingController@destroy |
| PATCH |
/api/listings/{listing}/status
|
- | Api\ListingController@updateStatus |
| GET |
/api/favorites
|
- | Api\FavoriteController@index |
| POST |
/api/favorites/{listing}
|
- | Api\FavoriteController@toggle |
| GET |
/api/listings
|
- | Api\ListingController@index |
| GET |
/api/listings/{listing}
|
- | Api\ListingController@show |