|
13 | 13 | "url": "http://www.apache.org/licenses/LICENSE-2.0"
|
14 | 14 | }
|
15 | 15 | },
|
16 |
| - "host": "localhost:18083", |
| 16 | + "host": "43.203.254.52:18083", |
17 | 17 | "basePath": "/",
|
18 | 18 | "tags": [
|
19 |
| - { |
20 |
| - "name": "workflow-controller", |
21 |
| - "description": "Workflow Controller" |
22 |
| - }, |
23 | 19 | {
|
24 | 20 | "name": "workflow-stage-controller",
|
25 | 21 | "description": "Workflow Stage Controller"
|
26 | 22 | },
|
27 |
| - { |
28 |
| - "name": "oss-type-controller", |
29 |
| - "description": "Oss Type Controller" |
30 |
| - }, |
31 | 23 | {
|
32 | 24 | "name": "workflow-param-controller",
|
33 | 25 | "description": "Workflow Param Controller"
|
34 | 26 | },
|
35 | 27 | {
|
36 |
| - "name": "open-api-web-mvc-resource", |
37 |
| - "description": "Open Api Web Mvc Resource" |
38 |
| - }, |
39 |
| - { |
40 |
| - "name": "event-listener-controller", |
41 |
| - "description": "Event Listener Controller" |
| 28 | + "name": "readyz-controller", |
| 29 | + "description": "Readyz Controller" |
42 | 30 | },
|
43 | 31 | {
|
44 | 32 | "name": "workflow-history-controller",
|
|
52 | 40 | "name": "swagger-config-resource",
|
53 | 41 | "description": "Swagger Config Resource"
|
54 | 42 | },
|
55 |
| - { |
56 |
| - "name": "oss-controller", |
57 |
| - "description": "Oss Controller" |
58 |
| - }, |
59 | 43 | {
|
60 | 44 | "name": "swagger-welcome-web-mvc",
|
61 | 45 | "description": "Swagger Welcome Web Mvc"
|
62 | 46 | },
|
63 | 47 | {
|
64 | 48 | "name": "basic-error-controller",
|
65 | 49 | "description": "Basic Error Controller"
|
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "workflow-controller", |
| 53 | + "description": "Workflow Controller" |
| 54 | + }, |
| 55 | + { |
| 56 | + "name": "oss-type-controller", |
| 57 | + "description": "Oss Type Controller" |
| 58 | + }, |
| 59 | + { |
| 60 | + "name": "open-api-web-mvc-resource", |
| 61 | + "description": "Open Api Web Mvc Resource" |
| 62 | + }, |
| 63 | + { |
| 64 | + "name": "event-listener-controller", |
| 65 | + "description": "Event Listener Controller" |
| 66 | + }, |
| 67 | + { |
| 68 | + "name": "oss-controller", |
| 69 | + "description": "Oss Controller" |
66 | 70 | }
|
67 | 71 | ],
|
68 | 72 | "paths": {
|
|
351 | 355 | }
|
352 | 356 | }
|
353 | 357 | },
|
| 358 | + "/eventlistener/duplicate": { |
| 359 | + "get": { |
| 360 | + "tags": [ |
| 361 | + "event-listener-controller" |
| 362 | + ], |
| 363 | + "summary": "isEventListenerDuplicated", |
| 364 | + "operationId": "isEventListenerDuplicatedUsingGET", |
| 365 | + "consumes": [ |
| 366 | + "application/json" |
| 367 | + ], |
| 368 | + "produces": [ |
| 369 | + "*/*" |
| 370 | + ], |
| 371 | + "parameters": [ |
| 372 | + { |
| 373 | + "name": "eventlistenerName", |
| 374 | + "in": "query", |
| 375 | + "description": "eventlistenerName", |
| 376 | + "required": true, |
| 377 | + "type": "string" |
| 378 | + } |
| 379 | + ], |
| 380 | + "responses": { |
| 381 | + "200": { |
| 382 | + "description": "OK", |
| 383 | + "schema": { |
| 384 | + "$ref": "#/definitions/ResponseWrapper«boolean»" |
| 385 | + } |
| 386 | + }, |
| 387 | + "401": { |
| 388 | + "description": "Unauthorized" |
| 389 | + }, |
| 390 | + "403": { |
| 391 | + "description": "Forbidden" |
| 392 | + }, |
| 393 | + "404": { |
| 394 | + "description": "Not Found" |
| 395 | + } |
| 396 | + } |
| 397 | + } |
| 398 | + }, |
354 | 399 | "/eventlistener/list": {
|
355 | 400 | "get": {
|
356 | 401 | "tags": [
|
|
1238 | 1283 | }
|
1239 | 1284 | }
|
1240 | 1285 | },
|
| 1286 | + "/readyz": { |
| 1287 | + "get": { |
| 1288 | + "tags": [ |
| 1289 | + "readyz-controller" |
| 1290 | + ], |
| 1291 | + "summary": "checkConnection", |
| 1292 | + "operationId": "checkConnectionUsingGET", |
| 1293 | + "consumes": [ |
| 1294 | + "application/json" |
| 1295 | + ], |
| 1296 | + "produces": [ |
| 1297 | + "*/*" |
| 1298 | + ], |
| 1299 | + "responses": { |
| 1300 | + "200": { |
| 1301 | + "description": "OK", |
| 1302 | + "schema": { |
| 1303 | + "$ref": "#/definitions/ResponseWrapper«string»" |
| 1304 | + } |
| 1305 | + }, |
| 1306 | + "401": { |
| 1307 | + "description": "Unauthorized" |
| 1308 | + }, |
| 1309 | + "403": { |
| 1310 | + "description": "Forbidden" |
| 1311 | + }, |
| 1312 | + "404": { |
| 1313 | + "description": "Not Found" |
| 1314 | + } |
| 1315 | + } |
| 1316 | + } |
| 1317 | + }, |
1241 | 1318 | "/swagger-ui.html": {
|
1242 | 1319 | "get": {
|
1243 | 1320 | "tags": [
|
|
1715 | 1792 | }
|
1716 | 1793 | }
|
1717 | 1794 | },
|
| 1795 | + "/workflow/runHistory/{workflowIdx}": { |
| 1796 | + "get": { |
| 1797 | + "tags": [ |
| 1798 | + "workflow-controller" |
| 1799 | + ], |
| 1800 | + "summary": "getWorkflowRunHistoryList", |
| 1801 | + "operationId": "getWorkflowRunHistoryListUsingGET", |
| 1802 | + "consumes": [ |
| 1803 | + "application/json" |
| 1804 | + ], |
| 1805 | + "produces": [ |
| 1806 | + "*/*" |
| 1807 | + ], |
| 1808 | + "parameters": [ |
| 1809 | + { |
| 1810 | + "name": "workflowIdx", |
| 1811 | + "in": "path", |
| 1812 | + "description": "workflowIdx", |
| 1813 | + "required": true, |
| 1814 | + "type": "integer", |
| 1815 | + "format": "int64" |
| 1816 | + } |
| 1817 | + ], |
| 1818 | + "responses": { |
| 1819 | + "200": { |
| 1820 | + "description": "OK", |
| 1821 | + "schema": { |
| 1822 | + "$ref": "#/definitions/ResponseWrapper«List«WorkflowRunHistoryResDto»»" |
| 1823 | + } |
| 1824 | + }, |
| 1825 | + "401": { |
| 1826 | + "description": "Unauthorized" |
| 1827 | + }, |
| 1828 | + "403": { |
| 1829 | + "description": "Forbidden" |
| 1830 | + }, |
| 1831 | + "404": { |
| 1832 | + "description": "Not Found" |
| 1833 | + } |
| 1834 | + } |
| 1835 | + } |
| 1836 | + }, |
| 1837 | + "/workflow/stageHistory/{workflowIdx}": { |
| 1838 | + "get": { |
| 1839 | + "tags": [ |
| 1840 | + "workflow-controller" |
| 1841 | + ], |
| 1842 | + "summary": "getWorkflowStageHistoryList", |
| 1843 | + "operationId": "getWorkflowStageHistoryListUsingGET", |
| 1844 | + "consumes": [ |
| 1845 | + "application/json" |
| 1846 | + ], |
| 1847 | + "produces": [ |
| 1848 | + "*/*" |
| 1849 | + ], |
| 1850 | + "parameters": [ |
| 1851 | + { |
| 1852 | + "name": "workflowIdx", |
| 1853 | + "in": "path", |
| 1854 | + "description": "workflowIdx", |
| 1855 | + "required": true, |
| 1856 | + "type": "integer", |
| 1857 | + "format": "int64" |
| 1858 | + }, |
| 1859 | + { |
| 1860 | + "name": "buildIdx", |
| 1861 | + "in": "query", |
| 1862 | + "description": "buildIdx", |
| 1863 | + "required": true, |
| 1864 | + "type": "integer", |
| 1865 | + "format": "int32" |
| 1866 | + }, |
| 1867 | + { |
| 1868 | + "name": "nodeIdx", |
| 1869 | + "in": "query", |
| 1870 | + "description": "nodeIdx", |
| 1871 | + "required": true, |
| 1872 | + "type": "integer", |
| 1873 | + "format": "int32" |
| 1874 | + } |
| 1875 | + ], |
| 1876 | + "responses": { |
| 1877 | + "200": { |
| 1878 | + "description": "OK", |
| 1879 | + "schema": { |
| 1880 | + "$ref": "#/definitions/ResponseWrapper«JenkinsBuildDescribeLog»" |
| 1881 | + } |
| 1882 | + }, |
| 1883 | + "401": { |
| 1884 | + "description": "Unauthorized" |
| 1885 | + }, |
| 1886 | + "403": { |
| 1887 | + "description": "Forbidden" |
| 1888 | + }, |
| 1889 | + "404": { |
| 1890 | + "description": "Not Found" |
| 1891 | + } |
| 1892 | + } |
| 1893 | + } |
| 1894 | + }, |
1718 | 1895 | "/workflow/template/{workflowName}": {
|
1719 | 1896 | "get": {
|
1720 | 1897 | "tags": [
|
|
2438 | 2615 | "script": {
|
2439 | 2616 | "type": "string"
|
2440 | 2617 | },
|
| 2618 | + "status": { |
| 2619 | + "type": "string" |
| 2620 | + }, |
2441 | 2621 | "workflowIdx": {
|
2442 | 2622 | "type": "integer",
|
2443 | 2623 | "format": "int64"
|
|
2483 | 2663 | }
|
2484 | 2664 | }
|
2485 | 2665 | },
|
| 2666 | + "JenkinsStage": { |
| 2667 | + "type": "object", |
| 2668 | + "properties": { |
| 2669 | + "durationMillis": { |
| 2670 | + "type": "integer", |
| 2671 | + "format": "int64" |
| 2672 | + }, |
| 2673 | + "endTimeMillis": { |
| 2674 | + "type": "integer", |
| 2675 | + "format": "int64" |
| 2676 | + }, |
| 2677 | + "id": { |
| 2678 | + "type": "string" |
| 2679 | + }, |
| 2680 | + "name": { |
| 2681 | + "type": "string" |
| 2682 | + }, |
| 2683 | + "pauseDurationMillis": { |
| 2684 | + "type": "integer", |
| 2685 | + "format": "int64" |
| 2686 | + }, |
| 2687 | + "startTimeMillis": { |
| 2688 | + "type": "integer", |
| 2689 | + "format": "int64" |
| 2690 | + }, |
| 2691 | + "status": { |
| 2692 | + "type": "string" |
| 2693 | + } |
| 2694 | + } |
| 2695 | + }, |
2486 | 2696 | "ResponseWrapper«List«WorkflowListResDto»»": {
|
2487 | 2697 | "type": "object",
|
2488 | 2698 | "properties": {
|
|
2520 | 2730 | "eventListenerName": {
|
2521 | 2731 | "type": "string"
|
2522 | 2732 | },
|
2523 |
| - "eventListenerUrl": { |
2524 |
| - "type": "string" |
2525 |
| - }, |
2526 | 2733 | "workflowIdx": {
|
2527 | 2734 | "type": "integer",
|
2528 | 2735 | "format": "int64"
|
2529 |
| - } |
2530 |
| - } |
2531 |
| - }, |
2532 |
| - "ResponseWrapper«List«ResponseEventListenerDto»»": { |
2533 |
| - "type": "object", |
2534 |
| - "properties": { |
2535 |
| - "code": { |
2536 |
| - "type": "integer", |
2537 |
| - "format": "int32" |
2538 | 2736 | },
|
2539 |
| - "data": { |
| 2737 | + "workflowName": { |
| 2738 | + "type": "string" |
| 2739 | + }, |
| 2740 | + "workflowParams": { |
2540 | 2741 | "type": "array",
|
2541 | 2742 | "items": {
|
2542 |
| - "$ref": "#/definitions/ResponseEventListenerDto" |
| 2743 | + "$ref": "#/definitions/WorkflowParamDto" |
2543 | 2744 | }
|
2544 |
| - }, |
2545 |
| - "detail": { |
2546 |
| - "type": "string" |
2547 |
| - }, |
2548 |
| - "message": { |
2549 |
| - "type": "string" |
2550 | 2745 | }
|
2551 | 2746 | }
|
2552 | 2747 | },
|
|
2572 | 2767 | }
|
2573 | 2768 | }
|
2574 | 2769 | },
|
| 2770 | + "ResponseWrapper«List«ResponseEventListenerDto»»": { |
| 2771 | + "type": "object", |
| 2772 | + "properties": { |
| 2773 | + "code": { |
| 2774 | + "type": "integer", |
| 2775 | + "format": "int32" |
| 2776 | + }, |
| 2777 | + "data": { |
| 2778 | + "type": "array", |
| 2779 | + "items": { |
| 2780 | + "$ref": "#/definitions/ResponseEventListenerDto" |
| 2781 | + } |
| 2782 | + }, |
| 2783 | + "detail": { |
| 2784 | + "type": "string" |
| 2785 | + }, |
| 2786 | + "message": { |
| 2787 | + "type": "string" |
| 2788 | + } |
| 2789 | + } |
| 2790 | + }, |
2575 | 2791 | "ResponseWrapper«List«WorkflowLogResDto»»": {
|
2576 | 2792 | "type": "object",
|
2577 | 2793 | "properties": {
|
|
2710 | 2926 | }
|
2711 | 2927 | }
|
2712 | 2928 | },
|
| 2929 | + "JenkinsBuildDescribeLog": { |
| 2930 | + "type": "object", |
| 2931 | + "properties": { |
| 2932 | + "durationMillis": { |
| 2933 | + "type": "integer", |
| 2934 | + "format": "int64" |
| 2935 | + }, |
| 2936 | + "endTimeMillis": { |
| 2937 | + "type": "integer", |
| 2938 | + "format": "int64" |
| 2939 | + }, |
| 2940 | + "error": { |
| 2941 | + "$ref": "#/definitions/Error" |
| 2942 | + }, |
| 2943 | + "execNode": { |
| 2944 | + "type": "string" |
| 2945 | + }, |
| 2946 | + "id": { |
| 2947 | + "type": "string" |
| 2948 | + }, |
| 2949 | + "name": { |
| 2950 | + "type": "string" |
| 2951 | + }, |
| 2952 | + "parameterDescription": { |
| 2953 | + "type": "string" |
| 2954 | + }, |
| 2955 | + "pauseDurationMillis": { |
| 2956 | + "type": "integer", |
| 2957 | + "format": "int64" |
| 2958 | + }, |
| 2959 | + "stageFlowNodes": { |
| 2960 | + "type": "array", |
| 2961 | + "items": { |
| 2962 | + "$ref": "#/definitions/JenkinsStageFlowNode" |
| 2963 | + } |
| 2964 | + }, |
| 2965 | + "startTimeMillis": { |
| 2966 | + "type": "integer", |
| 2967 | + "format": "int64" |
| 2968 | + }, |
| 2969 | + "status": { |
| 2970 | + "type": "string" |
| 2971 | + } |
| 2972 | + } |
| 2973 | + }, |
2713 | 2974 | "ResponseWrapper«List«WorkflowStageTypeDto»»": {
|
2714 | 2975 | "type": "object",
|
2715 | 2976 | "properties": {
|
|
2773 | 3034 | }
|
2774 | 3035 | }
|
2775 | 3036 | },
|
| 3037 | + "WorkflowRunHistoryResDto": { |
| 3038 | + "type": "object", |
| 3039 | + "properties": { |
| 3040 | + "durationTimeMillis": { |
| 3041 | + "type": "integer", |
| 3042 | + "format": "int64" |
| 3043 | + }, |
| 3044 | + "name": { |
| 3045 | + "type": "string" |
| 3046 | + }, |
| 3047 | + "stages": { |
| 3048 | + "type": "array", |
| 3049 | + "items": { |
| 3050 | + "$ref": "#/definitions/JenkinsStage" |
| 3051 | + } |
| 3052 | + }, |
| 3053 | + "startTimeMillis": { |
| 3054 | + "type": "integer", |
| 3055 | + "format": "int64" |
| 3056 | + }, |
| 3057 | + "status": { |
| 3058 | + "type": "string" |
| 3059 | + } |
| 3060 | + } |
| 3061 | + }, |
2776 | 3062 | "WorkflowStageTypeAndStageNameResDto": {
|
2777 | 3063 | "type": "object",
|
2778 | 3064 | "properties": {
|
|
2813 | 3099 | }
|
2814 | 3100 | }
|
2815 | 3101 | },
|
| 3102 | + "JenkinsStageFlowNode": { |
| 3103 | + "type": "object", |
| 3104 | + "properties": { |
| 3105 | + "durationMillis": { |
| 3106 | + "type": "integer", |
| 3107 | + "format": "int64" |
| 3108 | + }, |
| 3109 | + "endTimeMillis": { |
| 3110 | + "type": "integer", |
| 3111 | + "format": "int64" |
| 3112 | + }, |
| 3113 | + "error": { |
| 3114 | + "$ref": "#/definitions/Error" |
| 3115 | + }, |
| 3116 | + "execNode": { |
| 3117 | + "type": "string" |
| 3118 | + }, |
| 3119 | + "id": { |
| 3120 | + "type": "string" |
| 3121 | + }, |
| 3122 | + "name": { |
| 3123 | + "type": "string" |
| 3124 | + }, |
| 3125 | + "parameterDescription": { |
| 3126 | + "type": "string" |
| 3127 | + }, |
| 3128 | + "parentNodes": { |
| 3129 | + "type": "array", |
| 3130 | + "items": { |
| 3131 | + "type": "string" |
| 3132 | + } |
| 3133 | + }, |
| 3134 | + "pauseDurationMillis": { |
| 3135 | + "type": "integer", |
| 3136 | + "format": "int64" |
| 3137 | + }, |
| 3138 | + "startTimeMillis": { |
| 3139 | + "type": "integer", |
| 3140 | + "format": "int64" |
| 3141 | + }, |
| 3142 | + "status": { |
| 3143 | + "type": "string" |
| 3144 | + } |
| 3145 | + } |
| 3146 | + }, |
2816 | 3147 | "RequestEventListenerDto": {
|
2817 | 3148 | "type": "object",
|
2818 | 3149 | "properties": {
|
|
2994 | 3325 | }
|
2995 | 3326 | }
|
2996 | 3327 | },
|
| 3328 | + "ResponseWrapper«JenkinsBuildDescribeLog»": { |
| 3329 | + "type": "object", |
| 3330 | + "properties": { |
| 3331 | + "code": { |
| 3332 | + "type": "integer", |
| 3333 | + "format": "int32" |
| 3334 | + }, |
| 3335 | + "data": { |
| 3336 | + "$ref": "#/definitions/JenkinsBuildDescribeLog" |
| 3337 | + }, |
| 3338 | + "detail": { |
| 3339 | + "type": "string" |
| 3340 | + }, |
| 3341 | + "message": { |
| 3342 | + "type": "string" |
| 3343 | + } |
| 3344 | + } |
| 3345 | + }, |
| 3346 | + "ResponseWrapper«List«WorkflowRunHistoryResDto»»": { |
| 3347 | + "type": "object", |
| 3348 | + "properties": { |
| 3349 | + "code": { |
| 3350 | + "type": "integer", |
| 3351 | + "format": "int32" |
| 3352 | + }, |
| 3353 | + "data": { |
| 3354 | + "type": "array", |
| 3355 | + "items": { |
| 3356 | + "$ref": "#/definitions/WorkflowRunHistoryResDto" |
| 3357 | + } |
| 3358 | + }, |
| 3359 | + "detail": { |
| 3360 | + "type": "string" |
| 3361 | + }, |
| 3362 | + "message": { |
| 3363 | + "type": "string" |
| 3364 | + } |
| 3365 | + } |
| 3366 | + }, |
2997 | 3367 | "OssDto": {
|
2998 | 3368 | "type": "object",
|
2999 | 3369 | "properties": {
|
|
3042 | 3412 | }
|
3043 | 3413 | }
|
3044 | 3414 | },
|
| 3415 | + "Error": { |
| 3416 | + "type": "object", |
| 3417 | + "properties": { |
| 3418 | + "message": { |
| 3419 | + "type": "string" |
| 3420 | + }, |
| 3421 | + "type": { |
| 3422 | + "type": "string" |
| 3423 | + } |
| 3424 | + } |
| 3425 | + }, |
3045 | 3426 | "ResponseWrapper«List«WorkflowParamDto»»": {
|
3046 | 3427 | "type": "object",
|
3047 | 3428 | "properties": {
|
|
3229 | 3610 | }
|
3230 | 3611 | }
|
3231 | 3612 | },
|
| 3613 | + "ResponseWrapper«string»": { |
| 3614 | + "type": "object", |
| 3615 | + "properties": { |
| 3616 | + "code": { |
| 3617 | + "type": "integer", |
| 3618 | + "format": "int32" |
| 3619 | + }, |
| 3620 | + "data": { |
| 3621 | + "type": "string", |
| 3622 | + "enum": [ |
| 3623 | + "OK", |
| 3624 | + "BAD_REQUEST", |
| 3625 | + "UNAUTHORIZED", |
| 3626 | + "FORBIDDEN", |
| 3627 | + "NOT_FOUND", |
| 3628 | + "METHOD_NOT_ALLOWED", |
| 3629 | + "CLIENT_ERROR", |
| 3630 | + "CONFLICT", |
| 3631 | + "INTERNAL_SERVER_ERROR", |
| 3632 | + "COMMON_CODE_EXISTS", |
| 3633 | + "COMMON_CODE_DELETE_NOT_ALLOWED", |
| 3634 | + "UNKNOWN_ERROR", |
| 3635 | + "ALREADY_EXISTS", |
| 3636 | + "CREATE_FAILED_PROJECT_SOURCE", |
| 3637 | + "CREATE_FAILED_JENKINS_JOB", |
| 3638 | + "EXISTS_JENKINS_JOB", |
| 3639 | + "NOT_EXISTS_JENKINS_JOB", |
| 3640 | + "ERROR_JENKINS_API", |
| 3641 | + "RUN_FAILED_DEPLOY", |
| 3642 | + "CREATE_FAILED_APPLICATION", |
| 3643 | + "NOT_EXISTS_APPLICATION", |
| 3644 | + "EXISTS_APPLICATION", |
| 3645 | + "CONNECTION_FAILED_CLUSTER", |
| 3646 | + "IN_USE_OSS", |
| 3647 | + "IS_NOT_MAPPED_OSS", |
| 3648 | + "INCORRECT_JENKINS_CONNECTION_INFO" |
| 3649 | + ] |
| 3650 | + }, |
| 3651 | + "detail": { |
| 3652 | + "type": "string" |
| 3653 | + }, |
| 3654 | + "message": { |
| 3655 | + "type": "string" |
| 3656 | + } |
| 3657 | + } |
| 3658 | + }, |
3232 | 3659 | "WorkflowReqDto": {
|
3233 | 3660 | "type": "object",
|
3234 | 3661 | "properties": {
|
|
0 commit comments