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

liferay-labs/apio-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Preparing the environment

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:

  • Organizations that represent different restaurants.
  • A chef for each organization: this person will be the one in charge of the restaurant and will be the only one that can create, update or delete recipes in that restaurant's site.
  • Kitchen asistants that will be assigned to restaurants. This assistants will have only permission to see the restaurants they are assigned to, and their recipes.
  • Recipes per-restaurant.

Test the API

Run in Postman

Launch client app

For launching the client app you just have to run npm install followed by npm start from the restaurant-app directory. Then navigate to http://localhost:4200 on your preferred browser.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages