mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/server: Server.CreateMux: also register API-version debug endpoints
The debug endpoints are currently only provided non-versioned (e.g. `/debug/vars`).
While this is convenient, we "officially" deprecated non-versioned endpoints
in the API.
This patch also registers the debug-endpoints under the API-versioned paths,
so that they can be used either without version ("latest") and versioned
paths.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -58,6 +58,10 @@ keywords: "API, Docker, rcli, REST, documentation"
|
||||
the one that sorts first is picked.
|
||||
* `GET /containers/json` now returns a `GwPriority` field in `NetworkSettings`
|
||||
for each network endpoint.
|
||||
* API debug endpoints (`GET /debug/vars`, `GET /debug/pprof/`, `GET /debug/pprof/cmdline`,
|
||||
`GET /debug/pprof/profile`, `GET /debug/pprof/symbol`, `GET /debug/pprof/trace`,
|
||||
`GET /debug/pprof/{name}`) are now also accessible through the versioned-API
|
||||
paths (`/v<API-version>/<endpoint>`).
|
||||
|
||||
## v1.47 API changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user