https://github.com/neofox/symfony-rest-skeleton
a simple rest API skeleton with symfony and FOSRestBundle
https://github.com/neofox/symfony-rest-skeleton
Last synced: over 1 year ago
JSON representation
a simple rest API skeleton with symfony and FOSRestBundle
- Host: GitHub
- URL: https://github.com/neofox/symfony-rest-skeleton
- Owner: Neofox
- License: wtfpl
- Created: 2016-03-14T17:20:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-14T17:28:04.000Z (over 10 years ago)
- Last Synced: 2025-01-22T03:41:32.210Z (over 1 year ago)
- Language: PHP
- Size: 1.91 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RESTFUL API Skeleton
=======
This project was created for me at the beggining 'cause I love RESTFUL API.
It's a simple test Api with a User.
The REST parts is managed by FOSRestBundle and the DB is managed by Doctrine.
Starting the project :
`vagrant up`
`vagrant ssh`
`cd /var/www/rest`
`composer install`
Generate database and loading fixtures :
`bin/console doctrine:database:create`
`bin/console doctrine:schema:update`
`bin/console doctrine:fixtures:load`
Testing the API :
`curl -i -X GET neoapi.prod/api/users`
======
Copyright © 2016 Jérôme Schaeffer
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENSE file for more details.