Diversion policies API

get listing

GET /api/rest/admin/diversion-policies

Parameters

Name Description
filter[id] id filter
filter[name] name filter
filter[name-eq] name eq filter
filter[name-not-eq] name not eq filter
filter[name-cont] name cont filter
filter[name-start] name start filter
filter[name-end] name end filter
filter[name-in] name in filter
filter[name-not-in] name not in filter
filter[name-cont-any] name cont any filter

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTUsInN1YiI6OTV9.6MPcpu1-0QdfRhmX_nE4OkHOQ5L3_lxwdqy4XgdxV_Q
Host: example.org
Cookie: 

Route

GET /api/rest/admin/diversion-policies

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"6f67f64be3c00e26adc6fd77fea0a571"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: d7b90d4a-a625-4439-844c-f53292548754
X-Runtime: 0.008914
Content-Length: 539

Status

200 OK

Body

{
  "data": [
    {
      "id": "1",
      "type": "diversion-policies",
      "links": {
        "self": "http://example.org/api/rest/admin/diversion-policies/1"
      },
      "attributes": {
        "name": "Do not accept"
      }
    },
    {
      "id": "2",
      "type": "diversion-policies",
      "links": {
        "self": "http://example.org/api/rest/admin/diversion-policies/2"
      },
      "attributes": {
        "name": "Accept"
      }
    }
  ],
  "meta": {
    "total-count": 2
  },
  "links": {
    "first": "http://example.org/api/rest/admin/diversion-policies?page%5Bnumber%5D=1&page%5Bsize%5D=50",
    "last": "http://example.org/api/rest/admin/diversion-policies?page%5Bnumber%5D=1&page%5Bsize%5D=50"
  }
}