Hello, first things first: thank you for creating this boilerplate - it actually saves a lot of my time.
I suppose that instead of new_person._id, your code should be referring to the .id property, without the underscore. I consider this is essential because some developers may get confused with this example.
If you are running this locally, the endpoint is
POST http://localhost:5000/persons
Content-Type: application/json
{
"name": "Joe",
"email": "joe@example.com"
}
Hello, first things first: thank you for creating this boilerplate - it actually saves a lot of my time.
I suppose that instead of
new_person._id
, your code should be referring to the.id
property, without the underscore. I consider this is essential because some developers may get confused with this example.If you are running this locally, the endpoint is
I've tested this and it works: