|
31 | 31 | - name: OAuth - OpenID Connect - Clients
|
32 | 32 | - name: OAuth - UMA Resources
|
33 | 33 | - name: OAuth - Scopes
|
| 34 | + - name: Configuration – Agama Flow |
34 | 35 | - name: Statistics - User
|
35 | 36 | - name: Health - Check
|
36 | 37 | - name: Server Stats
|
@@ -2420,6 +2421,153 @@ paths:
|
2420 | 2421 | description: Internal Server Error
|
2421 | 2422 | security:
|
2422 | 2423 | - oauth2: [https://jans.io/oauth/config/scopes.write]
|
| 2424 | + |
| 2425 | + /jans-config-api/api/v1/agama: |
| 2426 | + get: |
| 2427 | + summary: Fetches all agama flow. |
| 2428 | + description: Fetches all agama flow. |
| 2429 | + operationId: get-agama-flows |
| 2430 | + tags: |
| 2431 | + - Configuration – Agama Flow |
| 2432 | + responses: |
| 2433 | + '200': |
| 2434 | + description: OK |
| 2435 | + content: |
| 2436 | + application/json: |
| 2437 | + schema: |
| 2438 | + items: |
| 2439 | + $ref: '#/components/schemas/AgamaFlow' |
| 2440 | + '401': |
| 2441 | + $ref: '#/components/responses/Unauthorized' |
| 2442 | + '500': |
| 2443 | + $ref: '#/components/responses/InternalServerError' |
| 2444 | + security: |
| 2445 | + - oauth2: [https://jans.io/oauth/config/agama.readonly] |
| 2446 | + post: |
| 2447 | + summary: Create a new agama flow. |
| 2448 | + description: Create a new agama flow. |
| 2449 | + operationId: post-agama-flow |
| 2450 | + tags: |
| 2451 | + - Configuration – Agama Flow |
| 2452 | + requestBody: |
| 2453 | + content: |
| 2454 | + application/json: |
| 2455 | + schema: |
| 2456 | + $ref: '#/components/schemas/AgamaFlow' |
| 2457 | + responses: |
| 2458 | + '201': |
| 2459 | + description: CREATED |
| 2460 | + content: |
| 2461 | + application/json: |
| 2462 | + schema: |
| 2463 | + $ref: '#/components/schemas/AgamaFlow' |
| 2464 | + '401': |
| 2465 | + $ref: '#/components/responses/Unauthorized' |
| 2466 | + '500': |
| 2467 | + $ref: '#/components/responses/InternalServerError' |
| 2468 | + security: |
| 2469 | + - oauth2: [https://jans.io/oauth/config/agama.write] |
| 2470 | + |
| 2471 | + /jans-config-api/api/v1/agama/{qname}: |
| 2472 | + parameters: |
| 2473 | + - schema: |
| 2474 | + type: string |
| 2475 | + name: qname |
| 2476 | + in: path |
| 2477 | + description: flow qname. |
| 2478 | + required: true |
| 2479 | + get: |
| 2480 | + summary: Gets an agama flow based on Qname. |
| 2481 | + description: Gets an agama flow based on Qname. |
| 2482 | + operationId: get-agama-flow |
| 2483 | + tags: |
| 2484 | + - Configuration – Agama Flow |
| 2485 | + responses: |
| 2486 | + '200': |
| 2487 | + description: OK |
| 2488 | + content: |
| 2489 | + application/json: |
| 2490 | + schema: |
| 2491 | + items: |
| 2492 | + $ref: '#/components/schemas/AgamaFlow' |
| 2493 | + '401': |
| 2494 | + $ref: '#/components/responses/Unauthorized' |
| 2495 | + '500': |
| 2496 | + $ref: '#/components/responses/InternalServerError' |
| 2497 | + security: |
| 2498 | + - oauth2: [https://jans.io/oauth/config/agama.readonly] |
| 2499 | + |
| 2500 | + post: |
| 2501 | + summary: Create a new agama flow from source file. |
| 2502 | + description: Create a new agama flow from source file. |
| 2503 | + operationId: post-agama-flow-from-source |
| 2504 | + tags: |
| 2505 | + - Configuration – Agama Flow |
| 2506 | + requestBody: |
| 2507 | + content: |
| 2508 | + text/plain: |
| 2509 | + schema: |
| 2510 | + type: string |
| 2511 | + |
| 2512 | + responses: |
| 2513 | + '201': |
| 2514 | + description: CREATED |
| 2515 | + content: |
| 2516 | + application/json: |
| 2517 | + schema: |
| 2518 | + $ref: '#/components/schemas/AgamaFlow' |
| 2519 | + '401': |
| 2520 | + $ref: '#/components/responses/Unauthorized' |
| 2521 | + '500': |
| 2522 | + $ref: '#/components/responses/InternalServerError' |
| 2523 | + security: |
| 2524 | + - oauth2: [https://jans.io/oauth/config/agama.write] |
| 2525 | + |
| 2526 | + |
| 2527 | + put: |
| 2528 | + summary: Updates an agama flow based on Qname. |
| 2529 | + description: Updates an agama based on Qname. |
| 2530 | + operationId: put-agama-flow |
| 2531 | + tags: |
| 2532 | + - Configuration – Agama Flow |
| 2533 | + requestBody: |
| 2534 | + content: |
| 2535 | + application/json: |
| 2536 | + schema: |
| 2537 | + $ref: '#/components/schemas/AgamaFlow' |
| 2538 | + responses: |
| 2539 | + '200': |
| 2540 | + description: OK |
| 2541 | + content: |
| 2542 | + application/json: |
| 2543 | + schema: |
| 2544 | + $ref: '#/components/schemas/AgamaFlow' |
| 2545 | + '401': |
| 2546 | + $ref: '#/components/responses/Unauthorized' |
| 2547 | + '404': |
| 2548 | + $ref: '#/components/responses/NotFound' |
| 2549 | + '500': |
| 2550 | + $ref: '#/components/responses/InternalServerError' |
| 2551 | + security: |
| 2552 | + - oauth2: [https://jans.io/oauth/config/agama.write] |
| 2553 | + delete: |
| 2554 | + summary: Deletes an agama flow based on Qname. |
| 2555 | + description: Deletes an agama flow based on Qname. |
| 2556 | + operationId: delete-agama-flow |
| 2557 | + tags: |
| 2558 | + - Configuration – Agama Flow |
| 2559 | + responses: |
| 2560 | + '204': |
| 2561 | + description: No Content |
| 2562 | + '401': |
| 2563 | + description: Unauthorized |
| 2564 | + '404': |
| 2565 | + description: Not Found |
| 2566 | + '500': |
| 2567 | + description: Internal Server Error |
| 2568 | + security: |
| 2569 | + - oauth2: [https://jans.io/oauth/config/agama.delete] |
| 2570 | + |
2423 | 2571 | /jans-config-api/api/v1/stat:
|
2424 | 2572 | get:
|
2425 | 2573 | summary: Provides server with basic statistic.
|
@@ -7079,3 +7227,69 @@ components:
|
7079 | 7227 | additionalProperties:
|
7080 | 7228 | type: string
|
7081 | 7229 |
|
| 7230 | + |
| 7231 | + FlowMetadata: |
| 7232 | + title: Agama Flow meta data |
| 7233 | + description: Object for Agama Flow meta data. |
| 7234 | + type: object |
| 7235 | + properties: |
| 7236 | + funcName: |
| 7237 | + description: name of the function. |
| 7238 | + type: string |
| 7239 | + inputs: |
| 7240 | + description: Agama Flow inputs. |
| 7241 | + type: array |
| 7242 | + items: |
| 7243 | + type: string |
| 7244 | + timeout: |
| 7245 | + description: flow timeout value. |
| 7246 | + type: integer |
| 7247 | + format: int64 |
| 7248 | + default: 0 |
| 7249 | + displayName: |
| 7250 | + description: Flow name |
| 7251 | + type: string |
| 7252 | + author: |
| 7253 | + description: Author of the agama flow |
| 7254 | + type: string |
| 7255 | + timestamp: |
| 7256 | + description: flow update time. |
| 7257 | + type: string |
| 7258 | + format: date |
| 7259 | + |
| 7260 | + |
| 7261 | + AgamaFlow: |
| 7262 | + title: Agama Flow object |
| 7263 | + description: Object for Agama Flow. |
| 7264 | + type: object |
| 7265 | + properties: |
| 7266 | + dn: |
| 7267 | + description: Domain name |
| 7268 | + type: string |
| 7269 | + QName: |
| 7270 | + description: Agama flow identifier. |
| 7271 | + type: string |
| 7272 | + transHash: |
| 7273 | + description: Agama Flow custom message. |
| 7274 | + type: string |
| 7275 | + revision: |
| 7276 | + description: Update revision number of the script. |
| 7277 | + type: integer |
| 7278 | + format: int64 |
| 7279 | + default: 0 |
| 7280 | + enabled: |
| 7281 | + description: boolean value indicating if script enabled. |
| 7282 | + type: boolean |
| 7283 | + default: false |
| 7284 | + metadata: |
| 7285 | + description: Agama Flow metadata. |
| 7286 | + $ref: '#/components/schemas/FlowMetadata' |
| 7287 | + source: |
| 7288 | + description: Agama Flow source. |
| 7289 | + type: string |
| 7290 | + transpiled: |
| 7291 | + description: Agama Flow translate compiler. |
| 7292 | + type: string |
| 7293 | + codeError: |
| 7294 | + type: string |
| 7295 | + description: Possible errors assosiated with the flow. |
0 commit comments