Open eyedol opened 12 years ago
@eyedol the api call you want is: api?task=incidents&by=all&limit=20&resp=json&comments=1 Comments aren't included by default. Though that behaviour could probably change if needed.
Closing since this is more "by design" .. reopen if needed
Then it's confusing. It makes more sense for the comments to show by default than adding another parameter to get it to show
Agreed. I'll reopen this and rename it as a change rather than a bug. This was actually one of the first pull requests I submitted about a year ago.. so I think comments were only optional as I wasn't sure what might break apps using the API or effect load etc.. didn't want to mess with things too much :)
I've added this to the V3 features wishlist at https://phabricator.ushahidi.com/T554 (so we don't forget to do this for V3); please feel free to continue working on this for V2.
"Comments Not Attached To Reports via An API call"
Steps to reproduce this.
Expected result: Comments posted to reports should be retrievable via the API call.
Actual result: No comments at all. Just an empty JSON value for comments.
Tested on latest develop code.