mfdz / rides

Storing ride offers and ride searches, standalone and with digitransit, with social login
GNU Affero General Public License v3.0
0 stars 0 forks source link

Implement basic REST back-end #4

Open nandor-poka opened 5 years ago

nandor-poka commented 5 years ago

Pure PHP, no database. No persistence (everything in memory as variables), no oauth, see: https://en.wikipedia.org/wiki/Representational_state_transfer Estimation: 16h

Data folder structure

- data
|-- prefs
|-- offers
|-- searches

Example URLs: http://hostame/api/ride --> get all rides http://hostame/api/ride/1 --> get / create / update / delete the first ride http://hostname/api/offer http://hostame/api/pref

AC (acceptance criteria): [] endpoints for ride offers [] endpoints for ride searches [] both have all methods for CRUD operations [] endpoints for the preferences

nandor-poka commented 5 years ago

https://www.phpflow.com/php/create-php-restful-api-without-rest-framework-dependency/

this is a good starting point. Keep in mind we will not use any DB, so those parts of the tutorial should be ignored.

KissRoli96 commented 5 years ago

Okey, thank you.