PEER -> SearchExtended

This commit is contained in:
mr
2026-04-08 11:29:16 +02:00
parent 781b4e3add
commit 4484c2d5d9
8 changed files with 296 additions and 58 deletions

View File

@@ -28,6 +28,18 @@
"name": "is_draft",
"description": "false",
"type": "string"
},
{
"in": "query",
"name": "offset",
"description": "false",
"type": "string"
},
{
"in": "query",
"name": "limit",
"description": "false",
"type": "string"
}
],
"responses": {
@@ -37,6 +49,70 @@
}
}
},
"/add/{id}": {
"post": {
"tags": [
"oc-peer/controllersPeerController"
],
"description": "add peer by peerid\n\u003cbr\u003e",
"operationId": "PeerController.add",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the peer id you want to blacklist",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{peer} models.peer"
}
}
}
},
"/extended/search": {
"get": {
"tags": [
"oc-peer/controllersPeerController"
],
"description": "search workspace\n\u003cbr\u003e",
"operationId": "PeerController.Search",
"parameters": [
{
"in": "path",
"name": "search",
"description": "the word search you want to get",
"required": true,
"type": "string"
},
{
"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"
}
],
"responses": {
"200": {
"description": "{workspace} models.workspace"
}
}
}
},
"/search/{search}": {
"get": {
"tags": [
@@ -57,6 +133,18 @@
"name": "is_draft",
"description": "false",
"type": "string"
},
{
"in": "query",
"name": "offset",
"description": "false",
"type": "string"
},
{
"in": "query",
"name": "limit",
"description": "false",
"type": "string"
}
],
"responses": {
@@ -148,6 +236,27 @@
"description": "{peer} models.peer"
}
}
},
"delete": {
"tags": [
"oc-peer/controllersPeerController"
],
"description": "delete peer by peerid\n\u003cbr\u003e",
"operationId": "PeerController.Delete",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the peer id you want to delete state",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{peer} models.peer"
}
}
}
},
"/{id}/blacklist": {
@@ -218,29 +327,6 @@
}
}
}
},
"/{id}/undo_state": {
"post": {
"tags": [
"oc-peer/controllersPeerController"
],
"description": "delete state peer by peerid\n\u003cbr\u003e",
"operationId": "PeerController.DeleteState",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the peer id you want to delete state",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{peer} models.peer"
}
}
}
}
},
"definitions": {

View File

@@ -25,6 +25,14 @@ paths:
name: is_draft
description: "false"
type: string
- in: query
name: offset
description: "false"
type: string
- in: query
name: limit
description: "false"
type: string
responses:
"200":
description: '{peer} models.peer'
@@ -45,6 +53,22 @@ paths:
responses:
"200":
description: '{peer} models.peer'
delete:
tags:
- oc-peer/controllersPeerController
description: |-
delete peer by peerid
<br>
operationId: PeerController.Delete
parameters:
- in: path
name: id
description: the peer id you want to delete state
required: true
type: string
responses:
"200":
description: '{peer} models.peer'
/{id}/blacklist:
post:
tags:
@@ -96,23 +120,52 @@ paths:
responses:
"200":
description: '{peer} models.peer'
/{id}/undo_state:
/add/{id}:
post:
tags:
- oc-peer/controllersPeerController
description: |-
delete state peer by peerid
add peer by peerid
<br>
operationId: PeerController.DeleteState
operationId: PeerController.add
parameters:
- in: path
name: id
description: the peer id you want to delete state
description: the peer id you want to blacklist
required: true
type: string
responses:
"200":
description: '{peer} models.peer'
/extended/search:
get:
tags:
- oc-peer/controllersPeerController
description: |-
search workspace
<br>
operationId: PeerController.Search
parameters:
- in: path
name: search
description: the word search you want to get
required: true
type: string
- 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
responses:
"200":
description: '{workspace} models.workspace'
/search/{search}:
get:
tags:
@@ -131,6 +184,14 @@ paths:
name: is_draft
description: "false"
type: string
- in: query
name: offset
description: "false"
type: string
- in: query
name: limit
description: "false"
type: string
responses:
"200":
description: '{workspace} models.workspace'