Go to file
William Riley-Land a3990ea724 Misc. improvements. 2015-05-10 16:55:15 -05:00
README.md Updated for 1.0.0 2015-03-05 17:42:20 -06:00
app.js Misc. improvements. 2015-05-10 16:55:15 -05:00
package.json Misc. improvements. 2015-05-10 16:55:15 -05:00

README.md

Getting Started

This project is an example server built using baucis. To install:

git clone git@github.com:wprl/baucis-example.git
cd baucis-example
npm install
node app

Now that the server is running, make HTTP GET requests like:

http://localhost:3333/api/vegetables
http://localhost:3333/api/vegetables?conditions={ "name": "tomato" }
http://localhost:3333/api/vegetables?conditions={ "name": { "$regex": "t" } }
http://localhost:3333/api/vegetables?select=_id
http://localhost:3333/api/vegetables/<_id>

Check out POST, PUT, HEAD, and DELETE requests as well…

Swagger

You can also use Swagger to interact with baucis:

First, download the swagger-ui client.

git clone git@github.com:wordnik/swagger-ui.git
open swagger-ui/dist/index.html

Point it at your API.

http://localhost:3333/api/documentation