A web front-end for testing REST APIs
This is a simple Sinatra application that provides a single-page web interface to allow you to query your REST API in a number of ways.
The API Query Tool supports the following request methods:
In addition, the query tool also allows you to authenticate with HTTP Basic Auth, send custom headers, and pass paramaters to your API.
First, run Bundler to install necessary gems:
bundle install
Next, rename sample.app.yml to app.yml
mv sample.app.yml app.yml
Now open app.yml in your favorite editor and edit the db_connection_string path and the username and password values.
The quer tool is protected by HTTP Basic Auth to prevent abuse, so you'll need to log in with the username and password you set in the qpp.yml file.
Now you can start your app, either by deploying it to your web server or simply running the apiQueryTool.rb file from the command line.
ruby apiQueryTool.rb
Note: Once your app is up and running, you should disable database migrations in app.yml - It's safe to leave database upgrades enabled, if you wish.
I built API Query tool as a demo application for Pulp.
API Query Tool also includes a copy of jQuery
Pulp is licensed under the CC BY 3.0 license.