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: 30 days ago
JSON representation

💀 Barebones API-layer Rack app that returns JSON

Lists

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