Skip to content

API Documentation

Victoria Bobey edited this page Nov 3, 2016 · 28 revisions

#Example From Lab:

GET /posts/<post_id>

Used to get the contents of post. With HTTP GET <post_id> is the id number of the post, and it's required.

It returns a JSON. The JSON is an object. It has an author field, an id, field that matches the post_id of the request.

Here's an example: GET /posts/18 HTTP/1.1 Header: Value

200 Ok ...

JSON

Clone this wiki locally