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
200
Headers
Content-Type: application/json
Body
List all foo
+ Attributes (array[Foo])
Foo ¶
putFooPUT/foo
Example URI
PUT http://api.betterapis.com//foo
Request
Headers
Content-Type: application/json
Body
{}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
Response
200
Headers
Content-Type: application/json
Body
Updates a foo
+ Attributes (Dynamic)
Response
400
Body
Invalid foo data
postFooPOST/foo
Example URI
POST http://api.betterapis.com//foo
Request
Headers
Content-Type: application/json
Body
{}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
Response
200
Headers
Content-Type: application/json
Body
Creates a foo
+ Attributes (Dynamic)
Response
400
Body
Invalid foo data