mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 11:13:38 +08:00
DEV: Add before
parameter to /posts.json
API docs (#18268)
This commit is contained in:
parent
3679c081a9
commit
40183080d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user