Changed API for directory_items

This commit moves total_rows_directory_items and load_more_directory_items under the meta object. This is the current behavior on the test server.

However, this is different than what the documentation says and different than the previous behavior, thus breaking my scripts that use the API.

Was this an intentional change to the API, @vinothkannans?

[post originally had more links, but I’m a new user]

1 Like

The documentation necessarily lags behind the code. If it’s changed, it’s changed. The best way to know about the API is How to reverse engineer the Discourse API.

1 Like

Yes, it’s an intentional change like I mentioned in the commit message. I will update the documentation. Else you can contribute with a PR in discourse_api_docs.

3 Likes

Okay, thank you both for the responses. I just missed seeing it in the release notes.