33 lines
1.1 KiB
Markdown
33 lines
1.1 KiB
Markdown
# Bewerbungsaufgabe von Marco Kittel 2025
|
|
# Vorraussetzungen
|
|
Docker und Docker Compose, Posix Compatibles System und Golang >= 1.24
|
|
|
|
# CsvService
|
|
Starte mit
|
|
./starteCsvService
|
|
Zum Test einfach mal Testdaten in den New Folder
|
|
bei laufendem Betrieb schieben
|
|
|
|
# Web Api
|
|
Benötigt Datenbank
|
|
Starten mit ./starteDatenbank
|
|
Starten mit./starteWebservice
|
|
|
|
Produkte abrufen
|
|
curl -X POST localhost:8080/api/products -d '{ "products": { "A6053": 2, "B3009": 1200 }, "context": { "country": "EU", "state": "" } }'
|
|
|
|
Reservierung reservieren
|
|
curl -X POST localhost:8080/api/products/reserve -d '{ "products": { "A6053": 2, "B3009": 1200 }, "context": { "country": "EU", "state": "" } }'
|
|
|
|
Reservierung bestätigen
|
|
curl -X POST localhost:8080/api/products/confirm -d '{"id":"ab0d7184-a4ce-4802-897a-d8597335143a"}'
|
|
|
|
Reservierung abbrechen
|
|
curl -X POST localhost:8080/api/products/abort -d '{"id":"ab0d7184-a4ce-4802-897a-d8597335143a"}'
|
|
|
|
Reservierung freigeben
|
|
curl -X POST localhost:8080/api/products/release -d '{"id":"ab0d7184-a4ce-4802-897a-d8597335143a"}'
|
|
|
|
# Abschlussbesprechung der Aufgabe
|
|
[Abschlussbesprechnung](https://www.youtube.com/watch?v=psz58bMyeMM)
|