joshWilbanks-school / PetServices

0 stars 0 forks source link

Add api endpoints to allow service providers to add their various services #10

Open joshWilbanks-school opened 4 days ago

joshWilbanks-school commented 3 days ago

Scenarios / Acceptance criterea:

Given a service provider is logged in, when the api is called to create a new service for the user, then the api should commit this information to the database.

Given a user is not logged in as a service provider, when any endpoint related to services other than a get is called, then the api should return an error.

Given the user of any kind is accessing the website, when the api endpoint for retrieving user services is called, then the api should return the user services requested.

Given a service provider is logged in, when the api is called to delete an existing service for the user, then the api should delete it from the database.

Given a service provider is logged in, when the api is called to update an existing service for the user, then the api should update the database with the new information.