mirror of
https://github.com/containers/podman.git
synced 2025-06-03 03:07:56 +08:00
Merge pull request #7638 from jwhonce/wip/archive
Correct HTTP methods for /containers/{id}/archive
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (s *APIServer) registerAchiveHandlers(r *mux.Router) error {
|
func (s *APIServer) registerAchiveHandlers(r *mux.Router) error {
|
||||||
// swagger:operation POST /containers/{name}/archive compat putArchive
|
// swagger:operation PUT /containers/{name}/archive compat putArchive
|
||||||
// ---
|
// ---
|
||||||
// summary: Put files into a container
|
// summary: Put files into a container
|
||||||
// description: Put a tar archive of files into a container
|
// description: Put a tar archive of files into a container
|
||||||
@ -84,9 +84,9 @@ func (s *APIServer) registerAchiveHandlers(r *mux.Router) error {
|
|||||||
// $ref: "#/responses/NoSuchContainer"
|
// $ref: "#/responses/NoSuchContainer"
|
||||||
// 500:
|
// 500:
|
||||||
// $ref: "#/responses/InternalError"
|
// $ref: "#/responses/InternalError"
|
||||||
r.HandleFunc(VersionedPath("/containers/{name}/archive"), s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPost)
|
r.HandleFunc(VersionedPath("/containers/{name}/archive"), s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPut, http.MethodHead)
|
||||||
// Added non version path to URI to support docker non versioned paths
|
// Added non version path to URI to support docker non versioned paths
|
||||||
r.HandleFunc("/containers/{name}/archive", s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPost)
|
r.HandleFunc("/containers/{name}/archive", s.APIHandler(compat.Archive)).Methods(http.MethodGet, http.MethodPut, http.MethodHead)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Libpod
|
Libpod
|
||||||
|
Reference in New Issue
Block a user