KrisVan / Pickleball-Scheduler

Schedule pickleball with friends with weather in mind
https://pickleball-scheduler-three.vercel.app
3 stars 2 forks source link

61 session api routes #62

Closed KrisVan closed 9 months ago

KrisVan commented 9 months ago
Added API routes to interact with Session resource. Closes #61 User Route Behavior
GET users/:username/sessions b(username) > r(sessions)
POST users/:username/sessions b(username, startTime, endTime) > r(session)
Session Route Behavior
GET sessions/ Get all sessions (id, creationDate, startTime, endTime, userId?)
GET sessions/:sessionid b(sid) > r(id, creationDate, startTime, endTime, userId?)
DELETE sessions/:sessionid b(sid) > delete session