Hardware

This is the API Documentation for the /api/assets/hardware route.

Get ALL Assets

GET /api/assets/hardware/view-all

The response is an Array of Hardware Asset.

Get ALL Assets by Supervising Employee

GET /api/assets/hardware/view-all/:id

Path Parameters

Name
Type
Description

id*

String

Employee ID

The response is an array of Hardware Asset objects.

Get Asset

GET /api/assets/hardware/:id

Path Parameters

Name
Type
Description

id*

String

The ID of the Hardware Asset

The response is a Hardware Asset object.

Insert Asset

POST /api/assets/hardware/

Request Body

Name
Type
Description

name*

String

The Name of the Asset

parent_employee*

String

The ID of the Supervising Employee

note

String

The Note attached to the Asset

date

String

The Purchase Date of the Asset

ip*

String [IPV4/IPV6]

The IPV4 or IPV6 address of the Asset

manufacturer

String

The Manufacturer of the Asset

model

String

The Model of the Asset

type*

String

The Type of the Asset

Delete Asset

DELETE /api/assets/hardware/:id

Path Parameters

Name
Type
Description

id*

String

The ID of the Hardware Asset

Delete ALL Assets

DELETE /api/assets/hardware/

Edit Asset

PATCH /api/assets/hardware/:id

Path Parameters

Name
Type
Description

id*

String

The ID of the Hardware Asset

Request Body

Name
Type
Description

name*

String

The Name of the Asset

note*

String

The Note attached to the Asset

date*

String

The Purchase Date of the Asset

manufacturer*

String

The Manufacturer of the Asset

model*

String

The Model of the Asset

parent_employee*

String

The ID of the Supervising Employee

ip*

String [IPV4/IPV6]

The IPV4 or IPV6 address of the Asset

type*

String

The Type of the Asset

Last updated