Example JSON Request & Response - GET CentreSubjectAssociation

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

{
  "count": 2258,
  "top": 10,
  "skip": 0,
  "pageCount": 226,
  "nextPageLink": "https://...surpass.com:443/api/v2/CentreSubjectAssociation?$skip=10",
  "prevPageLink": null,
  "response": [
    {
      "id": 1,
      "centre": {
        "id": 1,
        "reference": "bkQ0Ti28UWL8",
        "href": null
      },
      "subject": {
        "id": 1,
        "reference": "I00n7o1yTXdK",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/1"
    },
    {
      "id": 2,
      "centre": {
        "id": 2,
        "reference": "WoSch01",
        "href": null
      },
      "subject": {
        "id": 2,
        "reference": "vONkqbfkrxqc",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/2"
    },
    {
      "id": 3,
      "centre": {
        "id": 3,
        "reference": "ewtwsrtsrt1",
        "href": null
      },
      "subject": {
        "id": 2,
        "reference": "vONkqbfkrxqc",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/3"
    },
    {
      "id": 4,
      "centre": {
        "id": 2,
        "reference": "WoSch01",
        "href": null
      },
      "subject": {
        "id": 3,
        "reference": "sampasd 1",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/4"
    },
    {
      "id": 5,
      "centre": {
        "id": 3,
        "reference": "ewtwsrtsrt1",
        "href": null
      },
      "subject": {
        "id": 3,
        "reference": "sampasd 1",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/5"
    },
    {
      "id": 6,
      "centre": {
        "id": 2,
        "reference": "WoSch01",
        "href": null
      },
      "subject": {
        "id": 4,
        "reference": "86B9KdYAjFQK",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/6"
    },
    {
      "id": 7,
      "centre": {
        "id": 30,
        "reference": "M45XCVfWCLdv",
        "href": null
      },
      "subject": {
        "id": 4,
        "reference": "86B9KdYAjFQK",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/7"
    },
    {
      "id": 8,
      "centre": {
        "id": 31,
        "reference": "8ulJeUcPMs92",
        "href": null
      },
      "subject": {
        "id": 4,
        "reference": "86B9KdYAjFQK",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/8"
    },
    {
      "id": 9,
      "centre": {
        "id": 2,
        "reference": "WoSch01",
        "href": null
      },
      "subject": {
        "id": 5,
        "reference": "IkoKJZktcPr0",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/9"
    },
    {
      "id": 10,
      "centre": {
        "id": 1,
        "reference": "bkQ0Ti28UWL8",
        "href": null
      },
      "subject": {
        "id": 6,
        "reference": "4orf4o8iof0sese",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/10"
    }
  ],
  "errors": null,
  "serverTimeZone": "GMT Standard Time"
}


https://...surpass.com/api/v2/CentreSubjectAssociation?$filter=centre/reference eq 'JLTC'

{
  "count": 4,
  "top": 10,
  "skip": 0,
  "pageCount": 1,
  "nextPageLink": null,
  "prevPageLink": null,
  "response": [
    {
      "id": 2889,
      "centre": {
        "id": 388,
        "reference": "JLTC",
        "href": null
      },
      "subject": {
        "id": 1427,
        "reference": "JLTS",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/2889"
    },
    {
      "id": 3187,
      "centre": {
        "id": 388,
        "reference": "JLTC",
        "href": null
      },
      "subject": {
        "id": 1425,
        "reference": "JUxPS6cqVHpP",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/3187"
    },
    {
      "id": 3232,
      "centre": {
        "id": 388,
        "reference": "JLTC",
        "href": null
      },
      "subject": {
        "id": 1479,
        "reference": "awss",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/3232"
    },
    {
      "id": 3249,
      "centre": {
        "id": 388,
        "reference": "JLTC",
        "href": null
      },
      "subject": {
        "id": 1527,
        "reference": "JLTS2",
        "href": null
      },
      "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/3249"
    }
  ],
  "errors": null,
  "serverTimeZone": "GMT Standard Time"
}

Feedback and Knowledge Base