Orders

Orders

API endpoint that allows orders to be viewed or edited.

GET /api/orders/

http

GET /api/orders/ HTTP/1.1
Host: localhost
Accept: application/json
Authorization: Basic YWRtaW46YWRtaW4=

curl

curl -i -X GET https://localhost/api/orders/ -H "Accept: application/json" --user admin:admin

response

GET /api/orders/ HTTP/1.1
Host: localhost
Accept: application/json
Authorization: Basic YWRtaW46YWRtaW4=
POST /api/orders/

creates a new order

Parameters:
  • name – A label for the order

  • responsible – The user responsible for the order

  • information_packages – IP’s included in the order