snello CMS
  • Snello CMS
  • Get Started
  • Architecture
    • Snello API
    • Snello ADMIN
  • Docker Images
    • Database
    • Storage
    • Mail settings
    • Docker compose
  • Metadata
    • UUIDs
    • To reuse existing database tables
    • Advanced configuration
    • Reserved Metadata Names
  • Field Definitions
    • Data Types
    • Multijoin: database and rest queries
    • CRUD options
  • How to query using REST API
    • metadata api
    • filters & limit & sort
      • protect your api
  • Conditions
    • Multijoin conditions
  • Documents
    • Download endpoint
  • How to publish your web pages
  • Select Queries
  • Authentication & Authorization
    • User & Roles
    • Password recovery
    • Url Map Rules
  • Links
  • Draggables & Droppables
    • angular syntax
  • Deploy in Production
    • Let’s Encrypt
    • Remove Hashbang
    • Traefik
    • Rendertron
  • Notes
    • Micronaut - create extensions
    • Native image
    • Editor for code
    • Multi languages
  • k8s cache distributed
  • Developers Space
    • Java code
    • Angular code
  • Roadmap
    • Java Evolution
    • Angular Evolution
    • Next features
Powered by GitBook
On this page
  • less than or less than equal
  • grether than or less than equal
  • start
  • limit
  • select fields �
Edit on GitHub
  1. How to query using REST API

filters & limit & sort

How to use query params to get alla data.

filters

To use filters you need to add to all field the postfix.

Immagine that you have a metadata named "users":

  • uuid

  • name [string]

  • surname [string]

  • age [number]

  • year [select with values "first", "second", "third", "quarter", "fifth"]

string comparation

equal

/api/example?year=first

not equal

/api/example?year_ne=first

like or right like or left like or contains or not contains

/api/example?year_like=fir
/api/example?year_rlike=fi
/api/example?year_llike=st
/api/example?year_contains=rs
/api/example?year_ncontains=z

in

/api/example?year_in=first,second

is not null or is not null or not empty or is empty

/api/example?year_nn
/api/example?year_inn
/api/example?year_nie
/api/example?year_ie

numeric comparation

less than or less than equal

/api/example?age_lt=18
/api/example?age_lte=18

grether than or less than equal

/api/example?age_gt=18
/api/example?age_gte=18

order by

/api/example?_sort=name

start

/api/example?_start=1

limit

/api/example?_limit=2

select fields �

/api/example?select_fields=name,surname

�

Previousmetadata apiNextprotect your api

Last updated 2 years ago