openapi: 3.2.0 info: title: Event Streaming Hub API description: The Event Management API provides a standardized client interface to the enterprise event management system. version: 4.0.0 servers: - url: https://serverRoot/tmf-api/event/v4/ security: - ApiKeyAuth: [] - basicAuth: [] tags: - name: hub paths: /topic/{topicId}/hub: get: operationId: listHub summary: List or find Hub objects description: This operation list or find Hub entities tags: - hub parameters: - name: topicId description: Identifier of the parent Topic entity required: true in: path schema: type: string - name: fields description: Comma-separated properties to be provided in response required: false in: query schema: type: string - name: offset description: Requested index for start of resources to be provided in response required: false in: query schema: type: integer - name: limit description: Requested number of resources to be provided in response required: false in: query schema: type: integer responses: '200': description: Success headers: X-Result-Count: description: Actual number of items returned in the response body schema: type: integer X-Total-Count: description: Total number of items matching criteria schema: type: integer content: application/json;charset=utf-8: schema: type: array items: $ref: '#/components/schemas/Hub' '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' post: operationId: createHub summary: Creates a Hub description: This operation creates a Hub entity. tags: - hub parameters: - name: topicId description: Identifier of the parent Topic entity required: true in: path schema: type: string responses: '201': description: Created content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Hub' '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' '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/Hub_Create' description: The Hub to be created required: true /topic/{topicId}/hub/{id}: get: operationId: retrieveHub summary: Retrieves a Hub by ID description: This operation retrieves a Hub entity. Attribute selection is enabled for all first level attributes. tags: - hub parameters: - name: topicId description: Identifier of the parent Topic entity required: true in: path schema: type: string - name: id description: Identifier of the Hub required: true in: path schema: type: string - name: fields description: Comma-separated properties to provide in response required: false in: query schema: type: string responses: '200': description: Success content: application/json;charset=utf-8: schema: $ref: '#/components/schemas/Hub' '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' delete: operationId: deleteHub summary: Deletes a Hub description: This operation deletes a Hub entity. tags: - hub parameters: - name: topicId description: Identifier of the parent Topic entity required: true in: path schema: type: string - name: id description: Identifier of the Hub required: true in: path 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' '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' components: schemas: Hub: type: object description: A Hub is used to subscribe to an event notification required: - callback - id properties: id: type: string description: The unique-id for your subscription - referenced when updating or deleting a subscription callback: type: string description: The URI that will be POSTed to when a notification is triggered query: type: string description: This is a query string used to filter notifications in the context of the notifier '@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 Hub_Create: type: object description: 'A Hub is used to subscribe to an event notification Skipped properties: id,href' required: - callback properties: callback: type: string description: The URI that will be POSTed to when a notification is triggered query: type: string description: This is a query string used to filter notifications in the context of the notifier '@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 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. securitySchemes: basicAuth: type: http scheme: basic ApiKeyAuth: type: apiKey name: X-API-Key in: header