FLIX API currently only supports retrieving auditors, but not their audits themselves. To do that, you'd need to set up FCL (or any other client lib) and query the blockchain (retrieve the FlowInteractionTemplateAudit.AuditManager resource in the auditor's storage) to obtain that info.
I think exposing that info through the FLIX API could make it easier for others to consume it. But advanced users could always retrieve it from the blockchain if they want to (e.g. don't trust the FLIX API instance).
Suggest A Solution
Either one (or both) of these options could work:
/auditors/:address/audits - retrieves a list of audits by auditors
/templates/:template_id/audits - retrieves a list of audits by specific template
What are you currently working on that this is blocking?
We are trying to display some basic FLIX audit info in Flowser, but I figured it might be beneficial to implement audit retrieval logic on the FLIX API side instead of in Flowser internally to benefit other users as well.
Issue to be solved
FLIX API currently only supports retrieving auditors, but not their audits themselves. To do that, you'd need to set up FCL (or any other client lib) and query the blockchain (retrieve the
FlowInteractionTemplateAudit.AuditManager
resource in the auditor's storage) to obtain that info.I think exposing that info through the FLIX API could make it easier for others to consume it. But advanced users could always retrieve it from the blockchain if they want to (e.g. don't trust the FLIX API instance).
Suggest A Solution
Either one (or both) of these options could work:
/auditors/:address/audits
- retrieves a list of audits by auditors/templates/:template_id/audits
- retrieves a list of audits by specific templateWhat are you currently working on that this is blocking?
We are trying to display some basic FLIX audit info in Flowser, but I figured it might be beneficial to implement audit retrieval logic on the FLIX API side instead of in Flowser internally to benefit other users as well.