Description: An example of a RESTful web service as implemented in Caché, and a client application designed in Angular.js that connects to the service. The two components are meant to demonstrate the concepts of modern web application design and serve as a companion piece to the presentation found here: https://learning.intersystems.com/course/view.php?id=681
Requirements: Caché or Ensemble 2016.2 or higher.
Instructions:
- Create the CSP application
/gs
for the desired namespace. - Make sure that the CSP Physical Files Path setting is defined for the
/gs
CSP application. - Create the CSP application
/gs/api
and point it to the the same namespace as/gs
. - Set the Dispatch Class option for
/gs/api
toTodo.REST
. - Load the files in the BuildingModernWebApps directory to a new project using Atelier.
- Compile the new project in Atelier.
- Connect via Terminal to your instance and run the command
do ##class(Todo.Task).reset()
in the application namespace. This will generate the example data as seen in the presentation. - Open your web browser to
http://<server>:<port>/gs/index.html
.
Enjoy!
— MS