spec/api/keys_api_spec.rb in phrase-2.8.2 vs spec/api/keys_api_spec.rb in phrase-2.8.3

- old
+ new

@@ -128,11 +128,11 @@ # List all keys for the given project. Alternatively you can POST requests to /search. # @param project_id Project ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [Integer] :page Page number - # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default + # @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] :sort Sort by field. Can be one of: name, created_at, updated_at. # @option opts [String] :order Order direction. Can be one of: asc, desc. # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;. # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys. @@ -149,10 +149,10 @@ # @param project_id Project ID # @param keys_search_parameters # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [Integer] :page Page number - # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default + # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default # @return [Array<TranslationKey>] describe 'keys_search test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end