{ "swagger": "2.0", "info": { "title": "Airport API", "description": "An airport.", "termsOfService": "http:\/\/apievangelist.com\/terms-of-service.html", "version": "v1" }, "host": "airport.example.com", "basePath": "\/", "schemes": ["http"], "produces": ["application\/json"], "paths": { "\/airport\/": { "get": { "summary": "Get Airport", "description": "Returns Airport", "operationId": "getAirport", "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\/Airport" } } } }, "tags": ["Airport"] }, "post": { "summary": "Add Airport", "description": "Add Airport", "operationId": "addAirport", "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": "arrivalairport", "in": "formData", "description": "The airport where the flight terminates. ", "required": false, "type": "flight" }, { "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": "departureairport", "in": "formData", "description": "The airport where the flight originates. ", "required": false, "type": "flight" }, { "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": "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": "iatacode", "in": "formData", "description": "IATA identifier for an airline or airport.", "required": false, "type": "text" }, { "name": "icaocode", "in": "formData", "description": "IACO identifier for an airport.", "required": false, "type": "text" }, { "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": "openinghours", "in": "formData", "description": "The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \\',\\' separating each day. Day or time ranges are specified using a hyphen \\'-\\'.- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.- Times are specified using 24:00 time. For example, 3pm is specified as 15:00. - Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm<\/time>. - If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day<\/time>.", "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": "telephone", "in": "formData", "description": "The telephone number.", "required": false, "type": "text" }, { "name": "url", "in": "formData", "description": "URL of the item.", "required": false, "type": "url" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/Airport" } } } }, "tags": ["Airport"] } }, "\/airport\/{id}\/": { "get": { "summary": "Get Airport", "description": "Returns a single Airport", "operationId": "getAirport", "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\/Airport" } } } }, "tags": ["Airport"] }, "put": { "summary": "Update Airport", "description": "Update a single Airport", "operationId": "updateAirportItem", "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": "arrivalairport", "in": "formData", "description": "The airport where the flight terminates. ", "required": false, "type": "flight" }, { "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": "departureairport", "in": "formData", "description": "The airport where the flight originates. ", "required": false, "type": "flight" }, { "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": "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": "iatacode", "in": "formData", "description": "IATA identifier for an airline or airport.", "required": false, "type": "text" }, { "name": "icaocode", "in": "formData", "description": "IACO identifier for an airport.", "required": false, "type": "text" }, { "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": "openinghours", "in": "formData", "description": "The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \\',\\' separating each day. Day or time ranges are specified using a hyphen \\'-\\'.- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.- Times are specified using 24:00 time. For example, 3pm is specified as 15:00. - Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm<\/time>. - If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day<\/time>.", "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": "telephone", "in": "formData", "description": "The telephone number.", "required": false, "type": "text" }, { "name": "url", "in": "formData", "description": "URL of the item.", "required": false, "type": "url" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/Airport" } } } }, "tags": ["Airport"] }, "delete": { "summary": "Airport", "description": "Deletes a single Airport", "operationId": "deleteAirport", "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\/Airport" } } } }, "tags": ["Airport"] } } }, "definitions": { "Airport": { "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" }, "arrivalairport": { "description": "The airport where the flight terminates. ", "type": "flight" }, "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" }, "departureairport": { "description": "The airport where the flight originates. ", "type": "flight" }, "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" }, "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" }, "iatacode": { "description": "IATA identifier for an airline or airport.", "type": "text" }, "icaocode": { "description": "IACO identifier for an airport.", "type": "text" }, "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" }, "openinghours": { "description": "The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \\',\\' separating each day. Day or time ranges are specified using a hyphen \\'-\\'.- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.- Times are specified using 24:00 time. For example, 3pm is specified as 15:00. - Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm<\/time>. - If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day<\/time>.", "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" }, "telephone": { "description": "The telephone number.", "type": "text" }, "url": { "description": "URL of the item.", "type": "url" } } } } }