How are you mocking data if API is not ready?
Running a Mock API Server in seconds
$ npx api-nowThen try your mock api like: $ curl http://localhost:3003/users?_page=1&_limit=5
Github repo: https://github.com/ngduc/api-now
Features:
Default datasets out-of-the-box: todos, users, posts, comments (using faker). Just run $ api-now
HTTPS support (with key, cert files).
Can take a .json or .js file.
GraphQL endpoint to serve faker data: /graphql
Can serve a static directory (e.g. /dist, /public etc.)
APIs support pagination (_page, _limit).
/echo route to respond parameters back as json.
/file route to serve any file type (including images).
/login route (POST) to respond with a dummy JWT token (using jsonwebtoken).
/todos route to return a list of todo items (follow TodoMVC specs).
/image/random to serve a random image file from a directory.
/avatar/random to serve a random avatar image.
/nature/random to serve a random nature image.