Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Document querying parameters #51

Description

@gbinal

So far, here's what I've figured out:

  • Page number
  • Filter by 1 column
  • Filter by more than 1 column (returns results that have both value1 and value4)
    • ?[columnheader1]=[value1]&[columnheader3]=[value4]
    • example
  • Filter by multiple options in a column (returns results that have value1 OR value2)
    • ?[columnheader1]=[value1]&[columnheader1]=[value2]
    • example
  • Return an individual record
  • Return the meta structure for the api
  • Sort

Here's what I haven't figured out but am hoping works:

  • set number of resources per page (e.g. ?limit=30 or ?limit=none)
  • search (e.g. ?q=text or ?q=text+term or ?q=term+OR+term)
  • sort (e.g. ?sort=[columnhearder2] or ?sort=-[columnhearder2])
  • exclude (e.g. ?[columnheader1]=[value1]&[columnheader3]=-[value4]) (return all entries that have value1 in columnheader1 but exclude those that have value4 in columnheader3).
  • return only certain fields (e.g. ?field=columnheader2)
  • min/max (e.g. ?max[columnheader1]=[value1]_ (returns all records with a value less than or equal to value1)
  • range? (not sure how that'd be constructed but it'd be nice.

I filed an issue with the original project but don't know if it'll get answered.

Anyone have any guesses?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions