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:
mv sample.app.yml app.yml
app.yml in your favorite editor and edit the
db_connection_string path and the
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
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.
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.