  Copyright ( c ) 2013 The Finnish National Board of Education - Opetushallitus
;;
  This program is free software :   Licensed under the EUPL , Version 1.1 or - as
  soon as they will be approved by the European Commission - subsequent versions
  of the EUPL ( the " Licence " ) ;
;;
;; You may not use this work except in compliance with the Licence.
;; You may obtain a copy of the Licence at: /
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  European Union Public Licence for more details .

(ns aipal.integraatio.aitu
  (:require [oph.common.util.cas :refer [get-with-cas-auth]]
            [aipal.asetukset :refer [asetukset]]
            [cheshire.core :as cheshire]))

(defn hae-koulutustoimijoiden-tutkinnot-ja-jarjestamissopimukset
  []
  (->
    (get-with-cas-auth :aitu (str (get-in @asetukset [:aitu :url])
                                    "api/aipal/sopimukset/v2"))
    :body
    cheshire/parse-string))




 You may not use this work except in compliance with the Licence.
 You may obtain a copy of the Licence at: /

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  Copyright ( c ) 2013 The Finnish National Board of Education - Opetushallitus
  This program is free software :   Licensed under the EUPL , Version 1.1 or - as
  soon as they will be approved by the European Commission - subsequent versions
  European Union Public Licence for more details .

(ns aipal.integraatio.aitu
  (:require [oph.common.util.cas :refer [get-with-cas-auth]]
            [aipal.asetukset :refer [asetukset]]
            [cheshire.core :as cheshire]))

(defn hae-koulutustoimijoiden-tutkinnot-ja-jarjestamissopimukset
  []
  (->
    (get-with-cas-auth :aitu (str (get-in @asetukset [:aitu :url])
                                    "api/aipal/sopimukset/v2"))
    :body
    cheshire/parse-string))
