swagger: "2.0" info: description: "Service to determine the PSI product eligibility " version: "1.0.0" title: "AOMS-PSI Eligibility API" termsOfService: "http://swagger.io/terms/" contact: email: "apiteam@swagger.io" license: name: "Apache 2.0" url: "http://www.apache.org/licenses/LICENSE-2.0.html" host: "aoms-psi.swagger.io" basePath: "/v2" tags: - name: "eligibility" description: "determine the PSI product eligibility for vehicles" schemes: - "https" - "http" paths: /eligibility: post: tags: - "eligibility" summary: "determine the PSI product eligibility for vehicles" description: "" operationId: "addPet" consumes: - "application/json" produces: - "application/xml" - "application/json" parameters: - in: "body" name: "body" description: "Parameters that needs" required: true schema: $ref: "#/definitions/Vehicle" responses: 405: description: "Invalid input" security: - petstore_auth: - "write:pets" - "read:pets" /pet/findByStatus: get: tags: - "pet" summary: "Finds Pets by status" description: "Multiple status values can be provided with comma separated strings" operationId: "findPetsByStatus" produces: - "application/xml" - "application/json" parameters: - name: "status" in: "query" description: "Status values that need to be considered for filter" required: true type: "array" items: type: "string" enum: - "available" - "pending" - "sold" default: "available" collectionFormat: "multi" responses: 200: description: "successful operation" schema: type: "array" items: $ref: "#/definitions/Vehicle" 400: description: "Invalid status value" security: - petstore_auth: - "write:pets" - "read:pets" /pet/findByTags: get: tags: - "pet" summary: "Finds Pets by tags" description: "Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing." operationId: "findPetsByTags" produces: - "application/xml" - "application/json" parameters: - name: "tags" in: "query" description: "Tags to filter by" required: true type: "array" items: type: "string" collectionFormat: "multi" responses: 200: description: "successful operation" schema: type: "array" items: $ref: "#/definitions/Vehicle" 400: description: "Invalid tag value" security: - petstore_auth: - "write:pets" - "read:pets" deprecated: true post: tags: - "pet" summary: "Updates a pet in the store with form data" description: "" operationId: "updatePetWithForm" consumes: - "application/x-www-form-urlencoded" produces: - "application/xml" - "application/json" parameters: - name: "petId" in: "path" description: "ID of pet that needs to be updated" required: true type: "integer" format: "int64" - name: "name" in: "formData" description: "Updated name of the pet" required: false type: "string" - name: "status" in: "formData" description: "Updated status of the pet" required: false type: "string" responses: 405: description: "Invalid input" security: - petstore_auth: - "write:pets" - "read:pets" delete: tags: - "pet" summary: "Deletes a pet" description: "" operationId: "deletePet" produces: - "application/xml" - "application/json" parameters: - name: "api_key" in: "header" required: false type: "string" - name: "petId" in: "path" description: "Pet id to delete" required: true type: "integer" format: "int64" responses: 400: description: "Invalid ID supplied" 404: description: "Pet not found" security: - petstore_auth: - "write:pets" - "read:pets" /pet/{petId}/uploadImage: post: tags: - "pet" summary: "uploads an image" description: "" operationId: "uploadFile" consumes: - "multipart/form-data" produces: - "application/json" parameters: - name: "petId" in: "path" description: "ID of pet to update" required: true type: "integer" format: "int64" - name: "additionalMetadata" in: "formData" description: "Additional data to pass to server" required: false type: "string" - name: "file" in: "formData" description: "file to upload" required: false type: "file" responses: 200: description: "successful operation" schema: $ref: "#/definitions/ApiResponse" security: - petstore_auth: - "write:pets" - "read:pets" /store/inventory: get: tags: - "store" summary: "Returns pet inventories by status" description: "Returns a map of status codes to quantities" operationId: "getInventory" produces: - "application/json" parameters: [] responses: 200: description: "successful operation" schema: type: "object" additionalProperties: type: "integer" format: "int32" security: - api_key: [] /store/order: post: tags: - "store" summary: "Place an order for a pet" description: "" operationId: "placeOrder" produces: - "application/xml" - "application/json" parameters: - in: "body" name: "body" description: "order placed for purchasing the pet" required: true schema: $ref: "#/definitions/Order" responses: 200: description: "successful operation" schema: $ref: "#/definitions/Order" 400: description: "Invalid Order" /store/order/{orderId}: get: tags: - "store" summary: "Find purchase order by ID" description: "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions" operationId: "getOrderById" produces: - "application/xml" - "application/json" parameters: - name: "orderId" in: "path" description: "ID of pet that needs to be fetched" required: true type: "integer" maximum: 10.0 minimum: 1.0 format: "int64" responses: 200: description: "successful operation" schema: $ref: "#/definitions/Order" 400: description: "Invalid ID supplied" 404: description: "Order not found" delete: tags: - "store" summary: "Delete purchase order by ID" description: "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors" operationId: "deleteOrder" produces: - "application/xml" - "application/json" parameters: - name: "orderId" in: "path" description: "ID of the order that needs to be deleted" required: true type: "integer" minimum: 1.0 format: "int64" responses: 400: description: "Invalid ID supplied" 404: description: "Order not found" securityDefinitions: petstore_auth: type: "oauth2" authorizationUrl: "http://petstore.swagger.io/oauth/dialog" flow: "implicit" scopes: write:pets: "modify pets in your account" read:pets: "read your pets" api_key: type: "apiKey" name: "api_key" in: "header" definitions: Order: type: "object" properties: id: type: "integer" format: "int64" petId: type: "integer" format: "int64" quantity: type: "integer" format: "int32" shipDate: type: "string" format: "date-time" status: type: "string" description: "Order Status" enum: - "placed" - "approved" - "delivered" complete: type: "boolean" default: false xml: name: "Order" Vehicle: type: "object" required: - "auction" - "sblu" - "oveAllowed" properties: auction: type: "string" example: "AAA" sblu: type: "integer" example: 1234567 oveAllowed: type: "boolean" example: false ApiResponse: type: "object" properties: auction: type: "string" example: AAA sblu: type: "integer" example: 1234567 workorder: type: "integer" example: 1234567 vehicleInfo: type: "object" properties: vehicleYear: type: "integer" example: 2007 vehicleMake: type: "string" example: Volvo vehicleModel: type: "string" example: XC70 vehicleTrim: type: "string" example: "Base" vehicleType: type: "string" example: "Passenger" vin: type: "string" example: "YV4SZ592671288088" odometerValue: type: "integer" example: 72648 odometerMeasure: type: "string" example: "M" saleInfo: type: "object" properties: salePrice: type: "integer" example: 11000 saleTimestamp: type: "string" example: "2020-03-30T18:25:43.511Z" channel: type: "string" example: "In-Lane" redLight: type: "boolean" example: false blueLight: type: "boolean" example: true greenLight: type: "boolean" example: true yellowLight: type: "boolean" example: false status: type: "string" example: "Sold" saleType: type: "string" example: "open" eligibility: type: "array" items: type: "object" properties: product: type: "object" properties: id: type: "string" example: "psi_7day" description: type: "string" example: "Seven Day Guarantee PSI" eligible: type: "boolean" example: true price: type: "integer" example: 150 reason: type: "string" example: "Eligible" externalDocs: description: "Find out more about Swagger" url: "http://swagger.io"