{"swagger":"2.0","info":{"title":"order","description":"order service which is responsible for managing order","version":"1.0.1"},"host":"nashtechglobal.com","basePath":"/","schemes":["https"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/{merchant_id}/orders/{number}":{"get":{"parameters":[{"name":"merchant_id","in":"path","required":true,"type":"string"},{"name":"number","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/order"}},"401":{"description":"401 response"},"404":{"description":"404 response"}}},"put":{"parameters":[{"name":"merchant_id","in":"path","required":true,"type":"string"},{"name":"number","in":"path","required":true,"type":"string"},{"name":"order_form","in":"body","schema":{"$ref":"#/definitions/order_form"}}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/order"}},"401":{"description":"401 response"},"404":{"description":"404 response"},"422":{"description":"422 response","schema":{"$ref":"#/definitions/error"}}}}},"/{merchant_id}/orders":{"post":{"parameters":[{"name":"merchant_id","in":"path","required":true,"type":"string"},{"name":"order_form","in":"body","schema":{"$ref":"#/definitions/order_form"}}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/order"}},"401":{"description":"401 response"},"404":{"description":"404 response"},"422":{"description":"422 response","schema":{"$ref":"#/definitions/error"}}}},"delete":{"parameters":[{"name":"merchant_id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"200 response"},"401":{"description":"401 response"},"404":{"description":"404 response"},"422":{"description":"422 response","schema":{"$ref":"#/definitions/error"}}}}}},"definitions":{"error":{"type":"object","title":"error","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"array","items":{"type":"string"}}}},"order":{"type":"object","title":"order","required":["id","number","merchant_id","submitted_at","total"],"properties":{"id":{"type":"string"},"number":{"type":"string"},"merchant_id":{"type":"string"},"submitted_at":{"type":"string","format":"date-time"},"total":{"type":"number","format":"float"}}},"order_form":{"type":"object","title":"order_form","required":["total"],"properties":{"total":{"type":"number","format":"float"}}}}}