Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Change the pdf endpoint to use id instead of rakennustunnus
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-antti-mottonen committed Oct 26, 2023
1 parent e6b9c64 commit 5b307a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions etp-backend/src/main/clj/solita/etp/api/palveluvayla.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
(def accept-language-header {(s/optional-key :accept-language) schema.common/AcceptLanguage})

(def routes ["/energiatodistukset"
["/pdf"
["" {:get {:summary "Hae PDF-muotaisia energiatodistuksia"
:parameters {:query {:rakennustunnus schema.common/Rakennustunnus}
["/pdf/:id"
["" {:get {:summary "Hae PDF-muotoinen energiatodistus tunnuksen id:llä"
:parameters {:path {:id schema.common/Key}
:header accept-language-header}
:responses {200 {:body nil}
404 {:body s/Str}}
:handler (constantly {:status 200})
:openapi {:responses {200 {:description "PDF-muotoinen energiatodistus"
:content {:application/pdf {:schema {:type "string"
Expand Down

0 comments on commit 5b307a9

Please sign in to comment.