forked from abramhindle/CMPUT404-project-socialdistribution
-
Notifications
You must be signed in to change notification settings - Fork 1
Delete post by ID
Fraser Redford edited this page Apr 15, 2021
·
3 revisions
This will allow the deletion of a specific post by author of the post.
Basic authorization (base64 encoded username:password):
--header "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="
or token authorization is required:
--header "Authorization: Token 9d9ed917fe1ead2d1e27ac7dc233348ed2e3d4c0"
No body required
No request required
No body response sent
-
200 OKupon a successful deletion of a post -
400 BAD REQUESTif bad information is passed in the request -
403 FORBIDDENif a user is not authenticated