Code Monkey home page Code Monkey logo

rexy's Introduction

Rexy

A lightweight REST mock/proxy server.

Documentation

Overview

Rexy is designed to allow dynamic testing of different scenarios during integration testing of REST endpoints. It is typically configured as a proxy server with the standard behaviour to simply forward requests on to the actual API endpoint. Rexy can then be configured to intercept certain requests and return specific responses. This can be helpful for testing error scenarios that may be difficult or impossible to trigger on an ad-hoc bases on the API endpoint itself.

Details of the different APIs to proxy as well as presets for responses are configured by a simple JSON file. Runtime configuration is performed via JMX or via the Wexy module as a web application.

Running

Start Rexy by running the com.github.samblake.rexy.Rexy class, optionally specifying a configuration file as an argument. Alternatively build via Maven and run the resulting jar.

FAQ

Can Rexy be used to test APIs without proxying?

Yes, it is not a requirement to specify an endpoint to proxy to. If a request is not intercepted a 502 response will be returned. This can be useful for testing APIs when there is only a production endpoint.

Can Rexy be configured without JMX?

Although it still uses JMX in the background the Wexy module provides a web interface for runtime configuration.

Can non-JSON response presets be configured?

Yes, they just need to be specified in their own files and referenced from the JSON configuration.

rexy's People

Contributors

dependabot[bot] avatar samblake avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.