Methods
# async static createLink(req, res) → {Promise.<void>}
Create a new link for an investigation. POST /api/investigation/:id/links
Parameters:
| Name | Type | Description |
|---|---|---|
req |
ICreateLinkRequest
|
Request object with investigation id in params and link data in body |
res |
Response
|
Express response object |
Resolves when the response has been sent
Promise.<void>
# async static getLinks(req, res) → {Promise.<void>}
List all links for an investigation. GET /api/investigation/:id/links
Parameters:
| Name | Type | Description |
|---|---|---|
req |
IGetLinksRequest
|
Request object with investigation id in params |
res |
Response
|
Express response object |
Resolves when the response has been sent
Promise.<void>
# async static resolveLink(req, res) → {Promise.<void>}
Resolve a link by key and subLink (public). Increments visit count and returns investigation id. GET /api/link/:key/:subLink
Parameters:
| Name | Type | Description |
|---|---|---|
req |
IResolveLinkRequest
|
Request object with key and subLink in params |
res |
Response
|
Express response object |
Resolves when the response has been sent
Promise.<void>