Open nandor-poka opened 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.
Okey, thank you.
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
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