John
. It can be done by providing the search
filter while making the request:exact
and partial
filters.?filter[status]=1
query parameter, only records that have the status
attribute set to 1
will be returned.name
defined for the specific resource and you provide the ?filter[name]=one
filter within the URL, the API will return all the customers from the db that contain the word one
anywhere within their name
attribute and not only those who has the name exactly set as one
.?sort=FIELD
query parameter while you make the request to the API endpoint and it will sort the items in ascending
order. To sort the items in descending
order, prefix the field with -
sign: ?sort=-FIELD
.ascending
order by the created_at
timestamp, you should make a request to the following endpoint:created_at
timestamp in descending
order, the enpoint should be updated to look like the following: