Skip to content

Commit

Permalink
Update gender_new naming, gender filter description & add gender_sear…
Browse files Browse the repository at this point in the history
…chability field

* Update `long_gender` field to `gender_new`
* Expand on what values the gender filter query can accept
* Add documentation for gender_searchability field
  • Loading branch information
jjinkxy committed May 20, 2024
1 parent 1c5ef66 commit 5008f2f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ Filmmakers uses conventional HTTP response codes to indicate the success or fail
Certain `4xx` errors, notably the `410` Gone status, indicate that a requested resource (such as an actor_profile or a talent_agency) has been merged with another and is no longer available at the original URL. The response will include the ID of the new resource, and clients should use this ID to access the merged resource.

# Changelog
- (2024-05-16) **ActorProfile#index**: Add new field `long_gender`
- (2024-05-20) **ActorProfile#index**: Add new field `gender_searchability`
- (2024-05-16) **ActorProfile#index**: Add new field `gender_new`, which replaces 'diverse' value with a larger range of gender values.
- (2024-04-26) **ActorProfile#show**: Add new field `in_development` to Vita<br>
- (2024-04-12) **ActorProfile#show**: Add new fields `main_profession` and `specializations`<br>
**ActorProfile#index**: Add new field `main_profession`
Expand Down Expand Up @@ -210,9 +211,9 @@ page | 1 | Page to display - see "Pagination" section
per_page | 250 | Items per page - see "Pagination" section
include_picture | false | If set to true, the result will include the profile picture thumbnail in a field named `main_picture_url_tile`.
picture_version | null | Can be set to `original`, `large` or `thumb` to change the included picture version. The picture will be included in a field named `picture_url`. _(Only applies if `include_picture` is true)_
fields | name,gender | Can be used to modify the fields included in the response. Possible values are: `age`, `gender`, `long_gender`, `first_name`, `last_name`, `name`, `main_profession`, `professions`, `languages`, `representative`, `updated_at`.
fields | name,gender | Can be used to modify the fields included in the response. Possible values are: `age`, `gender`, `gender_new`, `gender_searchability`, `first_name`, `last_name`, `name`, `main_profession`, `professions`, `languages`, `representative`, `updated_at`.
order | id | Changes the order of returned results. Possible values are: `id`, `name`, `last_name`
gender | null | Allows filtering by gender. Possible values are: `m`, `f`, `i`.
gender | null | Allows filtering by gender. Possible values are: `m`, `f`, `i`, `male`, `female`, `transgender_female`, `transgender_male`, `non_binary`, `custom`
updated_at[gte] | null | Allows filtering for profiles updated since the passed timestamp. Passed as an integer Unix timestamp.
q | null | Allows filtering by name. Uses trigram, so allows fuzzy & partial matches

Expand All @@ -223,7 +224,8 @@ Field | Type | Description
id | number | Unique ID of the actor profile
age | number |
gender | string | `f` for female, `m` for male, `i` for diverse
long_gender | string | `female` for female, `male` for male, `intersex` for diverse, `transgender_male` for transgender male, `transgender_female` for transgender female, `non_binary` for non binary, `custom` for custom set gender
gender_new | string | `female` for female, `male` for male, `transgender_male` for transgender male, `transgender_female` for transgender female, `non_binary` for non binary, `custom` for custom set gender
gender_searchability | array of strings | list of genders actor profile can be found under, e.g. `["female", "non_binary"]` _this always at least includes the gender of the actor profile if visible_
name | string | Full name (ie. first & last name) _name can be retrieved separately by using the fields parameter_
first_name | string |
last_name | string |
Expand Down Expand Up @@ -299,7 +301,10 @@ curl "https://www.filmmakers.eu/api/v1/actor_profiles/123" \
"place_of_birth": "Darmstadt",
"city": "Mainz",
"gender": "m",
"long_gender": "male",
"gender_new": "male",
"gender_searchability": [
"male"
],
"eye_color": "braun",
"hair_color": "braun",
"hair_length": "mittel",
Expand Down

0 comments on commit 5008f2f

Please sign in to comment.