mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
@@ -566,6 +566,9 @@ const docTemplate = `{
|
|||||||
"Bearer": []
|
"Bearer": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"consumes": [
|
||||||
|
"multipart/form-data"
|
||||||
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -737,6 +740,9 @@ const docTemplate = `{
|
|||||||
"Bearer": []
|
"Bearer": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"consumes": [
|
||||||
|
"multipart/form-data"
|
||||||
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -921,6 +927,13 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"summary": "Get Maintenance Log",
|
"summary": "Get Maintenance Log",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Item ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"enum": [
|
"enum": [
|
||||||
"scheduled",
|
"scheduled",
|
||||||
@@ -963,6 +976,13 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"summary": "Create Maintenance Entry",
|
"summary": "Create Maintenance Entry",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Item ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Entry Data",
|
"description": "Entry Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
@@ -1434,6 +1454,13 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"summary": "Update Maintenance Entry",
|
"summary": "Update Maintenance Entry",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Maintenance ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Entry Data",
|
"description": "Entry Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
@@ -1466,6 +1493,15 @@ const docTemplate = `{
|
|||||||
"Maintenance"
|
"Maintenance"
|
||||||
],
|
],
|
||||||
"summary": "Delete Maintenance Entry",
|
"summary": "Delete Maintenance Entry",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Maintenance ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"204": {
|
"204": {
|
||||||
"description": "No Content"
|
"description": "No Content"
|
||||||
@@ -1548,13 +1584,6 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"summary": "Test Notifier",
|
"summary": "Test Notifier",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "Notifier ID",
|
|
||||||
"name": "id",
|
|
||||||
"in": "path",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "URL",
|
"description": "URL",
|
||||||
@@ -1752,20 +1781,6 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"summary": "User Login",
|
"summary": "User Login",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"example": "admin@admin.com",
|
|
||||||
"description": "string",
|
|
||||||
"name": "username",
|
|
||||||
"in": "formData"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"example": "admin",
|
|
||||||
"description": "string",
|
|
||||||
"name": "password",
|
|
||||||
"in": "formData"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "Login Data",
|
"description": "Login Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
@@ -3050,13 +3065,15 @@ const docTemplate = `{
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "admin"
|
||||||
},
|
},
|
||||||
"stayLoggedIn": {
|
"stayLoggedIn": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "admin@admin.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -559,6 +559,9 @@
|
|||||||
"Bearer": []
|
"Bearer": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"consumes": [
|
||||||
|
"multipart/form-data"
|
||||||
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -730,6 +733,9 @@
|
|||||||
"Bearer": []
|
"Bearer": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"consumes": [
|
||||||
|
"multipart/form-data"
|
||||||
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -914,6 +920,13 @@
|
|||||||
],
|
],
|
||||||
"summary": "Get Maintenance Log",
|
"summary": "Get Maintenance Log",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Item ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"enum": [
|
"enum": [
|
||||||
"scheduled",
|
"scheduled",
|
||||||
@@ -956,6 +969,13 @@
|
|||||||
],
|
],
|
||||||
"summary": "Create Maintenance Entry",
|
"summary": "Create Maintenance Entry",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Item ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Entry Data",
|
"description": "Entry Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
@@ -1427,6 +1447,13 @@
|
|||||||
],
|
],
|
||||||
"summary": "Update Maintenance Entry",
|
"summary": "Update Maintenance Entry",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Maintenance ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Entry Data",
|
"description": "Entry Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
@@ -1459,6 +1486,15 @@
|
|||||||
"Maintenance"
|
"Maintenance"
|
||||||
],
|
],
|
||||||
"summary": "Delete Maintenance Entry",
|
"summary": "Delete Maintenance Entry",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Maintenance ID",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"204": {
|
"204": {
|
||||||
"description": "No Content"
|
"description": "No Content"
|
||||||
@@ -1541,13 +1577,6 @@
|
|||||||
],
|
],
|
||||||
"summary": "Test Notifier",
|
"summary": "Test Notifier",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "Notifier ID",
|
|
||||||
"name": "id",
|
|
||||||
"in": "path",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "URL",
|
"description": "URL",
|
||||||
@@ -1745,20 +1774,6 @@
|
|||||||
],
|
],
|
||||||
"summary": "User Login",
|
"summary": "User Login",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"example": "admin@admin.com",
|
|
||||||
"description": "string",
|
|
||||||
"name": "username",
|
|
||||||
"in": "formData"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"example": "admin",
|
|
||||||
"description": "string",
|
|
||||||
"name": "password",
|
|
||||||
"in": "formData"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "Login Data",
|
"description": "Login Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
@@ -3043,13 +3058,15 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "admin"
|
||||||
},
|
},
|
||||||
"stayLoggedIn": {
|
"stayLoggedIn": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "admin@admin.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -729,10 +729,12 @@ definitions:
|
|||||||
v1.LoginForm:
|
v1.LoginForm:
|
||||||
properties:
|
properties:
|
||||||
password:
|
password:
|
||||||
|
example: admin
|
||||||
type: string
|
type: string
|
||||||
stayLoggedIn:
|
stayLoggedIn:
|
||||||
type: boolean
|
type: boolean
|
||||||
username:
|
username:
|
||||||
|
example: admin@admin.com
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
v1.TokenResponse:
|
v1.TokenResponse:
|
||||||
@@ -1135,6 +1137,8 @@ paths:
|
|||||||
- Items
|
- Items
|
||||||
/v1/items/{id}/attachments:
|
/v1/items/{id}/attachments:
|
||||||
post:
|
post:
|
||||||
|
consumes:
|
||||||
|
- multipart/form-data
|
||||||
parameters:
|
parameters:
|
||||||
- description: Item ID
|
- description: Item ID
|
||||||
in: path
|
in: path
|
||||||
@@ -1248,6 +1252,11 @@ paths:
|
|||||||
/v1/items/{id}/maintenance:
|
/v1/items/{id}/maintenance:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
|
- description: Item ID
|
||||||
|
in: path
|
||||||
|
name: id
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
- enum:
|
- enum:
|
||||||
- scheduled
|
- scheduled
|
||||||
- completed
|
- completed
|
||||||
@@ -1275,6 +1284,11 @@ paths:
|
|||||||
- Item Maintenance
|
- Item Maintenance
|
||||||
post:
|
post:
|
||||||
parameters:
|
parameters:
|
||||||
|
- description: Item ID
|
||||||
|
in: path
|
||||||
|
name: id
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
- description: Entry Data
|
- description: Entry Data
|
||||||
in: body
|
in: body
|
||||||
name: payload
|
name: payload
|
||||||
@@ -1361,6 +1375,8 @@ paths:
|
|||||||
- Items
|
- Items
|
||||||
/v1/items/import:
|
/v1/items/import:
|
||||||
post:
|
post:
|
||||||
|
consumes:
|
||||||
|
- multipart/form-data
|
||||||
parameters:
|
parameters:
|
||||||
- description: Image to upload
|
- description: Image to upload
|
||||||
in: formData
|
in: formData
|
||||||
@@ -1623,6 +1639,12 @@ paths:
|
|||||||
- Maintenance
|
- Maintenance
|
||||||
/v1/maintenance/{id}:
|
/v1/maintenance/{id}:
|
||||||
delete:
|
delete:
|
||||||
|
parameters:
|
||||||
|
- description: Maintenance ID
|
||||||
|
in: path
|
||||||
|
name: id
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
@@ -1635,6 +1657,11 @@ paths:
|
|||||||
- Maintenance
|
- Maintenance
|
||||||
put:
|
put:
|
||||||
parameters:
|
parameters:
|
||||||
|
- description: Maintenance ID
|
||||||
|
in: path
|
||||||
|
name: id
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
- description: Entry Data
|
- description: Entry Data
|
||||||
in: body
|
in: body
|
||||||
name: payload
|
name: payload
|
||||||
@@ -1731,11 +1758,6 @@ paths:
|
|||||||
/v1/notifiers/test:
|
/v1/notifiers/test:
|
||||||
post:
|
post:
|
||||||
parameters:
|
parameters:
|
||||||
- description: Notifier ID
|
|
||||||
in: path
|
|
||||||
name: id
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
- description: URL
|
- description: URL
|
||||||
in: query
|
in: query
|
||||||
name: url
|
name: url
|
||||||
@@ -1819,16 +1841,6 @@ paths:
|
|||||||
- application/x-www-form-urlencoded
|
- application/x-www-form-urlencoded
|
||||||
- application/json
|
- application/json
|
||||||
parameters:
|
parameters:
|
||||||
- description: string
|
|
||||||
example: admin@admin.com
|
|
||||||
in: formData
|
|
||||||
name: username
|
|
||||||
type: string
|
|
||||||
- description: string
|
|
||||||
example: admin
|
|
||||||
in: formData
|
|
||||||
name: password
|
|
||||||
type: string
|
|
||||||
- description: Login Data
|
- description: Login Data
|
||||||
in: body
|
in: body
|
||||||
name: payload
|
name: payload
|
||||||
|
|||||||
Reference in New Issue
Block a user