Skip to content
This repository has been 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

Open
ThomasRitaine opened this issue May 7, 2021 · 0 comments
Open

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

ThomasRitaine opened this issue May 7, 2021 · 0 comments
Labels
API Response Expectation 🧪 The description of what the response of the API should look like Feature request ✨ New feature or request Semester ⏳ Something related to Semesters

Comments

@ThomasRitaine
Copy link
Contributor

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"
}
@ThomasRitaine ThomasRitaine added Feature request ✨ New feature or request API Response Expectation 🧪 The description of what the response of the API should look like Semester ⏳ Something related to Semesters labels May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Response Expectation 🧪 The description of what the response of the API should look like Feature request ✨ New feature or request Semester ⏳ Something related to Semesters
Projects
None yet
Development

No branches or pull requests

1 participant