https://github.com/smknstd/mini-rest-api
really basic setup of a restful api with php Slim framework and mongoclient
https://github.com/smknstd/mini-rest-api
Last synced: 11 months ago
JSON representation
really basic setup of a restful api with php Slim framework and mongoclient
- Host: GitHub
- URL: https://github.com/smknstd/mini-rest-api
- Owner: smknstd
- Created: 2014-09-15T13:33:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-15T13:39:39.000Z (over 11 years ago)
- Last Synced: 2025-01-16T11:32:51.631Z (over 1 year ago)
- Language: PHP
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Even a [basic authentication](http://en.wikipedia.org/wiki/Basic_access_authentication) is missing !
tested with curl:
`curl -i -X GET http://localhost:8000/books/1`
`curl -i -X POST -H 'Content-Type: application/json' -d '{"id": "5", "nom": "Lunar Park", "auteur": "Bret Easton Ellis", "note": "mauvais"}' http://localhost:8000/books`