Code Monkey home page Code Monkey logo

vrap's Introduction

Build Status

VRAP

Vrap is a validating REST API proxy. In order to be able to validate rest api calls the proxy consumes RAML 1.0 definition files

Usage

Docker

To start vrap using docker use the following command

docker run -v<RAML-definition-directory>:/api -p5050:5050 vrapio/vrap /api/api.raml 

Running vrap locally

Run from shadow/fat jar

Build shadow jar with gradle:

./gradlew shadowJar

Then run built shadow with java:

java -jar build/libs/vrap-all.jar <path-to-raml-file>

Directly via gradle

./gradlew run -PcliArgs=<path-to-raml-file>

Validation

In order to validate incoming requests and responses your application has to be configured to use the vrap api url: http://localhost:5050/api

Web Interface

Vrap includes a small web interface for browsing the API definition.

vrap's People

Contributors

jenschude avatar katmatt avatar zombieleet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

qijiang60

vrap's Issues

Add rewriting of Location header

When creating a resource, a proxied response with a status code 201 or 202 can contain a location header with the absolute url of the new resource. This url points to the proxied server and clients that use the location header will then bypass ramble.

Ramble should replace the absolute url to the resource with an absolute url pointing back to itself.

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.