Since Angular is a client-side framework, I don't believe you can access a native IBM i API directly but anything running on IBM i that is a REST service is fair game to access for programs and data.
Your Angular client app would probably be making REST calls to an API that accesses the database, not trying to access the database directly.
The Angular app (and technically your REST service) could be served up locally from IBM i or as Jack mentioned you could serve the REST APIs form IBMi and serve the web app via an alternate server such as Power Linux, Windows, Linux elsewhere, docker, etc.....
If it's an internal app only, both the Web APIs and the Angular app could be served up directly from IBM i.
There are also tools that can allow you to build Apis over the 5250 data stream to your apps, but I wasn't sure if that was something you wanted.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
----------------------------------------------------------------------
message: 1
date: Mon, 30 Dec 2024 16:15:36 -0500
from: smith5646midrange@xxxxxxxxx
subject: RE: Tool to Modernize IBMi Screens into GUI
Maybe I am missing some important piece of knowledge here. Is there a way to access an IBM API directly via Angular?
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jack Woehr via RPG400-L
Sent: Monday, December 30, 2024 9:29 AM
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: Jack Woehr <jack.woehr@xxxxxxxxxxx>
Subject: Re: Tool to Modernize IBMi Screens into GUI
IMHO:
*
The future of presentation technology for the platform is to present data via APIs to be consumed by 2nd-tier web applications, e.g., coded on a PowerLinux LPAR.
*
If you're architecting presentation modernization in some other fashion, you're still piling up technical debt.
________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of smith5646midrange@xxxxxxxxx <smith5646midrange@xxxxxxxxx>
Sent: Monday, December 30, 2024 07:20
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Tool to Modernize IBMi Screens into GUI
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I wasn't saying that it was not possible or extremely difficult. I was pointing out that the angular web app can't do direct SQL like most other languages can using ODBC or JDBC. It is just another piece to add to the learning curve of getting it working and supporting it.
As an Amazon Associate we earn from qualifying purchases.