Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bamboo/clojure-retrofit-spike
A simple example on how to play with retrofit in a clojure project.
https://github.com/bamboo/clojure-retrofit-spike
Last synced: 10 days ago
JSON representation
A simple example on how to play with retrofit in a clojure project.
- Host: GitHub
- URL: https://github.com/bamboo/clojure-retrofit-spike
- Owner: bamboo
- License: unlicense
- Created: 2014-01-30T13:34:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-30T14:00:34.000Z (almost 11 years ago)
- Last Synced: 2023-03-11T02:34:59.552Z (over 1 year ago)
- Language: Clojure
- Homepage:
- Size: 125 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clojure-retrofit-spike
A simple example on how to play with [retrofit](http://square.github.io/retrofit/) in a clojure project.
Clojurians would probably go with [simpler](https://github.com/clojure/data.json) [alternatives](http://http-kit.org/client.html), specially for interacting
with the [github api](https://github.com/Raynes/tentacles).## Usage
lein repl
```
clojure-retrofit-spike.core=> (def gh (create-github-adapter))
#'clojure-retrofit-spike.core/gh
clojure-retrofit-spike.core=> (map #(get % "name") (.. gh (listRepos "gbenatti")))
("Boobel" "Boospec" "ChuckFacts" "CocosNet" "Hulk" "mono-reactive" "monomac" "our-boxen" "TDWorld" "trends-report" "UrubuDB")
clojure-retrofit-spike.core=>
```## License
Public Domain.