oc-scheduler/swagger/swagger.json

317 lines
10 KiB
JSON
Raw Normal View History

2024-07-11 11:40:11 +02:00
{
"swagger": "2.0",
"info": {
"title": "beego Test API",
"description": "beego has a very cool tools to autogenerate documents for your API\n",
"version": "1.0.0",
"termsOfService": "http://beego.me/",
"contact": {
"email": "astaxie@gmail.com"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
2024-07-24 10:25:08 +02:00
"basePath": "/oc/",
2024-07-11 11:40:11 +02:00
"paths": {
"/version/": {
"get": {
"tags": [
"version"
],
"description": "get version\n\u003cbr\u003e",
"operationId": "VersionController.GetAll",
"responses": {
"200": {
"description": ""
}
}
}
},
"/workflow/": {
2024-07-24 10:25:08 +02:00
"get": {
"tags": [
"workflow"
],
"description": "find workflow by workflowid\n\u003cbr\u003e",
"operationId": "WorkflowController.GetAll",
"responses": {
"200": {
"description": "{workflow} models.workflow"
}
}
},
2024-07-11 11:40:11 +02:00
"post": {
"tags": [
"workflow"
],
"description": "create workflows\n\u003cbr\u003e",
"operationId": "WorkflowController.Create",
"parameters": [
{
"in": "body",
2024-07-24 10:25:08 +02:00
"name": "data",
"description": "body for data content (Json format)",
2024-07-11 11:40:11 +02:00
"required": true,
"schema": {
2024-07-24 10:25:08 +02:00
"$ref": "#/definitions/json"
2024-07-11 11:40:11 +02:00
}
}
],
"responses": {
"200": {
2024-07-24 10:25:08 +02:00
"description": "",
"schema": {
"$ref": "#/definitions/models.workflow"
}
2024-07-11 11:40:11 +02:00
}
}
}
},
2024-07-24 10:25:08 +02:00
"/workflow/publish/{id}": {
"post": {
2024-07-11 11:40:11 +02:00
"tags": [
"workflow"
],
2024-07-24 10:25:08 +02:00
"description": "create workflows\n\u003cbr\u003e",
"operationId": "WorkflowController.Publish",
2024-07-11 11:40:11 +02:00
"parameters": [
{
"in": "path",
2024-07-24 10:25:08 +02:00
"name": "id",
"description": "the workflowid you want to get",
2024-07-11 11:40:11 +02:00
"required": true,
"type": "string"
}
],
"responses": {
"200": {
2024-07-24 10:25:08 +02:00
"description": "",
"schema": {
"$ref": "#/definitions/models.workflow"
}
}
}
}
},
"/workflow/resource/": {
"get": {
"tags": [
"workflow/resource"
],
"description": "find workflow by workflowid\n\u003cbr\u003e",
"operationId": "WorkflowResourceController.GetAll",
"responses": {
"200": {
"description": "{workflow} models.workflow"
}
}
},
"post": {
"tags": [
"workflow/resource"
],
"description": "create workflows\n\u003cbr\u003e",
"operationId": "WorkflowResourceController.Create",
"parameters": [
{
"in": "body",
"name": "data",
"description": "body for data content (Json format)",
"required": true,
"schema": {
"$ref": "#/definitions/json"
}
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/models.workflow"
}
}
}
}
},
"/workflow/resource/{id}": {
"get": {
"tags": [
"workflow/resource"
],
"description": "find workflows\n\u003cbr\u003e",
"operationId": "WorkflowResourceController.Get",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the workflowid you want to get",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{workflow} models.workflow"
}
}
},
"put": {
"tags": [
"workflow/resource"
],
"description": "create workflows\n\u003cbr\u003e",
"operationId": "WorkflowResourceController.Update",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the workflowid you want to get",
"required": true,
"type": "string"
2024-07-11 11:40:11 +02:00
},
2024-07-24 10:25:08 +02:00
{
"in": "body",
"name": "body",
"description": "The workflow content",
"required": true,
"schema": {
"$ref": "#/definitions/models.workflow"
}
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/models.workflow"
}
}
}
},
"delete": {
"tags": [
"workflow/resource"
],
"description": "delete the workflow\n\u003cbr\u003e",
"operationId": "WorkflowResourceController.Delete",
"parameters": [
{
"in": "path",
"name": "id",
"description": "The workflowId you want to delete",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{string} delete success!"
2024-07-11 11:40:11 +02:00
}
}
}
},
2024-07-24 10:25:08 +02:00
"/workflow/{id}": {
2024-07-11 11:40:11 +02:00
"get": {
"tags": [
"workflow"
],
"description": "find workflow by workflowid\n\u003cbr\u003e",
"operationId": "WorkflowController.Get",
"parameters": [
{
"in": "path",
2024-07-24 10:25:08 +02:00
"name": "id",
2024-07-11 11:40:11 +02:00
"description": "the workflowid you want to get",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{workflow} models.workflow"
2024-07-24 10:25:08 +02:00
}
}
},
"put": {
"tags": [
"workflow"
],
"description": "create workflows\n\u003cbr\u003e",
"operationId": "WorkflowController.Update",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the workflowid you want to get",
"required": true,
"type": "string"
2024-07-11 11:40:11 +02:00
},
2024-07-24 10:25:08 +02:00
{
"in": "body",
"name": "body",
"description": "The workflow content",
"required": true,
"schema": {
"$ref": "#/definitions/models.workflow"
}
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/models.workflow"
}
2024-07-11 11:40:11 +02:00
}
}
},
"delete": {
"tags": [
"workflow"
],
"description": "delete the workflow\n\u003cbr\u003e",
"operationId": "WorkflowController.Delete",
"parameters": [
{
"in": "path",
2024-07-24 10:25:08 +02:00
"name": "id",
2024-07-11 11:40:11 +02:00
"description": "The workflowId you want to delete",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{string} delete success!"
}
}
}
}
},
"definitions": {
2024-07-24 10:25:08 +02:00
"json": {
"title": "json",
"type": "object"
},
2024-07-11 11:40:11 +02:00
"models.workflow": {
"title": "workflow",
"type": "object"
}
},
"tags": [
{
"name": "workflow",
"description": "Operations about workflow\n"
},
2024-07-24 10:25:08 +02:00
{
"name": "workflow/resource",
"description": "Operations about workflow\n"
},
2024-07-11 11:40:11 +02:00
{
"name": "version",
"description": "VersionController operations for Version\n"
}
]
}