Specification of the API Builder Input form (api.json). See https://app.apibuilder.io/doc/apiJson
Contact: Michael Bryzek mbryzek@alum.mit.edu http://twitter.com/mbryzek
License: MIT
annotation
| Field | Type |
|---|---|
| description | string |
| deprecation | deprecation |
api_json
| Field | Type | Description |
|---|---|---|
| name required | string | |
| info | info | |
| namespace | string | |
| base_url | string | |
| description | string | |
| imports | [import] | default: [] |
| headers | [header] | default: [] |
| enums | map[enum] | default: {} |
| interfaces | map[interface] | default: {} |
| templates | templates | |
| unions | map[union] | default: {} |
| models | map[model] | default: {} |
| resources | map[resource] | default: {} |
| annotations | map[annotation] | default: {} |
| attributes | [attribute] | default: [] |
attribute
| Field | Type |
|---|---|
| name required | string |
| value required | object |
body
| Field | Type |
|---|---|
| type required | string |
| description | string |
| attributes | [attribute] |
| deprecation | deprecation |
contact
| Field | Type | Description |
|---|---|---|
| name | string | e.g. Michael Bryzek |
| url | string | e.g. https://www.apibuilder.io |
| string | e.g. michael@test.apibuilder.io |
deprecation
| Field | Type |
|---|---|
| description | string |
enum
| Field | Type |
|---|---|
| plural | string |
| description | string |
| values required | [enum_value] |
| attributes | [attribute] |
| deprecation | deprecation |
enum_value
| Field | Type |
|---|---|
| name required | string |
| value | string |
| description | string |
| attributes | [attribute] |
| deprecation | deprecation |
field
| Field | Type | Description |
|---|---|---|
| name required | string | |
| type required | string | |
| description | string | |
| required | boolean | default: true |
| default | json | |
| example | string | |
| minimum | long | |
| maximum | long | |
| attributes | [attribute] | |
| annotations | [string] | |
| deprecation | deprecation |
header
| Field | Type | Description |
|---|---|---|
| name required | string | |
| type required | string | |
| required | boolean | default: true |
| description | string | |
| attributes | [attribute] | |
| deprecation | deprecation |
import
| Field | Type |
|---|---|
| uri required | string |
interface
| Field | Type |
|---|---|
| plural | string |
| description | string |
| fields | [field] |
| attributes | [attribute] |
| deprecation | deprecation |
license
Describes the software license contact for this service
| Field | Type | Description |
|---|---|---|
| name required | string | e.g. MIT |
| url | string | e.g. http://opensource.org/licenses/MIT |
model
| Field | Type | Description |
|---|---|---|
| description | string | |
| plural | string | |
| fields | [field] | default: [] |
| attributes | [attribute] | |
| interfaces | [string] | |
| templates | [template_declaration] | |
| deprecation | deprecation |
operation
| Field | Type |
|---|---|
| method required | string |
| path | string |
| description | string |
| body | body |
| parameters | [parameter] |
| responses | map[response] |
| attributes | [attribute] |
| deprecation | deprecation |
parameter
| Field | Type | Description |
|---|---|---|
| name required | string | |
| type required | string | |
| location | parameter_location | default: query |
| description | string | |
| required | boolean | default: true |
| default | json | |
| minimum | long | |
| maximum | long | |
| example | string | |
| attributes | [attribute] | |
| deprecation | deprecation |
resource
| Field | Type | Description |
|---|---|---|
| path | string | |
| description | string | |
| operations | [operation] | default: [] |
| attributes | [attribute] | |
| templates | [template_declaration] | |
| deprecation | deprecation |
response
| Field | Type |
|---|---|
| type required | string |
| headers | [header] |
| description | string |
| deprecation | deprecation |
| attributes | [attribute] |
template_declaration
| Field | Type | Description |
|---|---|---|
| name required | string | |
| cast | map[string] | Casts the types declared in the template to the types you want to use in this declaration |
union
| Field | Type | Description |
|---|---|---|
| plural | string | |
| discriminator | string | |
| description | string | |
| types required | [union_type] | min: 1 |
| attributes | [attribute] | |
| interfaces | [string] | |
| deprecation | deprecation |
union_type
| Field | Type | Description |
|---|---|---|
| type required | string | |
| description | string | |
| default | boolean | default: false |
| discriminator_value | string | |
| attributes | [attribute] | |
| deprecation | deprecation |