====== 1.2 Query parametri ====== Parametri za filtriranje, razvrščanje in paginacijo podatkov. ===== OData združljivi parametri ===== ^ Parameter ^ Opis ^ Primer ^ | ''$select'' | Izbira stolpcev | ''$select=Id,Name'' | | ''$filter'' | Filtriranje vrstic | ''$filter=Country eq 'DE''' | | ''$orderby'' | Razvrščanje | ''$orderby=Name desc'' | | ''$top'' | Omejitev števila | ''$top=10'' | | ''$skip'' | Preskakovanje | ''$skip=20'' | | ''$count'' | Skupno število | ''$count=true'' | | ''$search'' | Polnotekstovno iskanje | ''$search=Berlin'' | ===== JSON možnosti ===== ^ Parameter ^ Opis ^ | ''$json'' | JSON struktura (nested/flat) | | ''$jsonRoot'' | Ime korenskega elementa | | ''$jsonIncludeNulls'' | Vključi null vrednosti | ===== Primer ===== GET /api/v1/dsn/demo/tables/Customers?$top=10&$filter=Country eq 'Germany'&$orderby=Name&$select=Id,Name,City