Local Update Neo Peer
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "oc-peers",
|
||||
"title": "oc-peer",
|
||||
"description": "Manage OpenCloud peers\n",
|
||||
"version": "1.0.0",
|
||||
"termsOfService": "http://cloud.o-forge.io/",
|
||||
@@ -9,16 +9,16 @@
|
||||
"email": "admin@o-cloud.io"
|
||||
},
|
||||
"license": {
|
||||
"name": "MIT",
|
||||
"url": "https://opensource.org/license/mit"
|
||||
"name": "AGPL",
|
||||
"url": "https://www.gnu.org/licenses/agpl-3.0.html"
|
||||
}
|
||||
},
|
||||
"basePath": "/oc/",
|
||||
"paths": {
|
||||
"/peer/": {
|
||||
"/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"peer"
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "find all peer\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.GetAll",
|
||||
@@ -29,10 +29,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/peer/search/{search}": {
|
||||
"/search/{search}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"peer"
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "search workspace\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.Search",
|
||||
@@ -52,62 +52,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/peer/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"peer"
|
||||
],
|
||||
"description": "find peer by peerid\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the peer id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{peer} models.peer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"peer"
|
||||
],
|
||||
"description": "create peers\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.Update",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the peer id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "The peer content",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.peer"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.peer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/status/": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -145,6 +89,62 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "find peer by peerid\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the peer id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{peer} models.peer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "create peers\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.Update",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the peer id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "The peer content",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.peer"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.peer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
@@ -163,7 +163,7 @@
|
||||
"description": "Operations about workflow\n"
|
||||
},
|
||||
{
|
||||
"name": "peer",
|
||||
"name": "oc-peer/controllersPeerController",
|
||||
"description": "Operations about workflow\n"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
swagger: "2.0"
|
||||
info:
|
||||
title: oc-peers
|
||||
title: oc-peer
|
||||
description: |
|
||||
Manage OpenCloud peers
|
||||
version: 1.0.0
|
||||
@@ -8,14 +8,14 @@ info:
|
||||
contact:
|
||||
email: admin@o-cloud.io
|
||||
license:
|
||||
name: MIT
|
||||
url: https://opensource.org/license/mit
|
||||
name: AGPL
|
||||
url: https://www.gnu.org/licenses/agpl-3.0.html
|
||||
basePath: /oc/
|
||||
paths:
|
||||
/peer/:
|
||||
/:
|
||||
get:
|
||||
tags:
|
||||
- peer
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
find all peer
|
||||
<br>
|
||||
@@ -23,10 +23,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/peer/{id}:
|
||||
/{id}:
|
||||
get:
|
||||
tags:
|
||||
- peer
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
find peer by peerid
|
||||
<br>
|
||||
@@ -42,7 +42,7 @@ paths:
|
||||
description: '{peer} models.peer'
|
||||
put:
|
||||
tags:
|
||||
- peer
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
create peers
|
||||
<br>
|
||||
@@ -64,10 +64,10 @@ paths:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/models.peer'
|
||||
/peer/search/{search}:
|
||||
/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- peer
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
search workspace
|
||||
<br>
|
||||
@@ -120,7 +120,7 @@ tags:
|
||||
- name: status
|
||||
description: |
|
||||
Operations about workflow
|
||||
- name: peer
|
||||
- name: oc-peer/controllersPeerController
|
||||
description: |
|
||||
Operations about workflow
|
||||
- name: version
|
||||
|
||||
Reference in New Issue
Block a user