Chapter 10. Integrating Angular App with Spring Web APIs
Since we have learned the different aspects of building Angular and Spring apps, it may be worthwhile to understand some of the key concepts in relation to integrating of Angular and Spring apps along with relevant code examples. Some of these concepts include the Angular Http/HttpClient
service for interacting with Spring endpoints, Spring annotations such as @RestController
, @Controller
, and @ResponseBody
for exposing RESTful APIs, and so on. In this chapter, you will learn about the different aspects of integrating Angular apps with Spring web APIs based on the REST protocol. The following are some of them:
- Building RESTful Spring web APIs
- Configuring Spring app for CORS
- Key aspects of Angular data services
- Building Angular services for RESTful integration
- Examples of consuming RESTful Spring APIs