From 8f89bc4e074fc6b3da7417e247a08433492caa52 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Fri, 4 Jun 2021 10:45:52 -0700 Subject: [CI:DOCS] Document which CNI fields are encoded The CNI configuration fields named Bytes are typed []byte which the GO JSON encoded automatically Base64 encodes. Note: Future major versions of Podman will refactor the networking endpoints to encapsulate/abstract the CNI structures which will allow better documenation and encoding. Fixes #10562 Signed-off-by: Jhon Honce --- pkg/api/server/register_networks.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg/api/server/register_networks.go') diff --git a/pkg/api/server/register_networks.go b/pkg/api/server/register_networks.go index 9a5ccb789..4d9806316 100644 --- a/pkg/api/server/register_networks.go +++ b/pkg/api/server/register_networks.go @@ -241,7 +241,9 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error { // tags: // - networks // summary: List networks - // description: Display summary of network configurations + // description: | + // Display summary of network configurations. + // - In a 200 response, all of the fields named Bytes are returned as a Base64 encoded string. // parameters: // - in: query // name: filters -- cgit v1.2.3-54-g00ecf