GET restapi/learningobjectiverepository/subjects/{countryCode}/v1

Retrieves the Subjects that have been defined for the given Country code.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryCode

Country to retrieve subjects for

string

Required

Body Parameters

None.

Response Information

Resource Description

A collection with Subjects.

Collection of Itslearning.RestApi.Entities.LearningObjectiveRepository.SubjectLabel
NameDescriptionTypeAdditional information
Id

Id of the subject label

integer

None.

Name

Name of the subject label

string

None.

Aliases

Collection of aliases belonging to this subject label

Collection of string

None.

CountryCode

Country code belonging to this subject label

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Aliases": [
      "sample string 1",
      "sample string 2"
    ],
    "CountryCode": "sample string 3"
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Aliases": [
      "sample string 1",
      "sample string 2"
    ],
    "CountryCode": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSubjectLabel xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <SubjectLabel>
    <Aliases xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Aliases>
    <CountryCode>sample string 3</CountryCode>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </SubjectLabel>
  <SubjectLabel>
    <Aliases xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Aliases>
    <CountryCode>sample string 3</CountryCode>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </SubjectLabel>
</ArrayOfSubjectLabel>