NEAR-Edu / near-certification-tools

2 stars 2 forks source link

Add validation to minting #30

Open ryancwalsh opened 2 years ago

ryancwalsh commented 2 years ago

We have an API endpoint that allows issuing (minting) a new certificate.

In the short run, before we move to some sort of longer-term CRM system, we're keeping track of students in Airtable, and Airtable connects to Integromat, which will post JSON data to our API endpoint to issue the certificate.

Ideally our API endpoint would have some helpful checks for each piece of required information and would respond with helpful hints whenever required info is lacking.

This is a low priority compare to other open issues at the moment.

ryancwalsh commented 2 years ago

@norrec99 @rashaabdulrazzak @ozanisgor @hiba-machfej Can you please talk with @encody to learn whether we should enforce this kind of validation on-chain and whether it can then bubble up all the helpful messages we'd want to see to the front-end.

ryancwalsh commented 2 years ago

Related issue: https://github.com/NEAR-Edu/near-certification-tools/issues/71