Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic REST back-end #4

Open
nandor-poka opened this issue Aug 30, 2019 · 2 comments
Open

Implement basic REST back-end #4

nandor-poka opened this issue Aug 30, 2019 · 2 comments
Assignees

Comments

@nandor-poka
Copy link

nandor-poka commented Aug 30, 2019

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
Copy link
Author

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
Copy link
Contributor

Okey, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants