https://github.com/spk/cotedeporc
Little quote api with Hanami and Sequel
https://github.com/spk/cotedeporc
Last synced: 4 months ago
JSON representation
Little quote api with Hanami and Sequel
- Host: GitHub
- URL: https://github.com/spk/cotedeporc
- Owner: spk
- License: mit
- Created: 2012-05-08T21:33:29.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T11:41:10.000Z (almost 2 years ago)
- Last Synced: 2025-10-10T20:05:59.777Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 29.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cotedeporc
## Quotes api with Hanami and Sequel
### Run
```
bundle install
bundle exec rackup
```
### Add a quote
```
curl -v -XPOST http://127.0.0.1:9292/v1/quotes \
-d 'quote[topic]=youpi' -d 'quote[body]=youpi !!!'
```
### List quotes
```
curl -v http://127.0.0.1:9292/v1/quotes
```
## License
The MIT License
Copyright (c) 2012-2019 Laurent Arnoud