16a4a0cbcbf56172a2e2e35dfe20c541d9cc46d7 hiram Wed Jan 14 16:49:35 2026 -0800 starting a liftRequest endpoint refs #31811 diff --git src/hg/hubApi/dataApi.h src/hg/hubApi/dataApi.h index 6431fe3f768..a5e2aacc457 100644 --- src/hg/hubApi/dataApi.h +++ src/hg/hubApi/dataApi.h @@ -73,51 +73,55 @@ #define argFormat "format" #define argJsonOutputArrays "jsonOutputArrays" #define argCategories "categories" #define argSearchTerm "search" #define argSkipContext "skipContext" /* used in findGenome, 'q' is for the query search term */ #define argQ "q" #define argStatsOnly "statsOnly" #define argBrowser "browser" #define argYear "year" #define argCategory "category" #define argStatus "status" #define argLevel "level" #define argFromGenome "fromGenome" #define argToGenome "toGenome" +/* used by liftRequest */ +#define argEmail "email" +#define argComment "comment" /* used in liftOver 'listExisting' function to filter the result */ #define argFilter "filter" /* used in list/files to show only certain file types */ #define argFileType "fileType" /* valid argument listings to verify extraneous arguments * initialized in hubApi.c */ extern char *argListPublicHubs[]; extern char *argListUcscGenomes[]; extern char *argListGenarkGenomes[]; extern char *argListHubGenomes[]; extern char *argListTracks[]; extern char *argListChromosomes[]; extern char *argListSchema[]; extern char *argListFiles[]; extern char *argGetDataTrack[]; extern char *argGetDataSequence[]; extern char *argSearch[]; extern char *argFindGenome[]; extern char *argLiftOver[]; +extern char *argLiftRequest[]; /* 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 */ @@ -283,19 +287,25 @@ void apiList(char *words[MAX_PATH_INFO]); /* 'list' function words[1] is the subCommand */ /* ######################################################################### */ /* functions in search.c */ void apiSearch(char *words[MAX_PATH_INFO]); /* search function */ /* ######################################################################### */ /* functions in findGenome.c */ void apiFindGenome(char *words[MAX_PATH_INFO]); /* 'findGenome' function */ +/* ######################################################################### */ +/* functions in liftover.c */ + void apiLiftOver(char *words[MAX_PATH_INFO]); /* 'liftOver' function */ +void apiLiftRequest(char *words[MAX_PATH_INFO]); +/* interface to the liftOver request page to send email */ + #endif /* DATAAPH_H */