<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.wvds.it/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.wvds.it/wiki/feed.php">
        <title>WvdS Doku - hr:int:dbgway:entwickler:rest</title>
        <description></description>
        <link>https://www.wvds.it/wiki/</link>
        <image rdf:resource="https://www.wvds.it/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-22T16:13:10+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:batch&amp;rev=1769729570&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:crud&amp;rev=1769729560&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:endpunkte&amp;rev=1769729556&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:query-parameter&amp;rev=1769729566&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:start&amp;rev=1769729546&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.wvds.it/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>WvdS Doku</title>
        <link>https://www.wvds.it/wiki/</link>
        <url>https://www.wvds.it/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:batch&amp;rev=1769729570&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-29T23:32:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>1.4 Batch operacije</title>
        <link>https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:batch&amp;rev=1769729570&amp;do=diff</link>
        <description>1.4 Batch operacije

Više promjena u jednom zahtjevu (Delta paket).

PATCH zahtjev


PATCH /api/v1/dsn/demo/tables/Customers
Content-Type: application/json

{
  &quot;changes&quot;: [
    {
      &quot;action&quot;: &quot;insert&quot;,
      &quot;data&quot;: { &quot;Name&quot;: &quot;Novi klijent&quot;, &quot;Country&quot;: &quot;DE&quot; }
    },
    {
      &quot;action&quot;: &quot;update&quot;,
      &quot;key&quot;: { &quot;Id&quot;: 1 },
      &quot;data&quot;: { &quot;Name&quot;: &quot;Ažurirano&quot; }
    },
    {
      &quot;action&quot;: &quot;delete&quot;,
      &quot;key&quot;: { &quot;Id&quot;: 99 }
    }
  ]
}</description>
    </item>
    <item rdf:about="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:crud&amp;rev=1769729560&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-29T23:32:40+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>1.3 CRUD operacije</title>
        <link>https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:crud&amp;rev=1769729560&amp;do=diff</link>
        <description>1.3 CRUD operacije

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

Read (GET)


GET /api/v1/dsn/demo/tables/Customers?$top=5

// Odgovor
{
  &quot;data&quot;: [
    { &quot;Id&quot;: 1, &quot;Name&quot;: &quot;Mustermann GmbH&quot; },
    { &quot;Id&quot;: 2, &quot;Name&quot;: &quot;Example Corp&quot; }
  ],
  &quot;count&quot;: 2
}</description>
    </item>
    <item rdf:about="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:endpunkte&amp;rev=1769729556&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-29T23:32:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>1.1 REST endpointi</title>
        <link>https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:endpunkte&amp;rev=1769729556&amp;do=diff</link>
        <description>1.1 REST endpointi

Pregled svih dostupnih REST endpointa.

Arhitektura

API slijedi REST principe i koristi HTTP metode za CRUD operacije.

Tablice
 Metoda  Ruta  Opis  GET  /tables  Popis svih tablica  GET  /tables/{name}  Čitanje podataka  POST</description>
    </item>
    <item rdf:about="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:query-parameter&amp;rev=1769729566&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-29T23:32:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>1.2 Query parametri</title>
        <link>https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:query-parameter&amp;rev=1769729566&amp;do=diff</link>
        <description>1.2 Query parametri

Parametri za filtriranje, sortiranje i straničenje podataka.

OData-kompatibilni parametri
 Parametar  Opis  Primjer  $select  Odabir stupaca  $select=Id,Name  $filter  Filtriranje redaka  $filter=Country eq &#039;DE&#039;  $orderby  Sortiranje</description>
    </item>
    <item rdf:about="https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:start&amp;rev=1769729546&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-29T23:32:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>1. REST API</title>
        <link>https://www.wvds.it/wiki/doku.php?id=hr:int:dbgway:entwickler:rest:start&amp;rev=1769729546&amp;do=diff</link>
        <description>1. REST API</description>
    </item>
</rdf:RDF>
