smollweide / Node Mock Server
Licence: mit
File based Node REST API mock server
Stars: ✭ 225
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Node Mock Server
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+1432.44%)
Mutual labels: rest-api, swagger, mock
Morphlingjs
A CLI to mock with meaningful data a REST API from a Swagger file
Stars: ✭ 148 (-34.22%)
Mutual labels: swagger, faker, mock
Openapi Backend
Build, Validate, Route, Authenticate and Mock using OpenAPI
Stars: ✭ 216 (-4%)
Mutual labels: swagger, mock
Swagger meqa
Auto generate and run tests using swagger/OpenAPI spec, no coding needed
Stars: ✭ 151 (-32.89%)
Mutual labels: rest-api, swagger
Proteus
Lean, mean, and incredibly fast JVM framework for web and microservice development.
Stars: ✭ 178 (-20.89%)
Mutual labels: rest-api, swagger
Gemini
Model Driven REST framework to automatically generate CRUD APIs
Stars: ✭ 138 (-38.67%)
Mutual labels: rest-api, swagger
Ssm
👅基于RESTful风格的前后端分离的SSM框架,集成了shiro和swagger等框架
Stars: ✭ 141 (-37.33%)
Mutual labels: rest-api, swagger
Mockinizer
An okhttp / retrofit api call mocking library
Stars: ✭ 176 (-21.78%)
Mutual labels: rest-api, mock
Grpc Gateway
The gRPC-Gateway is a plugin of the Google protocol buffers compiler
protoc.
It reads protobuf service definitions and generates a reverse-proxy server which
translates a RESTful HTTP API into gRPC. This server is generated according to the
google.api.http
annotations in your service definitions.
Stars: ✭ 12,223 (+5332.44%)
Mutual labels: rest-api, swagger
Drf Yasg
Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
Stars: ✭ 2,523 (+1021.33%)
Mutual labels: rest-api, swagger
Swagger Codegen
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
Stars: ✭ 13,859 (+6059.56%)
Mutual labels: rest-api, swagger
Swagger Js
Javascript library to connect to swagger-enabled APIs via browser or nodejs
Stars: ✭ 2,319 (+930.67%)
Mutual labels: rest-api, swagger
Go Codon
Workflow based REST framework code generator
Stars: ✭ 133 (-40.89%)
Mutual labels: rest-api, swagger
Tsed
📐 Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.
Stars: ✭ 1,941 (+762.67%)
Mutual labels: rest-api, swagger
Raml Server
run a mocked server JUST based on a RAML API's definition .. zero coding
Stars: ✭ 158 (-29.78%)
Mutual labels: swagger, mock
Openapi Directory
🌐 Wikipedia for Web APIs. Directory of REST API definitions in OpenAPI 2.0/3.x format
Stars: ✭ 2,635 (+1071.11%)
Mutual labels: rest-api, swagger
Swagger Express Ts
Generate and serve swagger.json
Stars: ✭ 102 (-54.67%)
Mutual labels: rest-api, swagger
Graphql Faker
🎲 Mock or extend your GraphQL API with faked data. No coding required.
Stars: ✭ 2,361 (+949.33%)
Mutual labels: faker, mock
node-mock-server
File based Node REST API mock server
Getting Started
This application requires Node 6
or higher.
For Node <6
please use [email protected]
For Node <4
please use [email protected]
1. Install npm package:
$ npm install node-mock-server --save-dev
2. Start init process:
$ node node_modules/node-mock-server/init
Options
Usage examples
node-mock-server usage examples
Features
- Node.js and file based (folder structure)
- Node Mock Server UI
- Functions in mock data
- Faker included
- Query params in mock data
- Dynamic path params in mock data
- Expected responses
- Middleware responses
- Express Middleware
- Error cases
-
Swagger import
- DTO import
- DTO response function
- Response validation
- Response header
- DTO to Class converter
- Collections
- Tunnel
CLI
$ node <nodeScript> --help
Usage
$ node <nodeScript> [--version] [--help] <command> [<args>]
Options
$ start mock server
$ --version print node-mock-server version
$ --help print help
$ swagger-import run a swagger import
$ validate run a validation for all mock data
$ collections print all available collections
$ collection <id> activate collection
Examples
$ node demo/index.js --version
$ node demo/index.js collections
Demo
git clone https://github.com/smollweide/node-mock-server.git
cd node-mock-server
npm install
node demo
License
Changelog
Please see the Releases
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].