blob: 514e02a7ed81c584b43e7d697b63b43a22acccc3 [file] [log] [blame]
elinuxhenrike30dbe32022-02-28 16:10:48 +01001definitions:
elinuxhenrikfbf2d612023-01-04 15:28:30 +01002 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:
elinuxhenrike30dbe32022-02-28 16:10:48 +010033 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
elinuxhenrikfbf2d612023-01-04 15:28:30 +010040 server.ErrorInfo:
elinuxhenrike30dbe32022-02-28 16:10:48 +010041 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
elinuxhenrike30dbe32022-02-28 16:10:48 +010063info:
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
ktimoney3df0a732023-07-03 13:27:19 +010069 version: 1.0.0
elinuxhenrike30dbe32022-02-28 16:10:48 +010070paths:
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":
elinuxhenrikfbf2d612023-01-04 15:28:30 +010086 description: OK
elinuxhenrike30dbe32022-02-28 16:10:48 +010087 "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:
elinuxhenrikfbf2d612023-01-04 15:28:30 +010094 $ref: '#/definitions/server.ErrorInfo'
elinuxhenrike30dbe32022-02-28 16:10:48 +010095 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.
elinuxhenrike30dbe32022-02-28 16:10:48 +0100102 responses:
103 "200":
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100104 description: The status of the service
elinuxhenrike30dbe32022-02-28 16:10:48 +0100105 schema:
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100106 $ref: '#/definitions/main.ServiceStatus'
elinuxhenrike30dbe32022-02-28 16:10:48 +0100107 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:
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100121 $ref: '#/definitions/jobs.JobInfo'
elinuxhenrike30dbe32022-02-28 16:10:48 +0100122 responses:
123 "200":
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100124 description: OK
elinuxhenrike30dbe32022-02-28 16:10:48 +0100125 "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:
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100132 $ref: '#/definitions/server.ErrorInfo'
elinuxhenrike30dbe32022-02-28 16:10:48 +0100133 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":
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100147 description: OK
elinuxhenrike30dbe32022-02-28 16:10:48 +0100148 summary: Delete info job
149 tags:
150 - Data producer (callbacks)
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100151 /swagger/doc.json:
elinuxhenrike30dbe32022-02-28 16:10:48 +0100152 get:
153 description: Get the Swagger API documentation for the producer.
154 responses:
155 "200":
elinuxhenrikfbf2d612023-01-04 15:28:30 +0100156 description: OK
elinuxhenrike30dbe32022-02-28 16:10:48 +0100157 summary: Get Swagger Documentation
158 tags:
159 - Admin
160swagger: "2.0"