ScienceForChange / SoundCollect_backend

0 stars 0 forks source link

API Routes for observations #9

Closed CarlosMillanSfC closed 6 months ago

CarlosMillanSfC commented 7 months ago

When designing the CRUD of the observations I need to implement the routes as well and define the name, prefix, middlewares, etc.

CarlosMillanSfC commented 7 months ago

php artisan route:list --name=observations --json

domain method uri name action middleware.0
GET-HEAD api/observations observations.index AppHttpControllersObservationController@index api
POST api/observations observations.store AppHttpControllersObservationController@store api
GET-HEAD api/observations/{observation} observations.show AppHttpControllersObservationController@show api
PUT api/observations/{observation} observations.update AppHttpControllersObservationController@update api
DELETE api/observations/{observation} observations.destroy AppHttpControllersObservationController@destroy api