Coder Social home page Coder Social logo

restmocker's Introduction

RESTMocker

RESTMocker is a (very simple at the moment) tool for mocking up RESTful webservices. It can be of helpful for prototyping a client app while the real webservice is not readily available.

How does it work?

It works by creating "realms" for specific projects and storing "documents" in each of them. This documents can be in JSON, XML or whatever format you choose to since you're simply pasting code in there and setting up an associated mime type. Regular expressions are used to match incoming HTTP requests to documents in the very same fashion of how Django routing works. Parts of the URI can be extracted and replaced in the document itself since it is treated as a Django template and the whole power of the templating language is there to be used. Since 2011-05-08 binary documents are supported via attachments. Please keep in mind that the proper mime type for document stills need to be set manually, even when serving the contents from binary attachments.

An additional text substitution feature is available there to perform simple transformations in all of the documents of a given realm. This way you can, for example, replace all of the images referenced in a JSON document with one single image of your choice. This part is also powered by regular expressions.

The administrator's UI is mostly a vanilla Django admin one but works nicely for the purpose.

At Bit Zeppelin, we're using this tool for easing up our iPhone developing tasks. We hope this little product is helpful for you.

Verb support

For now, only GET operations are supported. Support for PUT, POST and DELETE is planned but still in the pipeline. We're adding features as we need them so please stay tuned or send us pull requests with patches.

License

RESTMocker is distributed under the BSD license.

(C) 2011 - Antonio Ognio [email protected]

restmocker's People

Contributors

gnrfan avatar

Stargazers

David Chen avatar

Watchers

James Cloos avatar David Chen 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.