Skip to content

Commit

Permalink
[api] simpler doc urls, podman v5.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lispyclouds committed Sep 27, 2024
1 parent 2b17f7f commit b702122
Show file tree
Hide file tree
Showing 79 changed files with 84 additions and 86 deletions.
4 changes: 2 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
com.squareup.okhttp3/okhttp-tls {:mvn/version "4.12.0"}}
:aliases {:fetch-api {:replace-paths ["fetch_api"]
:extra-deps {io.swagger.parser.v3/swagger-parser {:mvn/version "2.1.22"}
org.babashka/http-client {:mvn/version "0.4.20"}}
org.babashka/http-client {:mvn/version "0.4.21"}}
:exec-fn main/run
:jvm-opts ["--enable-preview"]}
:test {:extra-paths ["test" "fetch_api"]
:extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}
io.swagger.parser.v3/swagger-parser {:mvn/version "2.1.22"}
org.babashka/http-client {:mvn/version "0.4.20"}}
org.babashka/http-client {:mvn/version "0.4.21"}}
:main-opts ["-m" "cognitect.test-runner"]
:exec-fn cognitect.test-runner.api/test}}}
10 changes: 5 additions & 5 deletions fetch_api/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
[java.util.concurrent Executors]))

(def sources
{:docker {:url "https://docs.docker.com/reference/engine/%s.yaml"
:doc-url "https://docs.docker.com/engine/api/%s/#tag/%s"
{:docker {:url "https://docs.docker.com/reference/api/engine/version/%s.yaml"
:doc-url "https://docs.docker.com/reference/api/engine/version/%s"
:versions ["v1.25"
"v1.26"
"v1.27"
Expand All @@ -35,7 +35,7 @@
"v1.44"
"v1.45"]}
:podman {:url "https://storage.googleapis.com/libpod-master-releases/swagger-%s.yaml"
:doc-url "https://docs.podman.io/en/%s/_static/api.html#operation/%s"
:doc-url "https://docs.podman.io/en/%s/_static/api.html"
:namespaces #{"/libpod"}
:versions ["v3.1.0"
"v3.1.1"
Expand Down Expand Up @@ -90,8 +90,8 @@
"v5.1.0"
"v5.1.1"
"v5.2.0"
"v5.2.1"
"v5.2.2"]}})
"v5.2.2"
"v5.2.3"]}})

(def resource-path "resources/contajners")

Expand Down
2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.25.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.26.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.27.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.28.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.29.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.30.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.31.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.32.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.33.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.34.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.35.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.36.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.37.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.38.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.39.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.40.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.41.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.42.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.43.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.44.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/docker/v1.45.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.1.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.1.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.1.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.2.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.2.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.2.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.2.3.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.3.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.3.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.4.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.4.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.4.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.4.3.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v3.4.4.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.0.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.0.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.0.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.0.3.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.1.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.1.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.2.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.2.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.3.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.3.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.4.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.4.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.4.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.4.3.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.4.4.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.5.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.5.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.6.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.6.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.6.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.7.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.7.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.8.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.8.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.8.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.8.3.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.9.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.9.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.9.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.9.3.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.9.4.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v4.9.5.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.0.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.0.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.0.2.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.0.3.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.1.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.1.1.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.2.0.edn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/contajners/podman/v5.2.2.edn

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/contajners/podman/v5.2.3.edn

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/contajners/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@
(some-> api
op
(select-keys [:summary])
(assoc :doc-url
(format (:contajners/doc-url api)
version
(name op)))))
(assoc :doc-url (format (:contajners/doc-url api) version))))

(defn invoke
"Performs the operation with the specified client and a map of options.
Expand Down

0 comments on commit b702122

Please sign in to comment.