https://github.com/dblock/grape-with-mongoid
Grape API implementing a basic CRUD model with Mongoid.
https://github.com/dblock/grape-with-mongoid
Last synced: 8 months ago
JSON representation
Grape API implementing a basic CRUD model with Mongoid.
- Host: GitHub
- URL: https://github.com/dblock/grape-with-mongoid
- Owner: dblock
- Created: 2014-01-14T16:44:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-14T19:17:18.000Z (over 12 years ago)
- Last Synced: 2025-09-20T04:39:30.620Z (9 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Grape API w/ Mongoid
====================
[](http://travis-ci.org/dblock/grape-with-mongoid)
A [Grape](http://github.com/intridea/grape) API exposing [Mongoid](http://github.com/mongoid/mongoid) models.
* [crud](api/crud.rb): an example of CRUD methods
Run
---
```
$ bundle install
$ rackup
[2013-06-20 08:57:58] INFO WEBrick 1.3.1
[2013-06-20 08:57:58] INFO ruby 1.9.3 (2013-02-06) [x86_64-darwin11.4.2]
[2013-06-20 08:57:58] INFO WEBrick::HTTPServer#start: pid=247 port=9292
```
Swagger
-------
Navigate to *http://localhost:9292/api/swagger_doc/api*.