|
1 | 1 | {
|
2 | 2 | "openapi": "3.0.1",
|
3 | 3 | "info": {
|
4 |
| - "title": "Heartbeat and Analytics Service", |
| 4 | + "title": "OCEN Heartbeat and Analytics Service", |
5 | 5 | "contact": {
|
6 | 6 | "name": "Ocen",
|
7 | 7 | "email": "community@ispirt.in",
|
|
11 | 11 | },
|
12 | 12 | "servers": [
|
13 | 13 | {
|
14 |
| - "url": "https://analytics-dev.ocen.network/", |
15 |
| - "description": "Heartbeat and Analytics Sandbox" |
| 14 | + "url": "http://analytics-dev.ocen.network", |
| 15 | + "description": "Generated server url" |
16 | 16 | }
|
17 | 17 | ],
|
18 | 18 | "paths": {
|
19 | 19 | "/ocen/v4/metrics/lender/loanDisbursementMetric": {
|
20 | 20 | "post": {
|
21 | 21 | "tags": [
|
22 |
| - "Analytics API" |
| 22 | + "Lender API" |
23 | 23 | ],
|
24 | 24 | "summary": "Submit Loan Disbursement Metrics",
|
25 | 25 | "description": "Disbursement Metrics that will be pushed by Lender to Analytics Service. This API should be called by the Lender after it receives Trigger Disbursement request and it has successfully made a disbursement",
|
|
159 | 159 | }
|
160 | 160 | }
|
161 | 161 | }
|
162 |
| - }, |
163 |
| - "/ocen/v4/health": { |
164 |
| - "get": { |
165 |
| - "tags": [ |
166 |
| - "Health" |
167 |
| - ], |
168 |
| - "operationId": "healthCheck", |
169 |
| - "responses": { |
170 |
| - "200": { |
171 |
| - "description": "{status:UP}", |
172 |
| - "content": { |
173 |
| - "*/*": { |
174 |
| - "schema": { |
175 |
| - "type": "string" |
176 |
| - } |
177 |
| - } |
178 |
| - } |
179 |
| - }, |
180 |
| - "403": { |
181 |
| - "description": "Forbidden", |
182 |
| - "content": { |
183 |
| - "*/*": { |
184 |
| - "schema": { |
185 |
| - "$ref": "#/components/schemas/ResponseMessage" |
186 |
| - } |
187 |
| - } |
188 |
| - } |
189 |
| - }, |
190 |
| - "500": { |
191 |
| - "description": "Server Error", |
192 |
| - "content": { |
193 |
| - "*/*": { |
194 |
| - "schema": { |
195 |
| - "type": "string" |
196 |
| - } |
197 |
| - } |
198 |
| - } |
199 |
| - } |
200 |
| - } |
201 |
| - } |
202 | 162 | }
|
203 | 163 | },
|
204 | 164 | "components": {
|
|
294 | 254 | "description": "Heartbeat Event Types",
|
295 | 255 | "enum": [
|
296 | 256 | "LOAN_REQ",
|
| 257 | + "LOAN_REQ_ACK", |
297 | 258 | "LOAN_RESP",
|
| 259 | + "LOAN_RESP_ACK", |
298 | 260 | "CONSENT_REQ",
|
299 | 261 | "CONSENT_RESP",
|
300 | 262 | "LOAN_GEN_OFFER_REQ",
|
| 263 | + "LOAN_GEN_OFFER_REQ_ACK", |
301 | 264 | "LOAN_GEN_OFFER_RESP",
|
| 265 | + "LOAN_GEN_OFFER_ACK", |
302 | 266 | "LOAN_OFFER_REQ",
|
| 267 | + "LOAN_OFFER_REQ_ACK", |
303 | 268 | "LOAN_OFFER_RESP",
|
| 269 | + "LOAN_OFFER_RESP_ACK", |
304 | 270 | "TRIGGER_KYC_REQ",
|
| 271 | + "KYC_REQ", |
305 | 272 | "KYC_RESP",
|
306 | 273 | "LOAN_ACCEPTANCE_REQ",
|
| 274 | + "LOAN_ACCEPTANCE_REQ_ACK", |
307 | 275 | "LOAN_ACCEPTANCE_RESP",
|
308 |
| - "LOAN_REPAYMENT_REQ", |
309 |
| - "LOAN_REPAYMENT_RESP", |
310 |
| - "LOAN_REPAYMENT_CONF_RESP", |
| 276 | + "LOAN_ACCEPTANCE_RESP_ACK", |
| 277 | + "TRIGGER_LOAN_ACCEPTANCE_REQ", |
| 278 | + "TRIGGER_LOAN_ACCEPTANCE_RESP", |
311 | 279 | "LOAN_GRANT_REQ",
|
| 280 | + "LOAN_GRANT_REQ_ACK", |
312 | 281 | "LOAN_GRANT_RESP",
|
313 |
| - "LOAN_DISBURSMENT_REQ", |
314 |
| - "LOAN_DISBURSMENT_RESP", |
315 |
| - "LOAN_TRIGGER_DISBURSMENT_REQ", |
316 |
| - "LOAN_TRIGGER_DISBURSMENT_RESP", |
| 282 | + "LOAN_GRANT_RESP_ACK", |
| 283 | + "LOAN_REPAYMENT_REQ", |
| 284 | + "LOAN_REPAYMENT_REQ_ACK", |
| 285 | + "LOAN_REPAYMENT_RESP", |
| 286 | + "LOAN_REPAYMENT_RESP_ACK", |
| 287 | + "LOAN_DISBURSEMENT_REQ", |
| 288 | + "LOAN_DISBURSEMENT_REQ_ACK", |
| 289 | + "LOAN_DISBURSEMENT_RESP", |
| 290 | + "LOAN_DISBURSEMENT_RESP_ACK", |
| 291 | + "LOAN_TRIGGER_DISBURSEMENT_REQ", |
| 292 | + "LOAN_TRIGGER_DISBURSEMENT_REQ_ACK", |
| 293 | + "LOAN_TRIGGER_DISBURSEMENT_RESP", |
| 294 | + "LOAN_TRIGGER_DISBURSEMENT_RESP_ACK", |
317 | 295 | "LOAN_TRIGGER_REPAYMENT_REQ",
|
318 |
| - "LOAN_TRIGGER_COLLECTION_REQ" |
| 296 | + "LOAN_TRIGGER_REPAYMENT_RESP" |
319 | 297 | ]
|
320 | 298 | },
|
321 | 299 | "requestId": {
|
|
0 commit comments