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

This commit is contained in:
David Taylor 2022-09-16 15:09:15 +01:00 committed by GitHub
parent 3679c081a9
commit 40183080d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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