Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greeter

To start

lein run

To test

$ 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:

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

About

Simple Duckula-based API

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages