1
0

PackagerEntity, -Repository and -Controller

This commit is contained in:
Michael Hoennig
2022-07-29 16:13:38 +02:00
parent 46957dc590
commit 4721d1be23
7 changed files with 85 additions and 11 deletions

View File

@ -2,13 +2,15 @@
<!-- generated TOC begin: -->
- [Setting up the Development Environment](#setting-up-the-development-environment)
- [SDKMAN](#sdkman)
- [PostgreSQL Server](#postgresql-server)
- [Markdown with PlantUML plugin](#markdown-with-plantuml-plugin)
- [Other Tools](#other-tools)
- [SDKMAN](#sdkman)
- [PostgreSQL Server](#postgresql-server)
- [Markdown](#markdown)
- [Render Markdown embedded PlantUML](#render-markdown-embedded-plantuml)
- [Other Tools](#other-tools)
- [Running the SQL files](#running-the-sql-files)
- [For RBAC](#for-rbac)
- [For Historization](#for-historization)
- [For RBAC](#for-rbac)
- [For Historization](#for-historization)
<!-- generated TOC end. -->
## Setting up the Development Environment
@ -40,12 +42,17 @@ If you have at least Docker, the Java JDK and Gradle installed in appropriate ve
# the following command should reply with "pong":
curl http://localhost:8080/api/ping
# the following command should return a JSON array with just the customer aac:
# the following command should return a JSON array with just all customers:
curl \
-H 'current-user: mike@hostsharing.net' \
-H 'assumed-roles: customer#aac.admin' \
http://localhost:8080/api/customer
# the following command should return a JSON array with just all packages visible for the admin of the customer aab:
curl \
-H 'current-user: mike@hostsharing.net' \
-H 'assumed-roles: customer#aab.admin' \
http://localhost:8080/api/package
The latter `curl` command actually goes through the database server.
<big>&#9432;</big>