Resourceful is a ready-to-use Symfony2-based 'Rapid API Development' (RAPID) setup to create a REST API with as little effort as possible.
Resourceful comes with the following features out-of-the-box:
- User management.
- oAuth2 authorization and Client management.
- i18n and language selection using the
Accept-Language
header (defaults to english). - Support for XML and JSON using the
Content-Type
andAccepts
header.
-
Clone this repository:
git clone git@github.com:Ingewikkeld/Resourceful.git
-
Load the submodules that Puppet uses:
git submodule update --init
-
Initialize and boot the Vagrant virtual machine:
vagrant up
-
Ssh into the Vagrant virtual machine:
vagrant ssh
-
Go to /vagrant:
cd /vagrant
-
Download composer if you do not have it yet:
-
Install dependencies
php composer.phar install
-
Update database with schema
php app/console doctrine:schema:update --force
Do not forget to add the URL 'dev.rest.example.org' to your hosts file with IP 192.168.43.43. After the installation has completed you can visit that location to see your REST API.
Please see https://github.com/Ingewikkeld/Resourceful for more information or read the documentation in the docs folder.