5157fdf6389da69cc64f5c0f222f9f6bc8358fec hiram Fri May 10 14:23:21 2019 -0700 better to centralize listing of legal arguments in one location refs #23437 #18869 diff --git src/hg/hubApi/dataApi.h src/hg/hubApi/dataApi.h index 2b6dea8..2507af1 100644 --- src/hg/hubApi/dataApi.h +++ src/hg/hubApi/dataApi.h @@ -34,30 +34,39 @@ #ifdef USE_HAL #include "halBlockViz.h" #endif /* error return codes */ #define err301 301 #define err301Msg "Moved Permanently" #define err400 400 #define err400Msg "Bad Request" #define err404 404 #define err404Msg "Not Found" #define err429 429 #define err429Msg "Too Many Requests" +/* listing of allowed legal arguments for each function */ +#define argsListPublicHubs "" +#define argsListUcscGenomes "" +#define argsListHubGenomes "hubUrl" +#define argsListTracks "genome;hubUrl;trackLeavesOnly" +#define argsListChromosomes "genome;hubUrl;track" +#define argsGetDataTrack "genome;hubUrl;track;chrom;start;end;maxItemsOutput;jsonOutputArrays" +#define argsGetDataSequence "genome;hubUrl;track;chrom;start;end" + /* maximum number of words expected in PATH_INFO parsing * so far only using 2 */ #define MAX_PATH_INFO 32 /* maximum amount of DNA allowed in a get sequence request */ #define MAX_DNA_LENGTH 499999999 /* this size is directly related to the max limit in needMem used in * jsonWriteString */ extern long enteredMainTime; /* will become = clock1000() on entry */ /* limit amount of output to a maximum to avoid overload */ extern int maxItemsOutput; /* can be set in URL maxItemsOutput=N */