Asset Link
This is the API Documentation for the /api/asset-link/ route.
Retrieve ALL Asset Links
GET
/api/asset-link/
Use this method to get ALL Asset Links from the Database.
Response will be an array of Asset Link objects.
Get ALL links by Hardware ID
GET
/api/asset-link/hardware/:id/get-all
Path Parameters
id*
String
The ID of the Asset
Response consists of both the Hardware Asset and the Asset Link.
Get ALL links by Software ID
GET
/api/asset-link/software/:id/get-all
Response consists of both an array with the Software Asset and the Asset Link.
Path Parameters
id*
String
The ID of the Asset
Get ALL links by Software ID (excl. Software Asset)
GET
/api/asset-link/software/:id
Response consists of both only the Asset Link array.
Path Parameters
id*
String
The ID of the Asset
Insert Asset Link
POST
/api/asset-link/
You can use this method to insert an Asset Link into the Database.
Request Body
hardware_id*
String
ID of the Hardware Asset you would like to be a part of the link.
software_id*
String
ID of the Software Asset you would like to be a part of the link.
date*
String
The Date the link was created
created_by*
String
The E-Mail Address of the Employee who creates the link.
Delete Asset Link
DELETE
/api/asset-link/hardware/:hwid/:swid
Path Parameters
hwid*
String
The ID of the Hardware Asset.
swid*
String
The ID of the Software Asset.
Last updated