Retrieve collection of serviceProducts

get

/services/rest/connect/v1.4/serviceProducts

Request

Supported Media Types
Query Parameters
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name
  • The requested page size, which limits the number of elements the collection should max return
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Returns the count of elements as the given order. The value is a comma delimited string. Each token in the string is the name of the field, optionally followed by asc or desc.
  • Query parameter that allows searching by providing ROQL WHERE clause filtering
  • Indicates whether or not to calculate the totalResults property. By default, totalResults is not calculated.

Response

Supported Media Types

Default Response

Body ()
Collection of serviceProducts
Root Schema : serviceProducts-collection
Type: object
Collection of serviceProducts
Show Source

Examples

Use GET with the following syntax to list all service products:

https://your_site_interface/services/rest/connect/version/serviceProducts

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/serviceProducts

Response body example

{
  "items": [
    {
      "id": 1,
      "lookupName": "Mobile Phones",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/serviceProducts/1"
        }
      ]
    },
    {
      "id": 2,
      "lookupName": "Forbindelse",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/serviceProducts/2"
        }
      ]
    },
    {
      "id": 3,
      "lookupName": "Mundo",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/serviceProducts/3"
        }
      ]
    },

    ...

    {
      "id": 63,
      "lookupName": "LM 800",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/serviceProducts/63"
        }
      ]
    }
  ],
  "hasMore": false,
  "links": [
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/serviceProducts"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/serviceProducts",
      "mediaType": "application/schema+json"
    },
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/serviceProducts"
    }
  ]
}