... | ... | @@ -17,15 +17,16 @@ |
|
|
|
|
|
- Presentaionon Layer, implementiert das MVC Pattern
|
|
|
- Controller: Daten per REST von der LOGIK-Tier
|
|
|
- Model: aus `{json}`
|
|
|
- Technologie ist frei wählbar (Ruby, C#, Java, etc.)
|
|
|
- Model: `{json}`
|
|
|
- Technologie ist frei wählbar
|
|
|
- Ruby, C#, Java, PHP, NodeJS, Angular, etc.
|
|
|
|
|
|
##### LOGIK-Tier
|
|
|
|
|
|
- Logik (Business) Tier, JEE Stack al WildFly Docker
|
|
|
- stellt REST Micro-Services zur Verfügung
|
|
|
- Daten per GitLab API
|
|
|
- persistiert auf MySQL
|
|
|
- persistiert auf MySQL DB
|
|
|
|
|
|
## Ausgangslage
|
|
|
|
... | ... | @@ -35,13 +36,17 @@ |
|
|
|
|
|
#### 1. Microservice user:
|
|
|
|
|
|
Das GitLab Projekt [m223/api1](https://k289gitlab1.citrin.ch/m223/api1) stellt den MicroService `user `zur Verfügung:
|
|
|
Das GitLab Projekt [m223/m223-api](https://k289gitlab1.citrin.ch/m223/m223-api) stellt den MicroService `user `zur Verfügung:
|
|
|
|
|
|
* [api1.komeo.net/user/all](https://api1.komeo.net/user/all)
|
|
|
* [api1.komeo.net/user/name/stephan.metzler](https://api1.komeo.net/user/name/stephan.metzler)
|
|
|
* [api1.komeo.net/user/id/4](https://api1.komeo.net/user/id/4)
|
|
|
* [m223-api.komeo.net/user/all](https://m223-api.komeo.net/user/all)
|
|
|
* [m223-api.komeo.net/user/name/stephan.metzler](https://m223-api.komeo.net/user/name/stephan.metzler)
|
|
|
* [m223-api.komeo.net/user/id/4](https://m223-api.komeo.net/user/id/4)
|
|
|
* [m223-api.komeo.net/user/echo/hello WildFly](https://m223-api.komeo.net/user/echo/hello WildFly)
|
|
|
|
|
|
> mit Browser oder einem REST Tool, z.B: [PostMan](https://www.getpostman.com/apps), [curl](https://curl.haxx.se/), etc. testen, z.B: URI: [api1.komeo.net/user/all](https://api1.komeo.net/user/all)
|
|
|
> mit Browser oder einem REST Tool testen
|
|
|
>
|
|
|
> - testen mit z.B: [PostMan](https://www.getpostman.com/apps), [curl](https://curl.haxx.se/), etc.
|
|
|
> - Brosercall z.B: URI: [m223-api.komeo.net/user/all](https://m223-api.komeo.net/user/all)
|
|
|
|
|
|

|
|
|
|
... | ... | @@ -77,9 +82,13 @@ tree /f /a |
|
|
|
|
|
Der MicroService `gitlab` (JPA) erweitert die Funktionalität, indem der Microservise user eingebunden wird.
|
|
|
|
|
|
- [api1.komeo.net/gitlab/users](https://api1.komeo.net/gitlab/users) ruft den Micro-Service [api1.komeo.net/user/all](https://api1.komeo.net/user/all) auf
|
|
|
- [api1.komeo.net/gitlab/merge](https://api1.komeo.net/gitlab/merge) merged `user`, `group`und `project`in der MySQL DB
|
|
|
- [api1.komeo.net/gitlab/hits](https://api1.komeo.net/gitlab/hits) implentiert einen Hit-Zähler als Singolton-Bean
|
|
|
- [m223-api.komeo.net/gitlab/user/gitlab](https://m223-api.komeo.net/gitlab/user/gitlab) ruft den Micro-Service [m223-api.komeo.net/user/all](https://m223-api.komeo.net/user/all) auf
|
|
|
- [m223-api.komeo.net/gitlab/user/db](https://m223-api.komeo.net/gitlab/user/db) holt die User aus der DB
|
|
|
- [m223-api.komeo.net/gitlab/merge](https://m223-api.komeo.net/gitlab/merge) merges all Komeo GitLab `user` in die MySQL DB
|
|
|
- look up DB credentials in WildFly log > run `log` CI/CD pipeline
|
|
|
- [m223-api.komeo.net/gitlab/elapse](https://m223-api.komeo.net/gitlab/elapse) zeigt die Zugriffszeiten: alle Komeo User von GitLab vs. DB
|
|
|
- [m223-api.komeo.net/gitlab/hits](https://m223-api.komeo.net/gitlab/hits) implementiert einen Hit-Zähler als Singleton-Bean
|
|
|
- [m223-api.komeo.net/gitlab/echo/this is a test](https://m223-api.komeo.net/gitlab/echo/this is a test) implementiert ein WildFly Server Echo
|
|
|
|
|
|
|
|
|

|
... | ... | @@ -139,7 +148,7 @@ tree /f /a |
|
|
- eduPad Gruppenarbeit
|
|
|
- Code Snippets
|
|
|
- [**LBV 1.4**](lbv-1-4) - **Anforderungen umsetzten** - Konzepte
|
|
|
- Erweitern des Basis-Projekt: [m223/api1](https://k289gitlab1.citrin.ch/m223/api1)
|
|
|
- Erweitern des Basis-Projekt: [m223/m223-api](https://k289gitlab1.citrin.ch/m223/m223-api)
|
|
|
- Implemtieren der Web-Tier in der gewählten Technologie (Fortsetzung)
|
|
|
|
|
|
## Abgabe LB 1
|
... | ... | |