Thursday 20 April 2017

Correct HTTP method to use when handling documents in MongoDB

I have a mean web app. I used a MongoDB document for each one of my users. I was wondering about which HTTP method to use for handling the documents.

For example, when I do push to an array in MongoDB document, should I use PATCH, PUT, POST? When I remove an item from an array, should I use PATCH, PUT, DELETE?

What is the general idea here?

Thanks



via Edgar Barber

No comments:

Post a Comment