{"openapi":"3.0.1","info":{"title":"A1.SI MGW3 OneApi","description":"A1.si MWG3 OneAPI Swagger interface description","version":"1.0.0"},"externalDocs":{"description":"Find out more about A1.si","url":"https://www.a1.si/"},"servers":[{"url":"http://localhost:8181/mgw/oneapi/messaging/v1/","description":"Development server"},{"url":"http://mgwt3.simobil.lan:8181/mgw/oneapi/messaging/v1/","description":"Test server"},{"url":"https://mgw3.a1.si//mgw/oneapi/messaging/v1/","description":"Production Server"}],"security":[{"username":["superoscrdtt"],"password":["test"]}],"tags":[{"name":"OutboundMessageRequest","description":"Send SMS/MMS or GetDeliveryInfo"},{"name":"InboundMessageList","description":"get Inbound MessageList"}],"paths":{"/outbound/{senderAddress}/requests":{"post":{"operationId":"sendOutboundMessageRequest","tags":["OutboundMessageRequest"],"parameters":[{"name":"senderAddress","in":"path","description":"Address of sender","required":true,"schema":{"type":"string"},"example":"OneAPI"}],"requestBody":{"description":"send OutboundMessageRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundMessageRequest"},"examples":{"sendSingleDestinationSMS":{"$ref":"#/components/examples/sendSingleDestinationSMS"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"root-fields":{"$ref":"#/components/schemas/OutboundMessageRequest"},"attachments":{"type":"array","items":{"type":"string","format":"binary"}}}},"encoding":{"root-fields":{"contentType":"application/json"},"attachments":{"contentType":"application/smil"}},"examples":{"sendSingleDestinationMMS":{"$ref":"#/components/examples/sendSingleDestinationMMS"}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundMessageRequest"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}}},"x-codegen-request-body-name":"body"},"/outbound/{senderAddress}/requests/{mgw_id}":{"get":{"operationId":"getOutboundMessageRequest","tags":["OutboundMessageRequest"],"parameters":[{"name":"senderAddress","in":"path","description":"Address of sender","required":true,"schema":{"type":"string"},"example":"mgwt3"},{"name":"mgw_id","in":"path","description":"mgw_id of OutboundMessageRequest","required":true,"schema":{"type":"string"},"example":"218031aa899c0000001c"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundMessageRequest"}}}}}}},"/inbound/registrations/{registrationId}/messages":{"get":{"parameters":[{"name":"registrationId","in":"path","description":"registration Id","example":6666,"required":true,"schema":{"type":"string"}}],"summary":"gets Inbound Message List","description":"gets Inbound Message List","operationId":"getInboundMessageList","responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundMessageList"}}}}},"tags":["InboundMessageList"]}}},"components":{"schemas":{"OutboundMessageRequest":{"type":"object","properties":{"address":{"type":"array","items":{"type":"string"}},"senderAddress":{"type":"string"},"senderName":{"type":"string"},"charging":{"type":"string"},"receiptRequest":{"type":"string"},"reportRequest":{"type":"array","items":{"type":"string"}},"outboundSMSTextMessage":{"$ref":"#/components/schemas/SMSTextMessage"},"outboundSMSBinaryMessage":{"type":"string"},"outboundSMSLogoMessage":{"type":"string"},"outboundSMSRingToneMessage":{"type":"string"},"outboundSMSFlashMessage":{"type":"string"},"outboundWAPMessage":{"type":"string"},"outboundMMSMessage":{"$ref":"#/components/schemas/MMSMessage"},"outboundMMMessage":{"type":"string"},"outboundMessage":{"type":"string"},"clientCorrelator":{"type":"string"},"resourceURL":{"type":"string"},"link":{"type":"array","items":{"type":"string"}},"deliveryInfoList":{"$ref":"#/components/schemas/DeliveryInfoList"}}},"SMSTextMessage":{"type":"object","properties":{"message":{"type":"string"}}},"MMSMessage":{"type":"object","properties":{"subject":{"type":"string"},"priority":{"type":"string"},"bodyText":{"type":"string"},"attachment":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}}}},"Attachment":{"type":"object","properties":{"contentType":{"type":"string"},"size":{"type":"string"},"link":{"type":"string"}}},"DeliveryInfo":{"type":"object","properties":{"address":{"type":"string"}},"deliveryStatus":{"type":"string","enum":["DELIVERED_TO_TERMINAL","DELIVERY_IMPOSSIBLE","MESSAGE_WAITING","DELIVERED_TO_NETWORK"]},"description":{"type":"string"},"link":{"type":"array"},"items":{"type":"string"}}},"DeliveryInfoList":{"type":"object","properties":{"resourceURL":{"type":"string"},"link":{"type":"array","items":{"type":"string"}},"deliveryInfo":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryInfo"}}}},"InboundMessageList":{"type":"object","properties":{"inboundMessage":{"type":"array","items":{"$ref":"#/components/schemas/InboundMessage"}},"totalNumberOfPendingMessages":{"type":"string"},"numberOfMessagesInThisBatch":{"type":"string"},"resourceURL":{"type":"string"}}},"InboundMessage":{"type":"object","properties":{"destinationAddress":{"type":"string"},"senderAddress":{"type":"string"},"dateTime":{"type":"string"},"resourceUrl":{"type":"string"},"link":{"type":"array","items":{"type":"string"}},"messageId":{"type":"string"},"reportRequest":{"type":"array","items":{"type":"string"}},"inboundSMSTextMessage":{"$ref":"#/components/schemas/SMSTextMessage"},"inboundMMSMessage":{"$ref":"#/components/schemas/MMSMessage"},"inboundIMMessage":{"type":"string"},"inboundVMMessage":{"type":"string"}}}},"examples":{"sendSingleDestinationSMS":{"value":{"address":[38641262806],"senderAddress":"OneAPI","outboundSMSTextMessage":{"message":"some test SMS message"},"summary":"Send Single Destination SMS"},"sendSingleDestinationMMS":{"value":{"address":[38641262806],"senderAddress":"OneApi","outboundSMSTextMessage":{"message":"test"},"outboundMMSMessage":{"subject":"OneAPImessage Test message from A1","priority":"Default"}},"summary":"Send Single Destination MMS"}}},"securitySchemes":{"username":{"type":"apiKey","name":"username","in":"header"},"password":{"type":"apiKey","name":"password","in":"header"}}}