fully Decentralized functionnal OC-PEER

This commit is contained in:
mr
2026-03-04 11:58:13 +01:00
parent c210522502
commit a91a9d91b6
11 changed files with 417 additions and 146 deletions

View File

@@ -15,6 +15,35 @@
},
"basePath": "/oc/",
"paths": {
"/decentralized/search/{search}": {
"get": {
"tags": [
"oc-peer/controllersPeerController"
],
"description": "find workflow by key word\n\u003cbr\u003e",
"operationId": "PeerController.Search Decentralized",
"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"
}
}
}
},
"/peer": {
"get": {
"tags": [
@@ -66,29 +95,6 @@
}
}
},
"/peer/{from}/link/{relation}": {
"get": {
"tags": [
"oc-peer/controllersPeerController"
],
"description": "find peer by peerid\n\u003cbr\u003e",
"operationId": "PeerController.Link",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the peer id you want to get",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{peer} models.peer"
}
}
}
},
"/peer/{id}": {
"get": {
"tags": [
@@ -204,6 +210,29 @@
}
}
},
"/peer/{id}/valid": {
"get": {
"tags": [
"oc-peer/controllersPeerController"
],
"description": "find peer by peerid\n\u003cbr\u003e",
"operationId": "PeerController.Valid",
"parameters": [
{
"in": "path",
"name": "id",
"description": "the peer id you want to get",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "{peer} models.peer"
}
}
}
},
"/status/": {
"post": {
"tags": [