1.3 CRUD operacije

Create, Read, Update, Delete preko REST API-ja.

Read (GET)

GET /api/v1/dsn/demo/tables/Customers?$top=5
 
// Odgovor
{
  "data": [
    { "Id": 1, "Name": "Mustermann GmbH" },
    { "Id": 2, "Name": "Example Corp" }
  ],
  "count": 2
}

Create (POST)

POST /api/v1/dsn/demo/tables/Customers
Content-Type: application/json
 
{
  "Name": "Novi klijent",
  "Country": "Germany"
}

Update (PUT)

PUT /api/v1/dsn/demo/tables/Customers
Content-Type: application/json
 
{
  "primaryKey": { "Id": 42 },
  "fields": { "Name": "Ažurirano" }
}

Delete (DELETE)

DELETE /api/v1/dsn/demo/tables/Customers?Id=42
Zuletzt geändert: 29.01.2026. u 23:32