Overview
All query parameters are parsed from the URL query string and can be combined to create powerful, flexible API requests.Available Parameters
The framework supports the following query parameter types:| Parameter | Aliases | Description | Example | ||||
|---|---|---|---|---|---|---|---|
fields | select | Select specific fields to return | ?fields=id,name,email | ||||
filter | - | Filter results by conditions | `?filter=name | eq | John` | ||
or | - | Filter with OR conditions | `?or=age | gt | 18` | ||
join | - | Join relations | ?join=profile | ||||
sort | - | Sort results | ?sort=name,ASC | ||||
limit | per_page | Limit number of results | ?limit=10 | ||||
offset | - | Skip number of results | ?offset=20 | ||||
page | - | Page number (alternative to offset) | ?page=2 | ||||
cache | - | Cache results (in seconds) | ?cache=300 | ||||
s | search | Advanced JSON search | ?s={"name":"John"} |
Parameter names can be customized in the framework configuration, but the default names are shown above.
Delimiters
The framework uses two types of delimiters:- Field delimiter (
||): Separates parts of a filter, join, or sort parameter - String delimiter (
,): Separates multiple values within a parameter
Examples
Basic Usage
Simple Request
Fetch users with only specific fields:Multiple Parameters
Combine multiple query parameters:Array Parameters
Some parameters accept multiple values using arrays:Value Parsing
The framework automatically parses values to the appropriate type:Numbers
Booleans
Dates
Strings
Arrays
URL Encoding
When using special characters in query parameters, make sure to properly URL-encode them:Advanced Search Parameter
Thes parameter accepts JSON for complex queries:
Best Practices
- Use field selection: Always request only the fields you need to reduce payload size
- Implement pagination: Use
limitandoffsetorpagefor large datasets - Encode URLs: Always URL-encode query parameters when using special characters
- Combine parameters: Chain multiple parameters for precise data fetching
- Use appropriate filters: Choose the right comparison operator for your use case
Example Requests
Get Active Users with Profiles
Search Users by Name or Email
Paginated Results with Sorting
Complex Query with Multiple Conditions
Next Steps
Filtering
Learn about all available filter operators
Sorting
Understand sorting and ordering results
Pagination
Implement pagination in your requests
Relations
Work with related entities using joins