34 lines
1023 B
Plaintext
34 lines
1023 B
Plaintext
# TOTAL items in the adresar
|
||
❯ grpcurl -plaintext localhost:50051 multieko2.Adresar/GetAdresarCount
|
||
{
|
||
"count": "43"
|
||
}
|
||
|
||
# Item at this count. If there are 43 items, number 1 is the first item
|
||
❯ grpcurl -plaintext -d '{"position": 1}' localhost:50051 multieko2.Adresar/GetAdresarByPosition
|
||
{
|
||
"id": "2",
|
||
"firma": "asdfasf",
|
||
"kz": " ",
|
||
"drc": " ",
|
||
"ulica": " ",
|
||
"psc": "sdfasdf",
|
||
"mesto": "asf",
|
||
"stat": "as",
|
||
"banka": "df",
|
||
"ucet": "asf",
|
||
"skladm": "f",
|
||
"ico": "f",
|
||
"kontakt": "f",
|
||
"telefon": "f",
|
||
"skladu": "f",
|
||
"fax": " "
|
||
}
|
||
# Item fetched by id. The first item was created and removed, therefore number 1 in ids doenst exists, since first to exist now has number 2
|
||
❯ grpcurl -plaintext -d '{"id": 1}' localhost:50051 multieko2.Adresar/GetAdresar
|
||
ERROR:
|
||
Code: NotFound
|
||
Message: no rows returned by a query that expected to return at least one row
|
||
╭─ ~ ············································· 69 ✘
|
||
╰─
|