2022-08-30 02:30:36 +00:00
|
|
|
basePath: /api
|
|
|
|
definitions:
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.DocumentOut:
|
2022-08-30 18:05:11 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
path:
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
title:
|
2022-09-09 18:20:38 +00:00
|
|
|
type: string
|
2022-08-30 18:05:11 +00:00
|
|
|
type: object
|
2022-10-15 20:15:55 +00:00
|
|
|
repo.Group:
|
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
currency:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-11-01 21:58:05 +00:00
|
|
|
repo.GroupStatistics:
|
|
|
|
properties:
|
2022-12-05 21:36:32 +00:00
|
|
|
totalItemPrice:
|
|
|
|
type: number
|
2022-11-01 21:58:05 +00:00
|
|
|
totalItems:
|
|
|
|
type: integer
|
|
|
|
totalLabels:
|
|
|
|
type: integer
|
|
|
|
totalLocations:
|
|
|
|
type: integer
|
|
|
|
totalUsers:
|
|
|
|
type: integer
|
2022-12-05 21:36:32 +00:00
|
|
|
totalWithWarranty:
|
|
|
|
type: integer
|
2022-11-01 21:58:05 +00:00
|
|
|
type: object
|
2022-10-15 20:15:55 +00:00
|
|
|
repo.GroupUpdate:
|
|
|
|
properties:
|
|
|
|
currency:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.ItemAttachment:
|
2022-08-30 18:05:11 +00:00
|
|
|
properties:
|
2022-09-12 22:47:27 +00:00
|
|
|
createdAt:
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
document:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.DocumentOut'
|
2022-08-30 18:05:11 +00:00
|
|
|
id:
|
|
|
|
type: string
|
2022-09-24 19:33:38 +00:00
|
|
|
type:
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
updatedAt:
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.ItemAttachmentUpdate:
|
2022-09-24 19:33:38 +00:00
|
|
|
properties:
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.ItemCreate:
|
2022-08-30 18:05:11 +00:00
|
|
|
properties:
|
|
|
|
description:
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
labelIds:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
locationId:
|
|
|
|
description: Edges
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2022-10-24 04:54:39 +00:00
|
|
|
parentId:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
2022-08-30 18:05:11 +00:00
|
|
|
type: object
|
2022-10-16 05:41:27 +00:00
|
|
|
repo.ItemField:
|
|
|
|
properties:
|
|
|
|
booleanValue:
|
|
|
|
type: boolean
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
numberValue:
|
|
|
|
type: integer
|
|
|
|
textValue:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.ItemOut:
|
2022-08-30 18:05:11 +00:00
|
|
|
properties:
|
2022-11-01 07:30:42 +00:00
|
|
|
archived:
|
|
|
|
type: boolean
|
2022-11-13 23:17:55 +00:00
|
|
|
assetId:
|
|
|
|
example: "0"
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
attachments:
|
2022-08-30 18:05:11 +00:00
|
|
|
items:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemAttachment'
|
2022-08-30 18:05:11 +00:00
|
|
|
type: array
|
2022-10-24 04:54:39 +00:00
|
|
|
children:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.ItemSummary'
|
|
|
|
type: array
|
2022-09-12 22:47:27 +00:00
|
|
|
createdAt:
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
2022-10-16 05:41:27 +00:00
|
|
|
fields:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.ItemField'
|
|
|
|
type: array
|
2022-08-30 18:05:11 +00:00
|
|
|
id:
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
insured:
|
|
|
|
type: boolean
|
|
|
|
labels:
|
2022-08-30 18:05:11 +00:00
|
|
|
items:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LabelSummary'
|
2022-08-30 18:05:11 +00:00
|
|
|
type: array
|
2022-09-12 22:47:27 +00:00
|
|
|
lifetimeWarranty:
|
|
|
|
description: Warranty
|
|
|
|
type: boolean
|
|
|
|
location:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LocationSummary'
|
2022-09-12 22:47:27 +00:00
|
|
|
description: Edges
|
2022-10-24 04:54:39 +00:00
|
|
|
x-nullable: true
|
|
|
|
x-omitempty: true
|
2022-09-12 22:47:27 +00:00
|
|
|
manufacturer:
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
modelNumber:
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
notes:
|
|
|
|
description: Extras
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
2022-10-24 04:54:39 +00:00
|
|
|
parent:
|
|
|
|
$ref: '#/definitions/repo.ItemSummary'
|
|
|
|
x-nullable: true
|
|
|
|
x-omitempty: true
|
2022-09-12 22:47:27 +00:00
|
|
|
purchaseFrom:
|
2022-08-30 02:30:36 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
purchasePrice:
|
|
|
|
example: "0"
|
2022-08-30 02:30:36 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
purchaseTime:
|
|
|
|
description: Purchase
|
2022-08-30 02:30:36 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
quantity:
|
|
|
|
type: integer
|
|
|
|
serialNumber:
|
2022-09-03 09:17:48 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
soldNotes:
|
2022-09-03 09:17:48 +00:00
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
soldPrice:
|
|
|
|
example: "0"
|
|
|
|
type: string
|
|
|
|
soldTime:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
|
|
|
soldTo:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
warrantyDetails:
|
|
|
|
type: string
|
|
|
|
warrantyExpires:
|
2022-09-03 09:17:48 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.ItemSummary:
|
2022-09-03 09:17:48 +00:00
|
|
|
properties:
|
2022-11-01 07:30:42 +00:00
|
|
|
archived:
|
|
|
|
type: boolean
|
2022-09-03 09:17:48 +00:00
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
insured:
|
|
|
|
type: boolean
|
2022-09-03 09:17:48 +00:00
|
|
|
labels:
|
|
|
|
items:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LabelSummary'
|
2022-09-03 09:17:48 +00:00
|
|
|
type: array
|
|
|
|
location:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LocationSummary'
|
2022-09-03 09:17:48 +00:00
|
|
|
description: Edges
|
2022-10-24 04:54:39 +00:00
|
|
|
x-nullable: true
|
|
|
|
x-omitempty: true
|
2022-09-03 09:17:48 +00:00
|
|
|
name:
|
|
|
|
type: string
|
2022-12-30 01:19:15 +00:00
|
|
|
purchasePrice:
|
|
|
|
example: "0"
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
quantity:
|
|
|
|
type: integer
|
2022-09-03 09:17:48 +00:00
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.ItemUpdate:
|
2022-09-01 22:32:03 +00:00
|
|
|
properties:
|
2022-11-01 07:30:42 +00:00
|
|
|
archived:
|
|
|
|
type: boolean
|
2022-11-13 23:17:55 +00:00
|
|
|
assetId:
|
|
|
|
type: string
|
2022-09-01 22:32:03 +00:00
|
|
|
description:
|
|
|
|
type: string
|
2022-10-16 05:41:27 +00:00
|
|
|
fields:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.ItemField'
|
|
|
|
type: array
|
2022-09-01 22:32:03 +00:00
|
|
|
id:
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
insured:
|
|
|
|
type: boolean
|
|
|
|
labelIds:
|
2022-09-03 09:17:48 +00:00
|
|
|
items:
|
2022-09-12 22:47:27 +00:00
|
|
|
type: string
|
2022-09-03 09:17:48 +00:00
|
|
|
type: array
|
2022-09-09 18:20:38 +00:00
|
|
|
lifetimeWarranty:
|
|
|
|
description: Warranty
|
|
|
|
type: boolean
|
2022-09-12 22:47:27 +00:00
|
|
|
locationId:
|
2022-09-03 09:17:48 +00:00
|
|
|
description: Edges
|
2022-09-12 22:47:27 +00:00
|
|
|
type: string
|
2022-09-03 09:17:48 +00:00
|
|
|
manufacturer:
|
|
|
|
type: string
|
|
|
|
modelNumber:
|
2022-09-01 22:32:03 +00:00
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2022-09-03 09:17:48 +00:00
|
|
|
notes:
|
|
|
|
description: Extras
|
|
|
|
type: string
|
2022-10-24 04:54:39 +00:00
|
|
|
parentId:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
x-omitempty: true
|
2022-09-03 09:17:48 +00:00
|
|
|
purchaseFrom:
|
|
|
|
type: string
|
|
|
|
purchasePrice:
|
2022-09-12 22:47:27 +00:00
|
|
|
example: "0"
|
|
|
|
type: string
|
2022-09-03 09:17:48 +00:00
|
|
|
purchaseTime:
|
|
|
|
description: Purchase
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
quantity:
|
|
|
|
type: integer
|
2022-09-03 09:17:48 +00:00
|
|
|
serialNumber:
|
|
|
|
description: Identifications
|
|
|
|
type: string
|
|
|
|
soldNotes:
|
|
|
|
type: string
|
|
|
|
soldPrice:
|
2022-09-12 22:47:27 +00:00
|
|
|
example: "0"
|
|
|
|
type: string
|
2022-09-03 09:17:48 +00:00
|
|
|
soldTime:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
|
|
|
soldTo:
|
|
|
|
type: string
|
2022-09-09 18:20:38 +00:00
|
|
|
warrantyDetails:
|
|
|
|
type: string
|
|
|
|
warrantyExpires:
|
2023-02-15 17:40:35 +00:00
|
|
|
description: Sold
|
2022-09-09 18:20:38 +00:00
|
|
|
type: string
|
2022-09-01 22:32:03 +00:00
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.LabelCreate:
|
2022-09-02 01:52:40 +00:00
|
|
|
properties:
|
|
|
|
color:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2022-09-01 23:11:14 +00:00
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.LabelOut:
|
2022-09-02 01:52:40 +00:00
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
items:
|
|
|
|
items:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemSummary'
|
2022-09-02 01:52:40 +00:00
|
|
|
type: array
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
2022-09-01 23:11:14 +00:00
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.LabelSummary:
|
2022-09-02 01:52:40 +00:00
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
2022-09-01 23:11:14 +00:00
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.LocationCreate:
|
|
|
|
properties:
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2023-01-28 20:53:00 +00:00
|
|
|
parentId:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
2022-09-27 23:52:13 +00:00
|
|
|
type: object
|
|
|
|
repo.LocationOut:
|
2022-09-03 09:17:48 +00:00
|
|
|
properties:
|
2022-10-24 04:54:39 +00:00
|
|
|
children:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.LocationSummary'
|
|
|
|
type: array
|
2022-09-03 09:17:48 +00:00
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
items:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.ItemSummary'
|
|
|
|
type: array
|
2022-09-03 09:17:48 +00:00
|
|
|
name:
|
|
|
|
type: string
|
2022-10-24 04:54:39 +00:00
|
|
|
parent:
|
|
|
|
$ref: '#/definitions/repo.LocationSummary'
|
2022-09-03 09:17:48 +00:00
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.LocationOutCount:
|
2022-08-31 05:22:01 +00:00
|
|
|
properties:
|
2022-09-27 23:52:13 +00:00
|
|
|
createdAt:
|
|
|
|
type: string
|
2022-08-31 05:22:01 +00:00
|
|
|
description:
|
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
itemCount:
|
|
|
|
type: integer
|
2022-08-31 05:22:01 +00:00
|
|
|
name:
|
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
updatedAt:
|
|
|
|
type: string
|
2022-08-31 05:22:01 +00:00
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.LocationSummary:
|
2022-09-01 22:32:03 +00:00
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-10-24 04:54:39 +00:00
|
|
|
repo.LocationUpdate:
|
|
|
|
properties:
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
parentId:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
type: object
|
2022-12-10 05:57:57 +00:00
|
|
|
repo.MaintenanceEntry:
|
|
|
|
properties:
|
2023-02-27 03:42:23 +00:00
|
|
|
completedDate:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
2022-12-10 05:57:57 +00:00
|
|
|
cost:
|
|
|
|
example: "0"
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2023-02-27 03:42:23 +00:00
|
|
|
scheduledDate:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
2022-12-10 05:57:57 +00:00
|
|
|
type: object
|
|
|
|
repo.MaintenanceEntryCreate:
|
|
|
|
properties:
|
2023-02-27 03:42:23 +00:00
|
|
|
completedDate:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
2022-12-10 05:57:57 +00:00
|
|
|
cost:
|
|
|
|
example: "0"
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2023-02-27 03:42:23 +00:00
|
|
|
scheduledDate:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
2022-12-10 05:57:57 +00:00
|
|
|
type: object
|
|
|
|
repo.MaintenanceEntryUpdate:
|
|
|
|
properties:
|
2023-02-27 03:42:23 +00:00
|
|
|
completedDate:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
2022-12-10 05:57:57 +00:00
|
|
|
cost:
|
|
|
|
example: "0"
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2023-02-27 03:42:23 +00:00
|
|
|
scheduledDate:
|
|
|
|
description: Sold
|
|
|
|
type: string
|
2022-12-10 05:57:57 +00:00
|
|
|
type: object
|
|
|
|
repo.MaintenanceLog:
|
|
|
|
properties:
|
|
|
|
costAverage:
|
|
|
|
type: number
|
|
|
|
costTotal:
|
|
|
|
type: number
|
|
|
|
entries:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.MaintenanceEntry'
|
|
|
|
type: array
|
|
|
|
itemId:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-03-07 06:18:58 +00:00
|
|
|
repo.NotifierCreate:
|
|
|
|
properties:
|
|
|
|
isActive:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
maxLength: 255
|
|
|
|
minLength: 1
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- url
|
|
|
|
type: object
|
|
|
|
repo.NotifierOut:
|
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
groupId:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
isActive:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
userId:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
repo.NotifierUpdate:
|
|
|
|
properties:
|
|
|
|
isActive:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
maxLength: 255
|
|
|
|
minLength: 1
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
type: object
|
2022-10-13 05:13:07 +00:00
|
|
|
repo.PaginationResult-repo_ItemSummary:
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.ItemSummary'
|
|
|
|
type: array
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
total:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2022-12-05 21:36:32 +00:00
|
|
|
repo.TotalsByOrganizer:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
total:
|
|
|
|
type: number
|
|
|
|
type: object
|
2023-01-28 20:53:00 +00:00
|
|
|
repo.TreeItem:
|
|
|
|
properties:
|
|
|
|
children:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.TreeItem'
|
|
|
|
type: array
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
repo.UserOut:
|
2022-08-31 05:22:01 +00:00
|
|
|
properties:
|
2022-09-27 23:52:13 +00:00
|
|
|
email:
|
2022-08-31 05:22:01 +00:00
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
groupId:
|
|
|
|
type: string
|
|
|
|
groupName:
|
2022-08-31 05:22:01 +00:00
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
2022-10-09 17:44:13 +00:00
|
|
|
isOwner:
|
|
|
|
type: boolean
|
2022-09-27 23:52:13 +00:00
|
|
|
isSuperuser:
|
|
|
|
type: boolean
|
2022-08-31 05:22:01 +00:00
|
|
|
name:
|
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
type: object
|
|
|
|
repo.UserUpdate:
|
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
name:
|
2022-08-31 05:22:01 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
2022-12-05 21:36:32 +00:00
|
|
|
repo.ValueOverTime:
|
|
|
|
properties:
|
|
|
|
end:
|
|
|
|
type: string
|
|
|
|
entries:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.ValueOverTimeEntry'
|
|
|
|
type: array
|
|
|
|
start:
|
|
|
|
type: string
|
|
|
|
valueAtEnd:
|
|
|
|
type: number
|
|
|
|
valueAtStart:
|
|
|
|
type: number
|
|
|
|
type: object
|
|
|
|
repo.ValueOverTimeEntry:
|
|
|
|
properties:
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: number
|
|
|
|
type: object
|
2022-10-30 02:15:35 +00:00
|
|
|
server.ErrorResponse:
|
|
|
|
properties:
|
|
|
|
error:
|
|
|
|
type: string
|
|
|
|
fields:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
server.Result:
|
2022-08-30 02:30:36 +00:00
|
|
|
properties:
|
2022-09-27 23:52:13 +00:00
|
|
|
details: {}
|
|
|
|
error:
|
|
|
|
type: boolean
|
|
|
|
item: {}
|
|
|
|
message:
|
2022-08-30 02:30:36 +00:00
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
type: object
|
|
|
|
server.Results:
|
|
|
|
properties:
|
2022-10-13 05:13:07 +00:00
|
|
|
items: {}
|
2022-09-27 23:52:13 +00:00
|
|
|
type: object
|
|
|
|
services.UserRegistration:
|
2022-08-30 02:30:36 +00:00
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2022-08-30 18:05:11 +00:00
|
|
|
password:
|
|
|
|
type: string
|
2022-10-07 02:54:09 +00:00
|
|
|
token:
|
|
|
|
type: string
|
2022-08-30 18:05:11 +00:00
|
|
|
type: object
|
2023-02-09 02:59:04 +00:00
|
|
|
v1.ActionAmountResult:
|
|
|
|
properties:
|
|
|
|
completed:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
v1.ApiSummary:
|
2022-09-12 22:47:27 +00:00
|
|
|
properties:
|
2023-02-15 17:58:38 +00:00
|
|
|
allowRegistration:
|
|
|
|
type: boolean
|
2022-09-27 23:52:13 +00:00
|
|
|
build:
|
|
|
|
$ref: '#/definitions/v1.Build'
|
2022-10-12 20:53:22 +00:00
|
|
|
demo:
|
|
|
|
type: boolean
|
2022-09-27 23:52:13 +00:00
|
|
|
health:
|
|
|
|
type: boolean
|
|
|
|
message:
|
2022-09-12 22:47:27 +00:00
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
title:
|
2022-09-12 22:47:27 +00:00
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
versions:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
v1.Build:
|
|
|
|
properties:
|
|
|
|
buildTime:
|
2022-09-12 22:47:27 +00:00
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
commit:
|
2022-09-12 22:47:27 +00:00
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
version:
|
2022-09-12 22:47:27 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
2022-10-09 17:23:21 +00:00
|
|
|
v1.ChangePassword:
|
|
|
|
properties:
|
|
|
|
current:
|
|
|
|
type: string
|
|
|
|
new:
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-10-07 02:54:09 +00:00
|
|
|
v1.GroupInvitation:
|
|
|
|
properties:
|
|
|
|
expiresAt:
|
|
|
|
type: string
|
|
|
|
token:
|
|
|
|
type: string
|
|
|
|
uses:
|
|
|
|
type: integer
|
|
|
|
type: object
|
|
|
|
v1.GroupInvitationCreate:
|
|
|
|
properties:
|
|
|
|
expiresAt:
|
|
|
|
type: string
|
|
|
|
uses:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
v1.ItemAttachmentToken:
|
2022-08-30 18:05:11 +00:00
|
|
|
properties:
|
2022-09-27 23:52:13 +00:00
|
|
|
token:
|
2022-08-30 18:05:11 +00:00
|
|
|
type: string
|
2022-08-30 02:30:36 +00:00
|
|
|
type: object
|
2022-09-27 23:52:13 +00:00
|
|
|
v1.TokenResponse:
|
2022-08-30 02:30:36 +00:00
|
|
|
properties:
|
2022-12-03 19:55:00 +00:00
|
|
|
attachmentToken:
|
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
expiresAt:
|
2022-08-30 02:30:36 +00:00
|
|
|
type: string
|
2022-09-27 23:52:13 +00:00
|
|
|
token:
|
2022-08-30 02:30:36 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
info:
|
|
|
|
contact:
|
|
|
|
name: Don't
|
2023-03-07 06:18:58 +00:00
|
|
|
description: Track, Manage, and Organize your Shit.
|
2022-08-30 02:30:36 +00:00
|
|
|
license:
|
|
|
|
name: MIT
|
2023-03-07 06:18:58 +00:00
|
|
|
title: Homebox API
|
2022-08-30 02:30:36 +00:00
|
|
|
version: "1.0"
|
|
|
|
paths:
|
2022-11-13 23:17:55 +00:00
|
|
|
/v1/actions/ensure-asset-ids:
|
|
|
|
post:
|
2023-03-07 06:18:58 +00:00
|
|
|
description: Ensures all items in the database have an asset ID
|
2022-11-13 23:17:55 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-02-09 02:59:04 +00:00
|
|
|
$ref: '#/definitions/v1.ActionAmountResult'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Ensure Asset IDs
|
2023-02-09 02:59:04 +00:00
|
|
|
tags:
|
2023-03-07 06:18:58 +00:00
|
|
|
- Actions
|
2023-02-26 02:54:40 +00:00
|
|
|
/v1/actions/ensure-import-refs:
|
|
|
|
post:
|
2023-03-07 06:18:58 +00:00
|
|
|
description: Ensures all items in the database have an import ref
|
2023-02-26 02:54:40 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1.ActionAmountResult'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Ensures Import Refs
|
2023-02-26 02:54:40 +00:00
|
|
|
tags:
|
2023-03-07 06:18:58 +00:00
|
|
|
- Actions
|
2023-02-09 02:59:04 +00:00
|
|
|
/v1/actions/zero-item-time-fields:
|
|
|
|
post:
|
2023-03-07 06:18:58 +00:00
|
|
|
description: Resets all item date fields to the beginning of the day
|
2023-02-09 02:59:04 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1.ActionAmountResult'
|
2022-11-13 23:17:55 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Zero Out Time Fields
|
2022-11-13 23:17:55 +00:00
|
|
|
tags:
|
2023-03-07 06:18:58 +00:00
|
|
|
- Actions
|
2023-01-14 18:24:11 +00:00
|
|
|
/v1/assets/{id}:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Asset ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.PaginationResult-repo_ItemSummary'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Item by Asset ID
|
2023-01-14 18:24:11 +00:00
|
|
|
tags:
|
2023-03-07 06:18:58 +00:00
|
|
|
- Items
|
2022-10-15 20:15:55 +00:00
|
|
|
/v1/groups:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.Group'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Group
|
2022-10-15 20:15:55 +00:00
|
|
|
tags:
|
|
|
|
- Group
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: User Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.GroupUpdate'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.Group'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Update Group
|
2022-10-15 20:15:55 +00:00
|
|
|
tags:
|
|
|
|
- Group
|
2022-10-07 02:54:09 +00:00
|
|
|
/v1/groups/invitations:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: User Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1.GroupInvitationCreate'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1.GroupInvitation'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Create Group Invitation
|
2022-10-07 02:54:09 +00:00
|
|
|
tags:
|
2022-10-15 20:15:55 +00:00
|
|
|
- Group
|
2022-11-01 21:58:05 +00:00
|
|
|
/v1/groups/statistics:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.GroupStatistics'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Group Statistics
|
2022-11-01 21:58:05 +00:00
|
|
|
tags:
|
2022-12-05 21:36:32 +00:00
|
|
|
- Statistics
|
|
|
|
/v1/groups/statistics/labels:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.TotalsByOrganizer'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Label Statistics
|
2022-12-05 21:36:32 +00:00
|
|
|
tags:
|
|
|
|
- Statistics
|
|
|
|
/v1/groups/statistics/locations:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.TotalsByOrganizer'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Location Statistics
|
2022-12-05 21:36:32 +00:00
|
|
|
tags:
|
|
|
|
- Statistics
|
|
|
|
/v1/groups/statistics/purchase-price:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: start date
|
|
|
|
in: query
|
|
|
|
name: start
|
|
|
|
type: string
|
|
|
|
- description: end date
|
|
|
|
in: query
|
|
|
|
name: end
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.ValueOverTime'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Purchase Price Statistics
|
2022-12-05 21:36:32 +00:00
|
|
|
tags:
|
|
|
|
- Statistics
|
2022-09-03 09:17:48 +00:00
|
|
|
/v1/items:
|
|
|
|
get:
|
2022-10-13 05:13:07 +00:00
|
|
|
parameters:
|
|
|
|
- description: search string
|
|
|
|
in: query
|
|
|
|
name: q
|
|
|
|
type: string
|
|
|
|
- description: page number
|
|
|
|
in: query
|
|
|
|
name: page
|
|
|
|
type: integer
|
|
|
|
- description: items per page
|
|
|
|
in: query
|
|
|
|
name: pageSize
|
|
|
|
type: integer
|
|
|
|
- collectionFormat: multi
|
|
|
|
description: label Ids
|
|
|
|
in: query
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
name: labels
|
|
|
|
type: array
|
|
|
|
- collectionFormat: multi
|
|
|
|
description: location Ids
|
|
|
|
in: query
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
name: locations
|
|
|
|
type: array
|
2022-09-03 09:17:48 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-10-13 05:13:07 +00:00
|
|
|
$ref: '#/definitions/repo.PaginationResult-repo_ItemSummary'
|
2022-09-03 09:17:48 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Query All Items
|
2022-09-03 09:17:48 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Item Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemCreate'
|
2022-09-03 09:17:48 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemSummary'
|
2022-09-03 09:17:48 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Create Item
|
2022-09-03 09:17:48 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
|
|
|
/v1/items/{id}:
|
|
|
|
delete:
|
|
|
|
parameters:
|
|
|
|
- description: Item ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-09-03 09:17:48 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Delete Item
|
2022-09-03 09:17:48 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Item ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemOut'
|
2022-09-03 09:17:48 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Item
|
2022-09-03 09:17:48 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: Item ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-09-12 22:47:27 +00:00
|
|
|
- description: Item Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemUpdate'
|
2022-09-03 09:17:48 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemOut'
|
2022-09-03 09:17:48 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Update Item
|
2022-09-03 09:17:48 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
2022-09-24 19:33:38 +00:00
|
|
|
/v1/items/{id}/attachments:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Item ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: File attachment
|
|
|
|
in: formData
|
|
|
|
name: file
|
|
|
|
required: true
|
|
|
|
type: file
|
|
|
|
- description: Type of file
|
|
|
|
in: formData
|
|
|
|
name: type
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: name of the file including extension
|
|
|
|
in: formData
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemOut'
|
2022-09-24 19:33:38 +00:00
|
|
|
"422":
|
|
|
|
description: Unprocessable Entity
|
|
|
|
schema:
|
2022-10-30 02:15:35 +00:00
|
|
|
$ref: '#/definitions/server.ErrorResponse'
|
2022-09-24 19:33:38 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Create Item Attachment
|
2022-09-24 19:33:38 +00:00
|
|
|
tags:
|
2022-10-16 05:41:27 +00:00
|
|
|
- Items Attachments
|
2022-09-24 19:33:38 +00:00
|
|
|
/v1/items/{id}/attachments/{attachment_id}:
|
|
|
|
delete:
|
|
|
|
parameters:
|
|
|
|
- description: Item ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Attachment ID
|
|
|
|
in: path
|
|
|
|
name: attachment_id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-09-24 19:33:38 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Delete Item Attachment
|
2022-09-24 19:33:38 +00:00
|
|
|
tags:
|
2022-10-16 05:41:27 +00:00
|
|
|
- Items Attachments
|
2022-09-24 19:33:38 +00:00
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Item ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Attachment ID
|
|
|
|
in: path
|
|
|
|
name: attachment_id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/octet-stream
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/v1.ItemAttachmentToken'
|
2022-09-24 19:33:38 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Item Attachment
|
2022-09-24 19:33:38 +00:00
|
|
|
tags:
|
2022-10-16 05:41:27 +00:00
|
|
|
- Items Attachments
|
2022-09-24 19:33:38 +00:00
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: Item ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Attachment ID
|
|
|
|
in: path
|
|
|
|
name: attachment_id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Attachment Update
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemAttachmentUpdate'
|
2022-09-24 19:33:38 +00:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.ItemOut'
|
2022-09-24 19:33:38 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Update Item Attachment
|
2022-09-24 19:33:38 +00:00
|
|
|
tags:
|
2022-10-16 05:41:27 +00:00
|
|
|
- Items Attachments
|
2022-12-10 05:57:57 +00:00
|
|
|
/v1/items/{id}/maintenance:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.MaintenanceLog'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Get Maintenance Log
|
|
|
|
tags:
|
|
|
|
- Maintenance
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Entry Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.MaintenanceEntryCreate'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.MaintenanceEntry'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Create Maintenance Entry
|
|
|
|
tags:
|
|
|
|
- Maintenance
|
|
|
|
/v1/items/{id}/maintenance/{entry_id}:
|
|
|
|
delete:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No Content
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Delete Maintenance Entry
|
|
|
|
tags:
|
|
|
|
- Maintenance
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: Entry Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.MaintenanceEntryUpdate'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.MaintenanceEntry'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Update Maintenance Entry
|
|
|
|
tags:
|
|
|
|
- Maintenance
|
2023-02-26 02:54:40 +00:00
|
|
|
/v1/items/export:
|
|
|
|
get:
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: text/csv
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Export Items
|
2023-02-26 02:54:40 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
2023-02-05 21:12:54 +00:00
|
|
|
/v1/items/fields:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get All Custom Field Names
|
2023-02-05 21:12:54 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
|
|
|
/v1/items/fields/values:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get All Custom Field Values
|
2023-02-05 21:12:54 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
2022-09-06 19:15:07 +00:00
|
|
|
/v1/items/import:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Image to upload
|
|
|
|
in: formData
|
|
|
|
name: csv
|
|
|
|
required: true
|
|
|
|
type: file
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-09-06 19:15:07 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Import Items
|
2022-09-06 19:15:07 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
2022-09-01 23:11:14 +00:00
|
|
|
/v1/labels:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/server.Results'
|
|
|
|
- properties:
|
|
|
|
items:
|
|
|
|
items:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LabelOut'
|
2022-09-01 23:11:14 +00:00
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Get All Labels
|
|
|
|
tags:
|
|
|
|
- Labels
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Label Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LabelCreate'
|
2022-09-01 23:11:14 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LabelSummary'
|
2022-09-01 23:11:14 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Create Label
|
2022-09-01 23:11:14 +00:00
|
|
|
tags:
|
|
|
|
- Labels
|
|
|
|
/v1/labels/{id}:
|
|
|
|
delete:
|
|
|
|
parameters:
|
|
|
|
- description: Label ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-09-01 23:11:14 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Delete Label
|
2022-09-01 23:11:14 +00:00
|
|
|
tags:
|
|
|
|
- Labels
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Label ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LabelOut'
|
2022-09-01 23:11:14 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Label
|
2022-09-01 23:11:14 +00:00
|
|
|
tags:
|
|
|
|
- Labels
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: Label ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LabelOut'
|
2022-09-01 23:11:14 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Update Label
|
2022-09-01 23:11:14 +00:00
|
|
|
tags:
|
|
|
|
- Labels
|
2022-08-31 05:22:01 +00:00
|
|
|
/v1/locations:
|
|
|
|
get:
|
2022-11-02 19:54:43 +00:00
|
|
|
parameters:
|
|
|
|
- description: Filter locations with parents
|
|
|
|
in: query
|
|
|
|
name: filterChildren
|
|
|
|
type: boolean
|
2022-08-31 05:22:01 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/server.Results'
|
|
|
|
- properties:
|
|
|
|
items:
|
|
|
|
items:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LocationOutCount'
|
2022-08-31 05:22:01 +00:00
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Get All Locations
|
|
|
|
tags:
|
|
|
|
- Locations
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Location Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LocationCreate'
|
2022-08-31 05:22:01 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LocationSummary'
|
2022-08-31 05:22:01 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Create Location
|
2022-08-31 05:22:01 +00:00
|
|
|
tags:
|
|
|
|
- Locations
|
2022-09-01 22:32:03 +00:00
|
|
|
/v1/locations/{id}:
|
|
|
|
delete:
|
|
|
|
parameters:
|
|
|
|
- description: Location ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-09-01 22:32:03 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Delete Location
|
2022-09-01 22:32:03 +00:00
|
|
|
tags:
|
|
|
|
- Locations
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Location ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LocationOut'
|
2022-09-01 22:32:03 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Location
|
2022-09-01 22:32:03 +00:00
|
|
|
tags:
|
|
|
|
- Locations
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: Location ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-10-24 04:54:39 +00:00
|
|
|
- description: Location Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.LocationUpdate'
|
2022-09-01 22:32:03 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.LocationOut'
|
2022-09-01 22:32:03 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Update Location
|
2022-09-01 22:32:03 +00:00
|
|
|
tags:
|
|
|
|
- Locations
|
2023-01-28 20:53:00 +00:00
|
|
|
/v1/locations/tree:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: include items in response tree
|
|
|
|
in: query
|
|
|
|
name: withItems
|
|
|
|
type: boolean
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/server.Results'
|
|
|
|
- properties:
|
|
|
|
items:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.TreeItem'
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get Locations Tree
|
2023-01-28 20:53:00 +00:00
|
|
|
tags:
|
|
|
|
- Locations
|
2023-03-07 06:18:58 +00:00
|
|
|
/v1/notifiers:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/server.Results'
|
|
|
|
- properties:
|
|
|
|
items:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/repo.NotifierOut'
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Get Notifiers
|
|
|
|
tags:
|
|
|
|
- Notifiers
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Notifier Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.NotifierCreate'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.NotifierOut'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Create Notifier
|
|
|
|
tags:
|
|
|
|
- Notifiers
|
|
|
|
/v1/notifiers/{id}:
|
|
|
|
delete:
|
|
|
|
parameters:
|
|
|
|
- description: Notifier ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No Content
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Delete a Notifier
|
|
|
|
tags:
|
|
|
|
- Notifiers
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: Notifier ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Notifier Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.NotifierUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/repo.NotifierOut'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Update Notifier
|
|
|
|
tags:
|
|
|
|
- Notifiers
|
|
|
|
/v1/notifiers/test:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: Notifier ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: URL
|
|
|
|
in: query
|
|
|
|
name: url
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No Content
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Test Notifier
|
|
|
|
tags:
|
|
|
|
- Notifiers
|
2023-01-19 05:44:06 +00:00
|
|
|
/v1/qrcode:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: data to be encoded into qrcode
|
|
|
|
in: query
|
|
|
|
name: data
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: image/jpeg
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Create QR Code
|
2023-01-19 05:44:06 +00:00
|
|
|
tags:
|
|
|
|
- Items
|
2023-02-13 19:00:29 +00:00
|
|
|
/v1/reporting/bill-of-materials:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: text/csv
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Export Bill of Materials
|
2023-02-13 19:00:29 +00:00
|
|
|
tags:
|
|
|
|
- Reporting
|
2022-09-04 02:42:03 +00:00
|
|
|
/v1/status:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/v1.ApiSummary'
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Application Info
|
2022-09-04 02:42:03 +00:00
|
|
|
tags:
|
|
|
|
- Base
|
2022-10-09 17:23:21 +00:00
|
|
|
/v1/users/change-password:
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: Password Payload
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1.ChangePassword'
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-10-09 17:23:21 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Change Password
|
2022-10-09 17:23:21 +00:00
|
|
|
tags:
|
|
|
|
- User
|
2022-08-30 02:30:36 +00:00
|
|
|
/v1/users/login:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: string
|
|
|
|
example: admin@admin.com
|
|
|
|
in: formData
|
|
|
|
name: username
|
|
|
|
type: string
|
|
|
|
- description: string
|
|
|
|
example: admin
|
|
|
|
in: formData
|
|
|
|
name: password
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/v1.TokenResponse'
|
2022-08-30 02:30:36 +00:00
|
|
|
summary: User Login
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
/v1/users/logout:
|
|
|
|
post:
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-08-30 02:30:36 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: User Logout
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
/v1/users/refresh:
|
|
|
|
get:
|
|
|
|
description: |-
|
|
|
|
handleAuthRefresh returns a handler that will issue a new token from an existing token.
|
|
|
|
This does not validate that the user still exists within the database.
|
|
|
|
responses:
|
|
|
|
"200":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: OK
|
2022-08-30 02:30:36 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: User Token Refresh
|
|
|
|
tags:
|
|
|
|
- Authentication
|
2022-08-30 18:05:11 +00:00
|
|
|
/v1/users/register:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: User Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/services.UserRegistration'
|
2022-08-30 18:05:11 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
2022-08-31 05:22:01 +00:00
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Register New User
|
2022-08-30 18:05:11 +00:00
|
|
|
tags:
|
|
|
|
- User
|
2022-08-30 02:30:36 +00:00
|
|
|
/v1/users/self:
|
2022-09-04 02:42:03 +00:00
|
|
|
delete:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
2022-10-13 05:13:07 +00:00
|
|
|
description: No Content
|
2022-09-04 02:42:03 +00:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Delete Account
|
2022-09-04 02:42:03 +00:00
|
|
|
tags:
|
|
|
|
- User
|
2022-08-30 02:30:36 +00:00
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/server.Result'
|
|
|
|
- properties:
|
|
|
|
item:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.UserOut'
|
2022-08-30 02:30:36 +00:00
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Get User Self
|
2022-08-30 02:30:36 +00:00
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
put:
|
|
|
|
parameters:
|
|
|
|
- description: User Data
|
|
|
|
in: body
|
|
|
|
name: payload
|
|
|
|
required: true
|
|
|
|
schema:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.UserUpdate'
|
2022-08-30 02:30:36 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/server.Result'
|
|
|
|
- properties:
|
|
|
|
item:
|
2022-09-27 23:52:13 +00:00
|
|
|
$ref: '#/definitions/repo.UserUpdate'
|
2022-08-30 02:30:36 +00:00
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-03-07 06:18:58 +00:00
|
|
|
summary: Update Account
|
2022-08-30 02:30:36 +00:00
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
securityDefinitions:
|
|
|
|
Bearer:
|
|
|
|
description: '"Type ''Bearer TOKEN'' to correctly set the API Key"'
|
|
|
|
in: header
|
|
|
|
name: Authorization
|
|
|
|
type: apiKey
|
|
|
|
swagger: "2.0"
|