Juniper / contrail

Contrail repo for core components (go based)
Apache License 2.0
44 stars 32 forks source link

Inconsistent naming of API Server response keys #70

Closed danielfurman closed 6 years ago

danielfurman commented 6 years ago

Current behaviour

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.

Proposed solution

I think it would be the best to use following:

Another option are: