Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/astynax/wai-rpc

Example project showing the usage of WAI Haskell package
https://github.com/astynax/wai-rpc

Last synced: about 10 hours ago
JSON representation

Example project showing the usage of WAI Haskell package

Awesome Lists containing this project

README

        

# WAI RPC

This project shows how to implement a simple WebApp (RPC-server) with WAI.

## Building:

```shell
$ stack build
```

## Running

```shell
$ stack exec wai-rpc
Serving (hit Ctrl+C to stop)...
```

## API

```shell
$ curl http://localhost:8000
Available functions:
reverse
upper
$ curl http://localhost:8000/upper
returns string with each character in upper case
$ curl http://localhost:8000/upper?hello%20world
HELLO WORLD
```