Skip to content

Latest commit

 

History

History
44 lines (42 loc) · 2.07 KB

File metadata and controls

44 lines (42 loc) · 2.07 KB

Ironhack-Final-Project

Listado de Endopints API:

Id Method Path Description
1 Get '/api/bookings' Get all bookings.
2 Get '/api/bookings/pending' Get booking with pending approval.
3 Put '/api/bookings/:_id' Update one booking.
4 Post '/api/bookings/new' Create new booking.
5 Delete '/api/bookings/:_id' Delete one booking.
6 Get '/api/users' Get all users.
7 Put '/api/users/:_id' Update one user.
8 Post '/api/users/new' Create new user.
9 Delete '/api/users/:_id' Delete one user.
10 Get '/api/occupancies' Get all occupancies.
11 Post '/api/occupancies/new' Create new occupancy.
12 Put '/api/occupancies/:_id' Update one occupancy.
13 Delete '/api/occupancies/:date' Delete many occupancies.
14 Delete '/api/occupancies/delete/:_id' Delete one occupancies.
15 Get '/api/lessons/filter' Get all lessons filtered by query (?startDate=2021-04-12z&endDate=2021-04-24z).
16 Post '/api/lessons/new' Create new lesson.
17 Put '/api/lessons/:_id' Update one lesson.
18 Delete '/api/lessons/:_id' Delete one lesson.
19 Get '/api/meals/filter' Get all meals filtered by query (?startDate=2021-04-12z&endDate=2021-04-24z).
20 Post '/api/meals/new' Create new meal.
21 Put '/api/meals/:_id' Update one meal.
22 Delete '/api/meals/:_id' Delete one meal.
23 Get '/api/rates/' Get all rates.
24 Get '/api/rates/filter' Get all rates filtered by query (?rateType=surfcampLongbeach&number=5&season=alta).
25 Post '/api/rates/new' Create new rates.
26 Put '/api/rates/:_id' Update one rate.
27 Delete '/api/rates/:_id' Delete one rate.
28 Post '/api/auth/login' User log in.
29 Post '/api/auth/logout' User log out.
30 Get '/api/auth/loggedin' Check if user is logged in.
31 Get '/api/beds/' Get all beds.
32 Post '/api/beds/new' Create new beds.
33 Put '/api/beds/:_id' Update one bed.
34 Delete '/api/beds/:_id' Delete one bed.
35 Get '/api/seasons/' Get all seasons.
36 Post '/api/seasons/new' Create new seasons.
37 Put '/api/seasons/:_id' Update one season.
38 Delete '/api/seasons/:_id' Delete one season.