{"name":"order","organization":{"key":"nashtech"},"application":{"key":"order"},"namespace":"com.nashtech.order.v1","version":"1.0.1","info":{},"headers":[],"imports":[{"uri":"https://app.apibuilder.io/apicollective/apibuilder-common/latest/service.json","namespace":"io.apibuilder.common.v0","organization":{"key":"apicollective"},"application":{"key":"apibuilder-common"},"version":"0.16.74","enums":["membership_role"],"interfaces":[],"unions":[],"models":["audit","healthcheck","reference","reference_guid"],"annotations":[]},{"uri":"https://app.apibuilder.io/apicollective/apibuilder-generator/latest/service.json","namespace":"io.apibuilder.generator.v0","organization":{"key":"apicollective"},"application":{"key":"apibuilder-generator"},"version":"0.16.74","enums":["file_flag"],"interfaces":[],"unions":[],"models":["attribute","error","file","generator","healthcheck","invocation","invocation_form"],"annotations":[]}],"enums":[],"interfaces":[],"unions":[],"models":[{"name":"error","plural":"errors","fields":[{"name":"code","type":"string","required":true,"attributes":[],"annotations":[]},{"name":"message","type":"[string]","required":true,"attributes":[],"annotations":[]}],"attributes":[],"interfaces":[]},{"name":"order","plural":"orders","fields":[{"name":"id","type":"string","required":true,"attributes":[],"annotations":[]},{"name":"number","type":"string","required":true,"attributes":[],"annotations":[]},{"name":"merchant_id","type":"string","required":true,"attributes":[],"annotations":[]},{"name":"submitted_at","type":"date-time-iso8601","required":true,"attributes":[],"annotations":[]},{"name":"total","type":"decimal","required":true,"attributes":[],"annotations":[]}],"attributes":[],"interfaces":[]},{"name":"order_form","plural":"order_forms","fields":[{"name":"total","type":"decimal","required":true,"attributes":[],"annotations":[]}],"attributes":[],"interfaces":[]}],"resources":[{"type":"order","plural":"orders","operations":[{"method":"GET","path":"/:merchant_id/orders/:number","parameters":[{"name":"merchant_id","type":"string","location":"Path","required":true},{"name":"number","type":"string","location":"Path","required":true}],"responses":[{"code":{"integer":{"value":200}},"type":"order","attributes":[]},{"code":{"integer":{"value":401}},"type":"unit","attributes":[]},{"code":{"integer":{"value":404}},"type":"unit","attributes":[]}],"attributes":[]},{"method":"POST","path":"/:merchant_id/orders","parameters":[{"name":"merchant_id","type":"string","location":"Path","required":true}],"responses":[{"code":{"integer":{"value":200}},"type":"order","attributes":[]},{"code":{"integer":{"value":401}},"type":"unit","attributes":[]},{"code":{"integer":{"value":404}},"type":"unit","attributes":[]},{"code":{"integer":{"value":422}},"type":"error","attributes":[]}],"attributes":[],"body":{"type":"order_form","attributes":[]}},{"method":"PUT","path":"/:merchant_id/orders/:number","parameters":[{"name":"merchant_id","type":"string","location":"Path","required":true},{"name":"number","type":"string","location":"Path","required":true}],"responses":[{"code":{"integer":{"value":200}},"type":"order","attributes":[]},{"code":{"integer":{"value":401}},"type":"unit","attributes":[]},{"code":{"integer":{"value":404}},"type":"unit","attributes":[]},{"code":{"integer":{"value":422}},"type":"error","attributes":[]}],"attributes":[],"body":{"type":"order_form","attributes":[]}},{"method":"DELETE","path":"/:merchant_id/orders","parameters":[{"name":"merchant_id","type":"string","location":"Path","required":true}],"responses":[{"code":{"integer":{"value":200}},"type":"unit","attributes":[]},{"code":{"integer":{"value":401}},"type":"unit","attributes":[]},{"code":{"integer":{"value":404}},"type":"unit","attributes":[]},{"code":{"integer":{"value":422}},"type":"error","attributes":[]}],"attributes":[]}],"attributes":[],"path":"/:merchant_id/orders"}],"attributes":[],"annotations":[],"apidoc":{"version":"1.0.1"},"base_url":"https://nashtechglobal.com","description":"order service which is responsible for managing order"}