elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 1 | definitions: |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 2 | jobs.BufferTimeout: |
| 3 | properties: |
| 4 | maxSize: |
| 5 | description: The maximum number of messages to buffer before sending to consumer. |
| 6 | type: integer |
| 7 | maxTimeMilliseconds: |
| 8 | description: The maximum time to wait before sending to consumer if the MaxSize |
| 9 | has not been reached. |
| 10 | type: integer |
| 11 | type: object |
| 12 | jobs.JobInfo: |
| 13 | properties: |
| 14 | info_job_data: |
| 15 | $ref: '#/definitions/jobs.Parameters' |
| 16 | info_job_identity: |
| 17 | type: string |
| 18 | info_type_identity: |
| 19 | type: string |
| 20 | last_updated: |
| 21 | type: string |
| 22 | owner: |
| 23 | type: string |
| 24 | target_uri: |
| 25 | type: string |
| 26 | type: object |
| 27 | jobs.Parameters: |
| 28 | properties: |
| 29 | bufferTimeout: |
| 30 | $ref: '#/definitions/jobs.BufferTimeout' |
| 31 | type: object |
| 32 | main.ServiceStatus: |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 33 | properties: |
| 34 | registeredStatus: |
| 35 | description: The registration status of the producer in Information Coordinator |
| 36 | Service. Either `registered` or `not registered` |
| 37 | example: registered |
| 38 | type: string |
| 39 | type: object |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 40 | server.ErrorInfo: |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 41 | properties: |
| 42 | detail: |
| 43 | description: A human-readable explanation specific to this occurrence of the |
| 44 | problem. |
| 45 | example: Info job type not found |
| 46 | type: string |
| 47 | instance: |
| 48 | description: A URI reference that identifies the specific occurrence of the |
| 49 | problem. |
| 50 | type: string |
| 51 | status: |
| 52 | description: The HTTP status code generated by the origin server for this |
| 53 | occurrence of the problem. |
| 54 | example: 400 |
| 55 | type: integer |
| 56 | title: |
| 57 | description: A short, human-readable summary of the problem type. |
| 58 | type: string |
| 59 | type: |
| 60 | description: A URI reference that identifies the problem type. |
| 61 | type: string |
| 62 | type: object |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 63 | info: |
| 64 | contact: {} |
| 65 | license: |
| 66 | name: Apache 2.0 |
| 67 | url: http://www.apache.org/licenses/LICENSE-2.0.html |
| 68 | title: DMaaP Mediator Producer |
ktimoney | 3df0a73 | 2023-07-03 13:27:19 +0100 | [diff] [blame] | 69 | version: 1.0.0 |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 70 | paths: |
| 71 | /admin/log: |
| 72 | put: |
| 73 | description: Set the log level of the producer. |
| 74 | parameters: |
| 75 | - description: string enums |
| 76 | enum: |
| 77 | - Error |
| 78 | - Warn |
| 79 | - Info |
| 80 | - Debug |
| 81 | in: query |
| 82 | name: level |
| 83 | type: string |
| 84 | responses: |
| 85 | "200": |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 86 | description: OK |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 87 | "400": |
| 88 | description: Problem as defined in https://tools.ietf.org/html/rfc7807 |
| 89 | headers: |
| 90 | Content-Type: |
| 91 | description: application/problem+json |
| 92 | type: string |
| 93 | schema: |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 94 | $ref: '#/definitions/server.ErrorInfo' |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 95 | summary: Set log level |
| 96 | tags: |
| 97 | - Admin |
| 98 | /health_check: |
| 99 | get: |
| 100 | description: Get the status of the producer. Will show if the producer has registered |
| 101 | in ICS. |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 102 | responses: |
| 103 | "200": |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 104 | description: The status of the service |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 105 | schema: |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 106 | $ref: '#/definitions/main.ServiceStatus' |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 107 | summary: Get status |
| 108 | tags: |
| 109 | - Data producer (callbacks) |
| 110 | /info_job: |
| 111 | post: |
| 112 | consumes: |
| 113 | - application/json |
| 114 | description: Callback for ICS to add an info job |
| 115 | parameters: |
| 116 | - description: Info job data |
| 117 | in: body |
| 118 | name: user |
| 119 | required: true |
| 120 | schema: |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 121 | $ref: '#/definitions/jobs.JobInfo' |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 122 | responses: |
| 123 | "200": |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 124 | description: OK |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 125 | "400": |
| 126 | description: Problem as defined in https://tools.ietf.org/html/rfc7807 |
| 127 | headers: |
| 128 | Content-Type: |
| 129 | description: application/problem+json |
| 130 | type: string |
| 131 | schema: |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 132 | $ref: '#/definitions/server.ErrorInfo' |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 133 | summary: Add info job |
| 134 | tags: |
| 135 | - Data producer (callbacks) |
| 136 | /info_job/{infoJobId}: |
| 137 | delete: |
| 138 | description: Callback for ICS to delete an info job |
| 139 | parameters: |
| 140 | - description: Info job ID |
| 141 | in: path |
| 142 | name: infoJobId |
| 143 | required: true |
| 144 | type: string |
| 145 | responses: |
| 146 | "200": |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 147 | description: OK |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 148 | summary: Delete info job |
| 149 | tags: |
| 150 | - Data producer (callbacks) |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 151 | /swagger/doc.json: |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 152 | get: |
| 153 | description: Get the Swagger API documentation for the producer. |
| 154 | responses: |
| 155 | "200": |
elinuxhenrik | fbf2d61 | 2023-01-04 15:28:30 +0100 | [diff] [blame] | 156 | description: OK |
elinuxhenrik | e30dbe3 | 2022-02-28 16:10:48 +0100 | [diff] [blame] | 157 | summary: Get Swagger Documentation |
| 158 | tags: |
| 159 | - Admin |
| 160 | swagger: "2.0" |