From 068ddfd19f8ed0e9168a8776b29c0b9e14a7b770 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 12 Mar 2024 12:04:08 +0100 Subject: [PATCH] update API doc version to 5.0.0 Also update the website to display the correct swagger doc for the right version, the 5.0 swagger file will not exist until we branch but I added it anyway so we do not forget it. Signed-off-by: Paul Holzinger --- docs/source/Reference.rst | 6 ++++++ pkg/api/server/doc.go | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/source/Reference.rst b/docs/source/Reference.rst index de5800c116..ae80d66de8 100644 --- a/docs/source/Reference.rst +++ b/docs/source/Reference.rst @@ -7,6 +7,12 @@ Show the API documentation for version: * `latest (main branch) <_static/api.html>`_ +* `version 5.0 <_static/api.html?version=v5.0>`_ + +* `version 4.9 <_static/api.html?version=v4.9>`_ + +* `version 4.8 <_static/api.html?version=v4.8>`_ + * `version 4.7 <_static/api.html?version=v4.7>`_ * `version 4.6 <_static/api.html?version=v4.6>`_ diff --git a/pkg/api/server/doc.go b/pkg/api/server/doc.go index 518a585827..b7f31fffa9 100644 --- a/pkg/api/server/doc.go +++ b/pkg/api/server/doc.go @@ -27,15 +27,15 @@ // // 'podman info' // -// curl --unix-socket /run/podman/podman.sock http://d/v4.0.0/libpod/info +// curl --unix-socket /run/podman/podman.sock http://d/v5.0.0/libpod/info // // 'podman pull quay.io/containers/podman' // -// curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v4.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' +// curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v5.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' // // 'podman list images' // -// curl --unix-socket /run/podman/podman.sock -v 'http://d/v4.0.0/libpod/images/json' | jq +// curl --unix-socket /run/podman/podman.sock -v 'http://d/v5.0.0/libpod/images/json' | jq // // Terms Of Service: // @@ -44,7 +44,7 @@ // Schemes: http, https // Host: podman.io // BasePath: / -// Version: 4.0.0 +// Version: 5.0.0 // License: Apache-2.0 https://opensource.org/licenses/Apache-2.0 // Contact: Podman https://podman.io/community/ //