Skip to content

Schedules EndPoints

Branson Ng edited this page Nov 13, 2020 · 4 revisions

POST, Create

localhost:8000/api/schedules/part_timer/
localhost:8000/api/schedules/full_timer/

{
    "email": "[email protected]",
    "start_date": "2020-10-26",
    "end_date": "2020-10-26"
}

Get

localhost:8000/api/schedules/part_timer/:email
localhost:8000/api/schedules/full_timer/:email

{
    "data": [
        {
            "email": "[email protected]",
            "start_date": "2020-11-04T16:00:00.000Z",
            "end_date": "2020-11-09T16:00:00.000Z"
        }
    ],
    "error": ""
}

Delete

localhost:8000/api/schedules/full_timer/

{
    "email": "[email protected]",
    "start_date": "2020-11-05",
    "end_date": "2020-11-10"
}
Clone this wiki locally