Skip to content

Commit

Permalink
docs: update swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gmelodie committed Nov 21, 2022
1 parent bfa9280 commit 02b0653
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 0 deletions.
70 changes: 70 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,76 @@ const docTemplate = `{
}
}
},
"/admin/invites": {
"get": {
"description": "This endpoint is used to list all estuary invites.",
"produces": [
"application/json"
],
"tags": [
"content"
],
"summary": "Get Estuary invites",
"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 is used to create an estuary invite.",
"produces": [
"application/json"
],
"tags": [
"content"
],
"summary": "Create an Estuary invite",
"parameters": [
{
"type": "string",
"description": "Invite code to be created",
"name": "code",
"in": "path"
}
],
"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/peers": {
"get": {
"description": "This endpoint can be used to list all peers on Peering Service",
Expand Down
70 changes: 70 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,76 @@
}
}
},
"/admin/invites": {
"get": {
"description": "This endpoint is used to list all estuary invites.",
"produces": [
"application/json"
],
"tags": [
"content"
],
"summary": "Get Estuary invites",
"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 is used to create an estuary invite.",
"produces": [
"application/json"
],
"tags": [
"content"
],
"summary": "Create an Estuary invite",
"parameters": [
{
"type": "string",
"description": "Invite code to be created",
"name": "code",
"in": "path"
}
],
"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/peers": {
"get": {
"description": "This endpoint can be used to list all peers on Peering Service",
Expand Down
46 changes: 46 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,52 @@ paths:
summary: List autoretrieve servers
tags:
- autoretrieve
/admin/invites:
get:
description: This endpoint is used to list all estuary invites.
produces:
- application/json
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'
summary: Get Estuary invites
tags:
- content
post:
description: This endpoint is used to create an estuary invite.
parameters:
- description: Invite code to be created
in: path
name: code
type: string
produces:
- application/json
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'
summary: Create an Estuary invite
tags:
- content
/admin/peering/peers:
delete:
description: This endpoint can be used to remove a Peer from the Peering Service
Expand Down

0 comments on commit 02b0653

Please sign in to comment.