Why not embrace the HATEOAS ethos and send down permissions, policies and actionable states from the API to the client, rather than duplicating or sharing code? www.jayfreestone.com/writing/shar...
jayfreestone.comShip the policy, not the codeA rule has to hold on both sides of an API boundary. Do you duplicate the code, share it, or let the backend drive the invariant?
0 reposts1 like