JuhoBjn / online-store

An online store made for a course project.
0 stars 1 forks source link

Events endpoints #107

Closed vaasuu closed 10 months ago

vaasuu commented 10 months ago

Adds the following features:

HTTP ENDPOINT WHAT IT DOES
post /api/events add new Event
delete /api/events/:id delete Event
patch /api/events/:id update Event
get /api/events/:id get Event
get /api/events get Events
post /api/events/:id/attendees add Attendee
delete /api/events/:id/attendees/:userId delete Attendee
get /api/events/:id/attendees get Event Attendees
get /api/users/:userid/events get all Events user has signed up for

Also adds support for uploading files/images to S3 compatible object storage (currently using it for event images).

I've not added any automated tests yet (takes time, that we do not have currently), so I'm writing automated tests in another PR after everything more important is done. I'm pretty sure everything works as I tested them with the REST Client as I built them.