Answer the question
In order to leave comments, you need to log in
What is the best way to pass tabular data in an API application (for example, roles and their rights)?
Hello. It is necessary to form and transfer data in json format to the client on the API server. The data will be the roles and their rights, the plate on the client should be the same as in Fig. below:
At the intersection of cells there will be, for example, checkboxes for on / off. rights for a specific role.
In what form is it better to form this array on the server in order to transfer it to the client?
Answer the question
In order to leave comments, you need to log in
In order to minify json, I would use an array of bitmasks (if roles <= 32)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question