{ "swagger": "2.0", "info": { "title": "Administrative Area API", "description": "A geographical region, typically under the jurisdiction of a particular government.", "termsOfService": "http:\/\/apievangelist.com\/terms-of-service.html", "version": "v1" }, "host": "administrative.area.example.com", "basePath": "\/", "schemes": ["http"], "produces": ["application\/json"], "paths": { "\/administrative-area\/": { "get": { "summary": "Get Administrative Area", "description": "Returns Administrative Area", "operationId": "getAdministrativeArea", "parameters": [{ "name": "q", "in": "query", "description": "Keyword search for item", "required": false, "type": "string" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/AdministrativeArea" } } } }, "tags": ["Administrative Area"] }, "post": { "summary": "Add Administrative Area", "description": "Add Administrative Area", "operationId": "addAdministrativeArea", "parameters": [{ "name": "additionalproperty", "in": "formData", "description": "A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. http:\/\/schema.org\/width, http:\/\/schema.org\/color, http:\/\/schema.org\/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property\/value mechanism.", "required": false, "type": "propertyvalue" }, { "name": "additionaltype", "in": "formData", "description": "An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \\'typeof\\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.", "required": false, "type": "url" }, { "name": "address", "in": "formData", "description": "Physical address of the item.", "required": false, "type": "postaladdress or text" }, { "name": "aggregaterating", "in": "formData", "description": "The overall rating, based on a collection of reviews or ratings, of the item.", "required": false, "type": "aggregaterating" }, { "name": "alternatename", "in": "formData", "description": "An alias for the item.", "required": false, "type": "text" }, { "name": "applicablelocation", "in": "formData", "description": "The location in which the status applies. ", "required": false, "type": "drugcost or druglegalstatus" }, { "name": "areaserved", "in": "formData", "description": "The geographic area where a service or offered item is provided. Supersedes serviceArea.", "required": false, "type": "service or demand or offer or deliverychargespecification or organization or contactpoint" }, { "name": "availablein", "in": "formData", "description": "The location in which the strength is available. ", "required": false, "type": "drugstrength" }, { "name": "branchcode", "in": "formData", "description": "A short textual code (also called \\\"store code\\\") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http:\/\/www.starbucks.co.uk\/store-locator\/etc\/detail\/3047 the code \\\"3047\\\" is a branchCode for a particular branch. ", "required": false, "type": "text" }, { "name": "containedinplace", "in": "formData", "description": "The basic containment relation between a place and one that contains it. Supersedes containedIn. Inverse property: containsPlace.", "required": false, "type": "place" }, { "name": "containsplace", "in": "formData", "description": "The basic containment relation between a place and another that it contains. Inverse property: containsPlace.", "required": false, "type": "place" }, { "name": "description", "in": "formData", "description": "A short description of the item.", "required": false, "type": "text" }, { "name": "event", "in": "formData", "description": "Upcoming or past event associated with this place, organization, or action. Supersedes events.", "required": false, "type": "event" }, { "name": "faxnumber", "in": "formData", "description": "The fax number.", "required": false, "type": "text" }, { "name": "geo", "in": "formData", "description": "The geo coordinates of the place.", "required": false, "type": "geocoordinates or geoshape" }, { "name": "geographicarea", "in": "formData", "description": "The geographic area associated with the audience. ", "required": false, "type": "audience" }, { "name": "globallocationnumber", "in": "formData", "description": "The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.", "required": false, "type": "text" }, { "name": "hasmap", "in": "formData", "description": "A URL to a map of the place. Supersedes map, maps.", "required": false, "type": "url or map" }, { "name": "image", "in": "formData", "description": "An image of the item. This can be a URL or a fully described ImageObject.", "required": false, "type": "url or imageobject" }, { "name": "isicv4", "in": "formData", "description": "The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.", "required": false, "type": "text" }, { "name": "logo", "in": "formData", "description": "An associated logo.", "required": false, "type": "url or imageobject" }, { "name": "mainentityofpage", "in": "formData", "description": "Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details. Inverse property: mainEntity.", "required": false, "type": "url or creativework" }, { "name": "name", "in": "formData", "description": "The name of the item.", "required": false, "type": "text" }, { "name": "openinghoursspecification", "in": "formData", "description": "The opening hours of a certain place.", "required": false, "type": "openinghoursspecification" }, { "name": "photo", "in": "formData", "description": "A photograph of this place. Supersedes photos.", "required": false, "type": "photograph or imageobject" }, { "name": "potentialaction", "in": "formData", "description": "Indicates a potential Action, which describes an idealized action in which this thing would play an \\'object\\' role.", "required": false, "type": "action" }, { "name": "review", "in": "formData", "description": "A review of the item. Supersedes reviews.", "required": false, "type": "review" }, { "name": "sameas", "in": "formData", "description": "URL of a reference Web page that unambiguously indicates the item\\'s identity. E.g. the URL of the item\\'s Wikipedia page, Freebase page, or official website.", "required": false, "type": "url" }, { "name": "studylocation", "in": "formData", "description": "The location in which the study is taking\/took place. ", "required": false, "type": "medicalstudy" }, { "name": "telephone", "in": "formData", "description": "The telephone number.", "required": false, "type": "text" }, { "name": "url", "in": "formData", "description": "URL of the item.", "required": false, "type": "url" }, { "name": "validin", "in": "formData", "description": "The geographic area where the permit is valid. ", "required": false, "type": "permit" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/AdministrativeArea" } } } }, "tags": ["Administrative Area"] } }, "\/administrative-area\/{id}\/": { "get": { "summary": "Get Administrative Area", "description": "Returns a single Administrative Area", "operationId": "getAdministrativeArea", "parameters": [{ "name": "id", "in": "path", "description": "Unique id for item", "required": true, "type": "integer" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/AdministrativeArea" } } } }, "tags": ["Administrative Area"] }, "put": { "summary": "Update Administrative Area", "description": "Update a single Administrative Area", "operationId": "updateAdministrativeAreaItem", "parameters": [{ "name": "id", "in": "path", "description": "Unique id for item", "required": true, "type": "integer" }, { "name": "additionalproperty", "in": "formData", "description": "A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. http:\/\/schema.org\/width, http:\/\/schema.org\/color, http:\/\/schema.org\/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property\/value mechanism.", "required": false, "type": "propertyvalue" }, { "name": "additionaltype", "in": "formData", "description": "An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \\'typeof\\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.", "required": false, "type": "url" }, { "name": "address", "in": "formData", "description": "Physical address of the item.", "required": false, "type": "postaladdress or text" }, { "name": "aggregaterating", "in": "formData", "description": "The overall rating, based on a collection of reviews or ratings, of the item.", "required": false, "type": "aggregaterating" }, { "name": "alternatename", "in": "formData", "description": "An alias for the item.", "required": false, "type": "text" }, { "name": "applicablelocation", "in": "formData", "description": "The location in which the status applies. ", "required": false, "type": "drugcost or druglegalstatus" }, { "name": "areaserved", "in": "formData", "description": "The geographic area where a service or offered item is provided. Supersedes serviceArea.", "required": false, "type": "service or demand or offer or deliverychargespecification or organization or contactpoint" }, { "name": "availablein", "in": "formData", "description": "The location in which the strength is available. ", "required": false, "type": "drugstrength" }, { "name": "branchcode", "in": "formData", "description": "A short textual code (also called \\\"store code\\\") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http:\/\/www.starbucks.co.uk\/store-locator\/etc\/detail\/3047 the code \\\"3047\\\" is a branchCode for a particular branch. ", "required": false, "type": "text" }, { "name": "containedinplace", "in": "formData", "description": "The basic containment relation between a place and one that contains it. Supersedes containedIn. Inverse property: containsPlace.", "required": false, "type": "place" }, { "name": "containsplace", "in": "formData", "description": "The basic containment relation between a place and another that it contains. Inverse property: containsPlace.", "required": false, "type": "place" }, { "name": "description", "in": "formData", "description": "A short description of the item.", "required": false, "type": "text" }, { "name": "event", "in": "formData", "description": "Upcoming or past event associated with this place, organization, or action. Supersedes events.", "required": false, "type": "event" }, { "name": "faxnumber", "in": "formData", "description": "The fax number.", "required": false, "type": "text" }, { "name": "geo", "in": "formData", "description": "The geo coordinates of the place.", "required": false, "type": "geocoordinates or geoshape" }, { "name": "geographicarea", "in": "formData", "description": "The geographic area associated with the audience. ", "required": false, "type": "audience" }, { "name": "globallocationnumber", "in": "formData", "description": "The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.", "required": false, "type": "text" }, { "name": "hasmap", "in": "formData", "description": "A URL to a map of the place. Supersedes map, maps.", "required": false, "type": "url or map" }, { "name": "image", "in": "formData", "description": "An image of the item. This can be a URL or a fully described ImageObject.", "required": false, "type": "url or imageobject" }, { "name": "isicv4", "in": "formData", "description": "The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.", "required": false, "type": "text" }, { "name": "logo", "in": "formData", "description": "An associated logo.", "required": false, "type": "url or imageobject" }, { "name": "mainentityofpage", "in": "formData", "description": "Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details. Inverse property: mainEntity.", "required": false, "type": "url or creativework" }, { "name": "name", "in": "formData", "description": "The name of the item.", "required": false, "type": "text" }, { "name": "openinghoursspecification", "in": "formData", "description": "The opening hours of a certain place.", "required": false, "type": "openinghoursspecification" }, { "name": "photo", "in": "formData", "description": "A photograph of this place. Supersedes photos.", "required": false, "type": "photograph or imageobject" }, { "name": "potentialaction", "in": "formData", "description": "Indicates a potential Action, which describes an idealized action in which this thing would play an \\'object\\' role.", "required": false, "type": "action" }, { "name": "review", "in": "formData", "description": "A review of the item. Supersedes reviews.", "required": false, "type": "review" }, { "name": "sameas", "in": "formData", "description": "URL of a reference Web page that unambiguously indicates the item\\'s identity. E.g. the URL of the item\\'s Wikipedia page, Freebase page, or official website.", "required": false, "type": "url" }, { "name": "studylocation", "in": "formData", "description": "The location in which the study is taking\/took place. ", "required": false, "type": "medicalstudy" }, { "name": "telephone", "in": "formData", "description": "The telephone number.", "required": false, "type": "text" }, { "name": "url", "in": "formData", "description": "URL of the item.", "required": false, "type": "url" }, { "name": "validin", "in": "formData", "description": "The geographic area where the permit is valid. ", "required": false, "type": "permit" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/AdministrativeArea" } } } }, "tags": ["Administrative Area"] }, "delete": { "summary": "Administrative Area", "description": "Deletes a single Administrative Area", "operationId": "deleteAdministrativeArea", "parameters": [{ "name": "id", "in": "path", "description": "Unique id for item", "required": true, "type": "integer" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/AdministrativeArea" } } } }, "tags": ["Administrative Area"] } } }, "definitions": { "AdministrativeArea": { "properties": { "additionalproperty": { "description": "A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. http:\/\/schema.org\/width, http:\/\/schema.org\/color, http:\/\/schema.org\/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property\/value mechanism.", "type": "propertyvalue" }, "additionaltype": { "description": "An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \\'typeof\\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.", "type": "url" }, "address": { "description": "Physical address of the item.", "type": "postaladdress or text" }, "aggregaterating": { "description": "The overall rating, based on a collection of reviews or ratings, of the item.", "type": "aggregaterating" }, "alternatename": { "description": "An alias for the item.", "type": "text" }, "applicablelocation": { "description": "The location in which the status applies. ", "type": "drugcost or druglegalstatus" }, "areaserved": { "description": "The geographic area where a service or offered item is provided. Supersedes serviceArea.", "type": "service or demand or offer or deliverychargespecification or organization or contactpoint" }, "availablein": { "description": "The location in which the strength is available. ", "type": "drugstrength" }, "branchcode": { "description": "A short textual code (also called \\\"store code\\\") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http:\/\/www.starbucks.co.uk\/store-locator\/etc\/detail\/3047 the code \\\"3047\\\" is a branchCode for a particular branch. ", "type": "text" }, "containedinplace": { "description": "The basic containment relation between a place and one that contains it. Supersedes containedIn. Inverse property: containsPlace.", "type": "place" }, "containsplace": { "description": "The basic containment relation between a place and another that it contains. Inverse property: containsPlace.", "type": "place" }, "description": { "description": "A short description of the item.", "type": "text" }, "event": { "description": "Upcoming or past event associated with this place, organization, or action. Supersedes events.", "type": "event" }, "faxnumber": { "description": "The fax number.", "type": "text" }, "geo": { "description": "The geo coordinates of the place.", "type": "geocoordinates or geoshape" }, "geographicarea": { "description": "The geographic area associated with the audience. ", "type": "audience" }, "globallocationnumber": { "description": "The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.", "type": "text" }, "hasmap": { "description": "A URL to a map of the place. Supersedes map, maps.", "type": "url or map" }, "image": { "description": "An image of the item. This can be a URL or a fully described ImageObject.", "type": "url or imageobject" }, "isicv4": { "description": "The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.", "type": "text" }, "logo": { "description": "An associated logo.", "type": "url or imageobject" }, "mainentityofpage": { "description": "Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details. Inverse property: mainEntity.", "type": "url or creativework" }, "name": { "description": "The name of the item.", "type": "text" }, "openinghoursspecification": { "description": "The opening hours of a certain place.", "type": "openinghoursspecification" }, "photo": { "description": "A photograph of this place. Supersedes photos.", "type": "photograph or imageobject" }, "potentialaction": { "description": "Indicates a potential Action, which describes an idealized action in which this thing would play an \\'object\\' role.", "type": "action" }, "review": { "description": "A review of the item. Supersedes reviews.", "type": "review" }, "sameas": { "description": "URL of a reference Web page that unambiguously indicates the item\\'s identity. E.g. the URL of the item\\'s Wikipedia page, Freebase page, or official website.", "type": "url" }, "studylocation": { "description": "The location in which the study is taking\/took place. ", "type": "medicalstudy" }, "telephone": { "description": "The telephone number.", "type": "text" }, "url": { "description": "URL of the item.", "type": "url" }, "validin": { "description": "The geographic area where the permit is valid. ", "type": "permit" } } } } }