wellrested/samples/apisample
PJ Dietz c788c9ee70 Move ArticleControler.php 2012-12-05 16:20:28 -05:00
..
data Move ArticleControler.php 2012-12-05 16:20:28 -05:00
handlers Move ArticleControler.php 2012-12-05 16:20:28 -05:00
.htaccess Add API Sample. Demonstration API using a route table. 2012-12-05 10:16:05 -05:00
ApiSampleRouter.inc.php Namespace API sample. 2012-12-05 16:08:30 -05:00
ArticlesControler.inc.php Move ArticleControler.php 2012-12-05 16:20:28 -05:00
README.txt API Sample now supports minimal GET, POST, PUT, and DELETE actions. 2012-12-05 15:35:23 -05:00
index.php Namespace API sample. 2012-12-05 16:08:30 -05:00

README.txt

The apisample directory contains a mini API project that demonstrates all of the
main features of Well RESTEd.

/articles/
    Represents a list of articles.

    GET
        Displays a list of articles
    POST
        Add a new article
    PUT
        Not allowed
    DELETE
        Not allowed

/articles/{id}
/articles/{slug}
    Represents one specific article identified by the numberic ID {id} or by the
    alpha-numeric slug.

    GET
        Displays one specific article
    POST
        Not allowed
    PUT
        Replace the article with the given contents
    DELETE
        Remove the article