docs of a put

This commit is contained in:
filipriec
2025-02-21 23:48:03 +01:00
parent 9eb5e52116
commit fb55ff1a08

View File

@@ -1,3 +1,4 @@
POST
grpcurl -plaintext -d '{ grpcurl -plaintext -d '{
"adresar_id": 1, "adresar_id": 1,
"c_dokladu": "DOC123", "c_dokladu": "DOC123",
@@ -25,3 +26,33 @@
"poznanka": "Sample note", "poznanka": "Sample note",
"firma": "AAA" "firma": "AAA"
} }
PUT
grpcurl -plaintext -d '{
"id": '1',
"adresar_id": 1,
"c_dokladu": "UPDATED-DOC",
"datum": "15.11.2023",
"c_faktury": "UPDATED-INV",
"obsah": "Updated content",
"stredisko": "Updated Center",
"c_uctu": "UPD-ACC",
"md": "UPD-MD",
"identif": "UPD-ID",
"poznanka": "Updated note",
"firma": "UPD"
}' localhost:50051 multieko2.uctovnictvo.Uctovnictvo/PutUctovnictvo
{
"id": "1",
"adresarId": "1",
"cDokladu": "UPDATED-DOC",
"datum": "15.11.2023",
"cFaktury": "UPDATED-INV",
"obsah": "Updated content",
"stredisko": "Updated Center",
"cUctu": "UPD-ACC",
"md": "UPD-MD",
"identif": "UPD-ID",
"poznanka": "Updated note",
"firma": "UPD"
}