October 2018
Intermediate to advanced
590 pages
15h 5m
English
Now, let's create the API handler to accept the registration request. The following diagram, Figure 9.8, shows the relationship between RegistrationApiController and its dependencies:

As you can see, the RegistrationApiController class has a field named service of the UserService type, which provides an API, register(RegistrationCommand), for registering users. This service API returns nothing when it succeeds and throws RegistrationException when it fails. In the controller, the register(RegistrationPayload) method is the one that we will need to create. ...
Read now
Unlock full access