proton icon indicating copy to clipboard operation
proton copied to clipboard

Use plural for compass API response

Open mabdh opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. In compass API, we use data field as a field that wrap results of GET API. Although the idea was to make all GET API having the same scaffolding of API response (since it will also be translated to REST response with grpc-gateway) but this might not be that flexible for future use cases. Having plural names of the type of results would make it more future-proof.

repeated Asset assets = 1;

Describe the solution you'd like Update the response fields to use plural names instead of data

mabdh avatar Jun 21 '22 23:06 mabdh