From 40183080d94dc9b50aad24deb4b9794d921904d9 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 16 Sep 2022 15:09:15 +0100 Subject: [PATCH] DEV: Add `before` parameter to `/posts.json` API docs (#18268) --- spec/requests/api/posts_spec.rb | 1 + 1 file changed, 1 insertion(+) 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