Remove TimeInterval - MarcoLagalla/marette_backend GitHub Wiki

Name Remove TimeInterval
Description Delete the timeinterval for the given restaurant
URL restaurant/<int:id>/opening/day/<int:d_id>/interval/<int:f_id>/delete
Allowed methods POST
Authorizations IsBusiness

Params:

Name type Description
<int:id> integer Restaurant ID
<int:d_id> integer Day ID
<int:f_id> integer TimeInterval ID

POST


Remove the timeinterval object (id: f_id) from the given day of opening (id: d_id)

Return codes

Status Description
HTTP_200_OK deleted
HTTP_404_NOT_FOUND restaurant or token not found
HTTP_401_UNAUTHORIZED wrong token
⚠️ **GitHub.com Fallback** ⚠️