diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-21 15:31:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 15:31:32 -0500 |
commit | 6fd83de31dab0c60932972c6b26f68fa0bd1871f (patch) | |
tree | d017ed4d59da4a0f0b703430d60b2d2f43484aaa /pkg/api/server | |
parent | 3ba1a8de8649db2f5cdde80d0f4cf02370e10b8a (diff) | |
parent | 9d31fed5f75186f618e95ab7492ef6bc2b511d5f (diff) | |
download | podman-6fd83de31dab0c60932972c6b26f68fa0bd1871f.tar.gz podman-6fd83de31dab0c60932972c6b26f68fa0bd1871f.tar.bz2 podman-6fd83de31dab0c60932972c6b26f68fa0bd1871f.zip |
Merge pull request #9027 from Luap99/podman-volume-exists
Podman volume exists
Diffstat (limited to 'pkg/api/server')
-rw-r--r-- | pkg/api/server/register_volumes.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkg/api/server/register_volumes.go b/pkg/api/server/register_volumes.go index aa0f67604..68727f2e1 100644 --- a/pkg/api/server/register_volumes.go +++ b/pkg/api/server/register_volumes.go @@ -28,6 +28,28 @@ func (s *APIServer) registerVolumeHandlers(r *mux.Router) error { // '500': // "$ref": "#/responses/InternalError" r.Handle(VersionedPath("/libpod/volumes/create"), s.APIHandler(libpod.CreateVolume)).Methods(http.MethodPost) + // swagger:operation GET /libpod/volumes/{name}/exists libpod libpodExistsVolume + // --- + // tags: + // - volumes + // summary: Volume exists + // description: Check if a volume exists + // parameters: + // - in: path + // name: name + // type: string + // required: true + // description: the name of the volume + // produces: + // - application/json + // responses: + // 204: + // description: volume exists + // 404: + // $ref: '#/responses/NoSuchVolume' + // 500: + // $ref: '#/responses/InternalError' + r.Handle(VersionedPath("/libpod/volumes/{name}/exists"), s.APIHandler(libpod.ExistsVolume)).Methods(http.MethodGet) // swagger:operation GET /libpod/volumes/json libpod libpodListVolumes // --- // tags: |