lib/phrase/api/comment_replies_api.rb in phrase-2.17.0 vs lib/phrase/api/comment_replies_api.rb in phrase-2.18.0
- old
+ new
@@ -18,10 +18,11 @@
# @option opts [Integer] :page Page number
# @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>] :filters Specify the filter for the comments
+ # @option opts [String] :order Order direction. Can be one of: asc, desc.
# @return [Array<Comment>]
def replies_list(project_id, key_id, comment_id, replies_list_parameters, opts = {})
data, _status_code, _headers = replies_list_with_http_info(project_id, key_id, comment_id, replies_list_parameters, opts)
data
end
@@ -37,10 +38,11 @@
# @option opts [Integer] :page Page number
# @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>] :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 replies_list_with_http_info(project_id, key_id, comment_id, replies_list_parameters, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: CommentRepliesApi.replies_list ...'
end
@@ -68,9 +70,10 @@
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
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[:'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'])