Package Counters API

get listing

GET /api/rest/admin/package-counters

Parameters

Name Description
filter[id] id filter
filter[service.id] service.id filter
filter[account.id] account.id filter

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE2NywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU2OX0.TiPRQsIK-s-Aur6vA8Kgkmg8FDKPHRQv5gC85J2t0ek
Host: example.org
Cookie: 

Route

GET /api/rest/admin/package-counters

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"eb09643e13eb8c0b18c2c15f2aa4db43"
cache-control: max-age=0, private, must-revalidate
x-request-id: e0b13bb1-18ff-41b0-bdc6-5e8b6d3628a0
x-runtime: 0.007484
content-length: 1020

Status

200 OK

Body

{
  "data": [
    {
      "id": "1",
      "type": "package-counters",
      "links": {
        "self": "http://example.org/api/rest/admin/package-counters/1"
      },
      "attributes": {
        "duration": 120,
        "exclude": false,
        "prefix": "",
        "service-id": 4
      },
      "relationships": {
        "account": {
          "links": {
            "related": "http://example.org/api/rest/admin/package-counters/1/account"
          }
        },
        "service": {
          "links": {
            "related": "http://example.org/api/rest/admin/package-counters/1/service"
          }
        }
      }
    },
    {
      "id": "2",
      "type": "package-counters",
      "links": {
        "self": "http://example.org/api/rest/admin/package-counters/2"
      },
      "attributes": {
        "duration": 120,
        "exclude": false,
        "prefix": "",
        "service-id": 5
      },
      "relationships": {
        "account": {
          "links": {
            "related": "http://example.org/api/rest/admin/package-counters/2/account"
          }
        },
        "service": {
          "links": {
            "related": "http://example.org/api/rest/admin/package-counters/2/service"
          }
        }
      }
    }
  ],
  "meta": {
    "total-count": 2
  },
  "links": {
    "first": "http://example.org/api/rest/admin/package-counters?page%5Bnumber%5D=1&page%5Bsize%5D=50",
    "last": "http://example.org/api/rest/admin/package-counters?page%5Bnumber%5D=1&page%5Bsize%5D=50"
  }
}