update
This commit is contained in:
@@ -1,9 +1,57 @@
|
||||
basePath: /api/v1
|
||||
definitions:
|
||||
model.Message:
|
||||
properties:
|
||||
message:
|
||||
example: message
|
||||
type: string
|
||||
type: object
|
||||
model.PowerSupply:
|
||||
properties:
|
||||
3v_load:
|
||||
type: integer
|
||||
3v_watts:
|
||||
type: integer
|
||||
5v_load:
|
||||
type: integer
|
||||
5v_watts:
|
||||
type: integer
|
||||
12v_load:
|
||||
type: integer
|
||||
12v_watts:
|
||||
type: integer
|
||||
capacity:
|
||||
type: string
|
||||
efficiency:
|
||||
type: integer
|
||||
fan_rpm:
|
||||
type: integer
|
||||
load:
|
||||
type: integer
|
||||
poweredon:
|
||||
type: string
|
||||
poweredon_raw:
|
||||
type: string
|
||||
product:
|
||||
type: string
|
||||
temp1:
|
||||
type: integer
|
||||
temp2:
|
||||
type: integer
|
||||
uptime:
|
||||
type: string
|
||||
uptime_raw:
|
||||
type: string
|
||||
vendor:
|
||||
type: string
|
||||
watts:
|
||||
type: integer
|
||||
type: object
|
||||
info:
|
||||
contact:
|
||||
email: support@swagger.io
|
||||
email: developerdurp@durp.info
|
||||
name: API Support
|
||||
url: http://www.swagger.io/support
|
||||
url: https://durp.info
|
||||
description: API for Durp's needs
|
||||
license:
|
||||
name: Apache 2.0
|
||||
@@ -22,7 +70,11 @@ paths:
|
||||
"200":
|
||||
description: response
|
||||
schema:
|
||||
type: string
|
||||
$ref: '#/definitions/model.Message'
|
||||
"400":
|
||||
description: error
|
||||
schema:
|
||||
$ref: '#/definitions/model.Message'
|
||||
summary: Generate Health status
|
||||
tags:
|
||||
- health
|
||||
@@ -38,12 +90,16 @@ paths:
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- text/plain
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
schema:
|
||||
type: string
|
||||
$ref: '#/definitions/model.Message'
|
||||
"400":
|
||||
description: error
|
||||
schema:
|
||||
$ref: '#/definitions/model.Message'
|
||||
summary: Gerneral ChatGPT
|
||||
tags:
|
||||
- openai
|
||||
@@ -59,30 +115,19 @@ paths:
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- text/plain
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
schema:
|
||||
type: string
|
||||
$ref: '#/definitions/model.Message'
|
||||
"400":
|
||||
description: error
|
||||
schema:
|
||||
$ref: '#/definitions/model.Message'
|
||||
summary: Travel Agent ChatGPT
|
||||
tags:
|
||||
- openai
|
||||
/token/GenerateToken:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Get the health of the API
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
schema:
|
||||
type: string
|
||||
summary: Generate Health status
|
||||
tags:
|
||||
- token
|
||||
/unraid/powerusage:
|
||||
get:
|
||||
consumes:
|
||||
@@ -94,13 +139,12 @@ paths:
|
||||
"200":
|
||||
description: response
|
||||
schema:
|
||||
type: string
|
||||
$ref: '#/definitions/model.PowerSupply'
|
||||
"412":
|
||||
description: error
|
||||
schema:
|
||||
$ref: '#/definitions/model.Message'
|
||||
summary: Unraid PSU Stats
|
||||
tags:
|
||||
- unraid
|
||||
securityDefinitions:
|
||||
ApiKeyAuth:
|
||||
in: header
|
||||
name: Authorization
|
||||
type: apiKey
|
||||
swagger: "2.0"
|
||||
|
||||
Reference in New Issue
Block a user