DNY Node API (7 – Posts)

dnyNodeAPI-final

First make sure you have the id of the user by signing in.

Then by GET on url /posts/by/{id of user}, you will get all the posts created by this user.

From the result, get the _id of the post you want to change. Then do a PUT on /post/{id of post} with JSON data to specify what you want to change.