Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chazelton331/rack_api_skeleton
💀 Barebones API-layer Rack app that returns JSON
https://github.com/chazelton331/rack_api_skeleton
Last synced: 3 months ago
JSON representation
💀 Barebones API-layer Rack app that returns JSON
- Host: GitHub
- URL: https://github.com/chazelton331/rack_api_skeleton
- Owner: chazelton331
- Created: 2016-09-08T12:41:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-08T12:55:09.000Z (about 8 years ago)
- Last Synced: 2024-02-11T15:55:00.902Z (9 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Running The App
To start the application, invoke:
```
rackup -p PORT_NUM
```### Example Request
##### Ping (assumes you ran `rackup -p 3333`)
```
$ curl -v -X GET 'localhost:3333/ping'; echo
``````
< HTTP/1.1 200 OK
< Content-Type: application/json
...
{"message":"ok"}
```### Todo
* Path parser for `env["REQUEST_PATH"]`
* Query string parser for `env["QUERY_STRING"]`### Notes
* http://www.rubydoc.info/github/rack/rack/file/SPEC