Inhaltsverzeichnis
1.1 REST končne točke
Pregled vseh razpoložljivih REST1) končnih točk.
Arhitektura
Tabele
| Metoda | Pot | Opis |
|---|---|---|
| GET | /tables | Seznam vseh tabel |
| GET | /tables/{name} | Branje podatkov |
| POST | /tables/{name} | Vstavljanje zapisa |
| PUT | /tables/{name} | Posodabljanje zapisa |
| DELETE | /tables/{name} | Brisanje zapisa |
| PATCH | /tables/{name} | Batch spremembe |
Pogledi
| Metoda | Pot | Opis |
|---|---|---|
| GET | /views | Seznam vseh pogledov |
| GET | /views/{name} | Branje podatkov pogleda |
Shranjene procedure
| Metoda | Pot | Opis |
|---|---|---|
| GET | /procedures | Seznam vseh procedur |
| POST | /procedures/{name}/execute | Izvajanje procedure |
Ad-Hoc poizvedbe
| Metoda | Pot | Opis |
|---|---|---|
| POST | /query | Izvajanje SQL poizvedbe |
HTTP statusne kode
API uporablja standardne HTTP statusne kode4):
| Koda | Pomen | Uporaba |
|---|---|---|
| 200 | OK | Uspešen GET/PUT/PATCH |
| 201 | Created | Uspešen POST |
| 204 | No Content | Uspešen DELETE |
| 400 | Bad Request | Neveljavna zahteva |
| 401 | Unauthorized | Zahtevana avtentikacija |
| 403 | Forbidden | Ni dovoljenja |
| 404 | Not Found | Vir ni najden |
| 500 | Server Error | Notranja napaka |
Naprej
- Query parametri za filtriranje in razvrščanje
- CRUD operacije podrobno
- Batch operacije za množične spremembe
Viri
1)
Representational State Transfer: https://de.wikipedia.org/wiki/Representational_State_Transfer
2)
REST Constraints: https://restfulapi.net/rest-architectural-constraints/
3)
Hypertext Transfer Protocol: https://datatracker.ietf.org/doc/html/rfc7231
4)
HTTP Status Codes: https://datatracker.ietf.org/doc/html/rfc7231#section-6
Zuletzt geändert: dne 29.01.2026 ob 23:30