Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add `before` parameter to `/posts.json` API docs (#18268)

David Taylor40183080d94d
diff --git a/spec/requests/api/posts_spec.rb b/spec/requests/api/posts_spec.rb
index 620f1314627..c7b8a26384e 100644
--- a/spec/requests/api/posts_spec.rb
+++ b/spec/requests/api/posts_spec.rb
@@ -19,6 +19,7 @@ RSpec.describe 'posts' do
operationId 'listPosts'
parameter name: 'Api-Key', in: :header, type: :string, required: true
parameter name: 'Api-Username', in: :header, type: :string, required: true
+ parameter name: 'before', in: :query, type: :string, description: "Load posts with an id lower than this value. Useful for pagination.", required: false
produces 'application/json'
response '200', 'latest posts' do