When calling the /networks/ endpoint with a trailing slash, the default network was returned. This changes the endpoint to return the list of networks instead (same response as `/networks` without trailing slash). Also updated the description for GetNetworkByName to explain that the "default" network is returned if no name or id is provided. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 6ad4bf0a533f8851b0ddccb56fe3b457819f6146 Component: engine
This directory holds the authoritative specifications of APIs defined and implemented by Docker. Currently this includes:
- The remote API by which a docker node can be queried over HTTP
- The registry API by which a docker node can download and upload images for storage and sharing
- The index search API by which a docker node can search the public index for images to download
- The docker.io OAuth and accounts API which 3rd party services can use to access account information