Fertig (Readme angepasst)
This commit is contained in:
parent
e1e69da2dc
commit
4897ebef2f
|
|
@ -0,0 +1,28 @@
|
||||||
|
# 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"}'
|
||||||
Loading…
Reference in New Issue