PHP code example of nedra / rest-bundle
1. Go to this page and download the library: Download nedra/rest-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nedra / rest-bundle example snippets
[...]
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
new Nedra\RestBundle\NedraRestBundle(),
app_model_index GET ANY ANY /models/
app_model_create POST ANY ANY /models/new
app_model_update PUT|PATCH ANY ANY /models/{id}
app_model_show GET ANY ANY /models/{id}
app_model_delete DELETE ANY ANY /models/{id}