XF 2.2 How to include params with GET method at REST API?

The endpoint for the first page of threads in a forum is forums/{id}/threads .
but I try to get both forum details and threads with one request, document says I can use /forums/[id]/ with with_threads=true, is it a bug or document is outdated?
 
Both of these work for me:

Code:
curl --header "XF-Api-Key: <key>" --request GET "https://site.com/api/forums/2/threads"

curl --header "XF-Api-Key: <key>" --request GET "https://site.com/api/forums/2/?with_threads=true"
 
Both of these work for me:

Code:
curl --header "XF-Api-Key: <key>" --request GET "https://site.com/api/forums/2/threads"

curl --header "XF-Api-Key: <key>" --request GET "https://site.com/api/forums/2/?with_threads=true"
hmmm weird, thanks for your help…
 
Back
Top Bottom