mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-06 00:45:43 +00:00
As I've mentioned once or twice, hand-maintained swagger docs
are evil. This commit attempts to fix:
* Inconsistent methods (swagger says POST but code signature
says GET)
* Inconsistent capitalization
* Typos ("Mounter", "pood")
* Completely wrong paths (/inspect vs /json)
* Missing .Method() registrations
* Missing /libpod in some /volumes paths
* Incorrect method declaration: /libpod/containers/.../kill
was correct (POST) in swagger but wrong in the code itself
(http.MethodGet). Correct the latter to MethodPost
This is two hours' work, even with a script I have that
tries to cross-check everything.
Swagger docs should not be human-maintained.
Signed-off-by: Ed Santiago <santiago@redhat.com>
|
||
|---|---|---|
| .. | ||
| docs.go | ||
| handler_api.go | ||
| listener_api.go | ||
| register_auth.go | ||
| register_containers.go | ||
| register_distribution.go | ||
| register_events.go | ||
| register_exec.go | ||
| register_healthcheck.go | ||
| register_images.go | ||
| register_info.go | ||
| register_monitor.go | ||
| register_ping.go | ||
| register_plugins.go | ||
| register_pods.go | ||
| register_swagger.go | ||
| register_swarm.go | ||
| register_system.go | ||
| register_version.go | ||
| register_volumes.go | ||
| server.go | ||
| swagger.go | ||