Skip to content

Conversation

JaredReisinger
Copy link
Contributor

Related to discourse/discourse#4866, document the page parameter.

I also noted that several of the parameters were marked as in path, but I believe these should be in query... if I'm wrong, and these need to be path for some reason, just let me know and I'll roll them back. But, FWIW, when I try using the API myself, those values only seem to work when in the querystring.

Related to discourse/discourse#4866, document the `page` parameter. I also noted that several of the parameters were marked as in `path`, but I believe these should be in `query`... if I'm wrong, and these need to be `path` for some reason, just let me know and I'll roll them back. But, FWIW, when I try using the API myself, those values only seem to work when in the querystring.
@coding-horror
Copy link

can you take a look @oblakeerickson

@oblakeerickson oblakeerickson merged commit dbc7b75 into discourse:master May 12, 2017
@oblakeerickson
Copy link
Contributor

@JaredReisinger I think you are right about the 'query' option. Thanks!

@oblakeerickson
Copy link
Contributor

Hmmm, but they don't show up in the docs like the 'path' params do. I'll have to investigate and see why.

@JaredReisinger
Copy link
Contributor Author

JaredReisinger commented May 12, 2017

When I run node server.js locally, I get something like (horrible markdown rendering):

returns a list of users

PARAMETERS

Path Parameters

  • flag string Required
    "active" "new" "staff" "suspended" "blocked" "suspect"

Query Parameters

  • order string
    "created" "last_emailed" "seen" "username" "email" "trust_level"
    "days_visited" "posts_read" "topics_viewed" "posts" "read_time"

  • ascending boolean
    optional. defaults to descending.

  • page integer

@JaredReisinger JaredReisinger deleted the admin-users-pagination branch May 12, 2017 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants