🚀 Master the language of AI with our brand new course: "Prompt Engineering for Everyone" Learn more

Offered By: IBM

Consuming a RESTful Java web service with Angular

Explore how to access a simple RESTful web service and consume its resources with Angular in Open Liberty.

Continue reading

Guided Project

Open Liberty

119 Enrolled
4.1
(22 Reviews)

At a Glance

Explore how to access a simple RESTful web service and consume its resources with Angular in Open Liberty.

Angular is a framework for creating interactive web applications. Angular applications are written in HTML, CSS, and TypeScript, a variant of JavaScript. Angular helps you create responsive and intuitive applications that download once and run as a single web page. Consuming REST services with your Angular application allows you to request only the data and operations that you need, minimizing loading times.
You will learn how to access a REST service and deserialize the returned JSON that contains a list of artists and their albums by using an Angular service and the Angular HTTP Client. You will then present this data using an Angular component.
The REST service that provides the artists and albums resource was written for you in advance and responds with the artists.json.
The Angular application was created and configured for you in the frontend directory. It contains the default starter application. There are many files that make up an Angular application, but you only need to edit a few to consume the REST service and display its data.
Angular applications must be compiled before they can be used. The Angular compilation step was configured as part of the Maven build. You can use the start folder of this guide as a template for getting started with your own applications built on Angular and Open Liberty.
You will implement an Angular client that consumes this JSON and displays its contents at the http://localhost:9080/app URL.
To learn more about REST services and how you can write them, see Creating a RESTful web service.

Created by 

The Open Liberty Project team

Estimated Effort

20 Minutes

Level

Beginner

Skills You Will Learn

Java

Language

English

Course Code

GPXX0ADEN

Tell Your Friends!

Saved this page to your clipboard!

Sign up to our newsletter

Stay connected with the latest industry news and knowledge!