779b0a67557941da1d0402d9d6f2952ff54fb479 hiram Mon Apr 27 16:48:42 2026 -0700 add API assemblyRequest endpoint properly manage requests from the assemblySearch page system refs #31811 diff --git src/hg/hubApi/dataApi.h src/hg/hubApi/dataApi.h index 449e32d141c..cc1b218585a 100644 --- src/hg/hubApi/dataApi.h +++ src/hg/hubApi/dataApi.h @@ -77,52 +77,57 @@ #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 argLiftable "liftable" #define argFromGenome "fromGenome" #define argToGenome "toGenome" /* used by liftRequest */ #define argEmail "email" #define argComment "comment" +/* used by assemblyRequest */ +#define argAsmId "asmId" +#define argName "name" +#define argBetterName "betterName" /* 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[]; +extern char *argAssemblyRequest[]; /* 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 */ /* Maximum number of comma sep tracks that can be requested by /getData/track */ #define MAX_NUM_TRACKS 100 @@ -291,25 +296,28 @@ 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 */ +void apiAssemblyRequest(char *words[MAX_PATH_INFO]); +/* interface to the assemblySearch.html request form, replaces /cgi-bin/asr */ + /* ######################################################################### */ /* 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 */