GET openapi/categories/roots?maxDepth={maxDepth}

Authorization

Access to this endpoint is public.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
maxDepth

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

PearsonEnglish.LearningServices.Core.Models.CategoryWithContentItems
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Type

string

None.

Sequence

integer

None.

Path

string

None.

Attributes

Dictionary of string [key] and string [value]

None.

ChildCategories

Collection of PearsonEnglish.LearningServices.Core.Models.CategoryWithContentItems

None.

ContentItems

Collection of PearsonEnglish.LearningServices.Core.Models.ContentItemBase

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "7a5a6eb2-decf-4dca-a13d-d4b86119d3c7",
  "Type": "sample string 2",
  "Sequence": 1,
  "Path": "sample string 3",
  "Attributes": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "ChildCategories": [],
  "ContentItems": [
    {
      "Id": "22bf36af-cabb-43a5-a039-f86a3143a471",
      "Type": "sample string 2",
      "Sequence": 1,
      "Description": "sample string 3",
      "Duration": 1,
      "StudentCompletionDuration": 1,
      "Url": "sample string 4",
      "IsSkippable": true
    },
    {
      "Id": "22bf36af-cabb-43a5-a039-f86a3143a471",
      "Type": "sample string 2",
      "Sequence": 1,
      "Description": "sample string 3",
      "Duration": 1,
      "StudentCompletionDuration": 1,
      "Url": "sample string 4",
      "IsSkippable": true
    }
  ]
}