             handler (-> (s1st/swagger-context ::s1st/yaml-cp definition)
                         (s1st/swagger-ring add-ip-log-context)
                         (s1st/swagger-ring exceptions-to-json)
+                        (s1st/swagger-ring health-endpoint)
                         (s1st/swagger-ring wrap-params)
+                        (s1st/swagger-ring add-cors-allow-headers)
                         (s1st/swagger-mapper :cors-origin (:cors-origin configuration))
                         (s1st/swagger-discovery)
                         (s1st/swagger-parser)

        (log/error e "Undefined exception during request execution: %s" (str e))
        (format-undefined-error e)))))

(defn start-component
  "Starts the http component."
  [component definition mapper-fn]
  (if (:handler component)
    (do
      (log/debug "Skipping start of HTTP; already running.")
      component)

    (do

            [ring.util.response :as r]
            [org.zalando.stups.friboo.ring :as ring]
            [clojure.data.json :as json])
  (:import (clojure.lang ExceptionInfo)
           (org.apache.http.protocol HTTP)))

(defn flatten-parameters
  "According to the swagger spec, parameter names are only unique with their type. This one assumes that parameter names
