Description
Queries contains methods used to execute queries already defined in VendorLink. See ... for information about Queries.
With Queries lists can be made by end users which can not only be consumed within the application but also using the VendorLink API.
Queries Reference
Methods
GET List
The List method returns all Queries created by or shared with the user.
Location
https://XXX.vendorlink.nl/API/Queries/List
(The sub domain is determined by your specific environment)
Header
- Key "Authorization", Value "Bearer <accessToken>"
Body
Empty
Response
[ { "Id": 1, "Name": "Test", "Notes": "", "Owner": "Demo User", "CreatedDate": "2019-09-03T00:00:00" } ]
Remarks
Return value contains an array of available queries.
GET Method
The Method function executes the Query and returns the result of the query in JSON.
Location
https://XXX.vendorlink.nl/API/Queries/execute?id=yyy
(The sub domain is determined by your specific environment)
Header
- Key "Authorization", Value "Bearer <accessToken>"
Querystring parameters
- id: id of the query (from List method)
Body
Empty
Response
A JSON value containing the data returned by the query, executed real time in VendorLink.