shared new oclib + routers

This commit is contained in:
mr
2024-08-22 10:49:26 +02:00
parent 5b75ed0473
commit a5a86f44c5
7 changed files with 260 additions and 264 deletions

View File

@@ -13,40 +13,12 @@
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"basePath": "/oc/shared/",
"basePath": "/oc",
"paths": {
"/version/": {
"/shared/workspace/": {
"get": {
"tags": [
"version"
],
"description": "get version\n\u003cbr\u003e",
"operationId": "VersionController.GetAll",
"responses": {
"200": {
"description": ""
}
}
}
},
"/version/status": {
"get": {
"tags": [
"version"
],
"description": "get status\n\u003cbr\u003e",
"operationId": "VersionController.Status",
"responses": {
"200": {
"description": ""
}
}
}
},
"/workspace/": {
"get": {
"tags": [
"workspace"
"shared/workspace"
],
"description": "find shared workspace by id\n\u003cbr\u003e",
"operationId": "SharedWorkspaceController.GetAll",
@@ -58,7 +30,7 @@
},
"post": {
"tags": [
"workspace"
"shared/workspace"
],
"description": "create shared workspace\n\u003cbr\u003e",
"operationId": "SharedWorkspaceController.Create",
@@ -80,10 +52,10 @@
}
}
},
"/workspace/rule/": {
"/shared/workspace/rule/": {
"get": {
"tags": [
"workspace/rule"
"shared/workspace/rule"
],
"description": "find rule by id\n\u003cbr\u003e",
"operationId": "RuleController.GetAll",
@@ -95,7 +67,7 @@
},
"post": {
"tags": [
"workspace/rule"
"shared/workspace/rule"
],
"description": "create rule\n\u003cbr\u003e",
"operationId": "RuleController.Create",
@@ -117,10 +89,10 @@
}
}
},
"/workspace/rule/search/{search}": {
"/shared/workspace/rule/search/{search}": {
"get": {
"tags": [
"workspace/rule"
"shared/workspace/rule"
],
"description": "search rule\n\u003cbr\u003e",
"operationId": "RuleController.Search",
@@ -140,10 +112,10 @@
}
}
},
"/workspace/rule/{id}": {
"/shared/workspace/rule/{id}": {
"get": {
"tags": [
"workspace/rule"
"shared/workspace/rule"
],
"description": "find rule by id\n\u003cbr\u003e",
"operationId": "RuleController.Get",
@@ -164,7 +136,7 @@
},
"put": {
"tags": [
"workspace/rule"
"shared/workspace/rule"
],
"description": "create rules\n\u003cbr\u003e",
"operationId": "RuleController.Update",
@@ -194,7 +166,7 @@
},
"delete": {
"tags": [
"workspace/rule"
"shared/workspace/rule"
],
"description": "delete the rule\n\u003cbr\u003e",
"operationId": "RuleController.Delete",
@@ -214,10 +186,10 @@
}
}
},
"/workspace/search/{search}": {
"/shared/workspace/search/{search}": {
"get": {
"tags": [
"workspace"
"shared/workspace"
],
"description": "search shared workspace\n\u003cbr\u003e",
"operationId": "SharedWorkspaceController.Search",
@@ -237,10 +209,10 @@
}
}
},
"/workspace/{id}": {
"/shared/workspace/{id}": {
"get": {
"tags": [
"workspace"
"shared/workspace"
],
"description": "find shared workspace by id\n\u003cbr\u003e",
"operationId": "SharedWorkspaceController.Get",
@@ -261,7 +233,7 @@
},
"put": {
"tags": [
"workspace"
"shared/workspace"
],
"description": "create shared workspaces\n\u003cbr\u003e",
"operationId": "SharedWorkspaceController.Update",
@@ -291,7 +263,7 @@
},
"delete": {
"tags": [
"workspace"
"shared/workspace"
],
"description": "delete the shared workspace\n\u003cbr\u003e",
"operationId": "SharedWorkspaceController.Delete",
@@ -310,6 +282,34 @@
}
}
}
},
"/version/": {
"get": {
"tags": [
"version"
],
"description": "get version\n\u003cbr\u003e",
"operationId": "VersionController.GetAll",
"responses": {
"200": {
"description": ""
}
}
}
},
"/version/status": {
"get": {
"tags": [
"version"
],
"description": "get status\n\u003cbr\u003e",
"operationId": "VersionController.Status",
"responses": {
"200": {
"description": ""
}
}
}
}
},
"definitions": {
@@ -328,11 +328,11 @@
},
"tags": [
{
"name": "workspace",
"name": "shared/workspace",
"description": "Operations about workspace\n"
},
{
"name": "workspace/rule",
"name": "shared/workspace/rule",
"description": "Operations about rule\n"
},
{