put working now doing post general test
This commit is contained in:
36
server/src/tables_data/docs/put_data.txt
Normal file
36
server/src/tables_data/docs/put_data.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
❯ grpcurl -plaintext -d '{
|
||||
"profile_name": "default",
|
||||
"table_name": "2025_company_data1",
|
||||
"id": 1,
|
||||
"data": {
|
||||
"firma": "ACME Corporation Updated",
|
||||
"company_name": "ACME Corp Updated",
|
||||
"textfield": "Updated sample text",
|
||||
"textfield2": "Updated additional information",
|
||||
"textfield3": "Updated more details",
|
||||
"headquarters_psc": "54321",
|
||||
"contact_phone": "987-654-3210",
|
||||
"office_address": "456 Updated St, Springfield",
|
||||
"support_email": "updated-support@acmecorp.com",
|
||||
"is_active": "false"
|
||||
}
|
||||
}' localhost:50051 multieko2.tables_data.TablesData/PutTableData
|
||||
{
|
||||
"success": true,
|
||||
"message": "Data updated successfully",
|
||||
"updatedId": "1"
|
||||
}
|
||||
❯ grpcurl -plaintext -d '{
|
||||
"profile_name": "default",
|
||||
"table_name": "2025_company_data1",
|
||||
"id": 2,
|
||||
"data": {
|
||||
"firma": "1",
|
||||
"is_active": "true"
|
||||
}
|
||||
}' localhost:50051 multieko2.tables_data.TablesData/PutTableData
|
||||
{
|
||||
"success": true,
|
||||
"message": "Data updated successfully",
|
||||
"updatedId": "2"
|
||||
}
|
||||
Reference in New Issue
Block a user