Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/astynax/wai-rpc
- Owner: astynax
- License: bsd-3-clause
- Created: 2015-08-30T18:09:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-01T13:23:40.000Z (over 9 years ago)
- Last Synced: 2023-08-03T03:55:33.529Z (over 1 year ago)
- Language: Haskell
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```