Skip to content

Commit

Permalink
docs: update swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LucRoy committed May 10, 2023
1 parent 42a3d0e commit b8f7921
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3291,6 +3291,38 @@ const docTemplate = `{
}
}
},
"/user/utilization": {
"get": {
"description": "This endpoint is used to get utilization stats for the current user.",
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "Gets User Utilization Stats",
"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"
}
}
}
}
},
"/viewer": {
"get": {
"description": "This endpoint fetches viewer details such as username, permissions, address, owned miners, user settings etc.",
Expand Down
32 changes: 32 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3284,6 +3284,38 @@
}
}
},
"/user/utilization": {
"get": {
"description": "This endpoint is used to get utilization stats for the current user.",
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "Gets User Utilization Stats",
"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"
}
}
}
}
},
"/viewer": {
"get": {
"description": "This endpoint fetches viewer details such as username, permissions, address, owned miners, user settings etc.",
Expand Down
21 changes: 21 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2549,6 +2549,27 @@ paths:
summary: Get stats for the current user
tags:
- User
/user/utilization:
get:
description: This endpoint is used to get utilization stats for the current user.
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: Gets User Utilization Stats
tags:
- User
/viewer:
get:
description: This endpoint fetches viewer details such as username, permissions, address, owned miners, user settings etc.
Expand Down

0 comments on commit b8f7921

Please sign in to comment.