lilbond / js-mock

Home Page:HomePage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple NodeJS based mock server with support of kafka producer

Usage

npm install
node index.js

With Mock Data

Replace JSON in data folder and use the endpoint

http://localhost:7000/mock

Simple greetings

http://localhost:7000/greetings

Delayed response

http://localhost:7000/delayed?delay=3000

Change value of delay according to use. No type check is or error handling is done. Please use valid integer.

Internal Server Error

http://localhost:7000/error/500

Produce Basic Kafka Event

http://localhost:7000/produce

About

HomePage


Languages

Language:JavaScript 100.0%