-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API endpoint to get entity type filters
- Loading branch information
Showing
5 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Filters | ||
|
||
The various entity endpoints like `/characters`, `/locations` etc support many filters. | ||
|
||
To get a list of filters, first call `/filters` to get the endpoint for each [entity type](/api-docs/{{version}}/entity-types.md). | ||
|
||
| Method | URI | Headers | | ||
| :- |:----------| :- | | ||
| GET/HEAD | `filters` | Default | | ||
|
||
### Results | ||
```json | ||
{ | ||
"data": [ | ||
{ | ||
"code": "character", | ||
"url": ".../filters/1" | ||
}, | ||
{ | ||
"code": "family", | ||
"url": ".../filters/2" | ||
}, | ||
] | ||
} | ||
``` | ||
|
||
## Character filters | ||
|
||
To get a list of available filters for the characters endpoint, call the following endpoint. | ||
|
||
|
||
| Method | URI | Headers | | ||
| :- |:------------------| :- | | ||
| GET/HEAD | `filters/1` | Default | | ||
|
||
### Results | ||
```json | ||
{ | ||
"data": [ | ||
"title", | ||
"age", | ||
"sex", | ||
"pronouns", | ||
"location_id", | ||
"is_dead", | ||
"member_id", | ||
"race_id", | ||
"family_id", | ||
"races", | ||
"name", | ||
"type", | ||
"is_private", | ||
"template", | ||
"tag_id", | ||
"tags", | ||
"has_image", | ||
"has_posts", | ||
"has_entity_files", | ||
"has_attributes", | ||
"created_by", | ||
"updated_by", | ||
"attribute_name", | ||
"attribute_value" | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters