@namespace("keybase.1") protocol apiserver { import idl "common.avdl"; record APIRes { string status; string body; int httpStatus; string appStatus; } @lint("ignore") APIRes Get(string endpoint, array args, array httpStatus, array appStatusCode); @lint("ignore") APIRes Delete(string endpoint, array args, array httpStatus, array appStatusCode); @lint("ignore") APIRes GetWithSession(string endpoint, array args, array httpStatus, array appStatusCode, union{null, boolean} useText); @lint("ignore") APIRes Post(string endpoint, array args, array httpStatus, array appStatusCode); @lint("ignore") APIRes PostJSON(string endpoint, array args, array JSONPayload, array httpStatus, array appStatusCode); }