Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/peering-peers endpoint #616

Open
wants to merge 5 commits into
base: api-v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 112 additions & 112 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,118 +174,6 @@ const docTemplate = `{
}
}
},
"/admin/peering/peers": {
"get": {
"description": "This endpoint can be used to list all peers on Peering Service",
"produces": [
"application/json"
],
"tags": [
"admin",
"peering",
"peers"
],
"summary": "List all Peering peers",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
}
}
},
"post": {
"description": "This endpoint can be used to add a Peer from the Peering Service",
"produces": [
"application/json"
],
"tags": [
"admin",
"peering",
"peers"
],
"summary": "Add peers on Peering Service",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
}
}
},
"delete": {
"description": "This endpoint can be used to remove a Peer from the Peering Service",
"produces": [
"application/json"
],
"tags": [
"admin",
"peering",
"peers"
],
"summary": "Remove peers on Peering Service",
"parameters": [
{
"description": "Peer ids",
"name": "peerIds",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "boolean"
}
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
}
}
}
},
"/admin/peering/start": {
"post": {
"description": "This endpoint can be used to start the Peering Service",
Expand Down Expand Up @@ -2124,6 +2012,118 @@ const docTemplate = `{
}
}
},
"/peering-peers": {
"get": {
"description": "This endpoint can be used to list all peers on Peering Service",
"produces": [
"application/json"
],
"tags": [
"admin",
"peering",
"peers"
],
"summary": "List all Peering peers",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
}
}
},
"post": {
"description": "This endpoint can be used to add a Peer from the Peering Service",
"produces": [
"application/json"
],
"tags": [
"admin",
"peering",
"peers"
],
"summary": "Add peers on Peering Service",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
}
}
},
"delete": {
"description": "This endpoint can be used to remove a Peer from the Peering Service",
"produces": [
"application/json"
],
"tags": [
"admin",
"peering",
"peers"
],
"summary": "Remove peers on Peering Service",
"parameters": [
{
"description": "Peer ids",
"name": "peerIds",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "boolean"
}
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/util.HttpError"
}
}
}
}
},
"/pinning/pins": {
"get": {
"description": "This endpoint lists all pin status objects",
Expand Down
Loading