Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
Costin Bleotu edited this page Sep 4, 2020 · 6 revisions

url

/tables/<id>/

Table entries

tables/<id>/entries/

Selecting fields to display

You can specify desired fields to retrieve from the API by adding __fields GET param. E.g:
/tables/<id>/entries/?__fields=email,first_name,last_name

If you want to get all available fields you need to specify __fields=ALL

If you don't specify any field in the request the first 7 fields will be displayed (in alphabetical order)

Filtering

You can apply a filter on any field specifying <field_name> in GET param. E.g:
/tables/<id>/entries/?nume=paul

The default lookup for any field is iexact. Any django field lookup (exact, iexact, contains, icontains, startswith, endswith, lt, lte, gt, gte) can be used by adding the lookup like <field_name>__<lookup>. Example: pret__lte=100.

Ordering

You can order the table specifying __order=<field_name>(ascending) or __order=-<field_name> (descending)

Searching

TBD

Clone this wiki locally