make build
make run
# create users
curl -X POST http://127.0.0.1:8080/api/users -d '{"login": "bob"}' -H "Content-Type: application/json"
curl -X POST http://127.0.0.1:8080/api/users -d '{"login": "alice"}' -H "Content-Type: application/json"
# create meetings
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-07T16:20:00.000Z","endTime": "2023-03-07T16:40:00.000Z","reoccurance": 1,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-07T17:00:00.000Z","endTime": "2023-03-07T17:30:00.000Z","reoccurance": 0,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-07T20:00:00.000Z","endTime": "2023-03-07T20:30:00.000Z","reoccurance": 0,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-09T17:00:00.000Z","endTime": "2023-03-09T17:30:00.000Z","reoccurance": 0,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"
# list meetings
curl 'http://127.0.0.1:8080/api/users/alice/meetings?startTime=2023-03-07T16:00:00.000Z&endTime=2023-03-07T19:00:00.000Z'
curl 'http://127.0.0.1:8080/api/users/bob/meetings?startTime=2023-03-07T16:00:00.000Z&endTime=2023-03-07T19:00:00.000Z'
curl 'http://127.0.0.1:8080/api/users/bob/meetings?startTime=2023-03-07T16:00:00.000Z&endTime=2023-03-07T20:10:00.000Z'
curl 'http://127.0.0.1:8080/api/users/alice/meetings?startTime=2023-03-08T16:00:00.000Z&endTime=2023-03-11T19:00:00.000Z'
# find slot
curl 'http://127.0.0.1:8080/api/findSlot?startTime=2023-03-07T15:50:00.000Z&durationMinutes=30&logins=bob,alice'
curl 'http://127.0.0.1:8080/api/findSlot?startTime=2023-03-07T15:51:00.000Z&durationMinutes=30&logins=bob,alice'
# accept/decline invitation
curl -X POST http://127.0.0.1:8080/api/acceptMeeting -d '{"meetingId": "640a4862377457548608f50a", "decline": true, "login": "alice"}' -H "Content-Type: application/json"
make clean