- Spring 5.0 Projects
- Nilang Patel
- 73字
- 2021-07-02 12:34:58
Defining the RESTful API controller for country language resource
For the CountryLanguage resource we need the following APIs:
- Get languages for a country
- Add a language for a country
- Delete a language from the country
The code for this controller can be found in the CountryLanguageAPIController class and the tests for the API controller can be found in the CountryLanguageAPIControllerTest class, which is available in the source code of this book.