oc-peers/swagger/swagger.json

149 lines
4.8 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": ""
}
}
}
},
2024-08-08 17:31:17 +02:00
"/workflow_execution/": {
2024-07-24 10:25:08 +02:00
"get": {
"tags": [
2024-08-08 17:31:17 +02:00
"workflow_execution"
2024-07-24 10:25:08 +02:00
],
"description": "find workflow by workflowid\n\u003cbr\u003e",
2024-08-08 17:31:17 +02:00
"operationId": "WorkflowExecutionController.GetAll",
2024-07-24 10:25:08 +02:00
"responses": {
"200": {
"description": "{workflow} models.workflow"
}
}
}
},
2024-08-08 17:31:17 +02:00
"/workflow_execution/check/{start_date}/{end_date}": {
2024-07-24 10:25:08 +02:00
"get": {
"tags": [
2024-08-08 17:31:17 +02:00
"workflow_execution"
2024-07-24 10:25:08 +02:00
],
2024-08-08 17:31:17 +02:00
"description": "check booking\n\u003cbr\u003e",
"operationId": "WorkflowExecutionController.Check",
2024-07-24 10:25:08 +02:00
"parameters": [
{
"in": "path",
2024-08-08 17:31:17 +02:00
"name": "start_date",
"description": "2006-01-02T15:04:05",
"type": "string",
"default": "the booking start date"
2024-07-11 11:40:11 +02:00
},
{
"in": "path",
2024-08-08 17:31:17 +02:00
"name": "end_date",
"description": "2006-01-02T15:04:05",
"type": "string",
"default": "the booking end date"
2024-07-24 10:25:08 +02:00
}
],
"responses": {
"200": {
"description": "",
"schema": {
2024-08-08 17:31:17 +02:00
"$ref": "#/definitions/models.object"
2024-07-24 10:25:08 +02:00
}
2024-07-11 11:40:11 +02:00
}
}
2024-08-06 11:09:38 +02:00
}
},
"/workflow_execution/search/{start_date}/{end_date}": {
"get": {
"tags": [
"workflow_execution"
],
"description": "search workspace\n\u003cbr\u003e",
"operationId": "WorkflowExecutionController.Search",
"parameters": [
{
"in": "path",
"name": "start_date",
"description": "the word search you want to get",
"required": true,
"type": "string"
},
{
"in": "path",
"name": "end_date",
"description": "the word search you want to get",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{workspace} models.workspace"
}
}
}
},
"/workflow_execution/{id}": {
"get": {
"tags": [
"workflow_execution"
],
"description": "find workflow by workflowid\n\u003cbr\u003e",
"operationId": "WorkflowExecutionController.Get",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the workflowid you want to get",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{workflow} models.workflow"
}
}
}
2024-07-11 11:40:11 +02:00
}
},
"definitions": {
2024-08-08 17:31:17 +02:00
"models.object": {
"title": "object",
2024-07-11 11:40:11 +02:00
"type": "object"
}
},
"tags": [
2024-08-06 11:09:38 +02:00
{
"name": "workflow_execution",
"description": "Operations about workflow\n"
},
2024-07-11 11:40:11 +02:00
{
"name": "version",
"description": "VersionController operations for Version\n"
}
]
}