{"swagger":"2.0","info":{"title":"apibuilder api json","description":"Specification of the API Builder Input form (api.json). See https://app.apibuilder.io/doc/apiJson","contact":{"name":"Michael Bryzek","url":"http://twitter.com/mbryzek","email":"mbryzek@alum.mit.edu"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"0.16.74"},"consumes":["application/json"],"produces":["application/json"],"paths":{},"definitions":{"annotation":{"type":"object","title":"annotation","properties":{"description":{"type":"string"},"deprecation":{"$ref":"#/definitions/deprecation"}}},"api_json":{"type":"object","title":"api_json","required":["name","imports","headers","enums","interfaces","unions","models","resources","annotations","attributes"],"properties":{"name":{"type":"string"},"info":{"$ref":"#/definitions/info"},"namespace":{"type":"string"},"base_url":{"type":"string"},"description":{"type":"string"},"imports":{"type":"array","items":{"$ref":"#/definitions/import"}},"headers":{"type":"array","items":{"$ref":"#/definitions/header"}},"enums":{"$ref":"#/definitions/map[enum]"},"interfaces":{"$ref":"#/definitions/map[interface]"},"templates":{"$ref":"#/definitions/templates"},"unions":{"$ref":"#/definitions/map[union]"},"models":{"$ref":"#/definitions/map[model]"},"resources":{"$ref":"#/definitions/map[resource]"},"annotations":{"$ref":"#/definitions/map[annotation]"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}}}},"attribute":{"type":"object","title":"attribute","required":["name","value"],"properties":{"name":{"type":"string"},"value":{}}},"body":{"type":"object","title":"body","required":["type"],"properties":{"type":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"contact":{"type":"object","title":"contact","properties":{"name":{"example":"Michael Bryzek","type":"string"},"url":{"example":"https://www.apibuilder.io","type":"string"},"email":{"example":"michael@test.apibuilder.io","type":"string"}}},"deprecation":{"type":"object","title":"deprecation","properties":{"description":{"type":"string"}}},"enum":{"type":"object","title":"enum","required":["values"],"properties":{"plural":{"type":"string"},"description":{"type":"string"},"values":{"type":"array","items":{"$ref":"#/definitions/enum_value"}},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"enum_value":{"type":"object","title":"enum_value","required":["name"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"field":{"type":"object","title":"field","required":["name","type","required"],"properties":{"name":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"required":{"default":"true","type":"boolean"},"default":{"$ref":"#/definitions/json"},"example":{"type":"string"},"minimum":{"type":"integer","format":"int64"},"maximum":{"type":"integer","format":"int64"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"annotations":{"type":"array","items":{"type":"string"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"header":{"type":"object","title":"header","required":["name","type","required"],"properties":{"name":{"type":"string"},"type":{"type":"string"},"required":{"default":"true","type":"boolean"},"description":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"import":{"type":"object","title":"import","required":["uri"],"properties":{"uri":{"type":"string"}}},"info":{"type":"object","title":"info","properties":{"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"interface":{"type":"object","title":"interface","properties":{"plural":{"type":"string"},"description":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/definitions/field"}},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"license":{"type":"object","description":"Describes the software license contact for this service","title":"license","required":["name"],"properties":{"name":{"example":"MIT","type":"string"},"url":{"example":"http://opensource.org/licenses/MIT","type":"string"}}},"model":{"type":"object","title":"model","required":["fields"],"properties":{"description":{"type":"string"},"plural":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/definitions/field"}},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"interfaces":{"type":"array","items":{"type":"string"}},"templates":{"type":"array","items":{"$ref":"#/definitions/template_declaration"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"operation":{"type":"object","title":"operation","required":["method"],"properties":{"method":{"type":"string"},"path":{"type":"string"},"description":{"type":"string"},"body":{"$ref":"#/definitions/body"},"parameters":{"type":"array","items":{"$ref":"#/definitions/parameter"}},"responses":{"$ref":"#/definitions/map[response]"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"parameter":{"type":"object","title":"parameter","required":["name","type","location","required"],"properties":{"name":{"type":"string"},"type":{"type":"string"},"location":{"type":"string","enum":["path","query","form","header"]},"description":{"type":"string"},"required":{"default":"true","type":"boolean"},"default":{"$ref":"#/definitions/json"},"minimum":{"type":"integer","format":"int64"},"maximum":{"type":"integer","format":"int64"},"example":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"resource":{"type":"object","title":"resource","required":["operations"],"properties":{"path":{"type":"string"},"description":{"type":"string"},"operations":{"type":"array","items":{"$ref":"#/definitions/operation"}},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"templates":{"type":"array","items":{"$ref":"#/definitions/template_declaration"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"response":{"type":"object","title":"response","required":["type"],"properties":{"type":{"type":"string"},"headers":{"type":"array","items":{"$ref":"#/definitions/header"}},"description":{"type":"string"},"deprecation":{"$ref":"#/definitions/deprecation"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}}}},"template_declaration":{"type":"object","title":"template_declaration","required":["name"],"properties":{"name":{"type":"string"},"cast":{"$ref":"#/definitions/map[string]"}}},"templates":{"type":"object","description":"Experimental","title":"templates","properties":{"models":{"$ref":"#/definitions/map[model]"},"resources":{"$ref":"#/definitions/map[resource]"}}},"union":{"type":"object","title":"union","required":["types"],"properties":{"plural":{"type":"string"},"discriminator":{"type":"string"},"description":{"type":"string"},"types":{"type":"array","items":{"$ref":"#/definitions/union_type"}},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"interfaces":{"type":"array","items":{"type":"string"}},"deprecation":{"$ref":"#/definitions/deprecation"}}},"union_type":{"type":"object","title":"union_type","required":["type","default"],"properties":{"type":{"type":"string"},"description":{"type":"string"},"default":{"default":"false","type":"boolean"},"discriminator_value":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/attribute"}},"deprecation":{"$ref":"#/definitions/deprecation"}}}}}