November 2018
Intermediate to advanced
346 pages
8h 12m
English
Let's apply constructor injection to our ACME registration service. This time we will be refactoring the REST package, starting with the Register endpoint. You may remember that Register is one of three endpoints in our service, the others being Get and List. The Register endpoint has three responsibilities:
The code for our Register endpoint currently looks as shown in the following code:
// RegisterHandler is the HTTP handler for the "Register" endpoint// In this simplified ...
Read now
Unlock full access