A customizable web server for mocking HTTP JSON API responses for REST webservices

Ci

A customizable web server for mocking HTTP JSON API responses for REST webservices.

json-mockr is written in Kotlin using Springboot as the underlying server.

Motivation

The motivation behind this software is to provide an easy way to mock external APIs during development phase without much configuration but also flexible enough.

Features

  • Support for nested resources
  • GET, POST, PUT, DELETE with NOT_FOUNDMETHOD_NOT_ALLOWEDOKCREATED and NO_CONTENT responses
  • List responses with arrays or wrapped in an envelope
  • Resource validation with BAD_REQUEST response

Limitations

  • PATCH NOT IMPLEMENTED
  • In Memory database (by design)

⌨️ Usage

Check the Documentation

Contributing

To get started, please fork the repo and checkout a new branch. You can then build the library with the Maven wrapper

./mnvw clean package

See more info in CONTRIBUTING.md

⚖️ License

This software is licensed under the MIT License

GitHub

View Github

Leave a Reply

Your email address will not be published. Required fields are marked *