Fake Better API

This is a basic example API for our talk at http://betterapis.com.
More information: http://betterapis.com/contact/
Contact Info: apiteam@betterapis.com
Version: 1.0.0
BasePath:/
Apache 2.0
http://www.apache.org/licenses/LICENSE-2.0.html

Access

Methods

[ Jump to Models ]

Table of Contents

  1. get /foo/{fooId}
  2. get /foo
  3. post /foo
  4. put /foo
Up
get /foo/{fooId}
(getFooByID)

Path parameters

fooId (required)
Path Parameter — ID of the foo

Consumes

This API call consumes the following media types via the Content-Type request header:

Return type

Object

Example data

Content-Type: application/json
"{}"

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Foo with the specified ID Object

404

Foo with specified ID not found

Up
get /foo
(listFoo)

Consumes

This API call consumes the following media types via the Content-Type request header:

Query parameters

limit (optional)
Query Parameter — maximum number of foo to return default: 10 format: int32

Return type

array[Foo]

Example data

Content-Type: application/json
[ {
  "score" : 123,
  "name" : "aeiou"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

List all foo

Up
post /foo
(postFoo)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

foo (required)
Body Parameter — Data representing a foo

Return type

Object

Example data

Content-Type: application/json
"{}"

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Creates a foo Object

400

Invalid foo data

Up
put /foo
(putFoo)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

foo (required)
Body Parameter — Data representing a foo

Return type

Object

Example data

Content-Type: application/json
"{}"

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Updates a foo Object

400

Invalid foo data

Up

Models

[ Jump to Methods ]

Table of Contents

  1. Foo

Foo Up

name (optional)
score (optional)
Integer format: int32