/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
protocol/json/keybase1/apiserver.json
205 строк
4 KB
Song Gao
add --text to apicall (#20223)
10 окт 2019, 19:27
Не верифицирован
10 окт 2019, 19:27
e63c1c3
Код
Авторство
О чём код?
{ "protocol": "apiserver", "imports": [ { "path": "common.avdl", "type": "idl" } ], "types": [ { "type": "record", "name": "APIRes", "fields": [ { "type": "string", "name": "status" }, { "type": "string", "name": "body" }, { "type": "int", "name": "httpStatus" }, { "type": "string", "name": "appStatus" } ] } ], "messages": { "Get": { "request": [ { "name": "endpoint", "type": "string" }, { "name": "args", "type": { "type": "array", "items": "StringKVPair" } }, { "name": "httpStatus", "type": { "type": "array", "items": "int" } }, { "name": "appStatusCode", "type": { "type": "array", "items": "int" } } ], "response": "APIRes", "lint": "ignore" }, "Delete": { "request": [ { "name": "endpoint", "type": "string" }, { "name": "args", "type": { "type": "array", "items": "StringKVPair" } }, { "name": "httpStatus", "type": { "type": "array", "items": "int" } }, { "name": "appStatusCode", "type": { "type": "array", "items": "int" } } ], "response": "APIRes", "lint": "ignore" }, "GetWithSession": { "request": [ { "name": "endpoint", "type": "string" }, { "name": "args", "type": { "type": "array", "items": "StringKVPair" } }, { "name": "httpStatus", "type": { "type": "array", "items": "int" } }, { "name": "appStatusCode", "type": { "type": "array", "items": "int" } }, { "name": "useText", "type": [ null, "boolean" ] } ], "response": "APIRes", "lint": "ignore" }, "Post": { "request": [ { "name": "endpoint", "type": "string" }, { "name": "args", "type": { "type": "array", "items": "StringKVPair" } }, { "name": "httpStatus", "type": { "type": "array", "items": "int" } }, { "name": "appStatusCode", "type": { "type": "array", "items": "int" } } ], "response": "APIRes", "lint": "ignore" }, "PostJSON": { "request": [ { "name": "endpoint", "type": "string" }, { "name": "args", "type": { "type": "array", "items": "StringKVPair" } }, { "name": "JSONPayload", "type": { "type": "array", "items": "StringKVPair" } }, { "name": "httpStatus", "type": { "type": "array", "items": "int" } }, { "name": "appStatusCode", "type": { "type": "array", "items": "int" } } ], "response": "APIRes", "lint": "ignore" } }, "namespace": "keybase.1" }