Closed danielfurman closed 6 years ago
Server returns data in following JSON (example for Show operation):
return c.JSON(http.StatusOK, map[string]interface{}{ "virtual_network": result, })
Current Server response keys:
It requires CLI code to do some string replacements, which shouldn't be needed.
I think it would be the best to use following:
Another option are:
"data"
result
Current behaviour
Server returns data in following JSON (example for Show operation):
Current Server response keys:
It requires CLI code to do some string replacements, which shouldn't be needed.
Proposed solution
I think it would be the best to use following:
Another option are:
"data"
response key for all resourcesresult
object (naming from code snippet) as JSON root (no place for future metadata next to resource data in this option)