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.
- Clone the workshop repo: github.com/liferay-labs/apio-workshop
- Download Postman (a REST client)
- Download a Liferay CE Portal 7.1 GA2
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.
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.