Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON endpoint #11

Open
aral opened this issue May 19, 2020 · 0 comments
Open

Add JSON endpoint #11

aral opened this issue May 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@aral
Copy link
Contributor

aral commented May 19, 2020

Use case

A commandline tool wants to integrate lookup/validation based on the hash of an actual downloaded script.

Suggested API

https://should-i-pipe.it/<Blake2b-512 hash>

Returns: JSON:

{
  "known": /* false | */ {
     "type": "verification" /* | "warning" */,
     // … other fields are the same as in the verified-hashes data structure.
  }
}

Note: warning objects have not been implemented yet. See discussion in last paragraph here.

Reference: verified-hashes.json

@aral aral added the enhancement New feature or request label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant