Closed hn275 closed 1 year ago
In preparation for the blogging feature, endpoints are now organized:
/api/groupCalendar/**/*
/api/blog/**/*
Backend modified the following endpoints, frontend needs to update these:
[x] /api/availability → /api/groupCalendar/{groupID}/availability [POST]
/api/availability
/api/groupCalendar/{groupID}/availability
groupID
path param
[x] api/event → /api/groupCalendar/{groupID}/event [POST]
api/event
/api/groupCalendar/{groupID}/event
[x] /api/groupCalendar/auth/{groupID} [POST]
/api/groupCalendar/auth/{groupID}
json
[x] /api/group/{multiple-ids}/multiple → api/groupCalendar/multiple [GET]
/api/group/{multiple-ids}/multiple
api/groupCalendar/multiple
groupIDs
i.e.: /api/groupCalendar/multiple?groupID=1&groupID=2&groupID=3&
/api/groupCalendar/multiple?groupID=1&groupID=2&groupID=3&
[x] /api/group → /api/groupCalendar/new [POST]
/api/group
/api/groupCalendar/new
[x] /api/group/all → /api/groupCalendar/all [GET]
/api/group/all
/api/groupCalendar/all
[x] /api/group/{groupID} → /api/groupCalendar/{groupID} [GET, PATCH]
/api/group/{groupID}
/api/groupCalendar/{groupID}
In preparation for the blogging feature, endpoints are now organized:
/api/groupCalendar/**/*
/api/blog/**/*
Backend modified the following endpoints, frontend needs to update these:
[x]
/api/availability
→/api/groupCalendar/{groupID}/availability
[POST]groupID
, but instead it is apath param
[x]
api/event
→/api/groupCalendar/{groupID}/event
[POST][x]
/api/groupCalendar/auth/{groupID}
[POST]json
but just a text of the JWT access token[x]
/api/group/{multiple-ids}/multiple
→api/groupCalendar/multiple
[GET]groupIDs
to be fetchedi.e.:
/api/groupCalendar/multiple?groupID=1&groupID=2&groupID=3&
[x]
/api/group
→/api/groupCalendar/new
[POST][x]
/api/group/all
→/api/groupCalendar/all
[GET][x]
/api/group/{groupID}
→/api/groupCalendar/{groupID}
[GET, PATCH]