mp-access / Backend-Re

0 stars 2 forks source link

We are still sending too much information per /Course request #24

Closed Haeri closed 2 years ago

Haeri commented 5 years ago

A single course request still responds with too much data:

{
    "id": "95d455b4-97a1-4a71-b637-0c58957a09f3",
    "title": "Informatics 2",
    "description": "Algodat + Modelling",
    "owner": "dr.prof@uzh.ch",
    "startDate": "2019-09-22T00:00:00.000+0000",
    "endDate": "2020-01-01T00:00:00.000+0000",
    "assignments": [
        {
            "id": "9a6515d9-244c-4d5e-a3fe-cc829fae1154",
            "title": "assignment1",
            "description": "string manipulation lab",
            "publishDate": "2001-12-15T00:00:00.000+0000",
            "dueDate": "2001-05-11T00:00:00.000+0000",
            "exercises": [
                {
                    "id": "3c788d50-ecd3-4286-be0f-ac872c16ff45",
                    "type": "code",
                    "language": "python"
                },
                {
                    "id": "60623d89-0d3a-476d-a498-0cb6f92ce74f",
                    "type": "text",
                    "language": null
                },
                {
                    "id": "1289f31c-1b56-4667-90e6-169603084c9e",
                    "type": "multipleChoice",
                    "language": null
                }
            ]
        },
        {
            "id": "461da5a6-56b5-40b0-a13c-cb01efeec69c",
            "title": "assignment2",
            "description": "Inheritance, I think?",
            "publishDate": "2001-12-22T00:00:00.000+0000",
            "dueDate": "2001-12-25T00:00:00.000+0000",
            "exercises": [
                {
                    "id": "020e1173-f1e6-4f03-afbe-854f6e7394f0",
                    "type": "code",
                    "language": "python"
                }
            ]
        }
    ]
}