openapi: 3.2.0 info: title: Mtn Group events subscription API version: 4.0.0 description: 'Operations tagged events subscription across 4 of this provider''s published API definitions: mtn-group-service-activation-and-configuration.yml, mtn-group-tmf-customer-bill-management.yml, mtn-group-tmf-resourceinventorymanagement-tmf639.yml, mtn-group-tmf688-event-management.yml. Each path carries the servers of the definition it was published in.' servers: - url: http://api.mtn.com/v1 - url: https://serverRoot/tmf-api/customerBillManagement/v4/ - url: https://serverRoot/tmf-api/resourceInventoryManagement/v4/ - url: https://serverRoot/tmf-api/event/v4/ tags: - name: events subscription paths: /hub: post: operationId: registerListener summary: Register a listener description: Sets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. tags: - events subscription responses: '201': description: Subscribed content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/EventSubscription' '400': description: Bad Request content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '401': description: Unauthorized content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '404': description: Not Found content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '405': description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '409': description: Conflict content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '500': description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' requestBody: content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/EventSubscriptionInput' description: Data containing the callback endpoint to deliver the information required: true servers: - url: http://api.mtn.com/v1 /hub/{id}: delete: operationId: unregisterListener summary: Unregister a listener description: Resets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. tags: - events subscription parameters: - name: id required: true in: path description: The id of the registered listener schema: type: string responses: '204': description: Deleted '400': description: Bad request content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '401': description: Unauthorized content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '404': description: Not Found content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '405': description: Method not allowed content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' '500': description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Error' servers: - url: http://api.mtn.com/v1 components: schemas: EventSubscriptionInput: type: object description: Sets the communication endpoint address the service instance must use to deliver notification information required: - callback properties: callback: type: string description: The callback being registered. query: type: string description: additional data to be passed EventSubscription: type: object description: Sets the communication endpoint address the service instance must use to deliver notification information required: - id - callback properties: id: type: string description: Id of the listener callback: type: string description: The callback being registered. query: type: string description: additional data to be passed Error: description: Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx) type: object required: - code - reason properties: code: type: string description: Application relevant detail, defined in the API or a common list. reason: type: string description: Explanation of the reason for the error which can be shown to a client user. message: type: string description: More details and corrective actions related to the error which can be shown to a client user. status: type: string description: HTTP Error code extension referenceError: type: string format: uri description: URI of documentation describing the error. '@baseType': type: string description: When sub-classing, this defines the super-class. '@schemaLocation': type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships '@type': type: string description: When sub-classing, this defines the sub-class entity name. EventSubscription_2: type: object description: Sets the communication endpoint address the service instance must use to deliver notification information required: - id - callback properties: statusCode: type: string description: This is the MADAPI Canonical Error Code (it is 4 characters long and it is not the HTTP Status Code which is 3 characters long). Back-end system errors are mapped to specific canonical error codes which are returned. More information on these mappings can be found on the MADAPI Confluence Page 'Response Codes' example: '0000' statusMessage: type: string description: More details and corrective actions related to the error which can be shown to a client example: Success id: type: string description: Id of the listener callback: type: string description: The callback being registered. query: type: string description: additional data to be passed securitySchemes: basicAuth: type: http scheme: basic ApiKeyAuth: type: apiKey name: X-API-Key in: header x-refined-from: - mtn-group-service-activation-and-configuration.yml - mtn-group-tmf-customer-bill-management.yml - mtn-group-tmf-resourceinventorymanagement-tmf639.yml - mtn-group-tmf688-event-management.yml