swagger.yaml 141 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331
  1. openapi: 3.0.3
  2. info:
  3. version: '1.8.0'
  4. title: Fate Flow
  5. paths:
  6. '/data/upload':
  7. post:
  8. summary: upload
  9. tags:
  10. - data-access
  11. parameters:
  12. - in: query
  13. name: id_delimiter
  14. description: data delimiter
  15. required: false
  16. schema:
  17. type: string
  18. example: ","
  19. - in: query
  20. name: head
  21. description: data head
  22. required: true
  23. schema:
  24. type: integer
  25. example: 0, 1
  26. - in: query
  27. name: partition
  28. description: compoting table partitions
  29. required: true
  30. schema:
  31. type: integer
  32. example: 16, ...
  33. - in: query
  34. name: table_name
  35. description: fate table name
  36. required: true
  37. schema:
  38. type: string
  39. example: breast_hetero_guest
  40. - in: query
  41. name: namespace
  42. description: fate table namespace
  43. required: true
  44. schema:
  45. type: string
  46. example: experiment
  47. - in: query
  48. name: storage_engine
  49. description: data storage engin
  50. required: false
  51. schema:
  52. type: string
  53. example: eggroll, localfs, hdfs, ...
  54. - in: query
  55. name: destory
  56. description: destory old table and upload new table
  57. required: false
  58. schema:
  59. type: integer
  60. example: 0, 1
  61. - in: query
  62. name: extend_sid
  63. description: extend sid to first column
  64. required: false
  65. schema:
  66. type: integer
  67. example: 0, 1
  68. requestBody:
  69. required: true
  70. content:
  71. application/octet-stream:
  72. schema:
  73. type: string
  74. responses:
  75. '200':
  76. description: upload success
  77. content:
  78. application/json:
  79. schema:
  80. type: object
  81. properties:
  82. retcode:
  83. type: integer
  84. example: 0
  85. retmsg:
  86. type: string
  87. example: success
  88. data:
  89. type: object
  90. example:
  91. {
  92. "board_url": "http://xxx:8080/index.html#/dashboard?job_id=xxx&role=local&party_id=0",
  93. "code": 0,
  94. "dsl_path": "/data/projects/fate/fateflow/jobs/xxx/job_dsl.json",
  95. "job_id": xxx,
  96. "logs_directory": "/data/projects/fate/fateflow/logs/xxx",
  97. "message": "success",
  98. "model_info": {
  99. "model_id": "local-0#model",
  100. "model_version": xxx
  101. },
  102. "namespace": "experiment",
  103. "pipeline_dsl_path": "/data/projects/fate/fateflow/jobs/xxx/pipeline_dsl.json",
  104. "runtime_conf_on_party_path": "/data/projects/fate/fateflow/jobs/xxx/local/0/job_runtime_on_party_conf.json",
  105. "runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/job_runtime_conf.json",
  106. "table_name": "breast_hetero_guest",
  107. "train_runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/train_runtime_conf.json"
  108. }
  109. '404':
  110. description: upload failed
  111. content:
  112. application/json:
  113. schema:
  114. type: object
  115. properties:
  116. retcode:
  117. type: integer
  118. example: 101
  119. retmsg:
  120. type: string
  121. example: required parameters are missing
  122. '/data/download':
  123. post:
  124. summary: download data
  125. tags:
  126. - data-access
  127. requestBody:
  128. required: true
  129. content:
  130. application/json:
  131. schema:
  132. type: object
  133. required:
  134. - table_name
  135. - namespace
  136. - output_path
  137. properties:
  138. table_name:
  139. type: string
  140. example: breast_hetero_guest
  141. namespace:
  142. type: string
  143. example: experiment
  144. output_path:
  145. type: string
  146. example: /data/projects/fate/fateflow/experiment_download_breast_guest.csv
  147. delimiter:
  148. type: string
  149. example: ","
  150. responses:
  151. '200':
  152. description: download success
  153. content:
  154. application/json:
  155. schema:
  156. type: object
  157. properties:
  158. retcode:
  159. type: integer
  160. example: 0
  161. retmsg:
  162. type: string
  163. example: success
  164. data:
  165. type: object
  166. example:
  167. {
  168. "board_url": "http://xxx:8080/index.html#/dashboard?job_id=xxx&role=local&party_id=0",
  169. "code": 0,
  170. "dsl_path": "/data/projects/fate/fateflow/jobs/xxx/job_dsl.json",
  171. "job_id": xxx,
  172. "logs_directory": "/data/projects/fate/fateflow/logs/xxx",
  173. "message": "success",
  174. "model_info": {
  175. "model_id": "local-0#model",
  176. "model_version": xxx
  177. },
  178. "namespace": "experiment",
  179. "pipeline_dsl_path": "/data/projects/fate/fateflow/jobs/xxx/pipeline_dsl.json",
  180. "runtime_conf_on_party_path": "/data/projects/fate/fateflow/jobs/xxx/local/0/job_runtime_on_party_conf.json",
  181. "runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/job_runtime_conf.json",
  182. "table_name": "breast_hetero_guest",
  183. "train_runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/train_runtime_conf.json"
  184. }
  185. '404':
  186. description: download failed
  187. content:
  188. application/json:
  189. schema:
  190. type: object
  191. properties:
  192. retcode:
  193. type: integer
  194. example: 101
  195. retmsg:
  196. type: string
  197. example: required parameters are missing
  198. '/data/upload/history':
  199. post:
  200. summary: history of upload job info
  201. tags:
  202. - data-access
  203. requestBody:
  204. required: true
  205. content:
  206. application/json:
  207. schema:
  208. type: object
  209. properties:
  210. job_id:
  211. type: string
  212. example: 202103241706521313480
  213. limit:
  214. type: integer
  215. description: limit output
  216. example: 1
  217. responses:
  218. '200':
  219. description: get success
  220. content:
  221. application/json:
  222. schema:
  223. type: object
  224. properties:
  225. retcode:
  226. type: integer
  227. example: 0
  228. retmsg:
  229. type: string
  230. example: success
  231. data:
  232. type: array
  233. items:
  234. type: object
  235. example:
  236. {
  237. "202103241706521313480": {
  238. "notes": "",
  239. "schema": {
  240. "header": "y,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9",
  241. "sid": "id"
  242. },
  243. "upload_info": {
  244. "namespace": "experiment",
  245. "partition": 4,
  246. "table_name": "breast_hetero_guest",
  247. "upload_count": 569
  248. }
  249. }
  250. }
  251. '404':
  252. description: get failed
  253. content:
  254. application/json:
  255. schema:
  256. type: object
  257. properties:
  258. retcode:
  259. type: integer
  260. example: 100
  261. retmsg:
  262. type: string
  263. example: server error
  264. '/table/bind':
  265. post:
  266. summary: bind a storage address to fate table
  267. tags:
  268. - table
  269. requestBody:
  270. required: true
  271. content:
  272. application/json:
  273. schema:
  274. type: object
  275. required:
  276. - engine
  277. - address
  278. - namespace
  279. - name
  280. - head
  281. - id_delimiter
  282. - partitions
  283. properties:
  284. engine:
  285. type: string
  286. example: mysql
  287. name:
  288. type: string
  289. example: breast_hetero_guest
  290. namespace:
  291. type: string
  292. example: experiment
  293. address:
  294. type: object
  295. description: storage address
  296. example:
  297. user: fate
  298. passwd: fate
  299. host: 127.0.0.1
  300. port: 3306
  301. db: xxx
  302. name: xxx
  303. partitions:
  304. type: integer
  305. description: fate computing table partitions
  306. example: 16
  307. head:
  308. type: integer
  309. description: 1 means data have head
  310. example: 0,1
  311. id_delimiter:
  312. type: string
  313. description: data table or intermediate storage table delimiter
  314. example: ","
  315. in_serialized:
  316. type: integer
  317. description: data serialized, standlone/eggroll/mysql/path storage default 1, others default 0
  318. example: 0, 1
  319. drop:
  320. type: integer
  321. description: if table is exist, will delete it
  322. example: 0,1
  323. id_column:
  324. type: string
  325. example: "id"
  326. feature_column:
  327. type: string
  328. description: delimited by ","
  329. example: x1,x2,x3
  330. responses:
  331. '200':
  332. description: bind table success
  333. content:
  334. application/json:
  335. schema:
  336. type: object
  337. properties:
  338. retcode:
  339. type: integer
  340. example: 0
  341. retmsg:
  342. type: string
  343. example: success
  344. data:
  345. type: object
  346. properties:
  347. table_name:
  348. type: string
  349. example: breast_hetero_guest
  350. namespace:
  351. type: string
  352. example: experiment
  353. '404':
  354. description: bind table failed
  355. content:
  356. application/json:
  357. schema:
  358. type: object
  359. properties:
  360. retcode:
  361. type: integer
  362. example: 100
  363. retmsg:
  364. type: string
  365. example: engine xxx address xxx check failed
  366. '/table/delete':
  367. post:
  368. summary: delete fate table
  369. tags:
  370. - table
  371. requestBody:
  372. required: true
  373. content:
  374. application/json:
  375. schema:
  376. type: object
  377. required:
  378. - table_name
  379. - namespace
  380. properties:
  381. table_name:
  382. type: string
  383. example: breast_hetero_guest
  384. namespace:
  385. type: string
  386. example: experiment
  387. responses:
  388. '200':
  389. description: delete table success
  390. content:
  391. application/json:
  392. schema:
  393. type: object
  394. properties:
  395. retcode:
  396. type: integer
  397. example: 0
  398. retmsg:
  399. type: string
  400. example: success
  401. data:
  402. type: object
  403. properties:
  404. table_name:
  405. type: string
  406. example: breast_hetero_guest
  407. namespace:
  408. type: string
  409. example: experiment
  410. '404':
  411. description: delete table failed
  412. content:
  413. application/json:
  414. schema:
  415. type: object
  416. properties:
  417. retcode:
  418. type: integer
  419. example: 101
  420. retmsg:
  421. type: string
  422. example: no find table
  423. '/table/list':
  424. post:
  425. summary: get job all tables
  426. tags:
  427. - table
  428. requestBody:
  429. required: true
  430. content:
  431. application/json:
  432. schema:
  433. type: object
  434. required:
  435. - job_id
  436. - role
  437. - party_id
  438. properties:
  439. job_id:
  440. type: string
  441. example: 202101251515021092240
  442. role:
  443. type: string
  444. example: guest
  445. party_id:
  446. type: string
  447. example: 10000
  448. responses:
  449. '200':
  450. description: get tables success
  451. content:
  452. application/json:
  453. schema:
  454. type: object
  455. properties:
  456. retcode:
  457. type: integer
  458. example: 0
  459. retmsg:
  460. type: string
  461. example: success
  462. data:
  463. type: object
  464. example:
  465. {
  466. "DataIO_0":
  467. {
  468. "input":
  469. {
  470. "Reader_0.data_0":
  471. {
  472. "name": xxx,
  473. "namespace": xxx
  474. }
  475. },
  476. "output":
  477. {
  478. "data_0":
  479. {
  480. "name": xxx,
  481. "namespace": xxx
  482. }
  483. }
  484. },
  485. "Intersection_0":
  486. {
  487. "input":
  488. {
  489. "DataIO_0.data_0":
  490. {
  491. "name": xxx,
  492. "namespace": xxx
  493. }
  494. },
  495. "output":
  496. {
  497. "data_0":
  498. {
  499. "name": xxx,
  500. "namespace": xxx
  501. }
  502. }
  503. },
  504. "Reader_0":
  505. {
  506. "input":
  507. {
  508. "table":
  509. {
  510. "name": xxx,
  511. "namespace": "xxxx"
  512. }
  513. },
  514. "output":
  515. {
  516. "data_0":
  517. {
  518. "name": xxx,
  519. "namespace": xxx
  520. }
  521. }
  522. }
  523. }
  524. '404':
  525. description: delete table failed
  526. content:
  527. application/json:
  528. schema:
  529. type: object
  530. properties:
  531. retcode:
  532. type: integer
  533. example: 101
  534. retmsg:
  535. type: string
  536. example: no find table
  537. '/table/table_info':
  538. post:
  539. summary: query table info
  540. tags:
  541. - table
  542. requestBody:
  543. required: true
  544. content:
  545. application/json:
  546. schema:
  547. type: object
  548. required:
  549. - table_name
  550. - namespace
  551. properties:
  552. table_name:
  553. type: string
  554. example: breast_hetero_guest
  555. namespace:
  556. type: string
  557. example: experiment
  558. responses:
  559. '200':
  560. description: get tables success
  561. content:
  562. application/json:
  563. schema:
  564. type: object
  565. properties:
  566. retcode:
  567. type: integer
  568. example: 0
  569. retmsg:
  570. type: string
  571. example: success
  572. data:
  573. type: object
  574. example:
  575. {
  576. "address":
  577. {},
  578. "count": 569,
  579. "exist": 1,
  580. "namespace": "experiment",
  581. "partition": 16,
  582. "schema":
  583. {
  584. "header": "id,y,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9",
  585. "sid": "id"
  586. },
  587. "table_name": "breast_hetero_guest"
  588. }
  589. '404':
  590. description: query table failed
  591. content:
  592. application/json:
  593. schema:
  594. type: object
  595. properties:
  596. retcode:
  597. type: integer
  598. example: 101
  599. retmsg:
  600. type: string
  601. example: no find table
  602. '/table/tracking/source':
  603. post:
  604. summary: tracking table source
  605. tags:
  606. - table
  607. requestBody:
  608. required: true
  609. content:
  610. application/json:
  611. schema:
  612. type: object
  613. required:
  614. - table_name
  615. - namespace
  616. properties:
  617. table_name:
  618. type: string
  619. example: breast_hetero_guest
  620. namespace:
  621. type: string
  622. example: experiment
  623. responses:
  624. '200':
  625. description: tracking success
  626. content:
  627. application/json:
  628. schema:
  629. type: object
  630. properties:
  631. retcode:
  632. type: integer
  633. example: 0
  634. retmsg:
  635. type: string
  636. example: success
  637. data:
  638. type: array
  639. items:
  640. type: object
  641. example:
  642. {
  643. "parent_table_name": xxx,
  644. "parent_table_namespace": xxx,
  645. "source_table_name": xxx,
  646. "source_table_namespace": xxx
  647. }
  648. '404':
  649. description: tracking failed
  650. content:
  651. application/json:
  652. schema:
  653. type: object
  654. properties:
  655. retcode:
  656. type: integer
  657. example: 101
  658. retmsg:
  659. type: string
  660. example: no find table
  661. '/table/tracking/job':
  662. post:
  663. summary: tracking using table job
  664. tags:
  665. - table
  666. requestBody:
  667. required: true
  668. content:
  669. application/json:
  670. schema:
  671. type: object
  672. required:
  673. - table_name
  674. - namespace
  675. properties:
  676. table_name:
  677. type: string
  678. example: breast_hetero_guest
  679. namespace:
  680. type: string
  681. example: experiment
  682. responses:
  683. '200':
  684. description: tracking success
  685. content:
  686. application/json:
  687. schema:
  688. type: object
  689. properties:
  690. retcode:
  691. type: integer
  692. example: 0
  693. retmsg:
  694. type: string
  695. example: success
  696. data:
  697. type: array
  698. items:
  699. type: object
  700. example:
  701. {
  702. "count": 5,
  703. "job":
  704. [
  705. "202104212104472450460",
  706. "202104212127150470680",
  707. "202104220937051579910",
  708. "202104212038599210200",
  709. "202104212131462630720"
  710. ]
  711. }
  712. '404':
  713. description: tracking failed
  714. content:
  715. application/json:
  716. schema:
  717. type: object
  718. properties:
  719. retcode:
  720. type: integer
  721. example: 101
  722. retmsg:
  723. type: string
  724. example: no find table
  725. '/job/submit':
  726. post:
  727. summary: submit job
  728. tags:
  729. - job
  730. requestBody:
  731. required: true
  732. content:
  733. application/json:
  734. schema:
  735. type: object
  736. required:
  737. - dsl
  738. - runtime_conf
  739. properties:
  740. dsl:
  741. type: object
  742. example:
  743. {
  744. "components":
  745. {
  746. "dataio_0":
  747. {
  748. "input":
  749. {
  750. "data":
  751. {
  752. "data":
  753. [
  754. "reader_0.table"
  755. ]
  756. }
  757. },
  758. "module": "DataIO",
  759. "need_deploy": true,
  760. "output":
  761. {
  762. "data":
  763. [
  764. "train"
  765. ],
  766. "model":
  767. [
  768. "dataio"
  769. ]
  770. }
  771. },
  772. "evaluation_0":
  773. {
  774. "input":
  775. {
  776. "data":
  777. {
  778. "data":
  779. [
  780. "hetero_lr_0.train"
  781. ]
  782. }
  783. },
  784. "module": "Evaluation",
  785. "output":
  786. {
  787. "data":
  788. [
  789. "evaluate"
  790. ]
  791. }
  792. },
  793. "hetero_feature_binning_0":
  794. {
  795. "input":
  796. {
  797. "data":
  798. {
  799. "data":
  800. [
  801. "intersection_0.train"
  802. ]
  803. }
  804. },
  805. "module": "HeteroFeatureBinning",
  806. "output":
  807. {
  808. "data":
  809. [
  810. "train"
  811. ],
  812. "model":
  813. [
  814. "hetero_feature_binning"
  815. ]
  816. }
  817. },
  818. "hetero_feature_selection_0":
  819. {
  820. "input":
  821. {
  822. "data":
  823. {
  824. "data":
  825. [
  826. "hetero_feature_binning_0.train"
  827. ]
  828. },
  829. "isometric_model":
  830. [
  831. "hetero_feature_binning_0.hetero_feature_binning"
  832. ]
  833. },
  834. "module": "HeteroFeatureSelection",
  835. "output":
  836. {
  837. "data":
  838. [
  839. "train"
  840. ],
  841. "model":
  842. [
  843. "selected"
  844. ]
  845. }
  846. },
  847. "hetero_lr_0":
  848. {
  849. "input":
  850. {
  851. "data":
  852. {
  853. "train_data":
  854. [
  855. "hetero_feature_selection_0.train"
  856. ]
  857. }
  858. },
  859. "module": "HeteroLR",
  860. "output":
  861. {
  862. "data":
  863. [
  864. "train"
  865. ],
  866. "model":
  867. [
  868. "hetero_lr"
  869. ]
  870. }
  871. },
  872. "intersection_0":
  873. {
  874. "input":
  875. {
  876. "data":
  877. {
  878. "data":
  879. [
  880. "dataio_0.train"
  881. ]
  882. }
  883. },
  884. "module": "Intersection",
  885. "output":
  886. {
  887. "data":
  888. [
  889. "train"
  890. ]
  891. }
  892. },
  893. "reader_0":
  894. {
  895. "module": "Reader",
  896. "output":
  897. {
  898. "data":
  899. [
  900. "table"
  901. ]
  902. }
  903. }
  904. }
  905. }
  906. runtime_conf:
  907. type: object
  908. example:
  909. {
  910. "component_parameters":
  911. {
  912. "common":
  913. {
  914. "hetero_lr_0":
  915. {
  916. "alpha": 0.01,
  917. "batch_size": 320,
  918. "init_param":
  919. {
  920. "init_method": "random_uniform"
  921. },
  922. "learning_rate": 0.15,
  923. "max_iter": 3,
  924. "optimizer": "rmsprop",
  925. "penalty": "L2"
  926. },
  927. "intersection_0":
  928. {
  929. "intersect_method": "raw",
  930. "only_output_key": false,
  931. "sync_intersect_ids": true
  932. }
  933. },
  934. "role":
  935. {
  936. "guest":
  937. {
  938. "0":
  939. {
  940. "dataio_0":
  941. {
  942. "label_name": "y",
  943. "label_type": "int",
  944. "output_format": "dense",
  945. "with_label": true
  946. },
  947. "reader_0":
  948. {
  949. "table":
  950. {
  951. "name": "breast_hetero_guest",
  952. "namespace": "experiment"
  953. }
  954. }
  955. }
  956. },
  957. "host":
  958. {
  959. "0":
  960. {
  961. "dataio_0":
  962. {
  963. "output_format": "dense",
  964. "with_label": false
  965. },
  966. "evaluation_0":
  967. {
  968. "need_run": false
  969. },
  970. "reader_0":
  971. {
  972. "table":
  973. {
  974. "name": "breast_hetero_host",
  975. "namespace": "experiment"
  976. }
  977. }
  978. }
  979. }
  980. }
  981. },
  982. "dsl_version": "2",
  983. "initiator":
  984. {
  985. "party_id": 9999,
  986. "role": "guest"
  987. },
  988. "job_parameters":
  989. {
  990. "common":
  991. {
  992. "auto_retries": 1,
  993. "computing_partitions": 8,
  994. "task_cores": 4,
  995. "task_parallelism": 2
  996. }
  997. },
  998. "role":
  999. {
  1000. "arbiter":
  1001. [
  1002. 10000
  1003. ],
  1004. "guest":
  1005. [
  1006. 9999
  1007. ],
  1008. "host":
  1009. [
  1010. 10000
  1011. ]
  1012. }
  1013. }
  1014. responses:
  1015. '200':
  1016. description: submit job success
  1017. content:
  1018. application/json:
  1019. schema:
  1020. type: object
  1021. properties:
  1022. retcode:
  1023. type: integer
  1024. example: 0
  1025. retmsg:
  1026. type: string
  1027. example: success
  1028. data:
  1029. type: object
  1030. example:
  1031. {
  1032. "board_url": xxx,
  1033. "code": 0,
  1034. "dsl_path": xxx,
  1035. "job_id": xxx,
  1036. "logs_directory": xxx,
  1037. "message": "success",
  1038. "model_info":
  1039. {
  1040. "model_id": xxx,
  1041. "model_version": xxx
  1042. },
  1043. "pipeline_dsl_path": xxx,
  1044. "runtime_conf_on_party_path": xxx,
  1045. "runtime_conf_path": xxx,
  1046. "train_runtime_conf_path": xxx
  1047. }
  1048. '404':
  1049. description: submit job failed
  1050. content:
  1051. application/json:
  1052. schema:
  1053. type: object
  1054. properties:
  1055. retcode:
  1056. type: integer
  1057. example: 101
  1058. retmsg:
  1059. type: string
  1060. example: "config error"
  1061. '/job/stop':
  1062. post:
  1063. summary: stop job
  1064. tags:
  1065. - job
  1066. requestBody:
  1067. required: true
  1068. content:
  1069. application/json:
  1070. schema:
  1071. type: object
  1072. required:
  1073. - job_id
  1074. properties:
  1075. job_id:
  1076. type: string
  1077. example: 202103231958539401540
  1078. stop_status:
  1079. type: string
  1080. default: cancel
  1081. example: "failed"
  1082. description: "failed or cancel"
  1083. responses:
  1084. '200':
  1085. description: stop job success
  1086. content:
  1087. application/json:
  1088. schema:
  1089. type: object
  1090. properties:
  1091. retcode:
  1092. type: integer
  1093. example: 0
  1094. retmsg:
  1095. type: string
  1096. example: success
  1097. '404':
  1098. description: stop job failed
  1099. content:
  1100. application/json:
  1101. schema:
  1102. type: object
  1103. properties:
  1104. retcode:
  1105. type: integer
  1106. example: 101
  1107. retmsg:
  1108. type: string
  1109. example: no find job
  1110. '/job/rerun':
  1111. post:
  1112. summary: rerun job
  1113. tags:
  1114. - job
  1115. requestBody:
  1116. required: true
  1117. content:
  1118. application/json:
  1119. schema:
  1120. type: object
  1121. required:
  1122. - job_id
  1123. properties:
  1124. job_id:
  1125. type: string
  1126. example: 202103231958539401540
  1127. responses:
  1128. '200':
  1129. description: rerun job success
  1130. content:
  1131. application/json:
  1132. schema:
  1133. type: object
  1134. properties:
  1135. retcode:
  1136. type: integer
  1137. example: 0
  1138. retmsg:
  1139. type: string
  1140. example: success
  1141. '404':
  1142. description: rerun job failed
  1143. content:
  1144. application/json:
  1145. schema:
  1146. type: object
  1147. properties:
  1148. retcode:
  1149. type: integer
  1150. example: 101
  1151. retmsg:
  1152. type: string
  1153. example: no find job
  1154. '/job/query':
  1155. post:
  1156. summary: query job
  1157. tags:
  1158. - job
  1159. requestBody:
  1160. required: true
  1161. content:
  1162. application/json:
  1163. schema:
  1164. type: object
  1165. required:
  1166. - job_id
  1167. properties:
  1168. job_id:
  1169. type: string
  1170. responses:
  1171. '200':
  1172. description: query job success
  1173. content:
  1174. application/json:
  1175. schema:
  1176. type: object
  1177. properties:
  1178. retcode:
  1179. type: integer
  1180. example: 0
  1181. retmsg:
  1182. type: string
  1183. example: success
  1184. data:
  1185. type: array
  1186. items:
  1187. type: object
  1188. example:
  1189. {
  1190. "f_apply_resource_time": xxx,
  1191. "f_cancel_signal": false,
  1192. "f_cancel_time": xxx,
  1193. "f_cores": 8,
  1194. "f_create_date": xxx,
  1195. "f_create_time": xxx,
  1196. "f_description": "",
  1197. "f_dsl": {},
  1198. "f_elapsed": 14380,
  1199. "f_end_date": xxx,
  1200. "f_end_scheduling_updates": 1,
  1201. "f_end_time": xxx,
  1202. "f_engine_name": "EGGROLL",
  1203. "f_engine_type": "computing",
  1204. "f_initiator_party_id": "20001",
  1205. "f_initiator_role": "guest",
  1206. "f_is_initiator": true,
  1207. "f_job_id": xxx,
  1208. "f_memory": 0,
  1209. "f_name": "",
  1210. "f_party_id": "20001",
  1211. "f_progress": 14,
  1212. "f_ready_signal": false,
  1213. "f_ready_time": null,
  1214. "f_remaining_cores": 8,
  1215. "f_remaining_memory": 0,
  1216. "f_rerun_signal": false,
  1217. "f_resource_in_use": false,
  1218. "f_return_resource_time": xxx,
  1219. "f_role": "guest",
  1220. "f_roles": {},
  1221. "f_runtime_conf": {},
  1222. "f_runtime_conf_on_party": {},
  1223. "f_start_date": xxx,
  1224. "f_start_time": xxx,
  1225. "f_status": "failed",
  1226. "f_status_code": null,
  1227. "f_tag": "job_end",
  1228. "f_train_runtime_conf": {},
  1229. "f_update_date": xxx,
  1230. "f_update_time": xxx,
  1231. "f_user": {},
  1232. "f_user_id": ""
  1233. }
  1234. '404':
  1235. description: query job failed
  1236. content:
  1237. application/json:
  1238. schema:
  1239. type: object
  1240. properties:
  1241. retcode:
  1242. type: integer
  1243. example: 101
  1244. retmsg:
  1245. type: string
  1246. example: no find job
  1247. '/job/list/job':
  1248. post:
  1249. summary: list jobs
  1250. tags:
  1251. - job
  1252. requestBody:
  1253. required: true
  1254. content:
  1255. application/json:
  1256. schema:
  1257. type: object
  1258. properties:
  1259. limit:
  1260. type: integer
  1261. description: '`0` means no limit'
  1262. example: 20
  1263. page:
  1264. type: integer
  1265. example: 1
  1266. job_id:
  1267. type: string
  1268. example: '202112020129140220090'
  1269. party_id:
  1270. type: integer
  1271. example: 9999
  1272. role:
  1273. type: array
  1274. items:
  1275. type: string
  1276. enum:
  1277. - guest
  1278. - host
  1279. - arbiter
  1280. - local
  1281. status:
  1282. type: array
  1283. items:
  1284. type: string
  1285. enum:
  1286. - success
  1287. - running
  1288. - waiting
  1289. - failed
  1290. - canceled
  1291. description:
  1292. type: string
  1293. description: '`notes` on front-end'
  1294. order_by:
  1295. type: string
  1296. description: 'defaults `create_time`'
  1297. enum:
  1298. - create_time
  1299. - start_time
  1300. - end_time
  1301. - elapsed
  1302. order:
  1303. type: string
  1304. description: 'defaults `desc`'
  1305. enum:
  1306. - asc
  1307. - desc
  1308. responses:
  1309. '200':
  1310. description: jobs list
  1311. content:
  1312. application/json:
  1313. schema:
  1314. type: object
  1315. properties:
  1316. retcode:
  1317. type: integer
  1318. example: 0
  1319. retmsg:
  1320. type: string
  1321. example: success
  1322. data:
  1323. type: object
  1324. properties:
  1325. count:
  1326. type: integer
  1327. example: 1
  1328. jobs:
  1329. type: array
  1330. items:
  1331. type: object
  1332. example:
  1333. apply_resource_time: 1638379762883
  1334. cancel_signal: false
  1335. cancel_time:
  1336. cores: 4
  1337. create_date: '2021-12-02 01:29:18'
  1338. create_time: 1638379758581
  1339. description: ''
  1340. dsl:
  1341. components:
  1342. dataio_0:
  1343. input:
  1344. data:
  1345. data:
  1346. - reader_0.data
  1347. module: DataIO
  1348. output:
  1349. data:
  1350. - data
  1351. model:
  1352. - model
  1353. hetero_feature_binning_0:
  1354. input:
  1355. data:
  1356. data:
  1357. - intersection_0.data
  1358. module: HeteroFeatureBinning
  1359. output:
  1360. data:
  1361. - data
  1362. model:
  1363. - model
  1364. intersection_0:
  1365. input:
  1366. data:
  1367. data:
  1368. - dataio_0.data
  1369. module: Intersection
  1370. output:
  1371. cache:
  1372. - cache
  1373. data:
  1374. - data
  1375. reader_0:
  1376. module: Reader
  1377. output:
  1378. data:
  1379. - data
  1380. provider: fate_flow@1.7.0
  1381. elapsed: 116548
  1382. end_date: '2021-12-02 01:31:19'
  1383. end_scheduling_updates: 1
  1384. end_time: 1638379879547
  1385. engine_name: STANDALONE
  1386. engine_type: computing
  1387. initiator_party_id: '10000'
  1388. initiator_role: guest
  1389. is_initiator: true
  1390. job_id: '202112020129140220090'
  1391. memory: 0
  1392. name: ''
  1393. partners:
  1394. - 9999
  1395. party_id: 10000
  1396. progress: 100
  1397. ready_signal: false
  1398. ready_time:
  1399. remaining_cores: 4
  1400. remaining_memory: 0
  1401. rerun_signal: false
  1402. resource_in_use: false
  1403. return_resource_time: 1638379879568
  1404. role: guest
  1405. roles:
  1406. guest:
  1407. - 10000
  1408. host:
  1409. - 9999
  1410. runtime_conf:
  1411. component_parameters:
  1412. common:
  1413. hetero_feature_binning_0:
  1414. adjustment_factor: 0.5
  1415. bin_indexes: -1
  1416. bin_names:
  1417. bin_num: 10
  1418. category_indexes:
  1419. category_names:
  1420. compress_thres: 10000
  1421. error: 0.001
  1422. head_size: 10000
  1423. local_only: false
  1424. method: quantile
  1425. transform_param:
  1426. transform_cols:
  1427. - 0
  1428. - 1
  1429. - 2
  1430. transform_names:
  1431. transform_type: woe
  1432. role:
  1433. guest:
  1434. '0':
  1435. dataio_0:
  1436. with_label: true
  1437. reader_0:
  1438. table:
  1439. name: breast_hetero_guest
  1440. namespace: experiment
  1441. host:
  1442. '0':
  1443. dataio_0:
  1444. with_label: false
  1445. hetero_feature_binning_0:
  1446. transform_param:
  1447. transform_type:
  1448. reader_0:
  1449. table:
  1450. name: breast_hetero_host
  1451. namespace: experiment
  1452. conf_path: "/tmp/tmp2zc5tf8b/job_runtime_conf.json"
  1453. dsl_path: "/tmp/tmp2zc5tf8b/job_dsl.json"
  1454. dsl_version: 2
  1455. initiator:
  1456. party_id: 10000
  1457. role: guest
  1458. job_parameters:
  1459. common:
  1460. adaptation_parameters:
  1461. if_initiator_baseline: true
  1462. request_task_cores: 4
  1463. task_cores_per_node: 4
  1464. task_memory_per_node: 0
  1465. task_nodes: 1
  1466. auto_retries: 0
  1467. auto_retry_delay: 1
  1468. computing_engine: STANDALONE
  1469. computing_partitions: 4
  1470. eggroll_run: { }
  1471. engines_address: { }
  1472. federated_mode: SINGLE
  1473. federated_status_collect_type: PUSH
  1474. federation_engine: STANDALONE
  1475. job_type: train
  1476. model_id: guest-10000#host-9999#model
  1477. model_version: '202112020129140220090'
  1478. pulsar_run: { }
  1479. rabbitmq_run: { }
  1480. spark_run: { }
  1481. storage_engine: STANDALONE
  1482. task_parallelism: 1
  1483. role:
  1484. guest:
  1485. - 10000
  1486. host:
  1487. - 9999
  1488. runtime_conf_on_party:
  1489. component_parameters:
  1490. common:
  1491. hetero_feature_binning_0:
  1492. adjustment_factor: 0.5
  1493. bin_indexes: -1
  1494. bin_names:
  1495. bin_num: 10
  1496. category_indexes:
  1497. category_names:
  1498. compress_thres: 10000
  1499. error: 0.001
  1500. head_size: 10000
  1501. local_only: false
  1502. method: quantile
  1503. transform_param:
  1504. transform_cols:
  1505. - 0
  1506. - 1
  1507. - 2
  1508. transform_names:
  1509. transform_type: woe
  1510. role:
  1511. guest:
  1512. '0':
  1513. dataio_0:
  1514. with_label: true
  1515. reader_0:
  1516. table:
  1517. name: breast_hetero_guest
  1518. namespace: experiment
  1519. host:
  1520. '0':
  1521. dataio_0:
  1522. with_label: false
  1523. hetero_feature_binning_0:
  1524. transform_param:
  1525. transform_type:
  1526. reader_0:
  1527. table:
  1528. name: breast_hetero_host
  1529. namespace: experiment
  1530. conf_path: "/tmp/tmp2zc5tf8b/job_runtime_conf.json"
  1531. dsl_path: "/tmp/tmp2zc5tf8b/job_dsl.json"
  1532. dsl_version: 2
  1533. initiator:
  1534. party_id: 10000
  1535. role: guest
  1536. job_parameters:
  1537. adaptation_parameters:
  1538. if_initiator_baseline: false
  1539. request_task_cores: 4
  1540. task_cores_per_node: 4
  1541. task_memory_per_node: 0
  1542. task_nodes: 1
  1543. auto_retries: 0
  1544. auto_retry_delay: 1
  1545. computing_engine: STANDALONE
  1546. computing_partitions: 4
  1547. eggroll_run:
  1548. eggroll.session.processors.per.node: 4
  1549. engines_address:
  1550. computing:
  1551. cores_per_node: 20
  1552. nodes: 1
  1553. federation:
  1554. cores_per_node: 20
  1555. nodes: 1
  1556. storage:
  1557. cores_per_node: 20
  1558. nodes: 1
  1559. federated_mode: SINGLE
  1560. federated_status_collect_type: PUSH
  1561. federation_engine: STANDALONE
  1562. job_type: train
  1563. model_id: guest-10000#host-9999#model
  1564. model_version: '202112020129140220090'
  1565. pulsar_run: { }
  1566. rabbitmq_run: { }
  1567. spark_run: { }
  1568. storage_engine: STANDALONE
  1569. task_parallelism: 1
  1570. role:
  1571. guest:
  1572. - 10000
  1573. host:
  1574. - 9999
  1575. start_date: '2021-12-02 01:29:22'
  1576. start_time: 1638379762999
  1577. status: success
  1578. status_code:
  1579. tag: job_end
  1580. train_runtime_conf: { }
  1581. update_date: '2021-12-02 01:32:04'
  1582. update_time: 1638379924749
  1583. user:
  1584. guest:
  1585. '10000': ''
  1586. host:
  1587. '9999': ''
  1588. user_id: ''
  1589. '/job/list/task':
  1590. post:
  1591. summary: list tasks
  1592. tags:
  1593. - job
  1594. requestBody:
  1595. required: true
  1596. content:
  1597. application/json:
  1598. schema:
  1599. type: object
  1600. properties:
  1601. limit:
  1602. type: integer
  1603. description: '`0` means no limit'
  1604. example: 20
  1605. page:
  1606. type: integer
  1607. example: 1
  1608. job_id:
  1609. type: string
  1610. example: '202112020129140220090'
  1611. party_id:
  1612. type: integer
  1613. example: 9999
  1614. role:
  1615. type: string
  1616. enum:
  1617. - guest
  1618. - host
  1619. - arbiter
  1620. - local
  1621. component_name:
  1622. type: string
  1623. example: upload_0
  1624. order_by:
  1625. type: string
  1626. description: 'defaults `create_time`'
  1627. enum:
  1628. - create_time
  1629. - start_time
  1630. - end_time
  1631. - elapsed
  1632. order:
  1633. type: string
  1634. description: 'defaults `asc`'
  1635. enum:
  1636. - asc
  1637. - desc
  1638. responses:
  1639. '200':
  1640. description: jobs list
  1641. content:
  1642. application/json:
  1643. schema:
  1644. type: object
  1645. properties:
  1646. retcode:
  1647. type: integer
  1648. example: 0
  1649. retmsg:
  1650. type: string
  1651. example: success
  1652. data:
  1653. type: object
  1654. properties:
  1655. count:
  1656. type: integer
  1657. example: 1
  1658. tasks:
  1659. type: array
  1660. items:
  1661. type: object
  1662. example:
  1663. auto_retries: 0
  1664. auto_retry_delay: 1
  1665. cmd:
  1666. - "/root/Codes/FATE/venv/bin/python3.6"
  1667. - "/root/Codes/FATE/fateflow/python/fate_flow/worker/task_executor.py"
  1668. - "--job_id"
  1669. - '202112020129140220090'
  1670. - "--component_name"
  1671. - hetero_feature_binning_0
  1672. - "--task_id"
  1673. - 202112020129140220090_hetero_feature_binning_0
  1674. - "--task_version"
  1675. - 0
  1676. - "--role"
  1677. - guest
  1678. - "--party_id"
  1679. - '10000'
  1680. - "--config"
  1681. - "/root/Codes/FATE/fateflow/jobs/202112020129140220090/guest/10000/hetero_feature_binning_0/202112020129140220090_hetero_feature_binning_0/0/task_executor/6b6f4b1852cc11ec8a8700155d13c16c/config.json"
  1682. - "--result"
  1683. - "/root/Codes/FATE/fateflow/jobs/202112020129140220090/guest/10000/hetero_feature_binning_0/202112020129140220090_hetero_feature_binning_0/0/task_executor/6b6f4b1852cc11ec8a8700155d13c16c/result.json"
  1684. - "--log_dir"
  1685. - "/root/Codes/FATE/fateflow/logs/202112020129140220090/guest/10000/hetero_feature_binning_0"
  1686. - "--parent_log_dir"
  1687. - "/root/Codes/FATE/fateflow/logs/202112020129140220090/guest/10000"
  1688. - "--worker_id"
  1689. - 6b6f4b1852cc11ec8a8700155d13c16c
  1690. - "--run_ip"
  1691. - 127.0.0.1
  1692. - "--job_server"
  1693. - 127.0.0.1:9380
  1694. - "--session_id"
  1695. - 202112020129140220090_hetero_feature_binning_0_0_guest_10000
  1696. - "--federation_session_id"
  1697. - 202112020129140220090_hetero_feature_binning_0_0
  1698. component_module: HeteroFeatureBinning
  1699. component_name: hetero_feature_binning_0
  1700. component_parameters:
  1701. CodePath: HeteroFeatureBinningGuest
  1702. ComponentParam:
  1703. _feeded_deprecated_params: [ ]
  1704. _is_raw_conf: false
  1705. _name: HeteroFeatureBinning#hetero_feature_binning_0
  1706. _user_feeded_params:
  1707. - head_size
  1708. - category_names
  1709. - bin_num
  1710. - transform_param.transform_names
  1711. - transform_param
  1712. - compress_thres
  1713. - error
  1714. - method
  1715. - bin_indexes
  1716. - transform_param.transform_type
  1717. - bin_names
  1718. - category_indexes
  1719. - local_only
  1720. - transform_param.transform_cols
  1721. - adjustment_factor
  1722. adjustment_factor: 0.5
  1723. bin_indexes: -1
  1724. bin_names:
  1725. bin_num: 10
  1726. category_indexes:
  1727. category_names:
  1728. compress_thres: 10000
  1729. encrypt_param:
  1730. key_length: 1024
  1731. method: Paillier
  1732. error: 0.001
  1733. head_size: 10000
  1734. local_only: false
  1735. method: quantile
  1736. need_run: true
  1737. optimal_binning_param:
  1738. adjustment_factor:
  1739. init_bin_nums: 1000
  1740. init_bucket_method: quantile
  1741. max_bin:
  1742. max_bin_pct: 1
  1743. metric_method: iv
  1744. min_bin_pct: 0.05
  1745. mixture: true
  1746. skip_static: false
  1747. transform_param:
  1748. transform_cols:
  1749. - 0
  1750. - 1
  1751. - 2
  1752. transform_names:
  1753. transform_type: woe
  1754. conf_path: "/tmp/tmp2zc5tf8b/job_runtime_conf.json"
  1755. dsl_path: "/tmp/tmp2zc5tf8b/job_dsl.json"
  1756. dsl_version: 2
  1757. initiator:
  1758. party_id: 10000
  1759. role: guest
  1760. job_parameters:
  1761. common:
  1762. adaptation_parameters:
  1763. if_initiator_baseline: true
  1764. request_task_cores: 4
  1765. task_cores_per_node: 4
  1766. task_memory_per_node: 0
  1767. task_nodes: 1
  1768. auto_retries: 0
  1769. auto_retry_delay: 1
  1770. computing_engine: STANDALONE
  1771. computing_partitions: 4
  1772. eggroll_run: { }
  1773. engines_address: { }
  1774. federated_mode: SINGLE
  1775. federated_status_collect_type: PUSH
  1776. federation_engine: STANDALONE
  1777. job_type: train
  1778. model_id: guest-10000#host-9999#model
  1779. model_version: '202112020129140220090'
  1780. pulsar_run: { }
  1781. rabbitmq_run: { }
  1782. spark_run: { }
  1783. storage_engine: STANDALONE
  1784. task_parallelism: 1
  1785. local:
  1786. party_id: 10000
  1787. role: guest
  1788. module: HeteroFeatureBinning
  1789. role:
  1790. guest:
  1791. - 10000
  1792. host:
  1793. - 9999
  1794. create_date: '2021-12-02 01:29:21'
  1795. create_time: 1638379761918
  1796. elapsed: 9095
  1797. end_date: '2021-12-02 01:31:04'
  1798. end_time: 1638379864051
  1799. engine_conf:
  1800. computing_engine: STANDALONE
  1801. federated_mode: SINGLE
  1802. federated_status_collect_type: PUSH
  1803. initiator_party_id: '10000'
  1804. initiator_role: guest
  1805. job_id: '202112020129140220090'
  1806. party_id: '10000'
  1807. party_status: success
  1808. provider_info:
  1809. class_path:
  1810. feature_instance: feature.instance.Instance
  1811. feature_vector: feature.sparse_vector.SparseVector
  1812. homo_model_convert: protobuf.homo_model_convert.homo_model_convert
  1813. interface: components.components.Components
  1814. model: protobuf.generated
  1815. model_migrate: protobuf.model_migrate.model_migrate
  1816. env:
  1817. PYTHONPATH: "/root/Codes/FATE/python"
  1818. name: fate
  1819. path: "/root/Codes/FATE/python/federatedml"
  1820. version: 1.7.0
  1821. role: guest
  1822. run_ip: 127.0.0.1
  1823. run_on_this_party: true
  1824. run_pid: 29934
  1825. start_date: '2021-12-02 01:30:47'
  1826. start_time: 1638379847118
  1827. status: success
  1828. status_code:
  1829. task_id: 202112020129140220090_hetero_feature_binning_0
  1830. task_version: 0
  1831. update_date: '2021-12-02 01:31:06'
  1832. update_time: 1638379866439
  1833. worker_id: 6b6f4b1852cc11ec8a8700155d13c16c
  1834. '/job/update':
  1835. post:
  1836. summary: job notes
  1837. tags:
  1838. - job
  1839. requestBody:
  1840. required: true
  1841. content:
  1842. application/json:
  1843. schema:
  1844. type: object
  1845. required:
  1846. - job_id
  1847. - role
  1848. - party_id
  1849. - notes
  1850. properties:
  1851. job_id:
  1852. type: string
  1853. example: "2022xxx"
  1854. role:
  1855. type: string
  1856. example: guest
  1857. party_id:
  1858. type: integer
  1859. example: 10000
  1860. notes:
  1861. type: string
  1862. example: this is a test
  1863. responses:
  1864. '200':
  1865. description: success
  1866. content:
  1867. application/json:
  1868. schema:
  1869. type: object
  1870. properties:
  1871. retcode:
  1872. type: integer
  1873. example: 0
  1874. retmsg:
  1875. type: string
  1876. example: success
  1877. '404':
  1878. description: failed
  1879. content:
  1880. application/json:
  1881. schema:
  1882. type: object
  1883. properties:
  1884. retcode:
  1885. type: integer
  1886. example: 101
  1887. retmsg:
  1888. type: string
  1889. example: no find job
  1890. '/job/parameter/update':
  1891. post:
  1892. summary: update job parameter
  1893. tags:
  1894. - job
  1895. requestBody:
  1896. required: true
  1897. content:
  1898. application/json:
  1899. schema:
  1900. type: object
  1901. required:
  1902. - job_id
  1903. properties:
  1904. job_id:
  1905. type: string
  1906. example: "2022xxx"
  1907. component_parameters:
  1908. type: object
  1909. example:
  1910. {
  1911. "common":
  1912. {
  1913. "hetero_lr_0":
  1914. {
  1915. "max_iter": 10
  1916. }
  1917. }
  1918. }
  1919. job_parameters:
  1920. type: object
  1921. example:
  1922. {
  1923. "common":
  1924. {
  1925. "auto_retries": 2
  1926. }
  1927. }
  1928. responses:
  1929. '200':
  1930. description: success
  1931. content:
  1932. application/json:
  1933. schema:
  1934. type: object
  1935. properties:
  1936. retcode:
  1937. type: integer
  1938. example: 0
  1939. retmsg:
  1940. type: string
  1941. example: success
  1942. data:
  1943. type: object
  1944. example:
  1945. {
  1946. "component_parameters":
  1947. {
  1948. "common":
  1949. {
  1950. "hetero_lr_0":
  1951. {
  1952. "alpha": 0.01,
  1953. "batch_size": 320,
  1954. "init_param":
  1955. {
  1956. "init_method": "random_uniform"
  1957. },
  1958. "learning_rate": 0.15,
  1959. "max_iter": 10,
  1960. "optimizer": "rmsprop",
  1961. "penalty": "L2"
  1962. },
  1963. "intersection_0":
  1964. {
  1965. "intersect_method": "raw",
  1966. "only_output_key": false,
  1967. "sync_intersect_ids": true
  1968. }
  1969. },
  1970. "role":
  1971. {
  1972. "guest":
  1973. {
  1974. "0":
  1975. {
  1976. "dataio_0":
  1977. {
  1978. "label_name": "y",
  1979. "label_type": "int",
  1980. "output_format": "dense",
  1981. "with_label": true
  1982. },
  1983. "reader_0":
  1984. {
  1985. "table":
  1986. {
  1987. "name": "breast_hetero_guest",
  1988. "namespace": "experiment"
  1989. }
  1990. }
  1991. }
  1992. },
  1993. "host":
  1994. {
  1995. "0":
  1996. {
  1997. "dataio_0":
  1998. {
  1999. "output_format": "dense",
  2000. "with_label": false
  2001. },
  2002. "evaluation_0":
  2003. {
  2004. "need_run": false
  2005. },
  2006. "reader_0":
  2007. {
  2008. "table":
  2009. {
  2010. "name": "breast_hetero_host",
  2011. "namespace": "experiment"
  2012. }
  2013. }
  2014. }
  2015. }
  2016. }
  2017. },
  2018. "components":
  2019. [],
  2020. "job_parameters":
  2021. {
  2022. "common":
  2023. {
  2024. "adaptation_parameters":
  2025. {
  2026. "if_initiator_baseline": true,
  2027. "request_task_cores": 4,
  2028. "task_cores_per_node": 4,
  2029. "task_memory_per_node": 0,
  2030. "task_nodes": 1
  2031. },
  2032. "auto_retries": 2,
  2033. "auto_retry_delay": 1,
  2034. "computing_engine": "EGGROLL",
  2035. "computing_partitions": 4,
  2036. "eggroll_run":
  2037. {},
  2038. "engines_address":
  2039. {},
  2040. "federated_mode": "MULTIPLE",
  2041. "federated_status_collect_type": "PUSH",
  2042. "inheritance_info":
  2043. {},
  2044. "job_type": "train",
  2045. "model_id": "arbiter-10001#guest-20001#host-10001#model",
  2046. "model_version": "202204251958539401540",
  2047. "pulsar_run":
  2048. {},
  2049. "rabbitmq_run":
  2050. {},
  2051. "spark_run":
  2052. {},
  2053. "task_parallelism": 1
  2054. }
  2055. },
  2056. "src_party_id": "20001",
  2057. "src_role": "guest"
  2058. }
  2059. '404':
  2060. description: failed
  2061. content:
  2062. application/json:
  2063. schema:
  2064. type: object
  2065. properties:
  2066. retcode:
  2067. type: integer
  2068. example: 101
  2069. retmsg:
  2070. type: string
  2071. example: no find job
  2072. '/job/config':
  2073. post:
  2074. summary: job config
  2075. tags:
  2076. - job
  2077. requestBody:
  2078. required: true
  2079. content:
  2080. application/json:
  2081. schema:
  2082. type: object
  2083. required:
  2084. - job_id
  2085. properties:
  2086. job_id:
  2087. type: string
  2088. example: "2022xxx"
  2089. role:
  2090. type: string
  2091. example: guest
  2092. party_id:
  2093. type: integer
  2094. example: 10000
  2095. responses:
  2096. '200':
  2097. description: success
  2098. content:
  2099. application/json:
  2100. schema:
  2101. type: object
  2102. properties:
  2103. retcode:
  2104. type: integer
  2105. example: 0
  2106. retmsg:
  2107. type: string
  2108. example: success
  2109. data:
  2110. type: object
  2111. example:
  2112. {
  2113. "dsl":
  2114. {},
  2115. "job_id": "2022xxx",
  2116. "model_info":
  2117. {},
  2118. "runtime_conf":
  2119. {},
  2120. "train_runtime_conf":
  2121. {}
  2122. }
  2123. '404':
  2124. description: failed
  2125. content:
  2126. application/json:
  2127. schema:
  2128. type: object
  2129. properties:
  2130. retcode:
  2131. type: integer
  2132. example: 101
  2133. retmsg:
  2134. type: string
  2135. example: no find job
  2136. '/job/log/download':
  2137. post:
  2138. summary: download job log (tar.gz)
  2139. tags:
  2140. - job
  2141. requestBody:
  2142. required: true
  2143. content:
  2144. application/json:
  2145. schema:
  2146. type: object
  2147. required:
  2148. - job_id
  2149. properties:
  2150. job_id:
  2151. type: string
  2152. responses:
  2153. '200':
  2154. description: get job log success
  2155. content:
  2156. application/octet-stream:
  2157. schema:
  2158. type: string
  2159. description: file xxx_log.tar.gz
  2160. '404':
  2161. description: get job list failed
  2162. content:
  2163. application/json:
  2164. schema:
  2165. type: object
  2166. properties:
  2167. retcode:
  2168. type: integer
  2169. example: 404
  2170. retmsg:
  2171. type: string
  2172. example: Log file path xxx not found. Please check if the job id is valid.
  2173. '/job/log/path':
  2174. post:
  2175. summary: job log path
  2176. tags:
  2177. - job
  2178. requestBody:
  2179. required: true
  2180. content:
  2181. application/json:
  2182. schema:
  2183. type: object
  2184. required:
  2185. - job_id
  2186. properties:
  2187. job_id:
  2188. type: string
  2189. responses:
  2190. '200':
  2191. description: success
  2192. content:
  2193. application/json:
  2194. schema:
  2195. type: object
  2196. properties:
  2197. retcode:
  2198. type: integer
  2199. example: 0
  2200. retmsg:
  2201. type: string
  2202. example: success
  2203. data:
  2204. type: object
  2205. example:
  2206. {
  2207. "logs_directory": "/data/projects/fate/fateflow/logs/xxx"
  2208. }
  2209. '404':
  2210. description: failed
  2211. content:
  2212. application/json:
  2213. schema:
  2214. type: object
  2215. properties:
  2216. retcode:
  2217. type: integer
  2218. example: 101
  2219. retmsg:
  2220. type: string
  2221. example: no find job
  2222. '/job/task/query':
  2223. post:
  2224. summary: query task
  2225. tags:
  2226. - job
  2227. requestBody:
  2228. required: true
  2229. content:
  2230. application/json:
  2231. schema:
  2232. type: object
  2233. required:
  2234. - job_id
  2235. properties:
  2236. job_id:
  2237. type: string
  2238. role:
  2239. type: string
  2240. example: guest
  2241. party_id:
  2242. type: integer
  2243. example: 10000
  2244. component_name:
  2245. type: string
  2246. example: reader_0
  2247. responses:
  2248. '200':
  2249. description: success
  2250. content:
  2251. application/json:
  2252. schema:
  2253. type: object
  2254. properties:
  2255. retcode:
  2256. type: integer
  2257. example: 0
  2258. retmsg:
  2259. type: string
  2260. example: success
  2261. data:
  2262. type: array
  2263. description: tasks list
  2264. items:
  2265. type: object
  2266. '404':
  2267. description: failed
  2268. content:
  2269. application/json:
  2270. schema:
  2271. type: object
  2272. properties:
  2273. retcode:
  2274. type: integer
  2275. example: 101
  2276. retmsg:
  2277. type: string
  2278. example: no find task
  2279. '/job/clean':
  2280. post:
  2281. summary: clean job
  2282. tags:
  2283. - job
  2284. requestBody:
  2285. required: true
  2286. content:
  2287. application/json:
  2288. schema:
  2289. required:
  2290. - job_id
  2291. type: object
  2292. properties:
  2293. job_id:
  2294. type: string
  2295. role:
  2296. type: string
  2297. example: guest
  2298. party_id:
  2299. type: integer
  2300. example: 10000
  2301. component_name:
  2302. type: string
  2303. example: reader_0
  2304. responses:
  2305. '200':
  2306. description: success
  2307. content:
  2308. application/json:
  2309. schema:
  2310. type: object
  2311. properties:
  2312. retcode:
  2313. type: integer
  2314. example: 0
  2315. retmsg:
  2316. type: string
  2317. example: success
  2318. '404':
  2319. description: failed
  2320. content:
  2321. application/json:
  2322. schema:
  2323. type: object
  2324. properties:
  2325. retcode:
  2326. type: integer
  2327. example: 101
  2328. retmsg:
  2329. type: string
  2330. example: no find task
  2331. '/job/clean/queue':
  2332. post:
  2333. summary: cancel waiting job
  2334. tags:
  2335. - job
  2336. responses:
  2337. '200':
  2338. description: success
  2339. content:
  2340. application/json:
  2341. schema:
  2342. type: object
  2343. properties:
  2344. retcode:
  2345. type: integer
  2346. example: 0
  2347. retmsg:
  2348. type: string
  2349. example: success
  2350. data:
  2351. type: object
  2352. example:
  2353. {
  2354. "202204261616186991350": 0,
  2355. "202204261616198643190": 0,
  2356. "202204261616210073410": 0
  2357. }
  2358. '404':
  2359. description: failed
  2360. content:
  2361. application/json:
  2362. schema:
  2363. type: object
  2364. properties:
  2365. retcode:
  2366. type: integer
  2367. example: 101
  2368. retmsg:
  2369. type: string
  2370. example: server error
  2371. '/tracking/job/data_view':
  2372. post:
  2373. summary: data view
  2374. tags:
  2375. - tracking
  2376. requestBody:
  2377. required: true
  2378. content:
  2379. application/json:
  2380. schema:
  2381. required:
  2382. - job_id
  2383. - role
  2384. - party_id
  2385. type: object
  2386. properties:
  2387. job_id:
  2388. type: string
  2389. role:
  2390. type: string
  2391. example: guest
  2392. party_id:
  2393. type: integer
  2394. example: 10000
  2395. responses:
  2396. '200':
  2397. description: success
  2398. content:
  2399. application/json:
  2400. schema:
  2401. type: object
  2402. properties:
  2403. retcode:
  2404. type: integer
  2405. example: 0
  2406. retmsg:
  2407. type: string
  2408. example: success
  2409. data:
  2410. type: object
  2411. example:
  2412. {
  2413. "dataset":
  2414. {
  2415. "guest":
  2416. {
  2417. "9999":
  2418. {
  2419. "Reader_0": "xxx.xxx"
  2420. }
  2421. },
  2422. "host":
  2423. {
  2424. "10000":
  2425. {
  2426. "Reader_0": "xxx.xxx"
  2427. }
  2428. }
  2429. },
  2430. "model_summary":
  2431. {},
  2432. "partner":
  2433. {
  2434. "host":
  2435. [
  2436. 10000
  2437. ]
  2438. },
  2439. "roles":
  2440. {
  2441. "guest":
  2442. [
  2443. 9999
  2444. ],
  2445. "host":
  2446. [
  2447. 10000
  2448. ]
  2449. }
  2450. }
  2451. '404':
  2452. description: failed
  2453. content:
  2454. application/json:
  2455. schema:
  2456. type: object
  2457. properties:
  2458. retcode:
  2459. type: integer
  2460. example: 101
  2461. retmsg:
  2462. type: string
  2463. example: error
  2464. '/tracking/component/metric/all':
  2465. post:
  2466. summary: get component all metric
  2467. tags:
  2468. - tracking
  2469. requestBody:
  2470. required: true
  2471. content:
  2472. application/json:
  2473. schema:
  2474. required:
  2475. - job_id
  2476. - role
  2477. - party_id
  2478. - component_name
  2479. type: object
  2480. properties:
  2481. job_id:
  2482. type: string
  2483. role:
  2484. type: string
  2485. example: guest
  2486. party_id:
  2487. type: integer
  2488. example: 10000
  2489. component_name:
  2490. type: string
  2491. example: HeteroSecureBoost_0
  2492. responses:
  2493. '200':
  2494. description: success
  2495. content:
  2496. application/json:
  2497. schema:
  2498. type: object
  2499. properties:
  2500. retcode:
  2501. type: integer
  2502. example: 0
  2503. retmsg:
  2504. type: string
  2505. example: success
  2506. data:
  2507. type: object
  2508. example:
  2509. {
  2510. "train":
  2511. {
  2512. "loss":
  2513. {
  2514. "data":
  2515. [
  2516. [
  2517. 0,
  2518. 0.6076415445876732
  2519. ],
  2520. [
  2521. 1,
  2522. 0.5374539452565573
  2523. ],
  2524. [
  2525. 2,
  2526. 0.4778598986135903
  2527. ],
  2528. [
  2529. 3,
  2530. 0.42733599866560723
  2531. ],
  2532. [
  2533. 4,
  2534. 0.38433409799127843
  2535. ]
  2536. ],
  2537. "meta":
  2538. {
  2539. "Best": 0.38433409799127843,
  2540. "curve_name": "loss",
  2541. "metric_type": "LOSS",
  2542. "name": "train",
  2543. "unit_name": "iters"
  2544. }
  2545. }
  2546. }
  2547. }
  2548. '404':
  2549. description: failed
  2550. content:
  2551. application/json:
  2552. schema:
  2553. type: object
  2554. properties:
  2555. retcode:
  2556. type: integer
  2557. example: 101
  2558. retmsg:
  2559. type: string
  2560. example: error
  2561. '/tracking/component/metrics':
  2562. post:
  2563. summary: get component metric name and namespace
  2564. tags:
  2565. - tracking
  2566. requestBody:
  2567. required: true
  2568. content:
  2569. application/json:
  2570. schema:
  2571. required:
  2572. - job_id
  2573. - role
  2574. - party_id
  2575. - component_name
  2576. type: object
  2577. properties:
  2578. job_id:
  2579. type: string
  2580. role:
  2581. type: string
  2582. example: guest
  2583. party_id:
  2584. type: integer
  2585. example: 10000
  2586. component_name:
  2587. type: string
  2588. example: Intersection_0
  2589. responses:
  2590. '200':
  2591. description: success
  2592. content:
  2593. application/json:
  2594. schema:
  2595. type: object
  2596. properties:
  2597. retcode:
  2598. type: integer
  2599. example: 0
  2600. retmsg:
  2601. type: string
  2602. example: success
  2603. data:
  2604. type: object
  2605. example:
  2606. {
  2607. "train":
  2608. [
  2609. "intersection"
  2610. ]
  2611. }
  2612. '404':
  2613. description: failed
  2614. content:
  2615. application/json:
  2616. schema:
  2617. type: object
  2618. properties:
  2619. retcode:
  2620. type: integer
  2621. example: 101
  2622. retmsg:
  2623. type: string
  2624. example: error
  2625. '/tracking/component/metric_data':
  2626. post:
  2627. summary: get component metric data
  2628. tags:
  2629. - tracking
  2630. requestBody:
  2631. required: true
  2632. content:
  2633. application/json:
  2634. schema:
  2635. required:
  2636. - job_id
  2637. - role
  2638. - party_id
  2639. - component_name
  2640. - metric_name
  2641. - metric_namespace
  2642. type: object
  2643. properties:
  2644. job_id:
  2645. type: string
  2646. role:
  2647. type: string
  2648. example: guest
  2649. party_id:
  2650. type: integer
  2651. example: 10000
  2652. component_name:
  2653. type: string
  2654. example: Intersection_0
  2655. metric_name:
  2656. type: string
  2657. example: intersection
  2658. metric_namespace:
  2659. type: string
  2660. example: train
  2661. responses:
  2662. '200':
  2663. description: success
  2664. content:
  2665. application/json:
  2666. schema:
  2667. type: object
  2668. properties:
  2669. retcode:
  2670. type: integer
  2671. example: 0
  2672. retmsg:
  2673. type: string
  2674. example: success
  2675. data:
  2676. type: object
  2677. example:
  2678. {
  2679. "data":
  2680. [
  2681. [
  2682. "intersect_count",
  2683. 569
  2684. ],
  2685. [
  2686. "intersect_rate",
  2687. 1.0
  2688. ],
  2689. [
  2690. "unmatched_count",
  2691. 0
  2692. ],
  2693. [
  2694. "unmatched_rate",
  2695. 0.0
  2696. ]
  2697. ],
  2698. "meta":
  2699. {
  2700. "intersect_method": "raw",
  2701. "join_method": "inner_join",
  2702. "metric_type": "INTERSECTION",
  2703. "name": "intersection"
  2704. }
  2705. }
  2706. '404':
  2707. description: failed
  2708. content:
  2709. application/json:
  2710. schema:
  2711. type: object
  2712. properties:
  2713. retcode:
  2714. type: integer
  2715. example: 101
  2716. retmsg:
  2717. type: string
  2718. example: error
  2719. '/tracking/component/parameters':
  2720. post:
  2721. summary: get component parameters
  2722. tags:
  2723. - tracking
  2724. requestBody:
  2725. required: true
  2726. content:
  2727. application/json:
  2728. schema:
  2729. required:
  2730. - job_id
  2731. - role
  2732. - party_id
  2733. - component_name
  2734. type: object
  2735. properties:
  2736. job_id:
  2737. type: string
  2738. role:
  2739. type: string
  2740. example: guest
  2741. party_id:
  2742. type: integer
  2743. example: 10000
  2744. component_name:
  2745. type: string
  2746. example: Intersection_0
  2747. responses:
  2748. '200':
  2749. description: success
  2750. content:
  2751. application/json:
  2752. schema:
  2753. type: object
  2754. properties:
  2755. retcode:
  2756. type: integer
  2757. example: 0
  2758. retmsg:
  2759. type: string
  2760. example: success
  2761. data:
  2762. type: object
  2763. example:
  2764. {
  2765. "ComponentParam":
  2766. {
  2767. "_feeded_deprecated_params":
  2768. [
  2769. "repeated_id_owner",
  2770. "intersect_cache_param",
  2771. "join_role",
  2772. "encode_params",
  2773. "allow_info_share",
  2774. "repeated_id_process",
  2775. "random_bit",
  2776. "with_encode",
  2777. "info_owner"
  2778. ],
  2779. "_is_raw_conf": false,
  2780. "_name": "Intersection#Intersection_0",
  2781. "_user_feeded_params":
  2782. [
  2783. "repeated_id_owner",
  2784. "encode_params.salt",
  2785. "intersect_method",
  2786. "intersect_cache_param.encrypt_type",
  2787. "encode_params.encode_method",
  2788. "encode_params",
  2789. "intersect_cache_param",
  2790. "intersect_cache_param.id_type",
  2791. "intersect_cache_param.use_cache",
  2792. "join_role",
  2793. "allow_info_share",
  2794. "repeated_id_process",
  2795. "sync_intersect_ids",
  2796. "random_bit",
  2797. "only_output_key",
  2798. "with_encode",
  2799. "encode_params.base64",
  2800. "info_owner"
  2801. ],
  2802. "allow_info_share": false,
  2803. "cardinality_only": false,
  2804. "dh_params":
  2805. {
  2806. "hash_method": "sha256",
  2807. "key_length": 1024,
  2808. "salt": ""
  2809. },
  2810. "encode_params":
  2811. {
  2812. "base64": false,
  2813. "encode_method": "none",
  2814. "salt": ""
  2815. },
  2816. "info_owner": "guest",
  2817. "intersect_cache_param":
  2818. {
  2819. "encrypt_type": "sha256",
  2820. "id_type": "phone",
  2821. "use_cache": false
  2822. },
  2823. "intersect_method": "raw",
  2824. "intersect_preprocess_params":
  2825. {
  2826. "encrypt_method": "rsa",
  2827. "false_positive_rate": 0.001,
  2828. "filter_owner": "guest",
  2829. "hash_method": "sha256",
  2830. "preprocess_method": "sha256",
  2831. "preprocess_salt": "",
  2832. "random_state": null
  2833. },
  2834. "join_method": "inner_join",
  2835. "join_role": "guest",
  2836. "new_sample_id": false,
  2837. "only_output_key": false,
  2838. "random_bit": 128,
  2839. "raw_params":
  2840. {
  2841. "base64": false,
  2842. "hash_method": "none",
  2843. "join_role": "guest",
  2844. "salt": "",
  2845. "use_hash": false
  2846. },
  2847. "repeated_id_owner": "guest",
  2848. "repeated_id_process": false,
  2849. "rsa_params":
  2850. {
  2851. "final_hash_method": "sha256",
  2852. "hash_method": "sha256",
  2853. "key_length": 1024,
  2854. "random_base_fraction": null,
  2855. "random_bit": 128,
  2856. "salt": "",
  2857. "split_calculation": false
  2858. },
  2859. "run_cache": false,
  2860. "run_preprocess": false,
  2861. "sample_id_generator": "guest",
  2862. "sync_cardinality": false,
  2863. "sync_intersect_ids": true,
  2864. "with_encode": false,
  2865. "with_sample_id": false
  2866. },
  2867. "module": "Intersection"
  2868. }
  2869. '404':
  2870. description: failed
  2871. content:
  2872. application/json:
  2873. schema:
  2874. type: object
  2875. properties:
  2876. retcode:
  2877. type: integer
  2878. example: 101
  2879. retmsg:
  2880. type: string
  2881. example: error
  2882. '/tracking/component/summary/download':
  2883. post:
  2884. summary: get component summary
  2885. tags:
  2886. - tracking
  2887. requestBody:
  2888. required: true
  2889. content:
  2890. application/json:
  2891. schema:
  2892. required:
  2893. - job_id
  2894. - role
  2895. - party_id
  2896. - component_name
  2897. type: object
  2898. properties:
  2899. job_id:
  2900. type: string
  2901. role:
  2902. type: string
  2903. example: guest
  2904. party_id:
  2905. type: integer
  2906. example: 10000
  2907. component_name:
  2908. type: string
  2909. example: Intersection_0
  2910. responses:
  2911. '200':
  2912. description: success
  2913. content:
  2914. application/json:
  2915. schema:
  2916. type: object
  2917. properties:
  2918. retcode:
  2919. type: integer
  2920. example: 0
  2921. retmsg:
  2922. type: string
  2923. example: success
  2924. data:
  2925. type: object
  2926. example:
  2927. {
  2928. "cardinality_only": false,
  2929. "intersect_num": 569,
  2930. "intersect_rate": 1.0
  2931. }
  2932. '404':
  2933. description: failed
  2934. content:
  2935. application/json:
  2936. schema:
  2937. type: object
  2938. properties:
  2939. retcode:
  2940. type: integer
  2941. example: 101
  2942. retmsg:
  2943. type: string
  2944. example: error
  2945. '/tracking/component/output/model':
  2946. post:
  2947. summary: get component output model
  2948. tags:
  2949. - tracking
  2950. requestBody:
  2951. required: true
  2952. content:
  2953. application/json:
  2954. schema:
  2955. required:
  2956. - job_id
  2957. - role
  2958. - party_id
  2959. - component_name
  2960. type: object
  2961. properties:
  2962. job_id:
  2963. type: string
  2964. role:
  2965. type: string
  2966. example: guest
  2967. party_id:
  2968. type: integer
  2969. example: 10000
  2970. component_name:
  2971. type: string
  2972. example: Intersection_0
  2973. responses:
  2974. '200':
  2975. description: success
  2976. content:
  2977. application/json:
  2978. schema:
  2979. type: object
  2980. properties:
  2981. retcode:
  2982. type: integer
  2983. example: 0
  2984. retmsg:
  2985. type: string
  2986. example: success
  2987. data:
  2988. type: object
  2989. '404':
  2990. description: failed
  2991. content:
  2992. application/json:
  2993. schema:
  2994. type: object
  2995. properties:
  2996. retcode:
  2997. type: integer
  2998. example: 101
  2999. retmsg:
  3000. type: string
  3001. example: error
  3002. '/tracking/component/output/data':
  3003. post:
  3004. summary: get component output data
  3005. tags:
  3006. - tracking
  3007. requestBody:
  3008. required: true
  3009. content:
  3010. application/json:
  3011. schema:
  3012. required:
  3013. - job_id
  3014. - role
  3015. - party_id
  3016. - component_name
  3017. type: object
  3018. properties:
  3019. job_id:
  3020. type: string
  3021. role:
  3022. type: string
  3023. example: guest
  3024. party_id:
  3025. type: integer
  3026. example: 10000
  3027. component_name:
  3028. type: string
  3029. example: Intersection_0
  3030. responses:
  3031. '200':
  3032. description: success
  3033. content:
  3034. application/json:
  3035. schema:
  3036. type: object
  3037. properties:
  3038. retcode:
  3039. type: integer
  3040. example: 0
  3041. retmsg:
  3042. type: string
  3043. example: success
  3044. data:
  3045. type: object
  3046. example:
  3047. [
  3048. [
  3049. [
  3050. "58",
  3051. 1,
  3052. -0.422281,
  3053. -0.558102,
  3054. -0.506991,
  3055. -0.450875,
  3056. -1.326851,
  3057. -1.223647,
  3058. -1.296979,
  3059. -1.575895,
  3060. -0.747019,
  3061. -1.166825
  3062. ],
  3063. [
  3064. "66",
  3065. 1,
  3066. -1.213336,
  3067. 0.957974,
  3068. -1.19832,
  3069. -0.966647,
  3070. 0.983301,
  3071. -0.558944,
  3072. -0.854288,
  3073. -0.752745,
  3074. -0.036814,
  3075. 0.452425
  3076. ]
  3077. ]
  3078. ]
  3079. meta:
  3080. type: object
  3081. example:
  3082. {
  3083. "header":
  3084. [
  3085. [
  3086. "id",
  3087. "y",
  3088. "x0",
  3089. "x1",
  3090. "x2",
  3091. "x3",
  3092. "x4",
  3093. "x5",
  3094. "x6",
  3095. "x7",
  3096. "x8",
  3097. "x9"
  3098. ]
  3099. ],
  3100. "names":
  3101. [
  3102. "data_0"
  3103. ],
  3104. "total":
  3105. [
  3106. 569
  3107. ]
  3108. }
  3109. '404':
  3110. description: failed
  3111. content:
  3112. application/json:
  3113. schema:
  3114. type: object
  3115. properties:
  3116. retcode:
  3117. type: integer
  3118. example: 101
  3119. retmsg:
  3120. type: string
  3121. example: error
  3122. '/tracking/component/output/data/download':
  3123. post:
  3124. summary: download component output data (tar.gz)
  3125. tags:
  3126. - tracking
  3127. requestBody:
  3128. required: true
  3129. content:
  3130. application/json:
  3131. schema:
  3132. required:
  3133. - job_id
  3134. - role
  3135. - party_id
  3136. - component_name
  3137. type: object
  3138. properties:
  3139. job_id:
  3140. type: string
  3141. role:
  3142. type: string
  3143. example: guest
  3144. party_id:
  3145. type: integer
  3146. example: 10000
  3147. component_name:
  3148. type: string
  3149. example: Intersection_0
  3150. responses:
  3151. '200':
  3152. description: success
  3153. content:
  3154. application/octet-stream:
  3155. schema:
  3156. type: string
  3157. example: ""
  3158. description: file data.tar.gz
  3159. '404':
  3160. description: failed
  3161. content:
  3162. application/json:
  3163. schema:
  3164. type: object
  3165. properties:
  3166. retcode:
  3167. type: integer
  3168. example: 101
  3169. retmsg:
  3170. type: string
  3171. example: error
  3172. '/tracking/component/output/data/table':
  3173. post:
  3174. summary: get component output data table info
  3175. tags:
  3176. - tracking
  3177. requestBody:
  3178. required: true
  3179. content:
  3180. application/json:
  3181. schema:
  3182. required:
  3183. - job_id
  3184. - role
  3185. - party_id
  3186. - component_name
  3187. type: object
  3188. properties:
  3189. job_id:
  3190. type: string
  3191. role:
  3192. type: string
  3193. example: guest
  3194. party_id:
  3195. type: integer
  3196. example: 10000
  3197. component_name:
  3198. type: string
  3199. example: Intersection_0
  3200. responses:
  3201. '200':
  3202. description: success
  3203. content:
  3204. application/json:
  3205. schema:
  3206. type: object
  3207. properties:
  3208. retcode:
  3209. type: integer
  3210. example: 0
  3211. retmsg:
  3212. type: string
  3213. example: success
  3214. data:
  3215. type: array
  3216. items:
  3217. type: object
  3218. example:
  3219. [
  3220. {
  3221. "data_name": "data_0",
  3222. "table_name": "ab035e12b09711ec943e525400c367ed",
  3223. "table_namespace": "output_data_202203311009181495690_Intersection_0_0"
  3224. }
  3225. ]
  3226. '404':
  3227. description: failed
  3228. content:
  3229. application/json:
  3230. schema:
  3231. type: object
  3232. properties:
  3233. retcode:
  3234. type: integer
  3235. example: 101
  3236. retmsg:
  3237. type: string
  3238. example: No found table, please check if the parameters are correct
  3239. '/tracking/component/list':
  3240. post:
  3241. summary: get component list
  3242. tags:
  3243. - tracking
  3244. requestBody:
  3245. required: true
  3246. content:
  3247. application/json:
  3248. schema:
  3249. required:
  3250. - job_id
  3251. type: object
  3252. properties:
  3253. job_id:
  3254. type: string
  3255. responses:
  3256. '200':
  3257. description: success
  3258. content:
  3259. application/json:
  3260. schema:
  3261. type: object
  3262. properties:
  3263. retcode:
  3264. type: integer
  3265. example: 0
  3266. retmsg:
  3267. type: string
  3268. example: success
  3269. data:
  3270. type: object
  3271. example:
  3272. {
  3273. "components":
  3274. [
  3275. "HeteroFeatureSelection_0",
  3276. "DataIO_0",
  3277. "Reader_0",
  3278. "HeteroSecureBoost_0",
  3279. "HeteroFeatureBinning_0",
  3280. "Intersection_0",
  3281. "Evaluation_0"
  3282. ]
  3283. }
  3284. '404':
  3285. description: failed
  3286. content:
  3287. application/json:
  3288. schema:
  3289. type: object
  3290. properties:
  3291. retcode:
  3292. type: integer
  3293. example: 101
  3294. retmsg:
  3295. type: string
  3296. example: error
  3297. '/resource/query':
  3298. post:
  3299. summary: query conputing engine resource
  3300. tags:
  3301. - resource
  3302. requestBody:
  3303. required: true
  3304. content:
  3305. application/json:
  3306. schema:
  3307. required:
  3308. - engine_name
  3309. type: object
  3310. properties:
  3311. engine_name:
  3312. type: string
  3313. example: EGGROLL, SPARK
  3314. responses:
  3315. '200':
  3316. description: success
  3317. content:
  3318. application/json:
  3319. schema:
  3320. type: object
  3321. properties:
  3322. retcode:
  3323. type: integer
  3324. example: 0
  3325. retmsg:
  3326. type: string
  3327. example: success
  3328. data:
  3329. type: object
  3330. example: {"computing_engine_resource":{"f_cores":16,"f_create_date":"2022-02-10 16:14:03","f_create_time":1644480843818,"f_engine_config":{"cores_per_node":16,"nodes":1},"f_engine_entrance":"fate_on_eggroll","f_engine_name":"EGGROLL","f_engine_type":"computing","f_memory":0,"f_nodes":1,"f_remaining_cores":16,"f_remaining_memory":0,"f_update_date":"2022-04-27 15:48:33","f_update_time":1651045713996},"use_resource_job":[]}
  3331. '404':
  3332. description: failed
  3333. content:
  3334. application/json:
  3335. schema:
  3336. type: object
  3337. properties:
  3338. retcode:
  3339. type: integer
  3340. example: 101
  3341. retmsg:
  3342. type: string
  3343. example: error
  3344. '/resource/return':
  3345. post:
  3346. summary: return job resource
  3347. tags:
  3348. - resource
  3349. requestBody:
  3350. required: true
  3351. content:
  3352. application/json:
  3353. schema:
  3354. required:
  3355. - job_id
  3356. type: object
  3357. properties:
  3358. engine_name:
  3359. type: string
  3360. example: 202204261616175720130
  3361. responses:
  3362. '200':
  3363. description: success
  3364. content:
  3365. application/json:
  3366. schema:
  3367. type: object
  3368. properties:
  3369. retcode:
  3370. type: integer
  3371. example: 0
  3372. retmsg:
  3373. type: string
  3374. example: success
  3375. data:
  3376. type: object
  3377. example: [{"job_id":"202204261616175720130","party_id":"20001","resource_in_use":true,"resource_return_status":ture,"role":"guest"}]
  3378. '404':
  3379. description: failed
  3380. content:
  3381. application/json:
  3382. schema:
  3383. type: object
  3384. properties:
  3385. retcode:
  3386. type: integer
  3387. example: 101
  3388. retmsg:
  3389. type: string
  3390. example: no found job
  3391. '/permission/grant/privilege':
  3392. post:
  3393. summary: grant privilege
  3394. tags:
  3395. - permission
  3396. requestBody:
  3397. required: true
  3398. content:
  3399. application/json:
  3400. schema:
  3401. required:
  3402. - src_role
  3403. - src_party_id
  3404. type: object
  3405. properties:
  3406. src_role:
  3407. type: string
  3408. example: "guest"
  3409. src_party_id:
  3410. type: string
  3411. example: 9999
  3412. privilege_role:
  3413. type: string
  3414. description: multiple separated by ",". like "guest, host, arbiter" or "all"
  3415. example: all
  3416. privilege_component:
  3417. type: string
  3418. description: multiple separated by ",". like "create, run, stop" or "all"
  3419. example: all
  3420. privilege_command:
  3421. type: string
  3422. description: multiple separated bu ",". like "reader, dataio, ..." or "all"
  3423. example: all
  3424. responses:
  3425. '200':
  3426. description: success
  3427. content:
  3428. application/json:
  3429. schema:
  3430. type: object
  3431. properties:
  3432. retcode:
  3433. type: integer
  3434. example: 0
  3435. retmsg:
  3436. type: string
  3437. example: success
  3438. '404':
  3439. description: failed
  3440. content:
  3441. application/json:
  3442. schema:
  3443. type: object
  3444. properties:
  3445. retcode:
  3446. type: integer
  3447. example: 101
  3448. retmsg:
  3449. type: string
  3450. example: error
  3451. '/permission/delete/privilege':
  3452. post:
  3453. summary: delete privilege
  3454. tags:
  3455. - permission
  3456. requestBody:
  3457. required: true
  3458. content:
  3459. application/json:
  3460. schema:
  3461. required:
  3462. - src_role
  3463. - src_party_id
  3464. type: object
  3465. properties:
  3466. src_role:
  3467. type: string
  3468. example: "guest"
  3469. src_party_id:
  3470. type: string
  3471. example: 9999
  3472. privilege_role:
  3473. type: string
  3474. description: multiple separated by ",". like "guest, host, arbiter" or "all"
  3475. example: all
  3476. privilege_component:
  3477. type: string
  3478. description: multiple separated by ",". like "create, run, stop" or "all"
  3479. example: all
  3480. privilege_command:
  3481. type: string
  3482. description: multiple separated bu ",". like "reader, dataio, ..." or "all"
  3483. example: all
  3484. responses:
  3485. '200':
  3486. description: success
  3487. content:
  3488. application/json:
  3489. schema:
  3490. type: object
  3491. properties:
  3492. retcode:
  3493. type: integer
  3494. example: 0
  3495. retmsg:
  3496. type: string
  3497. example: success
  3498. '404':
  3499. description: failed
  3500. content:
  3501. application/json:
  3502. schema:
  3503. type: object
  3504. properties:
  3505. retcode:
  3506. type: integer
  3507. example: 101
  3508. retmsg:
  3509. type: string
  3510. example: error
  3511. '/permission/query/privilege':
  3512. post:
  3513. summary: query privilege
  3514. tags:
  3515. - permission
  3516. requestBody:
  3517. required: true
  3518. content:
  3519. application/json:
  3520. schema:
  3521. required:
  3522. - src_role
  3523. - src_party_id
  3524. type: object
  3525. properties:
  3526. src_role:
  3527. type: string
  3528. example: "guest"
  3529. src_party_id:
  3530. type: string
  3531. example: 9999
  3532. responses:
  3533. '200':
  3534. description: success
  3535. content:
  3536. application/json:
  3537. schema:
  3538. type: object
  3539. properties:
  3540. retcode:
  3541. type: integer
  3542. example: 0
  3543. retmsg:
  3544. type: string
  3545. example: success
  3546. data:
  3547. type: object
  3548. example: {"privilege_command":["stop","run","create"],"privilege_component":["reader", "dataio","heterolinr", "heterolr", "localbaseline","columnexpand","heteropearson","featurescale","datastatistics","feldmanverifiablesum"],"privilege_role":["host","guest","arbiter"],"role":"guest","src_party_id":"9999"}
  3549. '404':
  3550. description: failed
  3551. content:
  3552. application/json:
  3553. schema:
  3554. type: object
  3555. properties:
  3556. retcode:
  3557. type: integer
  3558. example: 101
  3559. retmsg:
  3560. type: string
  3561. example: error
  3562. '/info/fateboard':
  3563. post:
  3564. summary: get fateboard host and port
  3565. tags:
  3566. - information
  3567. responses:
  3568. '200':
  3569. description: fateboard host and port
  3570. content:
  3571. application/json:
  3572. schema:
  3573. type: object
  3574. properties:
  3575. retcode:
  3576. type: integer
  3577. example: 0
  3578. retmsg:
  3579. type: string
  3580. example: success
  3581. data:
  3582. type: object
  3583. properties:
  3584. host:
  3585. type: string
  3586. example: 127.0.0.1
  3587. port:
  3588. type: integer
  3589. example: 8080
  3590. '404':
  3591. description: fateboard is not configured
  3592. content:
  3593. application/json:
  3594. schema:
  3595. type: object
  3596. properties:
  3597. retcode:
  3598. type: integer
  3599. example: 404
  3600. retmsg:
  3601. type: string
  3602. example: fateboard is not configured
  3603. '/info/mysql':
  3604. post:
  3605. summary: test mysql connection
  3606. tags:
  3607. - information
  3608. responses:
  3609. '200':
  3610. description: connect to mysql successfully
  3611. content:
  3612. application/json:
  3613. schema:
  3614. type: object
  3615. properties:
  3616. retcode:
  3617. type: integer
  3618. example: 0
  3619. retmsg:
  3620. type: string
  3621. example: success
  3622. '404':
  3623. description: mysql only available on cluster mode
  3624. content:
  3625. application/json:
  3626. schema:
  3627. type: object
  3628. properties:
  3629. retcode:
  3630. type: integer
  3631. example: 404
  3632. retmsg:
  3633. type: string
  3634. example: mysql only available on cluster mode
  3635. '503':
  3636. description: connect to mysql failed
  3637. content:
  3638. application/json:
  3639. schema:
  3640. type: object
  3641. properties:
  3642. retcode:
  3643. type: integer
  3644. example: 503
  3645. retmsg:
  3646. type: string
  3647. description: error message
  3648. '/info/eggroll':
  3649. post:
  3650. summary: test eggroll connection
  3651. tags:
  3652. - information
  3653. responses:
  3654. '200':
  3655. description: connect to eggroll successfully
  3656. content:
  3657. application/json:
  3658. schema:
  3659. type: object
  3660. properties:
  3661. retcode:
  3662. type: integer
  3663. example: 0
  3664. retmsg:
  3665. type: string
  3666. example: success
  3667. '404':
  3668. description: eggroll only available on cluster mode
  3669. content:
  3670. application/json:
  3671. schema:
  3672. type: object
  3673. properties:
  3674. retcode:
  3675. type: integer
  3676. example: 404
  3677. retmsg:
  3678. type: string
  3679. example: eggroll only available on cluster mode
  3680. '503':
  3681. description: connect to eggroll failed
  3682. content:
  3683. application/json:
  3684. schema:
  3685. type: object
  3686. properties:
  3687. retcode:
  3688. type: integer
  3689. example: 503
  3690. retmsg:
  3691. type: string
  3692. description: error message
  3693. '/model/deploy':
  3694. post:
  3695. summary: deploy a model for predict
  3696. tags:
  3697. - model
  3698. requestBody:
  3699. required: true
  3700. content:
  3701. application/json:
  3702. schema:
  3703. type: object
  3704. required:
  3705. - model_id
  3706. - model_version
  3707. properties:
  3708. model_id:
  3709. type: string
  3710. example: 'arbiter-10000#guest-9999#host-10000#model'
  3711. model_version:
  3712. type: string
  3713. example: '202111032155391167400'
  3714. components_checkpoint:
  3715. type: object
  3716. description: specify a checkpoint model to replace the pipeline model
  3717. example:
  3718. hetero_lr_0:
  3719. step_index: 5
  3720. additionalProperties:
  3721. type: object
  3722. description: use step_index or step_name to specity a checkpoint
  3723. properties:
  3724. step_index:
  3725. type: integer
  3726. example: 5
  3727. step_name:
  3728. type: string
  3729. example: round_5
  3730. responses:
  3731. '200':
  3732. description: success
  3733. content:
  3734. application/json:
  3735. schema:
  3736. type: object
  3737. properties:
  3738. retcode:
  3739. type: integer
  3740. example: 0
  3741. retmsg:
  3742. type: string
  3743. example: success
  3744. data:
  3745. type: object
  3746. properties:
  3747. model_id:
  3748. type: string
  3749. example: 'arbiter-9999#guest-10000#host-9999#model'
  3750. model_version:
  3751. type: string
  3752. example: '202111032227378766180'
  3753. arbiter:
  3754. type: object
  3755. properties:
  3756. party_id:
  3757. type: integer
  3758. example: 9999
  3759. guest:
  3760. type: object
  3761. properties:
  3762. party_id:
  3763. type: integer
  3764. example: 10000
  3765. host:
  3766. type: object
  3767. properties:
  3768. party_id:
  3769. type: integer
  3770. example: 9999
  3771. detail:
  3772. type: object
  3773. properties:
  3774. arbiter:
  3775. type: object
  3776. properties:
  3777. party_id:
  3778. type: object
  3779. properties:
  3780. retcode:
  3781. type: integer
  3782. example: 0
  3783. retmsg:
  3784. type: string
  3785. example: deploy model of role arbiter 9999 success
  3786. guest:
  3787. type: object
  3788. properties:
  3789. party_id:
  3790. type: object
  3791. properties:
  3792. retcode:
  3793. type: integer
  3794. example: 0
  3795. retmsg:
  3796. type: string
  3797. example: deploy model of role guest 10000 success
  3798. host:
  3799. type: object
  3800. properties:
  3801. party_id:
  3802. type: object
  3803. properties:
  3804. retcode:
  3805. type: integer
  3806. example: 0
  3807. retmsg:
  3808. type: string
  3809. example: deploy model of role host 9999 success
  3810. '/model/transfer/{model_id}/{model_version}':
  3811. post:
  3812. summary: download a model by model_id and model_version
  3813. tags:
  3814. - model
  3815. parameters:
  3816. - name: model_id
  3817. in: path
  3818. required: true
  3819. description: 'model id (replace # with ~)'
  3820. schema:
  3821. type : string
  3822. example: 'host~10000~arbiter-10000~guest-9999~host-10000~model'
  3823. - name: model_version
  3824. in: path
  3825. required: true
  3826. description: model version
  3827. schema:
  3828. type : string
  3829. example: '202105060929263278441'
  3830. responses:
  3831. '200':
  3832. description: model data
  3833. content:
  3834. application/json:
  3835. schema:
  3836. type: object
  3837. properties:
  3838. retcode:
  3839. type: integer
  3840. example: 0
  3841. retmsg:
  3842. type: string
  3843. example: success
  3844. data:
  3845. type: object
  3846. description: base64 encoded model data
  3847. '404':
  3848. description: model not found
  3849. content:
  3850. application/json:
  3851. schema:
  3852. type: object
  3853. properties:
  3854. retcode:
  3855. type: integer
  3856. example: 404
  3857. retmsg:
  3858. type: string
  3859. example: model not found
  3860. '/model/load':
  3861. post:
  3862. summary: load a deployed model on Fate-Serving
  3863. tags:
  3864. - model
  3865. requestBody:
  3866. required: true
  3867. content:
  3868. application/json:
  3869. schema:
  3870. type: object
  3871. required:
  3872. - initiator
  3873. - role
  3874. - job_parameters
  3875. properties:
  3876. initiator:
  3877. type: object
  3878. properties:
  3879. party_id:
  3880. type: string
  3881. example: '10000'
  3882. role:
  3883. type: string
  3884. example: guest
  3885. role:
  3886. type: object
  3887. example:
  3888. guest:
  3889. - '10000'
  3890. host:
  3891. - '10000'
  3892. arbiter:
  3893. - '10000'
  3894. job_parameters:
  3895. type: object
  3896. properties:
  3897. model_id:
  3898. type: string
  3899. example: arbiter-10000#guest-10000#host-10000#model
  3900. model_version:
  3901. type: string
  3902. example: '2019081217340125761469'
  3903. responses:
  3904. '200':
  3905. description: loading success
  3906. content:
  3907. application/json:
  3908. schema:
  3909. type: object
  3910. properties:
  3911. retcode:
  3912. type: integer
  3913. example: 0
  3914. retmsg:
  3915. type: string
  3916. example: success
  3917. jobId:
  3918. type: string
  3919. example: "2019081217340125761469"
  3920. data:
  3921. type: object
  3922. example:
  3923. detail:
  3924. guest:
  3925. '9999':
  3926. retcode: 0
  3927. retmsg: success
  3928. host:
  3929. '10000':
  3930. retcode: 0
  3931. retmsg: success
  3932. guest:
  3933. '9999': 0
  3934. host:
  3935. '10000': 0
  3936. '/model/bind':
  3937. post:
  3938. summary: bind a deployed model to Fate-Serving
  3939. tags:
  3940. - model
  3941. requestBody:
  3942. required: true
  3943. content:
  3944. application/json:
  3945. schema:
  3946. type: object
  3947. required:
  3948. - service_id
  3949. - initiator
  3950. - role
  3951. - job_parameters
  3952. properties:
  3953. service_id:
  3954. type: string
  3955. example: "123"
  3956. initiator:
  3957. type: object
  3958. properties:
  3959. party_id:
  3960. type: string
  3961. example: "10000"
  3962. role:
  3963. type: string
  3964. example: guest
  3965. job_parameters:
  3966. type: object
  3967. properties:
  3968. model_id:
  3969. type: string
  3970. example: arbiter-10000#guest-10000#host-10000#model
  3971. model_version:
  3972. type: string
  3973. example: "2019081217340125761469"
  3974. responses:
  3975. '200':
  3976. description: binding success
  3977. content:
  3978. application/json:
  3979. schema:
  3980. type: object
  3981. properties:
  3982. retcode:
  3983. type: integer
  3984. example: 0
  3985. retmsg:
  3986. type: string
  3987. example: service id is 123
  3988. '/checkpoint/list':
  3989. post:
  3990. summary: list checkpoints
  3991. tags:
  3992. - checkpoint
  3993. requestBody:
  3994. required: true
  3995. content:
  3996. application/json:
  3997. schema:
  3998. type: object
  3999. required:
  4000. - model_id
  4001. - model_version
  4002. - role
  4003. - party_id
  4004. - component_name
  4005. properties:
  4006. model_id:
  4007. type: string
  4008. example: 'arbiter-10000#guest-9999#host-10000#model'
  4009. model_version:
  4010. type: string
  4011. example: '202111032155391167400'
  4012. role:
  4013. type: string
  4014. example: guest
  4015. party_id:
  4016. type: integer
  4017. example: 9999
  4018. component_name:
  4019. type: string
  4020. example: hetero_lr_0
  4021. responses:
  4022. '200':
  4023. description: checkpoints list
  4024. content:
  4025. application/json:
  4026. schema:
  4027. type: object
  4028. properties:
  4029. retcode:
  4030. type: integer
  4031. example: 0
  4032. retmsg:
  4033. type: string
  4034. example: success
  4035. data:
  4036. type: array
  4037. items:
  4038. type: object
  4039. properties:
  4040. create_time:
  4041. type: string
  4042. example: '2021-11-07T02:34:54.683015'
  4043. step_index:
  4044. type: integer
  4045. example: 0
  4046. step_name:
  4047. type: string
  4048. example: step_name
  4049. models:
  4050. type: object
  4051. example:
  4052. HeteroLogisticRegressionMeta:
  4053. buffer_name: LRModelMeta
  4054. sha1: 6871508f6e6228341b18031b3623f99a53a87147
  4055. HeteroLogisticRegressionParam:
  4056. buffer_name: LRModelParam
  4057. sha1: e3cb636fc93675684bff27117943f5bfa87f3029
  4058. additionalProperties:
  4059. type: object
  4060. properties:
  4061. buffer_name:
  4062. type: string
  4063. example: HeteroLogisticRegressionMeta
  4064. sha1:
  4065. type: string
  4066. example: 6871508f6e6228341b18031b3623f99a53a87147
  4067. '/checkpoint/get':
  4068. post:
  4069. summary: get a checkpoint
  4070. tags:
  4071. - checkpoint
  4072. requestBody:
  4073. required: true
  4074. content:
  4075. application/json:
  4076. schema:
  4077. type: object
  4078. required:
  4079. - model_id
  4080. - model_version
  4081. - role
  4082. - party_id
  4083. - component_name
  4084. properties:
  4085. model_id:
  4086. type: string
  4087. example: 'arbiter-10000#guest-9999#host-10000#model'
  4088. model_version:
  4089. type: string
  4090. example: '202111032155391167400'
  4091. role:
  4092. type: string
  4093. example: guest
  4094. party_id:
  4095. type: integer
  4096. example: 9999
  4097. component_name:
  4098. type: string
  4099. example: hetero_lr_0
  4100. step_index:
  4101. type: integer
  4102. example: 0
  4103. responses:
  4104. '200':
  4105. description: checkpoint data
  4106. content:
  4107. application/json:
  4108. schema:
  4109. type: object
  4110. properties:
  4111. retcode:
  4112. type: integer
  4113. example: 0
  4114. retmsg:
  4115. type: string
  4116. example: success
  4117. data:
  4118. type: object
  4119. properties:
  4120. create_time:
  4121. type: string
  4122. example: '2021-11-07T02:34:54.683015'
  4123. step_index:
  4124. type: integer
  4125. example: 0
  4126. step_name:
  4127. type: string
  4128. example: step_name
  4129. models:
  4130. type: object
  4131. example:
  4132. HeteroLogisticRegressionMeta: 'CgJMMhEtQxzr4jYaPxkAAAAAAADwPyIHcm1zcHJvcDD///////////8BOTMzMzMzM8M/QApKBGRpZmZYAQ=='
  4133. HeteroLogisticRegressionParam: 'Ig0KAng3EW1qASu+uuO/Ig0KAng0EcNi7a65ReG/Ig0KAng4EbJbl4gvVea/Ig0KAng2EcZwlVZTkOu/Ig0KAngwEVpG8dCbGvG/Ig0KAng5ESJNTx5MLve/Ig0KAngzEZ88H9P8qfO/Ig0KAng1EVfWP8JJv/K/Ig0KAngxEVS0xVXoTem/Ig0KAngyEaApgW32Q/K/KSiiE8AukPs/MgJ4MDICeDEyAngyMgJ4MzICeDQyAng1MgJ4NjICeDcyAng4MgJ4OUj///////////8B'
  4134. additionalProperties:
  4135. type: string
  4136. description: base64 encoded model data
  4137. '404':
  4138. description: checkpoint not found
  4139. content:
  4140. application/json:
  4141. schema:
  4142. type: object
  4143. properties:
  4144. retcode:
  4145. type: integer
  4146. example: 404
  4147. retmsg:
  4148. type: string
  4149. example: The checkpoint was not found.
  4150. '/component/validate':
  4151. post:
  4152. summary: validate component parameters
  4153. tags:
  4154. - component
  4155. requestBody:
  4156. required: true
  4157. content:
  4158. application/json:
  4159. schema:
  4160. type: object
  4161. properties:
  4162. dsl_version:
  4163. type: integer
  4164. example: 2
  4165. component_name:
  4166. type: string
  4167. example: dataio_0
  4168. component_module_name:
  4169. type: string
  4170. example: DataIO
  4171. role:
  4172. type: object
  4173. example:
  4174. guest:
  4175. - 10000
  4176. host:
  4177. - 9999
  4178. arbiter:
  4179. - 9999
  4180. component_parameters:
  4181. type: object
  4182. description: required if `dsl_version` == 2
  4183. example:
  4184. common:
  4185. dataio_0:
  4186. output_format: dense
  4187. role:
  4188. guest:
  4189. '0':
  4190. dataio_0:
  4191. with_label: true
  4192. host:
  4193. '0':
  4194. dataio_0:
  4195. with_label: false
  4196. output_format: dense
  4197. role_parameters:
  4198. type: object
  4199. description: required if `dsl_version` == 1
  4200. example:
  4201. guest:
  4202. dataio_0:
  4203. with_label:
  4204. - true
  4205. label_name:
  4206. - y
  4207. label_type:
  4208. - int
  4209. output_format:
  4210. - dense
  4211. missing_fill:
  4212. - true
  4213. outlier_replace:
  4214. - true
  4215. host:
  4216. dataio_0:
  4217. with_label:
  4218. - false
  4219. output_format:
  4220. - dense
  4221. outlier_replace:
  4222. - true
  4223. algorithm_parameters:
  4224. type: object
  4225. description: required if `dsl_version` == 1
  4226. example:
  4227. hetero_feature_binning_0:
  4228. method: quantile
  4229. compress_thres: 10000
  4230. head_size: 10000
  4231. error: 0.001
  4232. bin_num: 10
  4233. adjustment_factor: 0.5
  4234. local_only: false
  4235. transform_param:
  4236. transform_cols: -1
  4237. transform_type: bin_num
  4238. responses:
  4239. '200':
  4240. description: validation passed
  4241. content:
  4242. application/json:
  4243. schema:
  4244. type: object
  4245. properties:
  4246. retcode:
  4247. type: integer
  4248. example: 0
  4249. retmsg:
  4250. type: string
  4251. example: success
  4252. '400':
  4253. description: validation failed
  4254. content:
  4255. application/json:
  4256. schema:
  4257. type: object
  4258. properties:
  4259. retcode:
  4260. type: integer
  4261. example: 400
  4262. retmsg:
  4263. type: string
  4264. description: error message
  4265. example: "Component dataio_0, module DataIO, does not pass component check, error msg is dataio param's dendse not supported, should be one of ['dense', 'sparse']"
  4266. tags:
  4267. - name: data-access
  4268. - name: table
  4269. - name: job
  4270. - name: tracking
  4271. - name: information
  4272. - name: model
  4273. - name: checkpoint
  4274. - name: component
  4275. servers:
  4276. - description: Default Server URL
  4277. url: http://localhost:9380/v1