cal.pub0.org/lib/validations
Alex van Andel a506c7da33
Refactor + fix userIds filter (#179)
This fix means a behaviour change to GET calls. Instead of a JSON
payload, instead a filter param has been added to the URL itself. GET
payloads are very unexpected in API designs, even though supported.

* Todo write tests (with postman?)
* Turn isAdmin logic into common middleware

```bash
curl "http://localhost:3002/v1/schedules?apiKey=...&userId=2"
```

```bash
curl "http://localhost:3002/v1/schedules?apiKey=..." \
  -d '{"name":"Hello", "userId": 2}' \
  -H 'Content-Type: application/json'
```
2022-10-11 15:33:25 +01:00
..
shared feat: refactor teams and add team availability 2022-06-30 00:01:14 +02:00
attendee.ts fix: no strict in baseparams attendee 2022-05-20 19:43:23 +02:00
availability.ts Refactors availabilities endpoints (#177) 2022-10-10 09:42:15 -06:00
booking-reference.ts Refactors booking references endpoints (#180) 2022-10-11 15:25:57 +01:00
booking.ts Recurring booking implementation (#167) 2022-10-06 17:40:41 -03:00
destination-calendar.ts Fix: add strict and optional to have errors on extraneus params 2022-04-27 19:45:59 +02:00
event-type-custom-input.ts fix: post / patch attendees docs w examples 2022-04-27 19:25:36 +02:00
event-type.ts fix: removes daily-event-reference endpoints and types 2022-09-06 19:04:16 +02:00
membership.ts fix: post / patch attendees docs w examples 2022-04-27 19:25:36 +02:00
payment.ts fix: post / patch attendees docs w examples 2022-04-27 19:25:36 +02:00
reminder-mail.ts fix: post / patch attendees docs w examples 2022-04-27 19:25:36 +02:00
schedule.ts Refactor + fix userIds filter (#179) 2022-10-11 15:33:25 +01:00
selected-calendar.ts fix: post / patch attendees docs w examples 2022-04-27 19:25:36 +02:00
team.ts Refactors teams 2022-10-10 20:25:47 -06:00
user.ts fix: removes daily-event-reference endpoints and types 2022-09-06 19:04:16 +02:00
webhook.ts fix: remove comments 2022-06-01 17:08:01 +02:00