apibuilder api json 0.16.53

Specification of the API Builder Input form (api.json). See https://app.apibuilder.io/doc/apiJson

Resources

No resources

Headers

No headers

Imports

No imports

Enums

parameter_location

Name Value Description
path path

query query

form form

header header

Interfaces

No interfaces

Models

annotation

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
description string No -

deprecation deprecation No -

api_json

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string Yes -

info info No -

namespace string No -

base_url string No -

description string No -

imports [import] No []

headers [header] No []

enums map[enum] No {}

interfaces map[interface] No {}

templates templates No -

unions map[union] No {}

models map[model] No {}

resources map[resource] No {}

annotations map[annotation] No {}

attributes [attribute] No []

attribute

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string Yes -

value object Yes -

body

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
type string Yes -

description string No -

attributes [attribute] No -

deprecation deprecation No -

contact

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string No -

Example: Michael Bryzek

url string No -

Example: https://www.apibuilder.io

email string No -

Example: michael@test.apibuilder.io

deprecation

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
description string No -

enum

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
plural string No -

description string No -

values [enum_value] Yes -

attributes [attribute] No -

deprecation deprecation No -

enum_value

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string Yes -

value string No -

description string No -

attributes [attribute] No -

deprecation deprecation No -

field

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string Yes -

type string Yes -

description string No -

required boolean No true

default json No -

example string No -

minimum long No -

maximum long No -

attributes [attribute] No -

annotations [string] No -

deprecation deprecation No -

header

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string Yes -

type string Yes -

required boolean No true

description string No -

attributes [attribute] No -

deprecation deprecation No -

import

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
uri string Yes -

info

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
contact contact No -

license license No -

interface

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
plural string No -

description string No -

fields [field] No -

attributes [attribute] No -

deprecation deprecation No -

license

Example Json: Minimal | Full

Interfaces: None

Describes the software license contact for this service

Field Type Required? Default Description
name string Yes -

Example: MIT

url string No -

Example: http://opensource.org/licenses/MIT

model

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
description string No -

plural string No -

fields [field] No []

attributes [attribute] No -

interfaces [string] No -

templates [template_declaration] No -

deprecation deprecation No -

operation

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
method string Yes -

path string No -

description string No -

body body No -

parameters [parameter] No -

responses map[response] No -

attributes [attribute] No -

deprecation deprecation No -

parameter

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string Yes -

type string Yes -

location parameter_location No query

description string No -

required boolean No true

default json No -

minimum long No -

maximum long No -

example string No -

attributes [attribute] No -

deprecation deprecation No -

resource

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
path string No -

description string No -

operations [operation] No []

attributes [attribute] No -

templates [template_declaration] No -

deprecation deprecation No -

response

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
type string Yes -

headers [header] No -

description string No -

deprecation deprecation No -

attributes [attribute] No -

template_declaration

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
name string Yes -

cast map[string] No -

Casts the types declared in the template to the types you want to use in this declaration

templates

Example Json: Minimal | Full

Interfaces: None

Experimental

Field Type Required? Default Description
models map[model] No -

resources map[resource] No -

union

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
plural string No -

discriminator string No -

description string No -

types [union_type] Yes -

Minimum: 1

attributes [attribute] No -

interfaces [string] No -

deprecation deprecation No -

union_type

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
type string Yes -

description string No -

default boolean No false

discriminator_value string No -

attributes [attribute] No -

deprecation deprecation No -

Unions

No unions

Annotations

No annotations