Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Get the list of all semesters, and semester of a date #13

@ThomasRitaine

Description

@ThomasRitaine

The API should have this response when requesting "/api/semesters" with the GET method.

{
  "@context": "/api/contexts/semester",
  "@id": "/api/semesters",
  "@type": "hydra:Collection",
  "hydra:member": [
    {
      "@id": "/api/semesters/A19",
      "@type": "semester",
      "code": "A19",
      "start": "2019-07-31",
      "end": "2020-01-31"
    },
    {
      "@id": "/api/semesters/P20",
      "@type": "semester",
      "code": "P20",
      "start": "2020-01-31",
      "end": "2020-07-31"
    }
  ],
  "hydra:totalItems": 100,
  "hydra:view": {
    "@id": "/api/ues?page=1",
    "@type": "hydra:PartialCollectionView",
    "hydra:first": "/api/ues?page=1",
    "hydra:last": "/api/ues?page=4",
    "hydra:next": "/api/ues?page=2"
  }
}

And the API should have this response when requesting "/api/semesters?date=2020-03-25" with the GET method.

{
  "@context": "/api/contexts/semester",
  "@id": "/api/semesters/P20",
  "@type": "ue",
  "@type": "semester",
  "code": "P20",
  "start": "2020-01-31",
  "end": "2020-07-31"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions