CotripperPlatform / CoTrip

GA Development
3 stars 12 forks source link

Updated Edit Post Permission/Authentication Settings #589

Closed arjunrawal07 closed 4 years ago

arjunrawal07 commented 4 years ago
mrrogercampbell commented 4 years ago

Hey @arjunrawal07, could you please provide me the Postman Request you used to test this? I would like to use them on this end to verify everything is working.

arjunrawal07 commented 4 years ago

@rc1336 Of course. Please see below for a post I created through a dummy I account I made.

Before submitting the PUT request, you have to login, and store the token given to you after logging in as an Authorization Header in Postman.

Request Method: PUT Endpoint(insert primary key, or id, of Post at end of url): http://localhost:8000/posts/16 Body: { "id": 16, "post_type": "Post", "title": "TESTING12345678!!!", "time": "2020-05-14T19:01:59.021103Z", "body": "TESTING123", "likes": 0, "author": 7, "parent": [ 6 ] }

clarknoah commented 4 years ago

@arjunrawal07 hey you've got a conflict in your pipfile.lock, fix that so I can work on merging this baby!

arjunrawal07 commented 4 years ago

@clarknoah I believe I've resolved the conflict.

mrrogercampbell commented 4 years ago

@arjunrawal07 Testing this now.