14. HTTP with Ring
Activity 14.01: Exposing Historic Tennis Results and ELO Calculations via REST
Solution:
- Add the following dependencies to
packt-clj.tennis
in thedeps.edn
file:{:deps {.. Â Â Â Â Â Â Â Â clj-http {:mvn/version "3.10.0"} Â Â Â Â Â Â Â Â compojure {:mvn/version "1.6.1"} Â Â Â Â Â Â Â Â metosin/muuntaja {:mvn/version "0.6.4"} Â Â Â Â Â Â Â Â org.clojure/data.json {:mvn/version "0.2.6"} Â Â Â Â Â Â Â Â ring/ring-core {:mvn/version "1.7.1"} Â Â Â Â Â Â Â Â ring/ring-jetty-adapter {:mvn/version "1.7.1"}}
- Create our namespace with the following
require
route:(ns packt-clj.tennis.api   (:require     [clojure.edn :as edn]     [compojure.core :refer [context defroutes...