Skip to content

Commit

Permalink
Deploying from phrase/openapi@2906a2cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 20, 2021
1 parent ebac1f5 commit 2ca3b6a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3126,6 +3126,15 @@ paths:
schema:
type: integer
style: form
- description: Sort locales. Valid options are "name_asc", "name_desc", "default_asc",
"default_desc".
explode: true
in: query
name: sort_by
required: false
schema:
type: string
style: form
- description: specify the branch to use
example: my-feature-branch
explode: true
Expand Down
5 changes: 5 additions & 0 deletions api_locales.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ type LocalesListOpts struct {
XPhraseAppOTP optional.String `json:"X-PhraseApp-OTP,omitempty"`
Page optional.Int32 `json:"page,omitempty"`
PerPage optional.Int32 `json:"per_page,omitempty"`
SortBy optional.String `json:"sort_by,omitempty"`
Branch optional.String `json:"branch,omitempty"`
}

Expand All @@ -632,6 +633,7 @@ List all locales for the given project.
* @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
* @param "Page" (optional.Int32) - Page number
* @param "PerPage" (optional.Int32) - allows you to specify a page size up to 100 items, 25 by default
* @param "SortBy" (optional.String) - Sort locales. Valid options are \"name_asc\", \"name_desc\", \"default_asc\", \"default_desc\".
* @param "Branch" (optional.String) - specify the branch to use
@return []Locale
*/
Expand Down Expand Up @@ -659,6 +661,9 @@ func (a *LocalesApiService) LocalesList(ctx _context.Context, projectId string,
if localVarOptionals != nil && localVarOptionals.PerPage.IsSet() {
localVarQueryParams.Add("per_page", parameterToString(localVarOptionals.PerPage.Value(), ""))
}
if localVarOptionals != nil && localVarOptionals.SortBy.IsSet() {
localVarQueryParams.Add("sort_by", parameterToString(localVarOptionals.SortBy.Value(), ""))
}
if localVarOptionals != nil && localVarOptionals.Branch.IsSet() {
localVarQueryParams.Add("branch", parameterToString(localVarOptionals.Branch.Value(), ""))
}
Expand Down
1 change: 1 addition & 0 deletions docs/LocalesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ Name | Type | Description | Notes
**xPhraseAppOTP** | **optional.String**| Two-Factor-Authentication token (optional) |
**page** | **optional.Int32**| Page number |
**perPage** | **optional.Int32**| allows you to specify a page size up to 100 items, 25 by default |
**sortBy** | **optional.String**| Sort locales. Valid options are \"name_asc\", \"name_desc\", \"default_asc\", \"default_desc\". |
**branch** | **optional.String**| specify the branch to use |

### Return type
Expand Down

0 comments on commit 2ca3b6a

Please sign in to comment.