add API controllers

This commit is contained in:
mr
2026-04-10 15:20:41 +02:00
parent 74919994c2
commit e3e29295ee
6 changed files with 226 additions and 4 deletions

View File

@@ -245,6 +245,81 @@
}
}
},
"/{type}": {
"post": {
"tags": [
"oc-datacenter/controllersDatacenterController"
],
"description": "search resources across all types\n\u003cbr\u003e",
"operationId": "DatacenterController.Post",
"parameters": [
{
"in": "path",
"name": "type",
"description": "the type you want to get",
"required": true,
"type": "string"
},
{
"in": "body",
"name": "data",
"description": "body for data content (Json format)",
"required": true,
"schema": {
"$ref": "#/definitions/json"
}
}
],
"responses": {
"200": {
"description": "{resource} models.resource"
}
}
}
},
"/{type}/extended/search": {
"post": {
"tags": [
"oc-datacenter/controllersDatacenterController"
],
"description": "search workspace\n\u003cbr\u003e",
"operationId": "DatacenterController.Search",
"parameters": [
{
"in": "query",
"name": "is_draft",
"description": "false",
"type": "string"
},
{
"in": "query",
"name": "offset",
"description": "false",
"type": "string"
},
{
"in": "query",
"name": "limit",
"description": "false",
"type": "string"
},
{
"in": "body",
"name": "data",
"description": "body for data content (Json format)",
"required": true,
"schema": {
"$ref": "#/definitions/json"
}
}
],
"responses": {
"200": {
"description": "{workspace} models.workspace"
}
}
}
},
"/{type}/search/{search}": {
"get": {
"tags": [
@@ -368,6 +443,10 @@
"allowed_image.AllowedImage": {
"title": "AllowedImage",
"type": "object"
},
"json": {
"title": "json",
"type": "object"
}
},
"tags": [

View File

@@ -41,6 +41,29 @@ paths:
responses:
"200":
description: '{booking} models.booking'
/{type}:
post:
tags:
- oc-datacenter/controllersDatacenterController
description: |-
search resources across all types
<br>
operationId: DatacenterController.Post
parameters:
- in: path
name: type
description: the type you want to get
required: true
type: string
- in: body
name: data
description: body for data content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{resource} models.resource'
/{type}/{id}:
get:
tags:
@@ -92,6 +115,36 @@ paths:
responses:
"200":
description: '{booking} models.booking'
/{type}/extended/search:
post:
tags:
- oc-datacenter/controllersDatacenterController
description: |-
search workspace
<br>
operationId: DatacenterController.Search
parameters:
- in: query
name: is_draft
description: "false"
type: string
- in: query
name: offset
description: "false"
type: string
- in: query
name: limit
description: "false"
type: string
- in: body
name: data
description: body for data content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{workspace} models.workspace'
/{type}/search/{search}:
get:
tags:
@@ -269,6 +322,9 @@ definitions:
allowed_image.AllowedImage:
title: AllowedImage
type: object
json:
title: json
type: object
tags:
- name: oc-datacenter/controllersDatacenterController
description: |