{"openapi":"3.0.0","info":{"version":"1.0.0-oas3","title":"ABC Retail Store APIs","description":"Demonstration API for a fictitious online retailor.\n"},"paths":{"/customer":{"get":{"tags":["Customer"],"summary":"Returns the customers list and basic data from the backend system","description":"Gets `Customer` objects.\nThe query param of **size** determines\nsize of returned array. -1 implies return all records and should be avoided.\n","operationId":"getCustomers","parameters":[{"name":"size","in":"query","description":"Number of records of customers to return","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"title":"customers","type":"array","items":{"title":"customer","$ref":"#/components/schemas/Customer"}}}}},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}},"post":{"tags":["Customer"],"summary":"Creates a Customer in the ABC store with form data","description":"","operationId":"createCustomer","responses":{"201":{"description":"Created"},"405":{"description":"Invalid input"}},"requestBody":{"$ref":"#/components/requestBodies/Customer"}}},"/customer/{customerId}":{"get":{"tags":["Customer"],"summary":"Returns a customer's data from the backend system based on customer id","description":"Returns Customer objects.\n","operationId":"getCustomerWithID","parameters":[{"name":"customerId","in":"path","description":"Unique ID of customer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"title":"customer","$ref":"#/components/schemas/Customer"}}}},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}},"put":{"tags":["Customer"],"summary":"Updates a Customer in the ABC store with the json payload","description":"","operationId":"updateCustomer","parameters":[{"name":"customerId","in":"path","description":"Unique ID of customer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updted"},"204":{"description":"No Content"},"405":{"description":"Invalid input"}},"requestBody":{"$ref":"#/components/requestBodies/Customer"}},"delete":{"tags":["Customer"],"summary":"Deletes a Customer based on customer id","description":"","operationId":"deleteCustomer","parameters":[{"name":"api_key","in":"header","required":false,"schema":{"type":"string"}},{"name":"customerId","in":"path","description":"Unique ID of customer","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The customer was deleted successfully."},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}}},"/product":{"get":{"tags":["Product"],"summary":"Returns the products list and basic data from the backend system","description":"Gets `Product` objects.\nThe query param of **size** determines\nsize of returned array. -1 implies return all records and should be avoided.\n","operationId":"getProducts","parameters":[{"name":"size","in":"query","description":"Number of records of products to return","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"title":"products","type":"array","items":{"title":"product","$ref":"#/components/schemas/Product"}}}}},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}},"post":{"tags":["Product"],"summary":"Creates a Product in the ABC store with form data","description":"","operationId":"createProduct","responses":{"201":{"description":"Created"},"405":{"description":"Invalid input"}},"requestBody":{"$ref":"#/components/requestBodies/Product"}}},"/product/{productId}":{"get":{"tags":["Product"],"summary":"Returns a product's data from the backend system based on product id","description":"Returns Product objects.\n","operationId":"getProductWithID","parameters":[{"name":"productId","in":"path","description":"Unique ID of product","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"title":"product","$ref":"#/components/schemas/Product"}}}},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}},"put":{"tags":["Product"],"summary":"Updates a Product in the ABC store with the json payload","description":"","operationId":"updateProduct","parameters":[{"name":"productId","in":"path","description":"Unique ID of product","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updted"},"204":{"description":"No Content"},"405":{"description":"Invalid input"}},"requestBody":{"$ref":"#/components/requestBodies/Product"}},"delete":{"tags":["Product"],"summary":"Deletes a Product based on product id","description":"","operationId":"deleteProduct","parameters":[{"name":"api_key","in":"header","required":false,"schema":{"type":"string"}},{"name":"productId","in":"path","description":"Unique ID of product","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The product was deleted successfully."},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}}},"/order":{"get":{"tags":["Order"],"summary":"Returns the orders list and basic data from the backend system","description":"Gets `Order` objects.\nThe query param of **size** determines\nsize of returned array. -1 implies return all records and should be avoided.\n","operationId":"getOrders","parameters":[{"name":"size","in":"query","description":"Number of records of orders to return","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"title":"orders","type":"array","items":{"title":"order","$ref":"#/components/schemas/Order"}}}}},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}},"post":{"tags":["Order"],"summary":"Creates a Order in the ABC store with form data","description":"","operationId":"createOrder","responses":{"201":{"description":"Created"},"405":{"description":"Invalid input"}},"requestBody":{"$ref":"#/components/requestBodies/Order"}}},"/order/{orderId}":{"get":{"tags":["Order"],"summary":"Returns a order's data from the backend system based on order id","description":"Returns Order objects.\n","operationId":"getOrderWithID","parameters":[{"name":"orderId","in":"path","description":"Unique ID of order","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"title":"order","$ref":"#/components/schemas/Order"}}}},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}},"put":{"tags":["Order"],"summary":"Updates a Order in the ABC store with the json payload","description":"","operationId":"updateOrder","parameters":[{"name":"orderId","in":"path","description":"Unique ID of order","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updted"},"204":{"description":"No Content"},"405":{"description":"Invalid input"}},"requestBody":{"$ref":"#/components/requestBodies/Order"}},"delete":{"tags":["Order"],"summary":"Deletes a Order based on order id","description":"","operationId":"deleteOrder","parameters":[{"name":"api_key","in":"header","required":false,"schema":{"type":"string"}},{"name":"orderId","in":"path","description":"Unique ID of order","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The order was deleted successfully."},"400":{"description":"The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications"},"403":{"description":"the resource is unavailable for some reason"},"404":{"description":"The server has not found anything matching the Request-URI"},"408":{"description":"Request Timeout"},"409":{"description":" The request could not be completed due to a conflict with the current state of the resource. "},"415":{"description":"Only JSON payloads are valid. Other media types are not supported"},"429":{"description":"The 429 status code indicates that the user has sent too many requests in a given amount of time"},"500":{"description":"Unexpected Error, please try again later"},"505":{"description":"The server does not support the HTTP protocol version used in the request."}}}}},"servers":[{"url":"https://apigeeguru-eval-test.apigee.com/abcstore"}],"components":{"requestBodies":{"Customer":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"Product":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"Order":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}}},"securitySchemes":{"petstore_auth":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"http://petstore.swagger.io/oauth/dialog","scopes":{"write:pets":"modify pets in your account","read:pets":"read your pets"}}}},"api_key":{"type":"apiKey","name":"api_key","in":"header"}},"schemas":{"Address":{"type":"object","properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"}}},"Customer":{"type":"object","properties":{"id":{"type":"string"},"customerType":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"}}},"Product":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"supplier":{"$ref":"#/components/schemas/Customer"}}},"Order":{"type":"object","properties":{"id":{"type":"string"},"orderNumber":{"type":"string"},"orderData":{"type":"string"},"shipDate":{"type":"string"},"shipTo":{"$ref":"#/components/schemas/Address"},"orderTotal":{"type":"number"},"orderLines":{"type":"array","items":{"title":"orderLineItem","$ref":"#/components/schemas/OrderLineItem"}}}},"OrderLineItem":{"type":"object","properties":{"id":{"type":"string"},"productId":{"type":"string"},"qty":{"type":"integer"},"price":{"type":"number"}}}}}}