Closed tripleee closed 7 years ago
posts.reason_weight doesn't exist. You're thinking of SUM(reasons.weight) - you can either use posts-by-URL to get it, or query for a post's reasons and sum the weights.
But https://github.com/Charcoal-SE/metasmoke/wiki/Posts-by-ID returns a field like that? Oh well, maybe close this. Thanks for the pointer.
Posts by ID might have it as well. By URL definitely uses a jbuilder view, where we do the SUM(reasons.weight) automatically and include it; by ID might use the same view.
The one field I really want to query for is not visible here:
https://metasmoke.erwaysoftware.com/api/filters
Shouldn't the page be dynamically generated from the schema anyway?