blob: 4a8e45689b33fbefc74fe27485f1a9f6142dbf2c [file] [log] [blame]
{
"kind": "discovery#restDescription",
"etag": "\"u_zXkMELIlX4ktyNbM2XKD4vK8E/fv51HUFpIp2SZ4FxWW-y5odvVuE\"",
"discoveryVersion": "v1",
"id": "signer:v1",
"name": "signer",
"version": "v1",
"description": "Vanadium remote signer",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"protocol": "rest",
"baseUrl": "https://vanadium-keystore.appspot.com/_ah/api/signer/v1/",
"basePath": "/_ah/api/signer/v1/",
"rootUrl": "https://vanadium-keystore.appspot.com/_ah/api/",
"servicePath": "signer/v1/",
"batchPath": "batch",
"parameters": {
"alt": {
"type": "string",
"description": "Data format for the response.",
"default": "json",
"enum": [
"json"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
],
"location": "query"
},
"fields": {
"type": "string",
"description": "Selector specifying which fields to include in a partial response.",
"location": "query"
},
"key": {
"type": "string",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query"
},
"oauth_token": {
"type": "string",
"description": "OAuth 2.0 token for the current user.",
"location": "query"
},
"prettyPrint": {
"type": "boolean",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"location": "query"
},
"quotaUser": {
"type": "string",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"location": "query"
},
"userIp": {
"type": "string",
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"location": "query"
}
},
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/userinfo.email": {
"description": "View your email address"
}
}
}
},
"schemas": {
"PublicKey": {
"id": "PublicKey",
"type": "object",
"properties": {
"base64": {
"type": "string"
}
}
},
"VSignature": {
"id": "VSignature",
"type": "object",
"properties": {
"r": {
"type": "string"
},
"s": {
"type": "string"
}
}
}
},
"methods": {
"publicKey": {
"id": "signer.publicKey",
"path": "publicKey",
"httpMethod": "POST",
"response": {
"$ref": "PublicKey"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
},
"sign": {
"id": "signer.sign",
"path": "sign/{base64}",
"httpMethod": "POST",
"parameters": {
"base64": {
"type": "string",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"base64"
],
"response": {
"$ref": "VSignature"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
}
}
}