{ "swagger": "2.0", "info": { "title": "Airline API", "description": "An organization that provides flights for passengers.", "termsOfService": "http:\/\/apievangelist.com\/terms-of-service.html", "version": "v1" }, "host": "airline.example.com", "basePath": "\/", "schemes": ["http"], "produces": ["application\/json"], "paths": { "\/airline\/": { "get": { "summary": "Get Airline", "description": "Returns Airline", "operationId": "getAirline", "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\/Airline" } } } }, "tags": ["Airline"] }, "post": { "summary": "Add Airline", "description": "Add Airline", "operationId": "addAirline", "parameters": [{ "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": "text or postaladdress" }, { "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": "alumni", "in": "formData", "description": "Alumni of an organization. Inverse property: alumniOf.", "required": false, "type": "person" }, { "name": "areaserved", "in": "formData", "description": "The geographic area where a service or offered item is provided. Supersedes serviceArea.", "required": false, "type": "text or place or geoshape or administrativearea" }, { "name": "award", "in": "formData", "description": "An award won by or for this item. Supersedes awards.", "required": false, "type": "text" }, { "name": "boardingpolicy", "in": "formData", "description": "The type of boarding policy used by the airline (e.g. zone-based or group-based).", "required": false, "type": "boardingpolicytype" }, { "name": "brand", "in": "formData", "description": "The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.", "required": false, "type": "brand or organization" }, { "name": "contactpoint", "in": "formData", "description": "A contact point for a person or organization. Supersedes contactPoints.", "required": false, "type": "contactpoint" }, { "name": "department", "in": "formData", "description": "A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.", "required": false, "type": "organization" }, { "name": "description", "in": "formData", "description": "A short description of the item.", "required": false, "type": "text" }, { "name": "dissolutiondate", "in": "formData", "description": "The date that this organization was dissolved.", "required": false, "type": "date" }, { "name": "duns", "in": "formData", "description": "The Dun & Bradstreet DUNS number for identifying an organization or business person.", "required": false, "type": "text" }, { "name": "email", "in": "formData", "description": "Email address.", "required": false, "type": "text" }, { "name": "employee", "in": "formData", "description": "Someone working for this organization. Supersedes employees.", "required": false, "type": "person" }, { "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": "founder", "in": "formData", "description": "A person who founded this organization. Supersedes founders.", "required": false, "type": "person" }, { "name": "foundingdate", "in": "formData", "description": "The date that this organization was founded.", "required": false, "type": "date" }, { "name": "foundinglocation", "in": "formData", "description": "The place where the Organization was founded.", "required": false, "type": "place" }, { "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": "hasoffercatalog", "in": "formData", "description": "Indicates an OfferCatalog listing for this Organization, Person, or Service.", "required": false, "type": "offercatalog" }, { "name": "haspos", "in": "formData", "description": "Points-of-Sales operated by the organization or person.", "required": false, "type": "place" }, { "name": "iatacode", "in": "formData", "description": "IATA identifier for an airline or 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": "legalname", "in": "formData", "description": "The official name of the organization, e.g. the registered company name.", "required": false, "type": "text" }, { "name": "location", "in": "formData", "description": "The location of for example where the event is happening, an organization is located, or where an action takes place.", "required": false, "type": "text or place or postaladdress" }, { "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": "creativework or url" }, { "name": "makesoffer", "in": "formData", "description": "A pointer to products or services offered by the organization or person. Inverse property: offeredBy.", "required": false, "type": "offer" }, { "name": "member", "in": "formData", "description": "A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. Supersedes musicGroupMember, members. Inverse property: memberOf.", "required": false, "type": "person or organization" }, { "name": "memberof", "in": "formData", "description": "An Organization (or ProgramMembership) to which this Person or Organization belongs. Inverse property: member.", "required": false, "type": "programmembership or organization" }, { "name": "naics", "in": "formData", "description": "The North American Industry Classification System (NAICS) code for a particular organization or business person.", "required": false, "type": "text" }, { "name": "name", "in": "formData", "description": "The name of the item.", "required": false, "type": "text" }, { "name": "numberofemployees", "in": "formData", "description": "The number of employees in an organization e.g. business.", "required": false, "type": "quantitativevalue" }, { "name": "owns", "in": "formData", "description": "Products owned by the organization or person.", "required": false, "type": "product or ownershipinfo" }, { "name": "parentorganization", "in": "formData", "description": "The larger organization that this organization is a branch of, if any. Supersedes branchOf. Inverse property: subOrganization.", "required": false, "type": "organization" }, { "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": "seeks", "in": "formData", "description": "A pointer to products or services sought by the organization or person (demand).", "required": false, "type": "demand" }, { "name": "suborganization", "in": "formData", "description": "A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \\'department\\' property. Inverse property: parentOrganization.", "required": false, "type": "organization" }, { "name": "taxid", "in": "formData", "description": "The Tax \/ Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF\/NIF in Spain.", "required": false, "type": "text" }, { "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": "vatid", "in": "formData", "description": "The Value-added Tax ID of the organization or person.", "required": false, "type": "text" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/Airline" } } } }, "tags": ["Airline"] } }, "\/airline\/{id}\/": { "get": { "summary": "Get Airline", "description": "Returns a single Airline", "operationId": "getAirline", "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\/Airline" } } } }, "tags": ["Airline"] }, "put": { "summary": "Update Airline", "description": "Update a single Airline", "operationId": "updateAirlineItem", "parameters": [{ "name": "id", "in": "path", "description": "Unique id for item", "required": true, "type": "integer" }, { "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": "text or postaladdress" }, { "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": "alumni", "in": "formData", "description": "Alumni of an organization. Inverse property: alumniOf.", "required": false, "type": "person" }, { "name": "areaserved", "in": "formData", "description": "The geographic area where a service or offered item is provided. Supersedes serviceArea.", "required": false, "type": "text or place or geoshape or administrativearea" }, { "name": "award", "in": "formData", "description": "An award won by or for this item. Supersedes awards.", "required": false, "type": "text" }, { "name": "boardingpolicy", "in": "formData", "description": "The type of boarding policy used by the airline (e.g. zone-based or group-based).", "required": false, "type": "boardingpolicytype" }, { "name": "brand", "in": "formData", "description": "The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.", "required": false, "type": "brand or organization" }, { "name": "contactpoint", "in": "formData", "description": "A contact point for a person or organization. Supersedes contactPoints.", "required": false, "type": "contactpoint" }, { "name": "department", "in": "formData", "description": "A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.", "required": false, "type": "organization" }, { "name": "description", "in": "formData", "description": "A short description of the item.", "required": false, "type": "text" }, { "name": "dissolutiondate", "in": "formData", "description": "The date that this organization was dissolved.", "required": false, "type": "date" }, { "name": "duns", "in": "formData", "description": "The Dun & Bradstreet DUNS number for identifying an organization or business person.", "required": false, "type": "text" }, { "name": "email", "in": "formData", "description": "Email address.", "required": false, "type": "text" }, { "name": "employee", "in": "formData", "description": "Someone working for this organization. Supersedes employees.", "required": false, "type": "person" }, { "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": "founder", "in": "formData", "description": "A person who founded this organization. Supersedes founders.", "required": false, "type": "person" }, { "name": "foundingdate", "in": "formData", "description": "The date that this organization was founded.", "required": false, "type": "date" }, { "name": "foundinglocation", "in": "formData", "description": "The place where the Organization was founded.", "required": false, "type": "place" }, { "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": "hasoffercatalog", "in": "formData", "description": "Indicates an OfferCatalog listing for this Organization, Person, or Service.", "required": false, "type": "offercatalog" }, { "name": "haspos", "in": "formData", "description": "Points-of-Sales operated by the organization or person.", "required": false, "type": "place" }, { "name": "iatacode", "in": "formData", "description": "IATA identifier for an airline or 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": "legalname", "in": "formData", "description": "The official name of the organization, e.g. the registered company name.", "required": false, "type": "text" }, { "name": "location", "in": "formData", "description": "The location of for example where the event is happening, an organization is located, or where an action takes place.", "required": false, "type": "text or place or postaladdress" }, { "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": "creativework or url" }, { "name": "makesoffer", "in": "formData", "description": "A pointer to products or services offered by the organization or person. Inverse property: offeredBy.", "required": false, "type": "offer" }, { "name": "member", "in": "formData", "description": "A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. Supersedes musicGroupMember, members. Inverse property: memberOf.", "required": false, "type": "person or organization" }, { "name": "memberof", "in": "formData", "description": "An Organization (or ProgramMembership) to which this Person or Organization belongs. Inverse property: member.", "required": false, "type": "programmembership or organization" }, { "name": "naics", "in": "formData", "description": "The North American Industry Classification System (NAICS) code for a particular organization or business person.", "required": false, "type": "text" }, { "name": "name", "in": "formData", "description": "The name of the item.", "required": false, "type": "text" }, { "name": "numberofemployees", "in": "formData", "description": "The number of employees in an organization e.g. business.", "required": false, "type": "quantitativevalue" }, { "name": "owns", "in": "formData", "description": "Products owned by the organization or person.", "required": false, "type": "product or ownershipinfo" }, { "name": "parentorganization", "in": "formData", "description": "The larger organization that this organization is a branch of, if any. Supersedes branchOf. Inverse property: subOrganization.", "required": false, "type": "organization" }, { "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": "seeks", "in": "formData", "description": "A pointer to products or services sought by the organization or person (demand).", "required": false, "type": "demand" }, { "name": "suborganization", "in": "formData", "description": "A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \\'department\\' property. Inverse property: parentOrganization.", "required": false, "type": "organization" }, { "name": "taxid", "in": "formData", "description": "The Tax \/ Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF\/NIF in Spain.", "required": false, "type": "text" }, { "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": "vatid", "in": "formData", "description": "The Value-added Tax ID of the organization or person.", "required": false, "type": "text" }], "responses": { "200": { "description": "A successful response.", "schema": { "type": "array", "items": { "$ref": "#\/definitions\/Airline" } } } }, "tags": ["Airline"] }, "delete": { "summary": "Airline", "description": "Deletes a single Airline", "operationId": "deleteAirline", "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\/Airline" } } } }, "tags": ["Airline"] } } }, "definitions": { "Airline": { "properties": { "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": "text or postaladdress" }, "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" }, "alumni": { "description": "Alumni of an organization. Inverse property: alumniOf.", "type": "person" }, "areaserved": { "description": "The geographic area where a service or offered item is provided. Supersedes serviceArea.", "type": "text or place or geoshape or administrativearea" }, "award": { "description": "An award won by or for this item. Supersedes awards.", "type": "text" }, "boardingpolicy": { "description": "The type of boarding policy used by the airline (e.g. zone-based or group-based).", "type": "boardingpolicytype" }, "brand": { "description": "The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.", "type": "brand or organization" }, "contactpoint": { "description": "A contact point for a person or organization. Supersedes contactPoints.", "type": "contactpoint" }, "department": { "description": "A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.", "type": "organization" }, "description": { "description": "A short description of the item.", "type": "text" }, "dissolutiondate": { "description": "The date that this organization was dissolved.", "type": "date" }, "duns": { "description": "The Dun & Bradstreet DUNS number for identifying an organization or business person.", "type": "text" }, "email": { "description": "Email address.", "type": "text" }, "employee": { "description": "Someone working for this organization. Supersedes employees.", "type": "person" }, "event": { "description": "Upcoming or past event associated with this place, organization, or action. Supersedes events.", "type": "event" }, "faxnumber": { "description": "The fax number.", "type": "text" }, "founder": { "description": "A person who founded this organization. Supersedes founders.", "type": "person" }, "foundingdate": { "description": "The date that this organization was founded.", "type": "date" }, "foundinglocation": { "description": "The place where the Organization was founded.", "type": "place" }, "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" }, "hasoffercatalog": { "description": "Indicates an OfferCatalog listing for this Organization, Person, or Service.", "type": "offercatalog" }, "haspos": { "description": "Points-of-Sales operated by the organization or person.", "type": "place" }, "iatacode": { "description": "IATA identifier for an airline or 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" }, "legalname": { "description": "The official name of the organization, e.g. the registered company name.", "type": "text" }, "location": { "description": "The location of for example where the event is happening, an organization is located, or where an action takes place.", "type": "text or place or postaladdress" }, "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": "creativework or url" }, "makesoffer": { "description": "A pointer to products or services offered by the organization or person. Inverse property: offeredBy.", "type": "offer" }, "member": { "description": "A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. Supersedes musicGroupMember, members. Inverse property: memberOf.", "type": "person or organization" }, "memberof": { "description": "An Organization (or ProgramMembership) to which this Person or Organization belongs. Inverse property: member.", "type": "programmembership or organization" }, "naics": { "description": "The North American Industry Classification System (NAICS) code for a particular organization or business person.", "type": "text" }, "name": { "description": "The name of the item.", "type": "text" }, "numberofemployees": { "description": "The number of employees in an organization e.g. business.", "type": "quantitativevalue" }, "owns": { "description": "Products owned by the organization or person.", "type": "product or ownershipinfo" }, "parentorganization": { "description": "The larger organization that this organization is a branch of, if any. Supersedes branchOf. Inverse property: subOrganization.", "type": "organization" }, "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" }, "seeks": { "description": "A pointer to products or services sought by the organization or person (demand).", "type": "demand" }, "suborganization": { "description": "A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \\'department\\' property. Inverse property: parentOrganization.", "type": "organization" }, "taxid": { "description": "The Tax \/ Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF\/NIF in Spain.", "type": "text" }, "telephone": { "description": "The telephone number.", "type": "text" }, "url": { "description": "URL of the item.", "type": "url" }, "vatid": { "description": "The Value-added Tax ID of the organization or person.", "type": "text" } } } } }