Vendor

The Vendors defined in the configuration can be listed with this handler. The response is a map of key-value, with the key being used in the assets to reference the given entry.

You can check the details of each vendor entry using the /<vendor id> handler.

GET /api/inventory/vendor

Get a list of Vendors in the form of a list of property entries.

Example Request

# Request
GET /api/inventory/vendor HTTP/1.1
Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u
 
# Response
HTTP/1.1 200 OK
Content-Type: application/json
 
{
  "0": "",
  "1": "Computer 2000 Deutschland GmbH"
}

Application Example

# Browser access
http://127.0.0.1:9000/api/inventory/vendor
 
# Shell access using curl
curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/inventory/vendor"
 
# Shell access using curl using username and password
curl -Lsu username:password "http://127.0.0.1:9000/api/inventory/vendor"