initial commit - code moved to separate repo
This commit is contained in:
30
rest-client
Normal file
30
rest-client
Normal file
@ -0,0 +1,30 @@
|
||||
### GET ALL SHIFTS
|
||||
GET http://localhost:3001/api/data/shifts
|
||||
|
||||
### ALL Locations
|
||||
http://localhost:3001/api/data/locations
|
||||
|
||||
### generate a new shift
|
||||
GET http://localhost:3001/api/shiftgenerate?date=2022-12-04T12:21:52.939Z
|
||||
###get all shifts
|
||||
http://localhost:3001/api/data/shifts
|
||||
|
||||
### get all shifts for a given date
|
||||
http://localhost:3001/api/data/shifts?where:{"startTime":"$and":{{"$gte":"2022-12-04T15:09:47.768Z","$lt":"2022-12-10T15:09:47.768Z"}}}
|
||||
### url encoded
|
||||
http://localhost:3001/api/data/shifts?where%3A%7B%22startTime%22%3A%22%24and%22%3A%7B%7B%22%24gte%22%3A%222022-12-04T15%3A09%3A47.768Z%22%2C%22%24lt%22%3A%222022-12-10T15%3A09%3A47.768Z%22%7D%7D%7D
|
||||
# http://localhost:3001/api/data/shifts?where=startTime_gte=2022-12-04T15:09:47.768Z&where=startTime_lte=2022-12-04T15:09:47.768Z
|
||||
|
||||
|
||||
### availabilities
|
||||
http://localhost:3001/api/data/availabilities
|
||||
###
|
||||
http://localhost:3001/api/data/availabilities?select=id,name,dayofweek,startTime,endTime,publisher.firstName,publisher.lastName
|
||||
|
||||
|
||||
|
||||
|
||||
###
|
||||
http://localhost:3001/api/data/publishers/1?include=availabilities,shifts
|
||||
|
||||
|
Reference in New Issue
Block a user