You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sam Codrington edited this page Feb 10, 2018
·
9 revisions
Delete Textbook
DELETE /delete/:ID
If user is logged in, and if ID matches a textbook ID is attached to that user's postedtextbooks array, deletes textbook entry and removes reference from user in database.
Headers
Content-Type
application/x-www-form-urlencoded
Request Body
No request body required
Responses
Status Code
Meaning
200
Successfully deleted
401
No User Logged In (should prompt redirect to signout/unauthorized access error)
402
Error Deleting Textbook: Specific Error Message
IMPORTANT
User is required to be logged in in order to delete textbook
User can only delete textbooks listed under their own postedtextbooks array, cannot delete Textbooks unattached to any user or other user's textbooks.