Merge branch 'main' of https://gittea.marcokittel.de/elio/datawriter
This commit is contained in:
commit
6e67113a4a
|
|
@ -34,7 +34,7 @@ const (
|
||||||
curl -X POST localhost:8080/api/products -d '{ "products": { "A6053": 2, "B3009": 1200 }, "context": { "country": "EU", "state": "" } }'
|
curl -X POST localhost:8080/api/products -d '{ "products": { "A6053": 2, "B3009": 1200 }, "context": { "country": "EU", "state": "" } }'
|
||||||
|
|
||||||
Reservierung reservieren
|
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
|
Reservierung bestätigen
|
||||||
curl -X POST localhost:8080/api/products/confirm -d '{"id":"ab0d7184-a4ce-4802-897a-d8597335143a"}'
|
curl -X POST localhost:8080/api/products/confirm -d '{"id":"ab0d7184-a4ce-4802-897a-d8597335143a"}'
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
Loading…
Reference in New Issue