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 | |
| apidoc | apidoc | |
| info | info | |
| namespace | string | |
| base_url | string | |
| description | string | |
| imports required | [import] | default: [] |
| headers required | [header] | default: [] |
| enums required | map[enum] | default: {} |
| interfaces required | map[interface] | default: {} |
| unions required | map[union] | default: {} |
| models required | map[model] | default: {} |
| resources required | map[resource] | default: {} |
| annotations required | map[annotation] | default: {} |
| attributes required | [attribute] | default: [] |
apidoc
| Field | Type | Description |
|---|---|---|
| version required | string | e.g. 0.14.97 |
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 required | boolean | default: true |
| default | string | |
| example | string | |
| minimum | long | |
| maximum | long | |
| attributes | [attribute] | |
| annotations | [string] | |
| deprecation | deprecation |
header
| Field | Type | Description |
|---|---|---|
| name required | string | |
| type required | string | |
| required 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 | string |
| plural | string |
| fields required | [field] |
| attributes | [attribute] |
| interfaces | [string] |
| deprecation | deprecation |
operation
| Field | Type |
|---|---|
| method required | string |
| path required | string |
| description | string |
| body | body |
| parameters | [parameter] |
| responses | [response] |
| attributes | [attribute] |
| deprecation | deprecation |
parameter
| Field | Type | Description |
|---|---|---|
| name required | string | |
| type required | string | |
| location required | parameter_location | default: query |
| description | string | |
| required required | boolean | default: true |
| default | string | |
| minimum | long | |
| maximum | long | |
| example | string | |
| attributes | [attribute] | |
| deprecation | deprecation |
resource
| Field | Type |
|---|---|
| path | string |
| description | string |
| operations required | [operation] |
| attributes | [attribute] |
| deprecation | deprecation |
response
| Field | Type |
|---|---|
| type required | string |
| headers | [header] |
| description | string |
| deprecation | deprecation |
| attributes | [attribute] |
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 required | boolean | default: false |
| discriminator_value | string | |
| attributes | [attribute] | |
| deprecation | deprecation |