hngx-org / Hawks-events-backend

1 stars 0 forks source link

Feat: Added event deletion endpoint #126

Closed Adedoyin-Emmanuel closed 1 year ago

Adedoyin-Emmanuel commented 1 year ago

Description

I added the delete route for an event. I also added a controller function that deletes the event based on the ID passed from the request parameters ​

Related Issue

https://github.com/hngx-org/Hawks-events-backend/issues/19

Motivation and Context

This feature adds functionality to the event branch enabling the API consumers to make DELETE request to the endpoint to delete an event ​

How Has This Been Tested?

​I've tested this endpoint using POSTMAN and it returns a successful response on deleting an event successfully and also returns an error message if the event does not exist

Screenshots (if appropriate):

​ Deleting an event that exists Screenshot from 2023-09-21 10-59-53

Deleting an event that doesn't exist Screenshot from 2023-09-21 10-59-10

Types of changes