get request is now working perfectly fine
This commit is contained in:
33
server/src/tables_data/docs/get_data.txt
Normal file
33
server/src/tables_data/docs/get_data.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
Valid get request:
|
||||
|
||||
grpcurl -plaintext -d '{"profile_name": "default", "table_name": "2025_adresar", "id": 2}' localhost:50051 multieko2.tables_data.TablesData/GetTableData
|
||||
|
||||
{
|
||||
"data": {
|
||||
"banka": "New Banka",
|
||||
"deleted": "false",
|
||||
"drc": "New DRC",
|
||||
"fax": "New Fax",
|
||||
"firma": "New Firma",
|
||||
"ico": "New ICO",
|
||||
"id": "2",
|
||||
"kontakt": "New Kontakt",
|
||||
"kz": "New KZ",
|
||||
"mesto": "New Mesto",
|
||||
"psc": "New PSC",
|
||||
"skladm": "New Skladm",
|
||||
"skladu": "New Skladu",
|
||||
"stat": "New Stat",
|
||||
"telefon": "New Telefon",
|
||||
"ucet": "New Ucet",
|
||||
"ulica": "New Ulica"
|
||||
}
|
||||
}
|
||||
|
||||
Request of a deleted data:
|
||||
|
||||
grpcurl -plaintext -d '{"profile_name": "default", "table_name": "2025_adresar", "id": 1}' localhost:50051 multieko2.tables_data.TablesData/GetTableData
|
||||
|
||||
ERROR:
|
||||
Code: NotFound
|
||||
Message: Record not found
|
||||
Reference in New Issue
Block a user