Specification of apidoc api.json schema
Base URL: http://api.apidoc.me
body
| Field | Type |
|---|---|
| type required | string |
| description | string |
enum
| Field | Type |
|---|---|
| name required | string |
| description | string |
| values required | [enum_value] |
enum_value
| Field | Type |
|---|---|
| name required | string |
| description | string |
field
| Field | Type |
|---|---|
| name required | string |
| type required | string |
| description | string |
| default | string |
| required required | boolean |
| minimum | long |
| maximum | long |
| example | string |
header
| Field | Type |
|---|---|
| name required | string |
| type required | string |
| description | string |
| required required | boolean |
| default | string |
import
An import is used to declare a dependency on another service. This allows you to reference the models and or enums from that service in your own service.
| Field | Type | Description |
|---|---|---|
| uri required | string | Full URI to the service.json file of the service we are importing e.g. http://www.apidoc.me/gilt/apidoc-spec/0.7.38/service.json |
| namespace required | string | |
| organization_key required | string | |
| application_key required | string | |
| version required | string |
model
| Field | Type |
|---|---|
| name required | string |
| plural required | string |
| description | string |
| fields required | [field] |
operation
parameter
| Field | Type |
|---|---|
| name required | string |
| type required | string |
| location required | parameter_location |
| description | string |
| required required | boolean |
| default | string |
| minimum | long |
| maximum | long |
| example | string |
resource
response
| Field | Type |
|---|---|
| code required | integer |
| type required | string |
service
| Field | Type | Description |
|---|---|---|
| name required | string | |
| key required | string | Unique key to identify this service. URL friendly |
| namespace required | string | Fully qualified namespace for this service - e.g. com.gilt.apidoc. |
| version required | string | e.g. 1.0.0 |
| base_url | string | |
| description | string | |
| headers required | [header] | |
| imports required | [import] | |
| enums required | [enum] | |
| models required | [model] | |
| resources required | [resource] | keys are the names of a model |