{"swagger":"2.0","info":{"description":"A1 Digital Shipment Tracking API","version":"1.0.0","title":"A1 Digital Shipment Tracking API","contact":{"email":"peter.gaspar@a1.digital"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"sap","description":"Calls from SAP or other EAM"}],"paths":{"/shipment":{"post":{"tags":["sap"],"summary":"assign tracker to shipment","operationId":"addShipment","description":"assign tracker to shipment","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"Shipment","description":"Inventory item to add","schema":{"$ref":"#/definitions/Shipment"}}],"responses":{"201":{"description":"item created"},"400":{"description":"invalid input, object invalid"},"409":{"description":"item already exists"}}}},"/shipment/{trackerid}":{"delete":{"tags":["sap"],"summary":"remove tracker from shipment","operationId":"removeTracker","parameters":[{"in":"path","name":"trackerid","type":"string","required":true}],"responses":{"204":{"description":"tracker removed"},"409":{"description":"tracker not assigned to any transport"}}}}},"definitions":{"Shipment":{"type":"object","required":["orderno","transportid","trackerid","address","emails","dstradius","geozones"],"properties":{"orderno":{"type":"string","example":"43552661"},"transportid":{"type":"string","example":"22339928882"},"trackerid":{"type":"string","example":"865291040098443"},"address":{"type":"object","required":["gps"],"properties":{"street":{"type":"string","example":"Lassallestrasse"},"number":{"type":"string","example":"8/2"},"city":{"type":"string","example":"Wien"},"zip":{"type":"string","example":"1020"},"country":{"type":"string","example":"Austria"},"gps":{"type":"object","required":["lat","lng"],"properties":{"lat":{"type":"number","example":48.2227793},"lng":{"type":"number","example":16.3964578}}}}},"emails":{"type":"object","required":["to"],"properties":{"to":{"type":"array","minItems":1,"items":{"type":"object","properties":{"address":{"type":"string","example":"example@mail.com"}}}},"cc":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","example":"example@mail.com"}}}},"bcc":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","example":"example@mail.com"}}}}}},"dstradius":{"type":"number","example":0.5,"description":"in kilometers"},"geozones":{"type":"array","items":{"type":"object","required":["radius"],"properties":{"description":{"type":"string","example":"200 km"},"radius":{"type":"number","example":200,"description":"in kilometers"}}}}}}},"host":"virtserver.swaggerhub.com","basePath":"/Peter-Gaspar/Layher/1.0.0","schemes":["https"]}