3 ms·
Should things be abstracted one step further such that the REST endpoint class merely relays the right params to a Service class. So not much to test anyway (I’
by yardstick 3y ago
Should things be abstracted one step further such that the REST endpoint class merely relays the right params to a Service class. So not much to test anyway (I’m not a 100% code coverage person, I test where it makes the most sense).
This way your service can be accessed via REST as well as any other type of endpoint if you wanted (gRPC, SOAP, RMI, CORBA, etc). Defeats the point of this project but this approach has saved me a lot of work in the past when switching RPC stacks.