working oc-catalog + enum ref

This commit is contained in:
mr
2025-01-17 17:03:32 +01:00
parent 4b8f129564
commit 99b42f6d02
14 changed files with 1295 additions and 361 deletions

View File

@@ -15,140 +15,6 @@
},
"basePath": "/oc/",
"paths": {
"/data/": {
"get": {
"tags": [
"data"
],
"description": "find data by id\n\u003cbr\u003e",
"operationId": "DataController.GetAll",
"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"
],
"description": "find data by key word\n\u003cbr\u003e",
"operationId": "DataController.Get",
"parameters": [
{
"in": "path",
"name": "search",
"description": "the search you want to get",
"required": true,
"type": "string"
}
],
"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!"
}
}
}
},
"/compute/": {
"get": {
"tags": [
@@ -156,6 +22,14 @@
],
"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"
@@ -200,6 +74,12 @@
"description": "the search you want to get",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "is_draft",
"description": "draft wished",
"type": "string"
}
],
"responses": {
@@ -283,6 +163,319 @@
}
}
},
"/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": [
"enum"
],
"description": "get list of Infrastructure\n\u003cbr\u003e",
"operationId": "EnumController.BookingStatus",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/infrastructure": {
"get": {
"tags": [
"enum"
],
"description": "get list of Infrastructure\n\u003cbr\u003e",
"operationId": "EnumController.EnumInfrastructure",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/pricing/refund/type": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumRefundType",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/pricing/strategy/buy": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumStrategyBuy",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/pricing/strategy/data": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumStrategyData",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/pricing/strategy/privilege": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumStrategyPrivilege",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/pricing/strategy/privilege/storage": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumStrategyPrivilegeStorage",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/pricing/strategy/storage": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumStrategyStorage",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/pricing/strategy/time": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumStrategyTime",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/resource/type": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumResourceType",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/status": {
"get": {
"tags": [
"enum"
],
"description": "get list of status\n\u003cbr\u003e",
"operationId": "EnumController.EnumStatus",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/storage/size": {
"get": {
"tags": [
"enum"
],
"description": "get list of StorageSize\n\u003cbr\u003e",
"operationId": "EnumController.EnumStorageSize",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/enum/storage/type": {
"get": {
"tags": [
"enum"
],
"description": "get list of StorageType\n\u003cbr\u003e",
"operationId": "EnumController.EnumStorageType",
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/processing/": {
"get": {
"tags": [
@@ -290,6 +483,14 @@
],
"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"
@@ -334,6 +535,12 @@
"description": "the search you want to get",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "is_draft",
"description": "draft wished",
"type": "string"
}
],
"responses": {
@@ -424,6 +631,14 @@
],
"description": "find resource by id\n\u003cbr\u003e",
"operationId": "ResourceController.GetAll",
"parameters": [
{
"in": "query",
"name": "is_draft",
"description": "draft wished",
"type": "string"
}
],
"responses": {
"200": {
"description": "{resource} models.resource"
@@ -445,6 +660,12 @@
"description": "the search you want to get",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "is_draft",
"description": "draft wished",
"type": "string"
}
],
"responses": {
@@ -505,6 +726,14 @@
],
"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"
@@ -549,6 +778,12 @@
"description": "the search you want to get",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "is_draft",
"description": "draft wished",
"type": "string"
}
],
"responses": {
@@ -667,6 +902,14 @@
],
"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"
@@ -711,6 +954,12 @@
"description": "the search you want to get",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "is_draft",
"description": "draft wished",
"type": "string"
}
],
"responses": {
@@ -800,14 +1049,14 @@
"title": "json",
"type": "object"
},
"models.data": {
"title": "data",
"type": "object"
},
"models.compute": {
"title": "compute",
"type": "object"
},
"models.data": {
"title": "data",
"type": "object"
},
"models.processing": {
"title": "processing",
"type": "object"
@@ -846,6 +1095,10 @@
"name": "workflow",
"description": "Operations about workflow\n"
},
{
"name": "enum",
"description": "Operations about resource\n"
},
{
"name": "version",
"description": "VersionController operations for Version\n"

View File

@@ -12,106 +12,6 @@ info:
url: https://www.gnu.org/licenses/agpl-3.0.html
basePath: /oc/
paths:
/data/:
get:
tags:
- data
description: |-
find data by id
<br>
operationId: DataController.GetAll
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
description: |-
find data by key word
<br>
operationId: DataController.Get
parameters:
- in: path
name: search
description: the search you want to get
required: true
type: string
responses:
"200":
description: '{data} models.data'
/compute/:
get:
tags:
@@ -120,6 +20,11 @@ paths:
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'
@@ -209,9 +114,251 @@ paths:
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:
- enum
description: |-
get list of Infrastructure
<br>
operationId: EnumController.BookingStatus
responses:
"200":
description: '{resource} models.resource'
/enum/infrastructure:
get:
tags:
- enum
description: |-
get list of Infrastructure
<br>
operationId: EnumController.EnumInfrastructure
responses:
"200":
description: '{resource} models.resource'
/enum/pricing/refund/type:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumRefundType
responses:
"200":
description: '{resource} models.resource'
/enum/pricing/strategy/buy:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumStrategyBuy
responses:
"200":
description: '{resource} models.resource'
/enum/pricing/strategy/data:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumStrategyData
responses:
"200":
description: '{resource} models.resource'
/enum/pricing/strategy/privilege:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumStrategyPrivilege
responses:
"200":
description: '{resource} models.resource'
/enum/pricing/strategy/privilege/storage:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumStrategyPrivilegeStorage
responses:
"200":
description: '{resource} models.resource'
/enum/pricing/strategy/storage:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumStrategyStorage
responses:
"200":
description: '{resource} models.resource'
/enum/pricing/strategy/time:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumStrategyTime
responses:
"200":
description: '{resource} models.resource'
/enum/resource/type:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumResourceType
responses:
"200":
description: '{resource} models.resource'
/enum/status:
get:
tags:
- enum
description: |-
get list of status
<br>
operationId: EnumController.EnumStatus
responses:
"200":
description: '{resource} models.resource'
/enum/storage/size:
get:
tags:
- enum
description: |-
get list of StorageSize
<br>
operationId: EnumController.EnumStorageSize
responses:
"200":
description: '{resource} models.resource'
/enum/storage/type:
get:
tags:
- enum
description: |-
get list of StorageType
<br>
operationId: EnumController.EnumStorageType
responses:
"200":
description: '{resource} models.resource'
/processing/:
get:
tags:
@@ -220,6 +367,11 @@ paths:
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'
@@ -309,6 +461,10 @@ paths:
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'
@@ -320,6 +476,11 @@ paths:
find resource by id
<br>
operationId: ResourceController.GetAll
parameters:
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{resource} models.resource'
@@ -370,6 +531,10 @@ paths:
description: the search you want to get
required: true
type: string
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{resource} models.resource'
@@ -381,6 +546,11 @@ paths:
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'
@@ -470,6 +640,10 @@ paths:
description: the search you want to get
required: true
type: string
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{storage} models.storage'
@@ -503,6 +677,11 @@ paths:
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'
@@ -592,6 +771,10 @@ paths:
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'
@@ -599,12 +782,12 @@ definitions:
json:
title: json
type: object
models.data:
title: data
type: object
models.compute:
title: compute
type: object
models.data:
title: data
type: object
models.processing:
title: processing
type: object
@@ -633,6 +816,9 @@ tags:
- name: workflow
description: |
Operations about workflow
- name: enum
description: |
Operations about resource
- name: version
description: |
VersionController operations for Version