day-cohort-70 / rare-api-superawesometeamname

rare-api-superawesometeamname created by GitHub Classroom
0 stars 0 forks source link

Features/delete a tag api/carson #67

Closed carsonruscin closed 3 months ago

carsonruscin commented 3 months ago

What?

Added support for the deletion of a tag from the database.

Why?

These changes fulfill the requirements for the Delete a tag ticket, see ticket #30 for more info.

How?

Added delete_tag function in tag.py module to handle deletion of a tag as well as a do_DELETE method inside the JSONServer class in json-server.py module to handle incoming DELETE requests from the client.

Testing?

using Postman or another similar app, send a delete request to "http://localhost:8088/tags/{the PK id of the tag to be deleted}". If no tags currently exist in your local database for testing, please add at least one then proceed with testing.