Hi I have this fake mockup api and want to post to it, but keep getting 404 Not Found
and by the way I'm using JSON-server to serve the API file locally & Postman to do the crud requests. Besides GET, I can't seem to POST nor UPDATE or DELETE.
Here is the some part of the JSON API Data:
[
{
"9777b915-edd9-467d-a01f-ee3f493be3b3": [
{
"text": "Optio molestiae libero doloribus omnis eum.",
"user": "faviansteuber"
}
],
"6df0a88f-1b14-4e85-87de-7bfd305ec6dc": [
{
"text": "Cupiditate consequuntur cupiditate officia quidem iusto.",
"user": "lyricsawayn"
}
]
}
]
How do you think one would make a Post request to such api using their key? Also it's in an array called "comments" and I visit the url http://localhost:3000/comments and that's the result it gives me. Thanks