This commit is contained in:
Marco Kittel 2025-07-19 16:46:40 +02:00
commit 6e67113a4a
2 changed files with 33 additions and 1 deletions

View File

@ -34,7 +34,7 @@ const (
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 '{"id":"ab0d7184-a4ce-4802-897a-d8597335143a"}'
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"}'

32
readme.md Normal file
View File

@ -0,0 +1,32 @@
# 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)