prism
Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)
json-server
Get a full fake REST API with zero coding in less than 30 seconds (seriously) (by typicode)
Our great sponsors
prism | json-server | |
---|---|---|
25 | 76 | |
3,957 | 70,865 | |
2.0% | - | |
8.5 | 8.7 | |
6 days ago | 9 days ago | |
TypeScript | JavaScript | |
Apache License 2.0 | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prism
Posts with mentions or reviews of prism.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-01-25.
-
How to Automatically Consume RESTful APIs in Your Frontend
Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.
- The most effective Schema-Driven Development using OpenAPI for Logistic Engineer
-
Show HN: Generate JSON mock data for testing/initial app development
I use https://stoplight.io/open-source/prism with x-faker properties in my OpenAPI specs to mock APIs with dynamic content.
-
Please recommend a good API Mocking tool
Haven't tried it yet, but discovered https://microcks.io/ yesterday. Otherwise https://stoplight.io/open-source/prism is pretty good
-
Prism: a useful developer tool for OpenAPI specs
Prism does more than mocking; You can also use it to inspect any discrepancies between your API implementation and the API spec. You can find out more on their GitHub page:https://github.com/stoplightio/prism
-
How do people deal with mocking CRUD operations for the purposes of testing?
use a mock API server that can read openapi spec (e.g. Prism)
-
Faster time-to-market with API-first
prism
-
install db locally or go with docker image for development?
What about skipping the DB all together and using OpenAPI w/ a Mock Server for local development https://openapi.tools/#mock personally like https://stoplight.io/open-source/prism
- Resurse utile pentru crearea unui REST API?
-
Best way to mock large number of dependent apis
I have been experiencing with Prism : https://github.com/stoplightio/prism which woks quite well
json-server
Posts with mentions or reviews of json-server.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-01-30.
- Usando Spring Boot RestClient
-
Using json-server to create a mock back-end for front-end development
JSON Server
-
Full Stack To Do list, a step-by-step tutorial
Our backend will be little more than a two-way translation layer between the database and the user interface (UI). Later in this post we will identify other responsibilities of a backend but our implementation will be kept simple to demonstrate the fundamental machinery and concepts. It is worth noting the backend comes in two parts, web server and application server. Both json-server and Express are able to facilitate these roles from the same URL. This is very useful for our tutorial because we do not have to configure the server to manage Cross-Origin Resource Sharing (CORS). It is quite typical for production systems to separate these server roles for all sorts of good reasons but for now it would just create an additional complication.
-
Improve Frontend-Backend development harmony with JSON-Server
JSON-Server creates fake REST API with a minimum amount of configuration, it provides a simple way to create mock RESTful APIs and easily define the required endpoints, allows easy definition of the data schema in a JSON file and can serve as a reference for each figure in the project.
-
Dictionary app
I thought about usingJson Server (hosting the repo with the words on Github to begin with), Googlesheets, or maybe Firestore (i would prefer not to use it ,to avoid extra costs just in case it gets a reasonable amount of users). It isnt a big app so i just want a simple solution for storing the words and fetching them.
-
You can serve static data over HTTP
There is https://github.com/typicode/json-server that is really useful for that matter
-
which backend technology do you see having the brightest future? (for jobs)
JSON server https://github.com/typicode/json-server
- What part of Frontend you don't like doing, but have to do it?
-
Playwright - Mock API
The API server is built using json-server. You can find all the steps to reproduce the feature in this commit.
-
📚 RTK Query Tutorial (CRUD)
json-server will serve in http://localhost:8000
What are some alternatives?
When comparing prism and json-server you can also consider the following projects:
Express - Fast, unopinionated, minimalist web framework for node.
Lowdb - Simple and fast JSON database
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
msw - Seamless REST/GraphQL API mocking library for browser and Node.js.
WireMock - A tool for mocking HTTP services
Next.js - The React Framework
http-server - a simple zero-configuration command-line http server
miragejs - A client-side server to build, test and share your JavaScript app
dredd - Language-agnostic HTTP API Testing Tool
axios - Promise based HTTP client for the browser and node.js
backstage - Backstage is an open platform for building developer portals