See #1470
Currently in the process of drafting the API via Spotlight: https://sourcify.stoplight.io/docs/sourcify-apiv2/branches/main
Open questions:
- Should we have separate "single-file" and "multi-file" endpoints? IMO no, there no point in providing these APIs if the server will convert them to JSON anyway. The UI using this API can still provide a converter/wrapper for that functionality.
- In the
/verify/metadata endpoint, should we have a separate "metadata" field (required) or just put everything in "files" field?
- In
/verify/etherscan should we make the API key optional or required? Optional meaning by default it uses our own API key. Keep in mind we are easily reaching the rate limits of the API key.
- What HTTP code to return at the
GET verify/{verificationId} endpoint if the verification failed. Still 200 or 500 etc?
- Biggest Q IMO: What fields to provide the user at the
GET /contract/{chainId}/{address}` endpoint and in which format?
Action Items:
See #1470
Currently in the process of drafting the API via Spotlight: https://sourcify.stoplight.io/docs/sourcify-apiv2/branches/main
Open questions:
/verify/metadataendpoint, should we have a separate "metadata" field (required) or just put everything in "files" field?/verify/etherscanshould we make the API key optional or required? Optional meaning by default it uses our own API key. Keep in mind we are easily reaching the rate limits of the API key.GET verify/{verificationId}endpoint if the verification failed. Still200or500etc?GET/contract/{chainId}/{address}` endpoint and in which format?Action Items: