Build an example REST API server with Baucis
JavaScript
Switch branches/tags
Nothing to show
Latest commit a3990ea May 11, 2015 @wprl Misc. improvements.
Permalink
Failed to load latest commit information.
README.md Updated for 1.0.0 Mar 5, 2015
app.js Misc. improvements. May 10, 2015
package.json Misc. improvements. May 10, 2015

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