Skip to content
nitsuga5124 edited this page Feb 27, 2021 · 4 revisions

POST GET - /verify

Verifies a mod. Requires the user to have the Verify role.

Output

Content-Type: application/text

Returned Status

  • 200 The mod was successfully verified.
  • 400 Bad query info or impossible to verify mod.
  • 401 User does not have the Verify role.

Query Parameters

  • checksum:

    • 64 hex characters String.
    • The checksum of the mod to verify.
  • is_good:

    • Boolean.
    • Weather the mod is safe or unsafe.
  • reason:

    • String.
    • Must be provided if is_good is False.
    • The reason of the verification.
    • Default to null.

Example usage

curl -i -X POST -H 'Authorization: ...' "http://5124.mywire.org:1232/api/verify?checksum=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855&is_good=true"