cd
..; curl -s http://getcomposer.org/installer | php;php
composer.phar installsamples
directory and point browser to it. This file should be shown.This script is a minimal standalone endpoint implementation just to demonstrate how to build autocontained web service using just Core classes.
It manages HTTP content negotiation supporting following formats:
It manages http error according providing ietf error model in following formats:
This script is a complete standalone endpoint implementation just to demonstrate how to build autocontained RESTful using Core classes.Similar to simple_helloworld.php but shows usage of hypermedia links.
click here to executeIt shows how easy is to develop a web application that reuse an existing end-point. Reused endpoint is contained in a single file ( in mylibrary\SimpleHelloEndPoint.php file)
This end point exposes these resources:
Like reusable_helloword but the code is more complex and splitted in serveral files ( in mylibrary\HelloEndPoint directory)
This end point exposes these resources: