Fake Better API
This is a basic example API for our talk at http://betterapis.com.
Resource Group ¶
Foo ¶
listFooGET/foo{?limit}
Example URI
GET http://api.betterapis.com//foo?limit=
URI Parameters
- limit
string(optional) Default: 10maximum number of foo to return
Response
200Headers
Content-Type: application/jsonBody
List all foo
+ Attributes (array[Foo])Foo ¶
putFooPUT/foo
Example URI
PUT http://api.betterapis.com//foo
Request
Headers
Content-Type: application/jsonBody
{}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}Response
200Headers
Content-Type: application/jsonBody
Updates a foo
+ Attributes (Dynamic)Response
400Body
Invalid foo datapostFooPOST/foo
Example URI
POST http://api.betterapis.com//foo
Request
Headers
Content-Type: application/jsonBody
{}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}Response
200Headers
Content-Type: application/jsonBody
Creates a foo
+ Attributes (Dynamic)Response
400Body
Invalid foo data