jsonplaceholder
jsonplaceholder copied to clipboard
A simple online fake REST API server
**Expected Behavior** As outlined here: https://github.com/typicode/jsonplaceholder#creating-a-resource I was expecting the result to be a `200 OK` with an object with these properties: ``` /* will return { id: 101, title:...
I'm using this amazing tool to create an test app, but when I call list "/posts" it's raising an exception "invalid value '-1' parser"
Allows for systems that support the Swagger spec to more easily consume the test dataset.
## Steps to reproduce: - Note the lack of stringifying the body object ``` fetch('https://jsonplaceholder.typicode.com/posts/1', { method: 'PUT', body: { id: 1, title: 'foo', body: 'bar', userId: 1 }, headers:...
## Steps to reproduce: ``` fetch('https://jsonplaceholder.typicode.com/posts', { method: 'POST', body: JSON.stringify({ title: 'foo', body: 'bar', userId: 1 }), headers: { "Content-type": "application/json; charset=UTF-8" } }) .then(response => response.json()) .then(json =>...
Add documentation to limit response items
When calling a GET for https://jsonplaceholder.typicode.com/posts/1/comments all comments for every post is returned. Expected behaviour is that only comments with postId of 1 should be returned. This is occurring in...
There is no post request available for the comments as we can add/create new posts using post request but we cannot add comments for the newly created posts,please provide new...
Wouldn't it be great if the URLs in https://jsonplaceholder.typicode.com/photos pointed to actual images rather than a placeholder? There are many APIs that can be used for this. I personally like...
Is there a way to paginate the results? i.e. ?page=1 or ?limit=10