lib/phrase/api/comments_api.rb in phrase-2.17.0 vs lib/phrase/api/comments_api.rb in phrase-2.18.0
- old
+ new
@@ -592,10 +592,11 @@
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
# @option opts [String] :branch specify the branch to use
# @option opts [String] :query Search query for comment messages
# @option opts [Array<String>] :locale_ids Search comments by their assigned locales
# @option opts [Array<String>] :filters Specify the filter for the comments
+ # @option opts [String] :order Order direction. Can be one of: asc, desc.
# @return [Array<Comment>]
def comments_list(project_id, key_id, comments_list_parameters, opts = {})
data, _status_code, _headers = comments_list_with_http_info(project_id, key_id, comments_list_parameters, opts)
data
end
@@ -611,10 +612,11 @@
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
# @option opts [String] :branch specify the branch to use
# @option opts [String] :query Search query for comment messages
# @option opts [Array<String>] :locale_ids Search comments by their assigned locales
# @option opts [Array<String>] :filters Specify the filter for the comments
+ # @option opts [String] :order Order direction. Can be one of: asc, desc.
# @return [Array<(Response<(Array<Comment>)>, Integer, Hash)>] Response<(Array<Comment>)> data, response status code and response headers
def comments_list_with_http_info(project_id, key_id, comments_list_parameters, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: CommentsApi.comments_list ...'
end
@@ -639,9 +641,10 @@
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
query_params[:'locale_ids'] = @api_client.build_collection_param(opts[:'locale_ids'], :multi) if !opts[:'locale_ids'].nil?
query_params[:'filters'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])