A mock REST API for prototyping, testing, and development — powered by my-json-server from @typicode.
This repo contains a simple db.json file that acts as a fake API backend. It can be accessed online without any setup using the Typicode-hosted my-json-server.
You can use this fake API via:
https://my-json-server.typicode.com/uptype/mock-api
Replace
/characters,/planets, etc. as needed.
Example endpoints:
The API is based on the structure of db.json in this repo. You can add or modify the data as needed to suit your testing.
- Front-end prototyping
- Demo projects
- Testing API integrations without a real backend
- Quick mocking in dev environments
This project is built using:
- json-server by @typicode → https://github.com/typicode/json-server
- my-json-server → https://my-json-server.typicode.com/
Head over to the my-json-server website for more info.
https://my-json-server.typicode.com/typicode/demo
If you'd rather spin-up and run a local version instead of using the hosted version, clone this repo and run:
npm install -g json-server json-server --watch db.json
Then access it at: http://localhost:3000
This mock-api is in no way affiliated with or endorsed by Lucasfilm Limited or any of its subsidiaries, employees, or associates. This mock-api offers no suggestion that the work presented on this web page is "official" or produced or sanctioned by the owner or any licensees of the aforementioned trademarks. This mock-api will take all steps necessary to ensure that any usage of trademarked items in no way confuses the audience of this site as to its origin. This mock-api makes no claim to own Star Wars or any of the copyrights or trademarks related to it. Images that are displayed on this site are copyrighted to Lucasfilm Limited or another partner of Lucas Licensing, or to the creator of the image. Visitors may download any pictures displayed on this site for personal use, as long as they are not used for profit, and proper credit is given.
The data and images are used without claim of ownership and belong to their respective owners.
This repo is open source and available under the MIT License.