Simplify but Complete Catalog
This commit is contained in:
@@ -13,287 +13,8 @@
|
||||
"url": "https://www.gnu.org/licenses/agpl-3.0.html"
|
||||
}
|
||||
},
|
||||
"basePath": "/oc/",
|
||||
"basePath": "/oc",
|
||||
"paths": {
|
||||
"/compute/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"compute"
|
||||
],
|
||||
"description": "find compute by id\n\u003cbr\u003e",
|
||||
"operationId": "ComputeController.GetAll",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{compute} models.compute"
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"compute"
|
||||
],
|
||||
"description": "create compute\n\u003cbr\u003e",
|
||||
"operationId": "ComputeController.Create",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "body",
|
||||
"name": "compute",
|
||||
"description": "body for compute content (Json format)",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/json"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{compute} models.compute"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/compute/search/{search}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"compute"
|
||||
],
|
||||
"description": "find compute by key word\n\u003cbr\u003e",
|
||||
"operationId": "ComputeController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "search",
|
||||
"description": "the search you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{compute} models.compute"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/compute/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"compute"
|
||||
],
|
||||
"description": "find compute by id\n\u003cbr\u003e",
|
||||
"operationId": "ComputeController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{compute} models.compute"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"compute"
|
||||
],
|
||||
"description": "create computes\n\u003cbr\u003e",
|
||||
"operationId": "ComputeController.Update",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the compute id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "The compute content",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.compute"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{compute} models.compute"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"compute"
|
||||
],
|
||||
"description": "delete the compute\n\u003cbr\u003e",
|
||||
"operationId": "ComputeController.Delete",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "The id you want to delete",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{compute} delete success!"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/data/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"data"
|
||||
],
|
||||
"description": "find data by id\n\u003cbr\u003e",
|
||||
"operationId": "DataController.GetAll",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{data} models.data"
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"data"
|
||||
],
|
||||
"description": "create data\n\u003cbr\u003e",
|
||||
"operationId": "DataController.Create",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "body",
|
||||
"name": "data",
|
||||
"description": "body for data content (Json format)",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/json"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{data} models.data"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/data/search/{search}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"data"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{data} models.data"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/data/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"data"
|
||||
],
|
||||
"description": "find data by id\n\u003cbr\u003e",
|
||||
"operationId": "DataController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{data} models.data"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"data"
|
||||
],
|
||||
"description": "create datas\n\u003cbr\u003e",
|
||||
"operationId": "DataController.Update",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the data id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "The data content",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.data"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{data} models.data"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"data"
|
||||
],
|
||||
"description": "delete the data\n\u003cbr\u003e",
|
||||
"operationId": "DataController.Delete",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "The id you want to delete",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{data} delete success!"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/enum/booking/status": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -502,154 +223,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/processing/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"processing"
|
||||
],
|
||||
"description": "find processing by id\n\u003cbr\u003e",
|
||||
"operationId": "ProcessingController.GetAll",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{processing} models.processing"
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"processing"
|
||||
],
|
||||
"description": "create processing\n\u003cbr\u003e",
|
||||
"operationId": "ProcessingController.Create",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "body",
|
||||
"name": "processing",
|
||||
"description": "body for processing content (Json format)",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/json"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{processing} models.processing"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/processing/search/{search}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"processing"
|
||||
],
|
||||
"description": "find processing by key word\n\u003cbr\u003e",
|
||||
"operationId": "ProcessingController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "search",
|
||||
"description": "the search you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{processing} models.processing"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/processing/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"processing"
|
||||
],
|
||||
"description": "find processing by id\n\u003cbr\u003e",
|
||||
"operationId": "ProcessingController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{processing} models.processing"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"processing"
|
||||
],
|
||||
"description": "create processings\n\u003cbr\u003e",
|
||||
"operationId": "ProcessingController.Update",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the processing id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "The processing content",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.processing"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{processing} models.processing"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"processing"
|
||||
],
|
||||
"description": "delete the processing\n\u003cbr\u003e",
|
||||
"operationId": "ProcessingController.Delete",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "The id you want to delete",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{processing} delete success!"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/purchase/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -747,40 +320,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/resource/": {
|
||||
"/resource/{type}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"resource"
|
||||
],
|
||||
"description": "find resource by id\n\u003cbr\u003e",
|
||||
"description": "list all resources across all types\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.GetAll",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/resource/search/{search}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"resource"
|
||||
],
|
||||
"description": "find resource by key word\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "search",
|
||||
"description": "the search you want to get",
|
||||
"name": "type",
|
||||
"description": "the type you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
@@ -796,63 +347,25 @@
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/resource/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"resource"
|
||||
],
|
||||
"description": "find resource by id\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/storage/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"storage"
|
||||
],
|
||||
"description": "find storage by id\n\u003cbr\u003e",
|
||||
"operationId": "StorageController.GetAll",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{storage} models.storage"
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"storage"
|
||||
"resource"
|
||||
],
|
||||
"description": "create storage\n\u003cbr\u003e",
|
||||
"operationId": "StorageController.Create",
|
||||
"description": "search resources across all types\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.Post",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "type",
|
||||
"description": "the type you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "storage",
|
||||
"description": "body for storage content (Json format)",
|
||||
"name": "data",
|
||||
"description": "body for data content (Json format)",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/json"
|
||||
@@ -861,19 +374,26 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{storage} models.storage"
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/storage/search/{search}": {
|
||||
"/resource/{type}/search/{search}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"storage"
|
||||
"resource"
|
||||
],
|
||||
"description": "find storage by key word\n\u003cbr\u003e",
|
||||
"operationId": "StorageController.Get",
|
||||
"description": "search resources across all types\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.Search",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "type",
|
||||
"description": "the type you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "search",
|
||||
@@ -890,81 +410,114 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{storage} models.storage"
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/storage/{id}": {
|
||||
"/resource/{type}/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"storage"
|
||||
"resource"
|
||||
],
|
||||
"description": "find storage by id\n\u003cbr\u003e",
|
||||
"operationId": "StorageController.Get",
|
||||
"description": "search resources across all types\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "type",
|
||||
"description": "the type you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{storage} models.storage"
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"storage"
|
||||
"resource"
|
||||
],
|
||||
"description": "create storages\n\u003cbr\u003e",
|
||||
"operationId": "StorageController.Update",
|
||||
"description": "search resources across all types\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.Put",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "type",
|
||||
"description": "the type you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the storage id you want to get",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "The storage content",
|
||||
"name": "data",
|
||||
"description": "body for data content (Json format)",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.storage"
|
||||
"$ref": "#/definitions/json"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{storage} models.storage"
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"storage"
|
||||
"resource"
|
||||
],
|
||||
"description": "delete the storage\n\u003cbr\u003e",
|
||||
"operationId": "StorageController.Delete",
|
||||
"description": "search resources across all types\n\u003cbr\u003e",
|
||||
"operationId": "ResourceController.Delete",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "The id you want to delete",
|
||||
"name": "type",
|
||||
"description": "the type you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{storage} delete success!"
|
||||
"description": "{resource} models.resource"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -996,180 +549,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workflow/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"workflow"
|
||||
],
|
||||
"description": "find workflow by id\n\u003cbr\u003e",
|
||||
"operationId": "WorkflowController.GetAll",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{workflow} models.workflow"
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"workflow"
|
||||
],
|
||||
"description": "create workflow\n\u003cbr\u003e",
|
||||
"operationId": "WorkflowController.Create",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "body",
|
||||
"name": "workflow",
|
||||
"description": "body for workflow content (Json format)",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/json"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{workflow} models.workflow"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workflow/search/{search}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"workflow"
|
||||
],
|
||||
"description": "find workflow by key word\n\u003cbr\u003e",
|
||||
"operationId": "WorkflowController.Search",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "search",
|
||||
"description": "the search you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "is_draft",
|
||||
"description": "draft wished",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{workflow} models.workflow"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workflow/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"workflow"
|
||||
],
|
||||
"description": "find workflow by id\n\u003cbr\u003e",
|
||||
"operationId": "WorkflowController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{workflow} models.workflow"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"workflow"
|
||||
],
|
||||
"description": "create workflows\n\u003cbr\u003e",
|
||||
"operationId": "WorkflowController.Update",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the workflow id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "The workflow content",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.workflow"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{workflow} models.workflow"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"workflow"
|
||||
],
|
||||
"description": "delete the workflow\n\u003cbr\u003e",
|
||||
"operationId": "WorkflowController.Delete",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "The id you want to delete",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{workflow} delete success!"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"json": {
|
||||
"title": "json",
|
||||
"type": "object"
|
||||
},
|
||||
"models.compute": {
|
||||
"title": "compute",
|
||||
"type": "object"
|
||||
},
|
||||
"models.data": {
|
||||
"title": "data",
|
||||
"type": "object"
|
||||
},
|
||||
"models.processing": {
|
||||
"title": "processing",
|
||||
"type": "object"
|
||||
},
|
||||
"models.storage": {
|
||||
"title": "storage",
|
||||
"type": "object"
|
||||
},
|
||||
"models.workflow": {
|
||||
"title": "workflow",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -1183,27 +568,7 @@
|
||||
},
|
||||
{
|
||||
"name": "resource",
|
||||
"description": "Operations about resource\n"
|
||||
},
|
||||
{
|
||||
"name": "data",
|
||||
"description": "Operations about data\n"
|
||||
},
|
||||
{
|
||||
"name": "compute",
|
||||
"description": "Operations about compute\n"
|
||||
},
|
||||
{
|
||||
"name": "storage",
|
||||
"description": "Operations about storage\n"
|
||||
},
|
||||
{
|
||||
"name": "processing",
|
||||
"description": "Operations about processing\n"
|
||||
},
|
||||
{
|
||||
"name": "workflow",
|
||||
"description": "Operations about workflow\n"
|
||||
"description": "ResourceController aggregates all resource types.\n"
|
||||
},
|
||||
{
|
||||
"name": "enum",
|
||||
|
||||
@@ -10,212 +10,8 @@ info:
|
||||
license:
|
||||
name: AGPL
|
||||
url: https://www.gnu.org/licenses/agpl-3.0.html
|
||||
basePath: /oc/
|
||||
basePath: /oc
|
||||
paths:
|
||||
/compute/:
|
||||
get:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
find compute by id
|
||||
<br>
|
||||
operationId: ComputeController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
post:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
create compute
|
||||
<br>
|
||||
operationId: ComputeController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: compute
|
||||
description: body for compute content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
/compute/{id}:
|
||||
get:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
find compute by id
|
||||
<br>
|
||||
operationId: ComputeController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
put:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
create computes
|
||||
<br>
|
||||
operationId: ComputeController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the compute id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The compute content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.compute'
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
delete:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
delete the compute
|
||||
<br>
|
||||
operationId: ComputeController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} delete success!'
|
||||
/compute/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
find compute by key word
|
||||
<br>
|
||||
operationId: ComputeController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: search
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
/data/:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
find data by id
|
||||
<br>
|
||||
operationId: DataController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
post:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
create data
|
||||
<br>
|
||||
operationId: DataController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
/data/{id}:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
find data by id
|
||||
<br>
|
||||
operationId: DataController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
put:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
create datas
|
||||
<br>
|
||||
operationId: DataController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the data id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The data content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.data'
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
delete:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
delete the data
|
||||
<br>
|
||||
operationId: DataController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} delete success!'
|
||||
/data/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
/enum/booking/status:
|
||||
get:
|
||||
tags:
|
||||
@@ -378,115 +174,6 @@ paths:
|
||||
description: '{compute} models.workflow'
|
||||
"406":
|
||||
description: '{string} string "Bad request"'
|
||||
/processing/:
|
||||
get:
|
||||
tags:
|
||||
- processing
|
||||
description: |-
|
||||
find processing by id
|
||||
<br>
|
||||
operationId: ProcessingController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
post:
|
||||
tags:
|
||||
- processing
|
||||
description: |-
|
||||
create processing
|
||||
<br>
|
||||
operationId: ProcessingController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: processing
|
||||
description: body for processing content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
/processing/{id}:
|
||||
get:
|
||||
tags:
|
||||
- processing
|
||||
description: |-
|
||||
find processing by id
|
||||
<br>
|
||||
operationId: ProcessingController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
put:
|
||||
tags:
|
||||
- processing
|
||||
description: |-
|
||||
create processings
|
||||
<br>
|
||||
operationId: ProcessingController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the processing id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The processing content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.processing'
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
delete:
|
||||
tags:
|
||||
- processing
|
||||
description: |-
|
||||
delete the processing
|
||||
<br>
|
||||
operationId: ProcessingController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} delete success!'
|
||||
/processing/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- processing
|
||||
description: |-
|
||||
find processing by key word
|
||||
<br>
|
||||
operationId: ProcessingController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: search
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
/purchase/:
|
||||
get:
|
||||
tags:
|
||||
@@ -558,51 +245,18 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
/resource/:
|
||||
/resource/{type}:
|
||||
get:
|
||||
tags:
|
||||
- resource
|
||||
description: |-
|
||||
find resource by id
|
||||
list all resources across all types
|
||||
<br>
|
||||
operationId: ResourceController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/resource/{id}:
|
||||
get:
|
||||
tags:
|
||||
- resource
|
||||
description: |-
|
||||
find resource by id
|
||||
<br>
|
||||
operationId: ResourceController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/resource/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- resource
|
||||
description: |-
|
||||
find resource by key word
|
||||
<br>
|
||||
operationId: ResourceController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: search
|
||||
description: the search you want to get
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
@@ -612,103 +266,120 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/storage/:
|
||||
get:
|
||||
tags:
|
||||
- storage
|
||||
description: |-
|
||||
find storage by id
|
||||
<br>
|
||||
operationId: StorageController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
post:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
create storage
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Create
|
||||
operationId: ResourceController.Post
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: storage
|
||||
description: body for storage content (Json format)
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
/storage/{id}:
|
||||
description: '{resource} models.resource'
|
||||
/resource/{type}/{id}:
|
||||
get:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
find storage by id
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Get
|
||||
operationId: ResourceController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
description: '{resource} models.resource'
|
||||
put:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
create storages
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Update
|
||||
operationId: ResourceController.Put
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: id
|
||||
description: the storage id you want to get
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The storage content
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.storage'
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
description: '{resource} models.resource'
|
||||
delete:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
delete the storage
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Delete
|
||||
operationId: ResourceController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} delete success!'
|
||||
/storage/search/{search}:
|
||||
description: '{resource} models.resource'
|
||||
/resource/{type}/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
find storage by key word
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Get
|
||||
operationId: ResourceController.Search
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: search
|
||||
description: the search you want to get
|
||||
@@ -720,7 +391,7 @@ paths:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
description: '{resource} models.resource'
|
||||
/version/:
|
||||
get:
|
||||
tags:
|
||||
@@ -743,134 +414,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
/workflow/:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
find workflow by id
|
||||
<br>
|
||||
operationId: WorkflowController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
post:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
create workflow
|
||||
<br>
|
||||
operationId: WorkflowController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: workflow
|
||||
description: body for workflow content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
/workflow/{id}:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
find workflow by id
|
||||
<br>
|
||||
operationId: WorkflowController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
put:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
create workflows
|
||||
<br>
|
||||
operationId: WorkflowController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the workflow id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The workflow content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
delete:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
delete the workflow
|
||||
<br>
|
||||
operationId: WorkflowController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} delete success!'
|
||||
/workflow/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
find workflow by key word
|
||||
<br>
|
||||
operationId: WorkflowController.Search
|
||||
parameters:
|
||||
- in: path
|
||||
name: search
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
definitions:
|
||||
json:
|
||||
title: json
|
||||
type: object
|
||||
models.compute:
|
||||
title: compute
|
||||
type: object
|
||||
models.data:
|
||||
title: data
|
||||
type: object
|
||||
models.processing:
|
||||
title: processing
|
||||
type: object
|
||||
models.storage:
|
||||
title: storage
|
||||
type: object
|
||||
models.workflow:
|
||||
title: workflow
|
||||
type: object
|
||||
tags:
|
||||
- name: generic
|
||||
description: |
|
||||
@@ -880,22 +427,7 @@ tags:
|
||||
Operations about compute
|
||||
- name: resource
|
||||
description: |
|
||||
Operations about resource
|
||||
- name: data
|
||||
description: |
|
||||
Operations about data
|
||||
- name: compute
|
||||
description: |
|
||||
Operations about compute
|
||||
- name: storage
|
||||
description: |
|
||||
Operations about storage
|
||||
- name: processing
|
||||
description: |
|
||||
Operations about processing
|
||||
- name: workflow
|
||||
description: |
|
||||
Operations about workflow
|
||||
ResourceController aggregates all resource types.
|
||||
- name: enum
|
||||
description: |
|
||||
Operations about resource
|
||||
|
||||
Reference in New Issue
Block a user