Skip to content

Material for a workshop to understand how to create Hypermedia REST APIs using APIO Architect

License

Notifications You must be signed in to change notification settings

mdelapenya/apio-workshop

 
 

Repository files navigation

How to develop Liferay Portal APIs with Apio Architect

This project provides a base Liferay project to learn how to use Apio Architect to expose Hypermedia REST APIs of different interconnected Liferay Portal services.

The project modules bring the concept of recipe into Liferay Portal.

Our goal in this workshop is to expose Hypermedia REST APIs that strongly "rest" on shared vocabularies, so that they follow standards as much as they can.

Prepare Liferay Portal 7.1 GA1 instance

Deploy Application Jars

Once you have the Liferay Portal 7.1 GA1 instance ready with the latest Apio Architect version and the demo data creators, you are ready to deploy the Liferay Recipes application into your instance.

If you are using docker

Just execute ./gradlew dockerDeploy

If you are using a local Tomcat instance

Just update the gradle.properties liferay.recipes.deploy.dir property to your $LIFERAY_HOME/deploy folder and execute gradle deploy in the root of the repository.

The data

This project comes with its own set of demo data, so you don't have to create any user, site or mock data. You just need to focus on coding (yay!!).

Specifically, once the packages are deployed, the following data will be created:

Launch client app

For launching the client app you just have to run ../gradlew startApp from the restaurant-app directory. Then navigate to http://localhost:4200 on your preferred browser.

Code time!

The steps for the workshop can be found here.

About

Material for a workshop to understand how to create Hypermedia REST APIs using APIO Architect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.1%
  • TypeScript 4.1%
  • Other 1.8%