Example XML Request & Response - GET Subject

https://...surpass.com/api/v2/Subject/

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <count>1304</count>
  <top>10</top>
  <skip>0</skip>
  <pageCount>131</pageCount>
  <nextPageLink>https://...surpass.com/api/v2/Subject?$skip=10</nextPageLink>
  <prevPageLink i:nil="true" />
  <response>
    <subject>
      <reference>I00n7o1yTXdK</reference>
      <id>1</id>
      <href>https://...surpass.com/api/v2/Subject/1</href>
    </subject>
    <subject>
      <reference>vONkqbfkrxqc</reference>
      <id>2</id>
      <href>https://...surpass.com/api/v2/Subject/2</href>
    </subject>
    <subject>
      <reference>sampasd 1</reference>
      <id>3</id>
      <href>https://...surpass.com/api/v2/Subject/3</href>
    </subject>
      </response>
  <errors i:nil="true" />
  <serverTimeZone>GMT Standard Time</serverTimeZone>
</response>


https://...surpass.com/api/v2/Subject/1

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <count i:nil="true" />
  <top i:nil="true" />
  <skip i:nil="true" />
  <pageCount i:nil="true" />
  <nextPageLink i:nil="true" />
  <prevPageLink i:nil="true" />
  <response>
    <subject>
      <reference>APITest1</reference>
      <id>22</id>
      <href>https://...surpass.com/api/v2/Subject/22</href>
      <deliveryType>OnScreen</deliveryType>
      <htmlOnly>false</htmlOnly>
      <name>API Test</name>
      <primaryCentre>
        <reference>0000-0000</reference>
        <id>12</id>
        <href>https://...surpass.com/api/v2/Centre/12</href>
      </primaryCentre>
      <status>ActiveRegistrationClosed</status>

<subjectMasterList>true</subjectMasterList>


    </subject>
  </response>
  <errors i:nil="true" />
  <serverTimeZone>GMT Standard Time</serverTimeZone>
</response>

 


 


 


Feedback and Knowledge Base