Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukaszkorecki/greeter
Simple Duckula-based API
https://github.com/lukaszkorecki/greeter
Last synced: 21 days ago
JSON representation
Simple Duckula-based API
- Host: GitHub
- URL: https://github.com/lukaszkorecki/greeter
- Owner: lukaszkorecki
- Created: 2020-05-29T23:17:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T16:33:33.000Z (over 4 years ago)
- Last Synced: 2024-10-24T02:55:55.279Z (2 months ago)
- Language: Clojure
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Greeter
To start
```
lein run
```To test
```shell
$ curl localhost:9100/hello -d '{"name" : "Alice" }' -H 'Content-type: application/json' -qvs | jq .
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 9100 (#0)
> POST /hello HTTP/1.1
> Host: localhost:9100
> User-Agent: curl/7.58.0
> Accept: */*
> Content-type: application/json
> Content-Length: 19
>
* upload completely sent off: 19 out of 19 bytes
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 26
<{
"message": "hello, Alice"
}```
## Swagger documentation
To enable Swagger documentation:
```shell
WITH_SWAGGER=1 lein run
```then go to
http://localhost:9100/~docs/ui
# Clojure/north slides
https://preview.pitch.com/app/presentation/87287202-5035-4d66-9158-2077946202e0/8e192358-8791-43d6-9e26-7a6a58938655