wekan.html 578 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>Wekan REST API</title>
  8. <style>
  9. </style>
  10. <style media="screen">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  11. /**
  12. * 1. Set default font family to sans-serif.
  13. * 2. Prevent iOS text size adjust after orientation change, without disabling
  14. * user zoom.
  15. */
  16. html {
  17. font-family: sans-serif;
  18. /* 1 */
  19. -ms-text-size-adjust: 100%;
  20. /* 2 */
  21. -webkit-text-size-adjust: 100%;
  22. /* 2 */ }
  23. /**
  24. * Remove default margin.
  25. */
  26. body {
  27. margin: 0; }
  28. /* HTML5 display definitions
  29. ========================================================================== */
  30. /**
  31. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  32. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  33. * and Firefox.
  34. * Correct `block` display not defined for `main` in IE 11.
  35. */
  36. article,
  37. aside,
  38. details,
  39. figcaption,
  40. figure,
  41. footer,
  42. header,
  43. hgroup,
  44. main,
  45. menu,
  46. nav,
  47. section,
  48. summary {
  49. display: block; }
  50. /**
  51. * 1. Correct `inline-block` display not defined in IE 8/9.
  52. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  53. */
  54. audio,
  55. canvas,
  56. progress,
  57. video {
  58. display: inline-block;
  59. /* 1 */
  60. vertical-align: baseline;
  61. /* 2 */ }
  62. /**
  63. * Prevent modern browsers from displaying `audio` without controls.
  64. * Remove excess height in iOS 5 devices.
  65. */
  66. audio:not([controls]) {
  67. display: none;
  68. height: 0; }
  69. /**
  70. * Address `[hidden]` styling not present in IE 8/9/10.
  71. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  72. */
  73. [hidden],
  74. template {
  75. display: none; }
  76. /* Links
  77. ========================================================================== */
  78. /**
  79. * Remove the gray background color from active links in IE 10.
  80. */
  81. a {
  82. background-color: transparent; }
  83. /**
  84. * Improve readability when focused and also mouse hovered in all browsers.
  85. */
  86. a:active,
  87. a:hover {
  88. outline: 0; }
  89. /* Text-level semantics
  90. ========================================================================== */
  91. /**
  92. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  93. */
  94. abbr[title] {
  95. border-bottom: 1px dotted; }
  96. /**
  97. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  98. */
  99. b,
  100. strong {
  101. font-weight: bold; }
  102. /**
  103. * Address styling not present in Safari and Chrome.
  104. */
  105. dfn {
  106. font-style: italic; }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0; }
  114. /**
  115. * Address styling not present in IE 8/9.
  116. */
  117. mark {
  118. background: #ff0;
  119. color: #000; }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%; }
  125. /**
  126. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  127. */
  128. sub,
  129. sup {
  130. font-size: 75%;
  131. line-height: 0;
  132. position: relative;
  133. vertical-align: baseline; }
  134. sup {
  135. top: -0.5em; }
  136. sub {
  137. bottom: -0.25em; }
  138. /* Embedded content
  139. ========================================================================== */
  140. /**
  141. * Remove border when inside `a` element in IE 8/9/10.
  142. */
  143. img {
  144. border: 0; }
  145. /**
  146. * Correct overflow not hidden in IE 9/10/11.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden; }
  150. /* Grouping content
  151. ========================================================================== */
  152. /**
  153. * Address margin not present in IE 8/9 and Safari.
  154. */
  155. figure {
  156. margin: 1em 40px; }
  157. /**
  158. * Address differences between Firefox and other browsers.
  159. */
  160. hr {
  161. -moz-box-sizing: content-box;
  162. box-sizing: content-box;
  163. height: 0; }
  164. /**
  165. * Contain overflow in all browsers.
  166. */
  167. pre {
  168. overflow: auto; }
  169. /**
  170. * Address odd `em`-unit font size rendering in all browsers.
  171. */
  172. code,
  173. kbd,
  174. pre,
  175. samp {
  176. font-family: monospace, monospace;
  177. font-size: 1em; }
  178. /* Forms
  179. ========================================================================== */
  180. /**
  181. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  182. * styling of `select`, unless a `border` property is set.
  183. */
  184. /**
  185. * 1. Correct color not being inherited.
  186. * Known issue: affects color of disabled elements.
  187. * 2. Correct font properties not being inherited.
  188. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  189. */
  190. button,
  191. input,
  192. optgroup,
  193. select,
  194. textarea {
  195. color: inherit;
  196. /* 1 */
  197. font: inherit;
  198. /* 2 */
  199. margin: 0;
  200. /* 3 */ }
  201. /**
  202. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  203. */
  204. button {
  205. overflow: visible; }
  206. /**
  207. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  208. * All other form control elements do not inherit `text-transform` values.
  209. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  210. * Correct `select` style inheritance in Firefox.
  211. */
  212. button,
  213. select {
  214. text-transform: none; }
  215. /**
  216. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  217. * and `video` controls.
  218. * 2. Correct inability to style clickable `input` types in iOS.
  219. * 3. Improve usability and consistency of cursor style between image-type
  220. * `input` and others.
  221. */
  222. button,
  223. html input[type="button"],
  224. input[type="reset"],
  225. input[type="submit"] {
  226. -webkit-appearance: button;
  227. /* 2 */
  228. cursor: pointer;
  229. /* 3 */ }
  230. /**
  231. * Re-set default cursor for disabled elements.
  232. */
  233. button[disabled],
  234. html input[disabled] {
  235. cursor: default; }
  236. /**
  237. * Remove inner padding and border in Firefox 4+.
  238. */
  239. button::-moz-focus-inner,
  240. input::-moz-focus-inner {
  241. border: 0;
  242. padding: 0; }
  243. /**
  244. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  245. * the UA stylesheet.
  246. */
  247. input {
  248. line-height: normal; }
  249. /**
  250. * It's recommended that you don't attempt to style these elements.
  251. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  252. *
  253. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  254. * 2. Remove excess padding in IE 8/9/10.
  255. */
  256. input[type="checkbox"],
  257. input[type="radio"] {
  258. box-sizing: border-box;
  259. /* 1 */
  260. padding: 0;
  261. /* 2 */ }
  262. /**
  263. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  264. * `font-size` values of the `input`, it causes the cursor style of the
  265. * decrement button to change from `default` to `text`.
  266. */
  267. input[type="number"]::-webkit-inner-spin-button,
  268. input[type="number"]::-webkit-outer-spin-button {
  269. height: auto; }
  270. /**
  271. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  272. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  273. * (include `-moz` to future-proof).
  274. */
  275. input[type="search"] {
  276. -webkit-appearance: textfield;
  277. /* 1 */
  278. -moz-box-sizing: content-box;
  279. -webkit-box-sizing: content-box;
  280. /* 2 */
  281. box-sizing: content-box; }
  282. /**
  283. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  284. * Safari (but not Chrome) clips the cancel button when the search input has
  285. * padding (and `textfield` appearance).
  286. */
  287. input[type="search"]::-webkit-search-cancel-button,
  288. input[type="search"]::-webkit-search-decoration {
  289. -webkit-appearance: none; }
  290. /**
  291. * Define consistent border, margin, and padding.
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em; }
  297. /**
  298. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  299. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  300. */
  301. legend {
  302. border: 0;
  303. /* 1 */
  304. padding: 0;
  305. /* 2 */ }
  306. /**
  307. * Remove default vertical scrollbar in IE 8/9/10/11.
  308. */
  309. textarea {
  310. overflow: auto; }
  311. /**
  312. * Don't inherit the `font-weight` (applied by a rule above).
  313. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  314. */
  315. optgroup {
  316. font-weight: bold; }
  317. /* Tables
  318. ========================================================================== */
  319. /**
  320. * Remove most spacing between table cells.
  321. */
  322. table {
  323. border-collapse: collapse;
  324. border-spacing: 0; }
  325. td,
  326. th {
  327. padding: 0; }
  328. /*
  329. Copyright 2008-2013 Concur Technologies, Inc.
  330. Licensed under the Apache License, Version 2.0 (the "License"); you may
  331. not use this file except in compliance with the License. You may obtain
  332. a copy of the License at
  333. http://www.apache.org/licenses/LICENSE-2.0
  334. Unless required by applicable law or agreed to in writing, software
  335. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  336. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  337. License for the specific language governing permissions and limitations
  338. under the License.
  339. */
  340. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, html, body {
  341. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  342. font-size: 14px; }
  343. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  344. font-weight: bold; }
  345. .content code, .content pre {
  346. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  347. font-size: 12px;
  348. line-height: 1.5; }
  349. .content code {
  350. word-break: break-all;
  351. hyphens: auto; }
  352. @font-face {
  353. font-family: 'slate';
  354. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  355. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  356. font-weight: normal;
  357. font-style: normal; }
  358. .content aside.warning:before, .content aside.notice:before, .content aside.success:before, .toc-wrapper > .search:before {
  359. font-family: 'slate';
  360. speak: none;
  361. font-style: normal;
  362. font-weight: normal;
  363. font-variant: normal;
  364. text-transform: none;
  365. line-height: 1; }
  366. .content aside.warning:before {
  367. content: "\e600"; }
  368. .content aside.notice:before {
  369. content: "\e602"; }
  370. .content aside.success:before {
  371. content: "\e606"; }
  372. .toc-wrapper > .search:before {
  373. content: "\e607"; }
  374. /*
  375. Copyright 2008-2013 Concur Technologies, Inc.
  376. Licensed under the Apache License, Version 2.0 (the "License"); you may
  377. not use this file except in compliance with the License. You may obtain
  378. a copy of the License at
  379. http://www.apache.org/licenses/LICENSE-2.0
  380. Unless required by applicable law or agreed to in writing, software
  381. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  382. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  383. License for the specific language governing permissions and limitations
  384. under the License.
  385. */
  386. html, body {
  387. color: #333;
  388. padding: 0;
  389. margin: 0;
  390. -webkit-font-smoothing: antialiased;
  391. -moz-osx-font-smoothing: grayscale;
  392. background-color: #F3F7F9;
  393. height: 100%;
  394. -webkit-text-size-adjust: none;
  395. /* Never autoresize text */ }
  396. #toc > ul > li > a > span {
  397. float: right;
  398. background-color: #2484FF;
  399. border-radius: 40px;
  400. width: 20px; }
  401. .toc-wrapper {
  402. transition: left 0.3s ease-in-out;
  403. overflow-y: auto;
  404. overflow-x: hidden;
  405. position: fixed;
  406. z-index: 30;
  407. top: 0;
  408. left: 0;
  409. bottom: 0;
  410. width: 230px;
  411. background-color: #2E3336;
  412. font-size: 13px;
  413. font-weight: bold; }
  414. .toc-wrapper .lang-selector {
  415. display: none; }
  416. .toc-wrapper .lang-selector a {
  417. padding-top: 0.5em;
  418. padding-bottom: 0.5em; }
  419. .toc-wrapper .logo {
  420. display: block;
  421. max-width: 100%;
  422. margin-bottom: 0px; }
  423. .toc-wrapper > .search {
  424. position: relative; }
  425. .toc-wrapper > .search input {
  426. background: #2E3336;
  427. border-width: 0 0 1px 0;
  428. border-color: #666;
  429. padding: 6px 0 6px 20px;
  430. box-sizing: border-box;
  431. margin: 10px 15px;
  432. width: 200px;
  433. outline: none;
  434. color: #fff;
  435. border-radius: 0;
  436. /* ios has a default border radius */ }
  437. .toc-wrapper > .search:before {
  438. position: absolute;
  439. top: 17px;
  440. left: 15px;
  441. color: #fff; }
  442. .toc-wrapper .search-results {
  443. margin-top: 0;
  444. box-sizing: border-box;
  445. height: 0;
  446. overflow-y: auto;
  447. overflow-x: hidden;
  448. transition-property: height, margin;
  449. transition-duration: 180ms;
  450. transition-timing-function: ease-in-out;
  451. background: #1E2224; }
  452. .toc-wrapper .search-results.visible {
  453. height: 30%;
  454. margin-bottom: 1em; }
  455. .toc-wrapper .search-results li {
  456. margin: 1em 15px;
  457. line-height: 1; }
  458. .toc-wrapper .search-results a {
  459. color: #fff;
  460. text-decoration: none; }
  461. .toc-wrapper .search-results a:hover {
  462. text-decoration: underline; }
  463. .toc-wrapper ul, .toc-wrapper li {
  464. list-style: none;
  465. margin: 0;
  466. padding: 0;
  467. line-height: 28px; }
  468. .toc-wrapper li {
  469. color: #fff;
  470. transition-property: background;
  471. transition-timing-function: linear;
  472. transition-duration: 200ms; }
  473. .toc-wrapper .toc-link.active {
  474. background-color: #0F75D4;
  475. color: #fff; }
  476. .toc-wrapper .toc-link.active-parent {
  477. background-color: #1E2224;
  478. color: #fff; }
  479. .toc-wrapper .toc-list-h2 {
  480. display: none;
  481. background-color: #1E2224;
  482. font-weight: 500; }
  483. .toc-wrapper .toc-h2 {
  484. padding-left: 25px;
  485. font-size: 12px; }
  486. .toc-wrapper .toc-footer {
  487. padding: 1em 0;
  488. margin-top: 1em;
  489. border-top: 1px dashed #666; }
  490. .toc-wrapper .toc-footer li, .toc-wrapper .toc-footer a {
  491. color: #fff;
  492. text-decoration: none; }
  493. .toc-wrapper .toc-footer a:hover {
  494. text-decoration: underline; }
  495. .toc-wrapper .toc-footer li {
  496. font-size: 0.8em;
  497. line-height: 1.7;
  498. text-decoration: none; }
  499. .toc-link, .toc-footer li {
  500. padding: 0 15px 0 15px;
  501. display: block;
  502. overflow-x: hidden;
  503. white-space: nowrap;
  504. text-overflow: ellipsis;
  505. text-decoration: none;
  506. color: #fff;
  507. transition-property: background;
  508. transition-timing-function: linear;
  509. transition-duration: 130ms; }
  510. #nav-button {
  511. padding: 0 1.5em 5em 0;
  512. display: none;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. z-index: 100;
  517. color: #000;
  518. text-decoration: none;
  519. font-weight: bold;
  520. opacity: 0.7;
  521. line-height: 16px;
  522. transition: left 0.3s ease-in-out; }
  523. #nav-button span {
  524. display: block;
  525. padding: 6px 6px 6px;
  526. background-color: rgba(243, 247, 249, 0.7);
  527. transform-origin: 0 0;
  528. transform: rotate(-90deg) translate(-100%, 0);
  529. border-radius: 0 0 0 5px; }
  530. #nav-button img {
  531. height: 16px;
  532. vertical-align: bottom; }
  533. #nav-button:hover {
  534. opacity: 1; }
  535. #nav-button.open {
  536. left: 230px; }
  537. .page-wrapper {
  538. margin-left: 230px;
  539. position: relative;
  540. z-index: 10;
  541. background-color: #F3F7F9;
  542. min-height: 100%;
  543. padding-bottom: 1px; }
  544. .page-wrapper .dark-box {
  545. width: 50%;
  546. background-color: #2E3336;
  547. position: absolute;
  548. right: 0;
  549. top: 0;
  550. bottom: 0; }
  551. .page-wrapper .lang-selector {
  552. position: fixed;
  553. z-index: 50;
  554. border-bottom: 5px solid #2E3336; }
  555. .lang-selector {
  556. background-color: #1E2224;
  557. width: 100%;
  558. font-weight: bold; }
  559. .lang-selector a {
  560. display: block;
  561. float: left;
  562. color: #fff;
  563. text-decoration: none;
  564. padding: 0 10px;
  565. line-height: 30px;
  566. outline: 0; }
  567. .lang-selector a:active, .lang-selector a:focus {
  568. background-color: #111;
  569. color: #fff; }
  570. .lang-selector a.active {
  571. background-color: #2E3336;
  572. color: #fff; }
  573. .lang-selector:after {
  574. content: '';
  575. clear: both;
  576. display: block; }
  577. .content {
  578. -webkit-transform: translateZ(0);
  579. position: relative;
  580. z-index: 30; }
  581. .content:after {
  582. content: '';
  583. display: block;
  584. clear: both; }
  585. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  586. margin-right: 50%;
  587. padding: 0 28px;
  588. box-sizing: border-box;
  589. display: block; }
  590. .content > ul, .content > ol {
  591. padding-left: 43px; }
  592. .content > h1, .content > h2, .content > div {
  593. clear: both; }
  594. .content h1 {
  595. font-size: 25px;
  596. padding-top: 0.5em;
  597. padding-bottom: 0.5em;
  598. margin-bottom: 21px;
  599. margin-top: 2em;
  600. border-top: 1px solid #ccc;
  601. border-bottom: 1px solid #ccc;
  602. background-color: #fdfdfd; }
  603. .content h1:first-child, .content div:first-child + h1 {
  604. border-top-width: 0;
  605. margin-top: 0; }
  606. .content h2 {
  607. font-size: 19px;
  608. margin-top: 4em;
  609. margin-bottom: 0;
  610. border-top: 1px solid #ccc;
  611. padding-top: 1.2em;
  612. padding-bottom: 1.2em;
  613. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
  614. .content h1 + h2, .content h1 + div + h2 {
  615. margin-top: -21px;
  616. border-top: none; }
  617. .content h3, .content h4, .content h5, .content h6 {
  618. font-size: 15px;
  619. margin-top: 2.5em;
  620. margin-bottom: 0.8em; }
  621. .content h4, .content h5, .content h6 {
  622. font-size: 10px; }
  623. .content hr {
  624. margin: 2em 0;
  625. border-top: 2px solid #2E3336;
  626. border-bottom: 2px solid #F3F7F9; }
  627. .content table {
  628. margin-bottom: 1em;
  629. overflow: auto; }
  630. .content table th, .content table td {
  631. text-align: left;
  632. vertical-align: top;
  633. line-height: 1.6; }
  634. .content table th code, .content table td code {
  635. white-space: nowrap; }
  636. .content table th {
  637. padding: 5px 10px;
  638. border-bottom: 1px solid #ccc;
  639. vertical-align: bottom; }
  640. .content table td {
  641. padding: 10px; }
  642. .content table tr:last-child {
  643. border-bottom: 1px solid #ccc; }
  644. .content table tr:nth-child(odd) > td {
  645. background-color: white; }
  646. .content table tr:nth-child(even) > td {
  647. background-color: #fbfcfd; }
  648. .content dt {
  649. font-weight: bold; }
  650. .content dd {
  651. margin-left: 15px; }
  652. .content p, .content li, .content dt, .content dd {
  653. line-height: 1.6;
  654. margin-top: 0; }
  655. .content img {
  656. max-width: 100%; }
  657. .content code {
  658. background-color: rgba(0, 0, 0, 0.05);
  659. padding: 3px;
  660. border-radius: 3px; }
  661. .content pre > code {
  662. background-color: transparent;
  663. padding: 0; }
  664. .content aside {
  665. padding-top: 1em;
  666. padding-bottom: 1em;
  667. margin-top: 1.5em;
  668. margin-bottom: 1.5em;
  669. background: #8fbcd4;
  670. line-height: 1.6; }
  671. .content aside.warning {
  672. background-color: #c97a7e; }
  673. .content aside.success {
  674. background-color: #6ac174; }
  675. .content aside:before {
  676. vertical-align: middle;
  677. padding-right: 0.5em;
  678. font-size: 14px; }
  679. .content .search-highlight {
  680. padding: 2px;
  681. margin: -3px;
  682. border-radius: 4px;
  683. border: 1px solid #F7E633;
  684. background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
  685. .content pre, .content blockquote {
  686. background-color: #1E2224;
  687. color: #fff;
  688. margin: 0;
  689. width: 50%;
  690. float: right;
  691. clear: right;
  692. box-sizing: border-box; }
  693. .content pre > p, .content blockquote > p {
  694. margin: 0; }
  695. .content pre a, .content blockquote a {
  696. color: #fff;
  697. text-decoration: none;
  698. border-bottom: dashed 1px #ccc; }
  699. .content pre {
  700. padding-top: 2em;
  701. padding-bottom: 2em;
  702. padding: 2em 28px; }
  703. .content blockquote > p {
  704. background-color: #191D1F;
  705. padding: 13px 2em;
  706. color: #eee; }
  707. @media (max-width: 930px) {
  708. .toc-wrapper {
  709. left: -230px; }
  710. .toc-wrapper.open {
  711. left: 0; }
  712. .page-wrapper {
  713. margin-left: 0; }
  714. #nav-button {
  715. display: block; }
  716. .toc-link {
  717. padding-top: 0.3em;
  718. padding-bottom: 0.3em; } }
  719. @media (max-width: 700px) {
  720. .dark-box {
  721. display: none; }
  722. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  723. margin-right: 0; }
  724. .toc-wrapper .lang-selector {
  725. display: block; }
  726. .page-wrapper .lang-selector {
  727. display: none; }
  728. .content pre, .content blockquote {
  729. width: auto;
  730. float: none; }
  731. .content > pre + h1, .content > blockquote + h1, .content > pre + h2, .content > blockquote + h2, .content > pre + h3, .content > blockquote + h3, .content > pre + h4, .content > blockquote + h4, .content > pre + h5, .content > blockquote + h5, .content > pre + h6, .content > blockquote + h6, .content > pre + p, .content > blockquote + p, .content > pre + table, .content > blockquote + table, .content > pre + ul, .content > blockquote + ul, .content > pre + ol, .content > blockquote + ol, .content > pre + aside, .content > blockquote + aside, .content > pre + dl, .content > blockquote + dl {
  732. margin-top: 28px; } }
  733. .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
  734. color: #909090; }
  735. .highlight, .highlight .w {
  736. background-color: #1E2224; }
  737. </style>
  738. <style media="print">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  739. /**
  740. * 1. Set default font family to sans-serif.
  741. * 2. Prevent iOS text size adjust after orientation change, without disabling
  742. * user zoom.
  743. */
  744. html {
  745. font-family: sans-serif;
  746. /* 1 */
  747. -ms-text-size-adjust: 100%;
  748. /* 2 */
  749. -webkit-text-size-adjust: 100%;
  750. /* 2 */ }
  751. /**
  752. * Remove default margin.
  753. */
  754. body {
  755. margin: 0; }
  756. /* HTML5 display definitions
  757. ========================================================================== */
  758. /**
  759. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  760. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  761. * and Firefox.
  762. * Correct `block` display not defined for `main` in IE 11.
  763. */
  764. article,
  765. aside,
  766. details,
  767. figcaption,
  768. figure,
  769. footer,
  770. header,
  771. hgroup,
  772. main,
  773. menu,
  774. nav,
  775. section,
  776. summary {
  777. display: block; }
  778. /**
  779. * 1. Correct `inline-block` display not defined in IE 8/9.
  780. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  781. */
  782. audio,
  783. canvas,
  784. progress,
  785. video {
  786. display: inline-block;
  787. /* 1 */
  788. vertical-align: baseline;
  789. /* 2 */ }
  790. /**
  791. * Prevent modern browsers from displaying `audio` without controls.
  792. * Remove excess height in iOS 5 devices.
  793. */
  794. audio:not([controls]) {
  795. display: none;
  796. height: 0; }
  797. /**
  798. * Address `[hidden]` styling not present in IE 8/9/10.
  799. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  800. */
  801. [hidden],
  802. template {
  803. display: none; }
  804. /* Links
  805. ========================================================================== */
  806. /**
  807. * Remove the gray background color from active links in IE 10.
  808. */
  809. a {
  810. background-color: transparent; }
  811. /**
  812. * Improve readability when focused and also mouse hovered in all browsers.
  813. */
  814. a:active,
  815. a:hover {
  816. outline: 0; }
  817. /* Text-level semantics
  818. ========================================================================== */
  819. /**
  820. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  821. */
  822. abbr[title] {
  823. border-bottom: 1px dotted; }
  824. /**
  825. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  826. */
  827. b,
  828. strong {
  829. font-weight: bold; }
  830. /**
  831. * Address styling not present in Safari and Chrome.
  832. */
  833. dfn {
  834. font-style: italic; }
  835. /**
  836. * Address variable `h1` font-size and margin within `section` and `article`
  837. * contexts in Firefox 4+, Safari, and Chrome.
  838. */
  839. h1 {
  840. font-size: 2em;
  841. margin: 0.67em 0; }
  842. /**
  843. * Address styling not present in IE 8/9.
  844. */
  845. mark {
  846. background: #ff0;
  847. color: #000; }
  848. /**
  849. * Address inconsistent and variable font size in all browsers.
  850. */
  851. small {
  852. font-size: 80%; }
  853. /**
  854. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  855. */
  856. sub,
  857. sup {
  858. font-size: 75%;
  859. line-height: 0;
  860. position: relative;
  861. vertical-align: baseline; }
  862. sup {
  863. top: -0.5em; }
  864. sub {
  865. bottom: -0.25em; }
  866. /* Embedded content
  867. ========================================================================== */
  868. /**
  869. * Remove border when inside `a` element in IE 8/9/10.
  870. */
  871. img {
  872. border: 0; }
  873. /**
  874. * Correct overflow not hidden in IE 9/10/11.
  875. */
  876. svg:not(:root) {
  877. overflow: hidden; }
  878. /* Grouping content
  879. ========================================================================== */
  880. /**
  881. * Address margin not present in IE 8/9 and Safari.
  882. */
  883. figure {
  884. margin: 1em 40px; }
  885. /**
  886. * Address differences between Firefox and other browsers.
  887. */
  888. hr {
  889. -moz-box-sizing: content-box;
  890. box-sizing: content-box;
  891. height: 0; }
  892. /**
  893. * Contain overflow in all browsers.
  894. */
  895. pre {
  896. overflow: auto; }
  897. /**
  898. * Address odd `em`-unit font size rendering in all browsers.
  899. */
  900. code,
  901. kbd,
  902. pre,
  903. samp {
  904. font-family: monospace, monospace;
  905. font-size: 1em; }
  906. /* Forms
  907. ========================================================================== */
  908. /**
  909. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  910. * styling of `select`, unless a `border` property is set.
  911. */
  912. /**
  913. * 1. Correct color not being inherited.
  914. * Known issue: affects color of disabled elements.
  915. * 2. Correct font properties not being inherited.
  916. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  917. */
  918. button,
  919. input,
  920. optgroup,
  921. select,
  922. textarea {
  923. color: inherit;
  924. /* 1 */
  925. font: inherit;
  926. /* 2 */
  927. margin: 0;
  928. /* 3 */ }
  929. /**
  930. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  931. */
  932. button {
  933. overflow: visible; }
  934. /**
  935. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  936. * All other form control elements do not inherit `text-transform` values.
  937. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  938. * Correct `select` style inheritance in Firefox.
  939. */
  940. button,
  941. select {
  942. text-transform: none; }
  943. /**
  944. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  945. * and `video` controls.
  946. * 2. Correct inability to style clickable `input` types in iOS.
  947. * 3. Improve usability and consistency of cursor style between image-type
  948. * `input` and others.
  949. */
  950. button,
  951. html input[type="button"],
  952. input[type="reset"],
  953. input[type="submit"] {
  954. -webkit-appearance: button;
  955. /* 2 */
  956. cursor: pointer;
  957. /* 3 */ }
  958. /**
  959. * Re-set default cursor for disabled elements.
  960. */
  961. button[disabled],
  962. html input[disabled] {
  963. cursor: default; }
  964. /**
  965. * Remove inner padding and border in Firefox 4+.
  966. */
  967. button::-moz-focus-inner,
  968. input::-moz-focus-inner {
  969. border: 0;
  970. padding: 0; }
  971. /**
  972. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  973. * the UA stylesheet.
  974. */
  975. input {
  976. line-height: normal; }
  977. /**
  978. * It's recommended that you don't attempt to style these elements.
  979. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  980. *
  981. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  982. * 2. Remove excess padding in IE 8/9/10.
  983. */
  984. input[type="checkbox"],
  985. input[type="radio"] {
  986. box-sizing: border-box;
  987. /* 1 */
  988. padding: 0;
  989. /* 2 */ }
  990. /**
  991. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  992. * `font-size` values of the `input`, it causes the cursor style of the
  993. * decrement button to change from `default` to `text`.
  994. */
  995. input[type="number"]::-webkit-inner-spin-button,
  996. input[type="number"]::-webkit-outer-spin-button {
  997. height: auto; }
  998. /**
  999. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  1000. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  1001. * (include `-moz` to future-proof).
  1002. */
  1003. input[type="search"] {
  1004. -webkit-appearance: textfield;
  1005. /* 1 */
  1006. -moz-box-sizing: content-box;
  1007. -webkit-box-sizing: content-box;
  1008. /* 2 */
  1009. box-sizing: content-box; }
  1010. /**
  1011. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  1012. * Safari (but not Chrome) clips the cancel button when the search input has
  1013. * padding (and `textfield` appearance).
  1014. */
  1015. input[type="search"]::-webkit-search-cancel-button,
  1016. input[type="search"]::-webkit-search-decoration {
  1017. -webkit-appearance: none; }
  1018. /**
  1019. * Define consistent border, margin, and padding.
  1020. */
  1021. fieldset {
  1022. border: 1px solid #c0c0c0;
  1023. margin: 0 2px;
  1024. padding: 0.35em 0.625em 0.75em; }
  1025. /**
  1026. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  1027. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  1028. */
  1029. legend {
  1030. border: 0;
  1031. /* 1 */
  1032. padding: 0;
  1033. /* 2 */ }
  1034. /**
  1035. * Remove default vertical scrollbar in IE 8/9/10/11.
  1036. */
  1037. textarea {
  1038. overflow: auto; }
  1039. /**
  1040. * Don't inherit the `font-weight` (applied by a rule above).
  1041. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  1042. */
  1043. optgroup {
  1044. font-weight: bold; }
  1045. /* Tables
  1046. ========================================================================== */
  1047. /**
  1048. * Remove most spacing between table cells.
  1049. */
  1050. table {
  1051. border-collapse: collapse;
  1052. border-spacing: 0; }
  1053. td,
  1054. th {
  1055. padding: 0; }
  1056. /*
  1057. Copyright 2008-2013 Concur Technologies, Inc.
  1058. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1059. not use this file except in compliance with the License. You may obtain
  1060. a copy of the License at
  1061. http://www.apache.org/licenses/LICENSE-2.0
  1062. Unless required by applicable law or agreed to in writing, software
  1063. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1064. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1065. License for the specific language governing permissions and limitations
  1066. under the License.
  1067. */
  1068. .content h1, .content h2, .content h3, .content h4, body {
  1069. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  1070. font-size: 14px; }
  1071. .content h1, .content h2, .content h3, .content h4 {
  1072. font-weight: bold; }
  1073. .content pre, .content code {
  1074. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  1075. font-size: 12px;
  1076. line-height: 1.5; }
  1077. .content pre, .content code {
  1078. word-break: break-all;
  1079. hyphens: auto; }
  1080. @font-face {
  1081. font-family: 'slate';
  1082. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  1083. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  1084. font-weight: normal;
  1085. font-style: normal; }
  1086. .content aside.warning:before, .content aside.notice:before, .content aside.success:before {
  1087. font-family: 'slate';
  1088. speak: none;
  1089. font-style: normal;
  1090. font-weight: normal;
  1091. font-variant: normal;
  1092. text-transform: none;
  1093. line-height: 1; }
  1094. .content aside.warning:before {
  1095. content: "\e600"; }
  1096. .content aside.notice:before {
  1097. content: "\e602"; }
  1098. .content aside.success:before {
  1099. content: "\e606"; }
  1100. /*
  1101. Copyright 2008-2013 Concur Technologies, Inc.
  1102. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1103. not use this file except in compliance with the License. You may obtain
  1104. a copy of the License at
  1105. http://www.apache.org/licenses/LICENSE-2.0
  1106. Unless required by applicable law or agreed to in writing, software
  1107. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1108. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1109. License for the specific language governing permissions and limitations
  1110. under the License.
  1111. */
  1112. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  1113. display: none; }
  1114. .tocify-wrapper > img {
  1115. margin: 0 auto;
  1116. display: block; }
  1117. .content {
  1118. font-size: 12px; }
  1119. .content pre, .content code {
  1120. border: 1px solid #999;
  1121. border-radius: 5px;
  1122. font-size: 0.8em; }
  1123. .content pre code {
  1124. border: 0; }
  1125. .content pre {
  1126. padding: 1.3em; }
  1127. .content code {
  1128. padding: 0.2em; }
  1129. .content table {
  1130. border: 1px solid #999; }
  1131. .content table tr {
  1132. border-bottom: 1px solid #999; }
  1133. .content table td, .content table th {
  1134. padding: 0.7em; }
  1135. .content p {
  1136. line-height: 1.5; }
  1137. .content a {
  1138. text-decoration: none;
  1139. color: #000; }
  1140. .content h1 {
  1141. font-size: 2.5em;
  1142. padding-top: 0.5em;
  1143. padding-bottom: 0.5em;
  1144. margin-top: 1em;
  1145. margin-bottom: 21px;
  1146. border: 2px solid #ccc;
  1147. border-width: 2px 0;
  1148. text-align: center; }
  1149. .content h2 {
  1150. font-size: 1.8em;
  1151. margin-top: 2em;
  1152. border-top: 2px solid #ccc;
  1153. padding-top: 0.8em; }
  1154. .content h1 + h2, .content h1 + div + h2 {
  1155. border-top: none;
  1156. padding-top: 0;
  1157. margin-top: 0; }
  1158. .content h3, .content h4 {
  1159. font-size: 0.8em;
  1160. margin-top: 1.5em;
  1161. margin-bottom: 0.8em;
  1162. text-transform: uppercase; }
  1163. .content h5, .content h6 {
  1164. text-transform: uppercase; }
  1165. .content aside {
  1166. padding: 1em;
  1167. border: 1px solid #ccc;
  1168. border-radius: 5px;
  1169. margin-top: 1.5em;
  1170. margin-bottom: 1.5em;
  1171. line-height: 1.6; }
  1172. .content aside:before {
  1173. vertical-align: middle;
  1174. padding-right: 0.5em;
  1175. font-size: 14px; }
  1176. </style>
  1177. <style media="screen">/*
  1178. Darkula color scheme from the JetBrains family of IDEs
  1179. */
  1180. .hljs {
  1181. display: block;
  1182. overflow-x: auto;
  1183. padding: 0.5em;
  1184. background: #2b2b2b;
  1185. -webkit-text-size-adjust: none;
  1186. }
  1187. .hljs,
  1188. .hljs-tag,
  1189. .hljs-title,
  1190. .css .hljs-rule,
  1191. .css .hljs-value,
  1192. .aspectj .hljs-function,
  1193. .css .hljs-function .hljs-preprocessor,
  1194. .hljs-pragma {
  1195. color: #bababa;
  1196. }
  1197. .hljs-strongemphasis,
  1198. .hljs-strong,
  1199. .hljs-emphasis {
  1200. color: #a8a8a2;
  1201. }
  1202. .hljs-bullet,
  1203. .hljs-blockquote,
  1204. .hljs-horizontal_rule,
  1205. .hljs-number,
  1206. .hljs-regexp,
  1207. .alias .hljs-keyword,
  1208. .hljs-literal,
  1209. .hljs-hexcolor {
  1210. color: #6896ba;
  1211. }
  1212. .hljs-tag .hljs-value,
  1213. .hljs-code,
  1214. .css .hljs-class,
  1215. .hljs-class .hljs-title:last-child {
  1216. color: #a6e22e;
  1217. }
  1218. .hljs-link_url {
  1219. font-size: 80%;
  1220. }
  1221. .hljs-emphasis,
  1222. .hljs-strongemphasis,
  1223. .hljs-class .hljs-title:last-child,
  1224. .hljs-typename {
  1225. font-style: italic;
  1226. }
  1227. .hljs-keyword,
  1228. .ruby .hljs-class .hljs-keyword:first-child,
  1229. .ruby .hljs-function .hljs-keyword,
  1230. .hljs-function,
  1231. .hljs-change,
  1232. .hljs-winutils,
  1233. .hljs-flow,
  1234. .nginx .hljs-title,
  1235. .tex .hljs-special,
  1236. .hljs-header,
  1237. .hljs-attribute,
  1238. .hljs-symbol,
  1239. .hljs-symbol .hljs-string,
  1240. .hljs-tag .hljs-title,
  1241. .hljs-value,
  1242. .alias .hljs-keyword:first-child,
  1243. .css .hljs-tag,
  1244. .css .unit,
  1245. .css .hljs-important {
  1246. color: #cb7832;
  1247. }
  1248. .hljs-function .hljs-keyword,
  1249. .hljs-class .hljs-keyword:first-child,
  1250. .hljs-aspect .hljs-keyword:first-child,
  1251. .hljs-constant,
  1252. .hljs-typename,
  1253. .css .hljs-attribute {
  1254. color: #cb7832;
  1255. }
  1256. .hljs-variable,
  1257. .hljs-params,
  1258. .hljs-class .hljs-title,
  1259. .hljs-aspect .hljs-title {
  1260. color: #b9b9b9;
  1261. }
  1262. .hljs-string,
  1263. .css .hljs-id,
  1264. .hljs-subst,
  1265. .hljs-type,
  1266. .ruby .hljs-class .hljs-parent,
  1267. .hljs-built_in,
  1268. .django .hljs-template_tag,
  1269. .django .hljs-variable,
  1270. .smalltalk .hljs-class,
  1271. .django .hljs-filter .hljs-argument,
  1272. .smalltalk .hljs-localvars,
  1273. .smalltalk .hljs-array,
  1274. .hljs-attr_selector,
  1275. .hljs-pseudo,
  1276. .hljs-addition,
  1277. .hljs-stream,
  1278. .hljs-envvar,
  1279. .apache .hljs-tag,
  1280. .apache .hljs-cbracket,
  1281. .tex .hljs-command,
  1282. .hljs-prompt,
  1283. .hljs-link_label,
  1284. .hljs-link_url,
  1285. .hljs-name {
  1286. color: #e0c46c;
  1287. }
  1288. .hljs-comment,
  1289. .hljs-annotation,
  1290. .hljs-pi,
  1291. .hljs-doctype,
  1292. .hljs-deletion,
  1293. .hljs-shebang,
  1294. .apache .hljs-sqbracket,
  1295. .tex .hljs-formula {
  1296. color: #7f7f7f;
  1297. }
  1298. .hljs-decorator {
  1299. color: #bab429;
  1300. }
  1301. .coffeescript .javascript,
  1302. .javascript .xml,
  1303. .tex .hljs-formula,
  1304. .xml .javascript,
  1305. .xml .vbscript,
  1306. .xml .css,
  1307. .xml .hljs-cdata,
  1308. .xml .php,
  1309. .php .xml {
  1310. opacity: 0.5;
  1311. }
  1312. </style>
  1313. <script>!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):Ee.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Pe.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=a(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Re.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,he.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Fe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Me(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Fe.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Fe.set(e[n],"globalEval",!t||Fe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Qe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ve.exec(o)||["",""])[1].toLowerCase(),u=Ue[a]||Ue._default,s.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;he.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),s=y(f.appendChild(o),"script"),c&&x(s),n)for(l=0;o=s[l++];)Xe.test(o.type||"")&&n.push(o);return f}function w(){return!0}function T(){return!1}function S(){try{return ne.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(s=i,i=function(e){return he().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function C(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(o=Fe.access(e),s=Fe.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}$e.hasData(e)&&(a=$e.access(e),u=he.extend({},a),$e.set(t,u))}}function A(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=oe.apply([],t);var o,s,a,u,c,l,f=0,d=e.length,p=d-1,h=t[0],g=he.isFunction(h);if(g||d>1&&"string"==typeof h&&!pe.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=he.map(y(o,"script"),k),u=a.length;f<d;f++)c=o,f!==p&&(c=he.clone(c,!0,!0),u&&he.merge(a,y(c,"script"))),r.call(e[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,he.map(a,N),f=0;f<u;f++)c=a[f],Xe.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function D(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(y(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return n=n||st(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||he.contains(e.ownerDocument,e)||(s=he.style(e,t)),!pe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function q(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in dt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in dt)return e}function $(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=F(e)||e),t}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function H(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=he.css(e,n+_e[o],!0,i)),r?("content"===n&&(s-=he.css(e,"padding"+_e[o],!0,i)),"margin"!==n&&(s-=he.css(e,"border"+_e[o]+"Width",!0,i))):(s+=he.css(e,"padding"+_e[o],!0,i),"padding"!==n&&(s+=he.css(e,"border"+_e[o]+"Width",!0,i)));return s}function I(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===he.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(pe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+H(e,t,n||(s?"border":"content"),r,i)+"px")}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function _(){ht&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(_):e.setTimeout(_,he.fx.interval),he.fx.tick())}function M(){return e.setTimeout(function(){pt=void 0}),pt=he.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=_e[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,s,a,u,c,l,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Me(e),v=Fe.get(e,"fxshow");n.queue||(s=he._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=v&&v.display,null==c&&(c=Fe.get(e,"display")),l=he.css(e,"display"),"none"===l&&(c?l=c:(m([e],!0),c=e.style.display||c,l=he.css(e,"display"),m([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(v?"hidden"in v&&(g=v.hidden):v=Fe.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Fe.remove(e,"fxshow");for(r in p)he.style(e,r,p[r])})),u=B(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}}function V(e,t){var n,r,i,o,s;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=he.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function X(e,t,n){var r,i,o=0,s=X.prefilters.length,a=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||M(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),o<1&&u?n:(u||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(V(l,c.opts.specialEasing);o<s;o++)if(r=X.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,B,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ae)||[]).join(" ")}function Q(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||kt.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Y(e+"["+i+"]",t[i],n,r)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ae)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function G(e,t,n,r){function i(a){var u;return o[a]=!0,he.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Z(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,se=te.push,ae=te.indexOf,ue={},ce=ue.toString,le=ue.hasOwnProperty,fe=le.toString,de=fe.call(Object),pe={},he=function(e,t){return new he.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,me=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:te.sort,splice:te.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||he.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},s[t]=he.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=re(e))||"function"==typeof(n=le.call(t,"constructor")&&t.constructor)&&fe.call(n)===de)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(me,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:pe}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=te[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var xe=function(e){function t(e,t,n,r){var i,o,s,a,u,l,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:R)!==D&&L(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&H(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!F||!F.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,be):t.setAttribute("id",a=I),l=E(e),o=l.length;o--;)l[o]="#"+a+" "+f(l[o]);d=l.join(","),p=ve.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{a===I&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[_,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[I]||(t[I]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,d=[],p=[],v=s.length,m=r||h(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:g(m,d,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=g(x,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[p[l]]=!(y[p[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?K(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else x=g(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):J.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return K(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=w.relative[e[a].type])l=[d(p(l),n)];else{if(n=w.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;r<i&&!w.relative[e[r].type];r++);return v(a>1&&p(l),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&f(e))}l.push(n)}return p(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,d,p=0,h="0",v=r&&[],m=[],y=N,x=r||o&&w.find.TAG("*",c),b=_+=null==y?1:Math.random()||.1,T=x.length;for(c&&(N=s===D||s||c);h!==T&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===D||(L(l),a=!q);d=e[f++];)if(d(l,s||D,a)){u.push(l);break}c&&(_=b)}i&&((l=!d&&l)&&p--,r&&v.push(l))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,s,a);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=Q.call(u));m=g(m)}J.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(_=b,N=y),v};return i?r(s):s}var x,b,w,T,S,E,C,k,N,j,A,L,D,O,q,F,$,P,H,I="sizzle"+1*new Date,R=e.document,_=0,M=0,W=n(),B=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},X={}.hasOwnProperty,U=[],Q=U.pop,Y=U.push,J=U.push,G=U.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){L()},Te=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(U=G.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(e){J={apply:U.length?function(e,t){Y.apply(e,G.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,O=D.documentElement,q=!S(D),R!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(D.getElementsByClassName),b.getById=i(function(e){return O.appendChild(e).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},$=[],F=[],(b.qsa=he.test(D.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+I+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(b.matchesSelector=he.test(P=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),$.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),$=$.length&&new RegExp($.join("|")),t=he.test(O.compareDocumentPosition),H=t||he.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===R&&H(R,e)?-1:t===D||t.ownerDocument===R&&H(R,t)?1:j?K(j,e)-K(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:j?K(j,e)-K(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===R?-1:u[r]===R?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&q&&!z[n+" "]&&(!$||!$.test(n))&&(!F||!F.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:b.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,j=!b.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(me,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(me,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(d=v,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[_,p,x];break}}else if(y&&(d=t,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++x||(y&&(f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[e]=[_,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(me,ye),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(me,ye).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase()
  1314. ;return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=B[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=w.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in w.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=m(t[n]),o[I]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&q&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(me,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((u=w.find[a])&&(r=u(s.matches[0].replace(me,ye),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||C(e,d))(r,t,!q,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=I.split("").sort(V).join("")===I,b.detectDuplicates=!!A,L(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=xe,he.expr=xe.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=xe.uniqueSort,he.text=xe.getText,he.isXMLDoc=xe.isXML,he.contains=xe.contains,he.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=he.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ee=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?he(e):e||[],!1).length}});var Ce,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Se.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(ne);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&he(e);if(!Te.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(je[e]||he.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?a(e):he.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,f=function(){var e,f;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(f)?i?f.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,f.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},d=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=he.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var De=he.Deferred();he.fn.ready=function(e){return De.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||De.resolveWith(ne,[he]))}}),he.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(he.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(he.camelCase):(t=he.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Fe=new d,$e=new d,Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;he.extend({hasData:function(e){return $e.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=he.camelCase(r.slice(5)),h(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=$e.get(o,e)))return n;if(void 0!==(n=h(o,e)))return n}else this.each(function(){$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||Array.isArray(n)?r=Fe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t),s=function(){he.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Fe.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Me=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},We=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Be={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Me(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Qe=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&he.find.matchesSelector(Ye,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p&&(f=he.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=he.event.special[p]||{},l=he.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.hasData(e)&&Fe.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p){for(f=he.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)he.event.remove(e,p+t[c],n,r,!0);he.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=he.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=he.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=he.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)A(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)j(o[r],s[r]);else j(e,a);return s=y(a,"script"),s.length>0&&x(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(qe(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),he.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,e).appendChild(e)}})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ue[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),he(i[s])[t](n),se.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ye.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(s),a=null}}var n,r,i,o,s=ne.createElement("div"),a=ne.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),he.extend(pe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],dt=ne.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=he.camelCase(t),u=ut.test(t),c=e.style;if(u||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];o=typeof n,"string"===o&&(i=Re.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=he.camelCase(t);return ut.test(t)||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?I(e,t,r):We(e,ct,function(){return I(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&H(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return s&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(e,n,s)}}}),he.cssHooks.marginLeft=q(pe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+_e[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=he.css(e,t[s],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=R.prototype.init,he.fx.step={};var pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;he.Animation=he.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),s=function(){var t=X(this,he.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,s=Fe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&vt.test(i)&&r(s[i])
  1315. ;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,s=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),he.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(pt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),pt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,_())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var mt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Oe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Oe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Ae)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,he(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:U(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},pe.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,f,d=[r||ne],p=le.call(t,"type")?t.type:t,h=le.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+he.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[he.expando]?t:new he.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!he.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||ne)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(Fe.get(s,"events")||{})[t.type]&&Fe.get(s,"handle"),l&&l.apply(s,n),(l=c&&s[c])&&l.apply&&qe(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!qe(r)||c&&he.isFunction(r[p])&&!he.isWindow(r)&&(a=r[c],a&&(r[c]=null),he.event.triggered=p,r[p](),he.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=e.location,Et=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var kt=/\[\]$/,Nt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&At.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var Lt=/%20/g,Dt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ht={},It={},Rt="*/".concat("*"),_t=ne.createElement("a");_t.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Ft.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,he.ajaxSettings),t):K(he.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(It),ajax:function(t,n){function r(t,n,r,a){var c,d,p,b,w,T=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Z(h,S,r)),b=ee(h,b,S,c),c?(h.ifModified&&(w=S.getResponseHeader("Last-Modified"),w&&(he.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,p=b.error,c=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(n||T)+"",c?m.resolveWith(g,[d,T,S]):m.rejectWith(g,[S,T,p]),S.statusCode(x),x=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?d:p]),y.fireWith(g,[S,T]),f&&(v.trigger("ajaxComplete",[S,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,f,d,p,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,m=he.Deferred(),y=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(m.promise(S),h.url=((t||h.url||St.href)+"").replace(Pt,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=ne.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),G(Ht,h,n,S),l)return S;f=he.event&&h.global,f&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&S.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&S.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||l))return S.abort();if(T="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=G(It,h,n,S)){if(S.readyState=1,f&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Wt=he.ajaxSettings.xhr();pe.cors=!!Wt&&"withCredentials"in Wt,pe.ajax=Wt=!!Wt,he.ajaxTransport(function(t){var n,r;if(pe.cors||Wt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],zt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+Et++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||he.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),s&&he.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),pe.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(pe.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=he.css(e,"position"),f=he(e),d={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=he.css(e,"top"),u=he.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):f.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ye})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Oe(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=q(pe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,s?i:void 0,s)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Vt=e.jQuery,Xt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Xt),t&&e.jQuery===he&&(e.jQuery=Vt),he},t||(e.jQuery=e.$=he),he}),jQuery.extend({highlight:function(e,t,n,r){if(3===e.nodeType){var i=e.data.match(t);if(i){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(i.index);s.splitText(i[0].length);var a=s.cloneNode(!0);return o.appendChild(a),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var u=0;u<e.childNodes.length;u++)u+=jQuery.highlight(e.childNodes[u],t,n,r);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),0==e.length)return this;var r=n.caseSensitive?"":"i",i="("+e.join("|")+")";n.wordsOnly&&(i="\\b"+i+"\\b");var o=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,o,n.element,n.className)})},function(){var e=function(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};e.version="0.5.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.EventEmitter=function(){this.events={}},e.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},e.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},e.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},e.EventEmitter.prototype.hasHandler=function(e){return e in this.events},e.tokenizer=function(e){if(!arguments.length||null==e||void 0==e)return[];if(Array.isArray(e))return e.map(function(e){return e.toLowerCase()});for(var t=e.toString().replace(/^\s+/,""),n=t.length-1;n>=0;n--)if(/\S/.test(t.charAt(n))){t=t.substring(0,n+1);break}return t.split(/(?:\s+|\-)/).filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})},e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions={},e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(t){var r=e.Pipeline.registeredFunctions[t];if(!r)throw new Error("Cannot load un-registered function: "+t);n.add(r)}),n},e.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t)+1;this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,i=0;i<n;i++){for(var o=e[i],s=0;s<r&&void 0!==(o=this._stack[s](o,i,e));s++);void 0!==o&&t.push(o)}return t},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},e.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},e.Vector.prototype.insert=function(t,n){var r=this.list;if(!r)return this.list=new e.Vector.Node(t,n,r),this.length++;for(var i=r,o=r.next;void 0!=o;){if(t<o.idx)return i.next=new e.Vector.Node(t,n,o),this.length++;i=o,o=o.next}return i.next=new e.Vector.Node(t,n,o),this.length++},e.Vector.prototype.magnitude=function(){if(this._magniture)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},e.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},e.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},e.SortedSet=function(){this.length=0,this.elements=[]},e.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},e.SortedSet.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e)},this),this.length=this.elements.length},e.SortedSet.prototype.toArray=function(){return this.elements.slice()},e.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},e.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},e.SortedSet.prototype.indexOf=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];return r<=1?o===e?i:-1:o<e?this.indexOf(e,i,n):o>e?this.indexOf(e,t,i):o===e?i:void 0},e.SortedSet.prototype.locationFor=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];if(r<=1){if(o>e)return i;if(o<e)return i+1}return o<e?this.locationFor(e,i,n):o>e?this.locationFor(e,t,i):void 0},e.SortedSet.prototype.intersect=function(t){for(var n=new e.SortedSet,r=0,i=0,o=this.length,s=t.length,a=this.elements,u=t.elements;;){if(r>o-1||i>s-1)break;a[r]!==u[i]?a[r]<u[i]?r++:a[r]>u[i]&&i++:(n.add(a[r]),r++,i++)}return n},e.SortedSet.prototype.clone=function(){var t=new e.SortedSet;return t.elements=this.toArray(),t.length=t.elements.length,t},e.SortedSet.prototype.union=function(e){var t,n,r;return this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone(),r.add.apply(r,n.toArray()),r},e.SortedSet.prototype.toJSON=function(){return this.toArray()},e.Index=function(){this._fields=[],this._ref="id",this.pipeline=new e.Pipeline,this.documentStore=new e.Store,this.tokenStore=new e.TokenStore,this.corpusTokens=new e.SortedSet,this.eventEmitter=new e.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},e.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},e.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},e.Index.load=function(t){t.version!==e.version&&e.utils.warn("version mismatch: current "+e.version+" importing "+t.version);var n=new this;return n._fields=t.fields,n._ref=t.ref,n.documentStore=e.Store.load(t.documentStore),n.tokenStore=e.TokenStore.load(t.tokenStore),n.corpusTokens=e.SortedSet.load(t.corpusTokens),n.pipeline=e.Pipeline.load(t.pipeline),n},e.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},e.Index.prototype.ref=function(e){return this._ref=e,this},e.Index.prototype.add=function(t,n){var r={},i=new e.SortedSet,o=t[this._ref],n=void 0===n||n;this._fields.forEach(function(n){var o=this.pipeline.run(e.tokenizer(t[n.name]));r[n.name]=o,e.SortedSet.prototype.add.apply(i,o)},this),this.documentStore.set(o,i),e.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s<i.length;s++){var a=i.elements[s],u=this._fields.reduce(function(e,t){var n=r[t.name].length;return n?e+r[t.name].filter(function(e){return e===a}).length/n*t.boost:e},0);this.tokenStore.add(a,{ref:o,tf:u})}n&&this.eventEmitter.emit("add",t,this)},e.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},e.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},e.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.tokenStore.length/n)),this._idfCache[t]=r},e.Index.prototype.search=function(t){
  1316. var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0);return n.some(function(e){return this.tokenStore.has(e)},this)?(n.forEach(function(t,n,s){var a=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(n,i){var o=u.corpusTokens.indexOf(i),s=u.idf(i),c=1,l=new e.SortedSet;if(i!==t){var f=Math.max(3,i.length-t.length);c=1/Math.log(f)}return o>-1&&r.insert(o,a*s*c),Object.keys(u.tokenStore.get(i)).forEach(function(e){l.add(e)}),n.union(l)},new e.SortedSet);i.push(c)},this),i.reduce(function(e,t){return e.intersect(t)}).map(function(e){return{ref:e,score:r.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})):[]},e.Index.prototype.documentVector=function(t){for(var n=this.documentStore.get(t),r=n.length,i=new e.Vector,o=0;o<r;o++){var s=n.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*u)}return i},e.Index.prototype.toJSON=function(){return{version:e.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},e.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.Store=function(){this.store={},this.length=0},e.Store.load=function(t){var n=new this;return n.length=t.length,n.store=Object.keys(t.store).reduce(function(n,r){return n[r]=e.SortedSet.load(t.store[r]),n},{}),n},e.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},e.Store.prototype.get=function(e){return this.store[e]},e.Store.prototype.has=function(e){return e in this.store},e.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},e.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,c=/^(.+?)([^s])s$/,l=/^(.+?)eed$/,f=/^(.+?)(ed|ing)$/,d=/.$/,p=/(at|bl|iz)$/,h=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+r+n+"[^aeiouwxy]$"),v=/^(.+?[^aeiou])y$/,m=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,y=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,w=/^(.+?)e$/,T=/ll$/,S=new RegExp("^"+r+n+"[^aeiouwxy]$");return function(n){var r,E,C,k,N,j,A;if(n.length<3)return n;if(C=n.substr(0,1),"y"==C&&(n=C.toUpperCase()+n.substr(1)),k=u,N=c,k.test(n)?n=n.replace(k,"$1$2"):N.test(n)&&(n=n.replace(N,"$1$2")),k=l,N=f,k.test(n)){var L=k.exec(n);k=i,k.test(L[1])&&(k=d,n=n.replace(k,""))}else if(N.test(n)){var L=N.exec(n);r=L[1],N=a,N.test(r)&&(n=r,N=p,j=h,A=g,N.test(n)?n+="e":j.test(n)?(k=d,n=n.replace(k,"")):A.test(n)&&(n+="e"))}if(k=v,k.test(n)){var L=k.exec(n);r=L[1],n=r+"i"}if(k=m,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+e[E])}if(k=y,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+t[E])}if(k=x,N=b,k.test(n)){var L=k.exec(n);r=L[1],k=o,k.test(r)&&(n=r)}else if(N.test(n)){var L=N.exec(n);r=L[1]+L[2],N=o,N.test(r)&&(n=r)}if(k=w,k.test(n)){var L=k.exec(n);r=L[1],k=o,N=s,j=S,(k.test(r)||N.test(r)&&!j.test(r))&&(n=r)}return k=T,N=o,k.test(n)&&N.test(n)&&(k=d,n=n.replace(k,"")),"y"==C&&(n=C.toLowerCase()+n.substr(1)),n}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.stopWordFilter=function(t){if(-1===e.stopWordFilter.stopWords.indexOf(t))return t},e.stopWordFilter.stopWords=new e.SortedSet,e.stopWordFilter.stopWords.length=119,e.stopWordFilter.stopWords.elements=["","a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"],e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenStore=function(){this.root={docs:{}},this.length=0},e.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},e.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e[0],i=e.slice(1);return r in n||(n[r]={docs:{}}),0===i.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(i,t,n[r])},e.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},e.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return{};t=t[e[n]]}return t},e.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},e.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},e.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e[r]in n))return;n=n[e[r]]}delete n.docs[t]}},e.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},e.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,o=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if("object"==typeof e){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),o="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&-1!==(r=t(o[i],n))&&o[i].splice(r,1);return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if("object"===n)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,o=this.getListenersAsObject(e);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)n=o[i][r],!0===n.once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,r=function(){};n.addEventListener?r=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(r=function(e,n,r){e[n+r]=r.handleEvent?function(){var n=t(e);r.handleEvent.call(r,n)}:function(){var n=t(e);r.call(e,n)},e.attachEvent("on"+n,e[n+r])});var i=function(){};n.removeEventListener?i=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(i=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(r){e[t+n]=void 0}});var o={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(i(e))t=e;else if("number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(e){this.img=e}function u(e){this.src=e,p[e]=this}var c=e.jQuery,l=e.console,f=void 0!==l,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var r=n.nodeType;if(r&&(1===r||9===r||11===r))for(var i=n.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&f&&l.log("confirm",e,i),t.progress(e),n++,n===r&&t.complete(),!0}var t=this,n=0,r=this.images.length;if(this.hasAnyBroken=!1,!r)return void this.complete();for(var i=0;r>i;i++){var o=this.images[i];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},c&&(c.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=p[this.img.src]||new u(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},u.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},u.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),function(){if("ontouchstart"in window){var e,t,n,r,i,o,s={};e=function(e,t){return Math.abs(e[0]-t[0])>5||Math.abs(e[1]-t[1])>5},t=function(e){this.startXY=[e.touches[0].clientX,e.touches[0].clientY],this.threshold=!1},n=function(t){if(this.threshold)return!1;this.threshold=e(this.startXY,[t.touches[0].clientX,t.touches[0].clientY])},r=function(t){if(!this.threshold&&!e(this.startXY,[t.changedTouches[0].clientX,t.changedTouches[0].clientY])){var n=t.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.simulated=!0,t.target.dispatchEvent(r)}},i=function(e){var t=Date.now(),n=t-s.time,r=e.clientX,i=e.clientY,a=[Math.abs(s.x-r),Math.abs(s.y-i)],u=o(e.target,"A")||e.target,c=u.nodeName,l="A"===c,f=window.navigator.standalone&&l&&e.target.getAttribute("href");if(s.time=t,s.x=r,s.y=i,(!e.simulated&&(n<500||n<1500&&a[0]<50&&a[1]<50)||f)&&(e.preventDefault(),e.stopPropagation(),!f))return!1;f&&(window.location=u.getAttribute("href")),u&&u.classList&&(u.classList.add("energize-focus"),window.setTimeout(function(){u.classList.remove("energize-focus")},150))},o=function(e,t){for(var n=e;n!==document.body;){if(!n||n.nodeName===t)return n;n=n.parentNode}return null},document.addEventListener("touchstart",t,!1),document.addEventListener("touchmove",n,!1),document.addEventListener("touchend",r,!1),document.addEventListener("click",i,!0)}}(),function(){"use strict";function e(e){if(e&&""!==e){$(".lang-selector a").removeClass("active"),$(".lang-selector a[data-language-name='"+e+"']").addClass("active");for(var t=0;t<a.length;t++)$(".highlight.tab-"+a[t]).hide(),$(".lang-specific."+a[t]).hide();$(".highlight.tab-"+e).show(),$(".lang-specific."+e).show(),window.recacheHeights(),$(window.location.hash).get(0)&&$(window.location.hash).get(0).scrollIntoView(!0)}}function t(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):{})}function n(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return Array.isArray(n)?n.sort().map(function(e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"):""}function r(){if(location.search.length>=1){var e=t(location.search).language;if(e)return e;if(-1!=jQuery.inArray(location.search.substr(1),a))return location.search.substr(1)}return!1}function i(e){var r=t(location.search);return r.language?(r.language=e,n(r)):e}function o(e){if(history){var t=window.location.hash;t&&(t=t.replace(/^#+/,"")),history.pushState({},"","?"+i(e)+"#"+t),localStorage.setItem("language",e)}}function s(t){var n=localStorage.getItem("language");a=t;var i=r();i?(e(i),localStorage.setItem("language",i)):e(null!==n&&-1!=jQuery.inArray(n,a)?n:a[0])}var a=[];window.setupLanguages=s,window.activateLanguage=e,window.getLanguageFromQueryString=r,$(function(){$(".lang-selector a").on("click",function(){var t=$(this).data("language-name");return o(t),e(t),!1})})}(),function(){"use strict";function e(){$("h1, h2").each(function(){var e=$(this),t=e.nextUntil("h1, h2");f.add({id:e.prop("id"),title:e.text(),body:t.text()})}),t()}function t(){f.tokenStore.length>5e3&&(c=300)}function n(){s=$(".content"),a=$(".search-results"),$("#input-search").on("keyup",function(e){!function(){return function(e,t){clearTimeout(l),l=setTimeout(e,t)}}()(function(){r(e)},c)})}function r(e){var t=$("#input-search")[0];if(o(),a.addClass("visible"),27===e.keyCode&&(t.value=""),t.value){var n=f.search(t.value).filter(function(e){return e.score>1e-4});n.length?(a.empty(),$.each(n,function(e,t){var n=document.getElementById(t.ref);a.append("<li><a href='#"+t.ref+"'>"+$(n).text()+"</a></li>")}),i.call(t)):(a.html("<li></li>"),$(".search-results li").text('No Results Found for "'+t.value+'"'))}else o(),a.removeClass("visible")}function i(){this.value&&s.highlight(this.value,u)}function o(){s.unhighlight(u)}var s,a,u={element:"span",className:"search-highlight"},c=0,l=0,f=new lunr.Index;f.ref("id"),f.field("title",{boost:10}),f.field("body"),f.pipeline.add(lunr.trimmer,lunr.stopWordFilter),$(e),$(n)}(),function(){"use strict";function e(e,i,o,s){var a={},u=0,c=0,l=document.title,f=function(){a={},u=$(document).height(),c=$(window).height(),e.find(i).each(function(){var e=$(this).attr("href");"#"===e[0]&&(a[e]=$(e).offset().top)})},d=function(){var n=$(document).scrollTop()+s;n+c>=u&&(n=u+1e3);var r=null;for(var f in a)(a[f]<n&&a[f]>a[r]||null===r)&&(r=f);n!=s||t||(r=window.location.hash,t=!0);var d=e.find("[href='"+r+"']").first();if(!d.hasClass("active")){e.find(".active").removeClass("active"),e.find(".active-parent").removeClass("active-parent"),d.addClass("active"),d.parents(o).addClass("active").siblings(i).addClass("active-parent"),d.siblings(o).addClass("active"),e.find(o).filter(":not(.active)").slideUp(150),e.find(o).filter(".active").slideDown(150),window.history.replaceState&&window.history.replaceState(null,"",r);var p=d.data("title");void 0!==p&&p.length>0?document.title=p+" – "+l:document.title=l}};!function(){f(),d(),$("#nav-button").click(function(){return $(".toc-wrapper").toggleClass("open"),$("#nav-button").toggleClass("open"),!1}),$(".page-wrapper").click(r),$(".toc-link").click(r),e.find(i).click(function(){setTimeout(function(){d()},0)}),$(window).scroll(n(d,200)),$(window).resize(n(f,200))}(),window.recacheHeights=f,window.refreshToc=d}var t=!1,n=function(e,t){var n=!1;return function(){!1===n&&(setTimeout(function(){e(),n=!1},t),n=!0)}},r=function(){$(".toc-wrapper").removeClass("open"),$("#nav-button").removeClass("open")};window.loadToc=e}(),$(function(){loadToc($("#toc"),".toc-link",".toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6",10),setupLanguages($("body").data("languages")),$(".content").imagesLoaded(function(){window.recacheHeights(),window.refreshToc()})}),window.onpopstate=function(){activateLanguage(getLanguageFromQueryString())};</script>
  1317. <meta name="theme-color" content="#F3F7F9" />
  1318. </head>
  1319. <body data-languages="[&quot;shell&quot;,&quot;http&quot;,&quot;javascript&quot;,&quot;javascript--nodejs&quot;,&quot;ruby&quot;,&quot;python&quot;,&quot;java&quot;,&quot;go&quot;]">
  1320. <a href="#" id="nav-button">
  1321. <span>
  1322. NAV
  1323. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1324. </span>
  1325. </a>
  1326. <div class="toc-wrapper">
  1327. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAYAAABxutG8AAAG6klEQVR4Ad3aA4xkSxcA4LvefbZt27Zt27Zt27Zt27bttWe2R9+vTionlZs7760m/5eMutDVXV11T507RUeD7rgAL+AQzIlx/mYfp6OGs4oOAp3QEz3Er65FR4NO2EL0GhZtZ/t50IhWXFJ0EFgDd+LW9OUWHFd0RJgSr4lewGTVbZ2BFjRh16KDwHNKjEynE+MkfIz7MP0o3pJuEQ3FChXtxsdLgEYs+385CVgQ98rVcAy6jaIt6Vq5DSraLYM/AMMxbdFB4NmRmgRMhtXyjgxATXQ7xs37sA7WxQRFBXTDzXLrVLTbXTK0qNbxJwGTYVe8IPoFF2F3fC96BZPnffkG8AQ2ROeKre4JUV8sVd5GL1wn+an4BzAJFsE62Aa7YM1Ubgbsgz2xF3ajOsLBS397ErAj3kKrpBVnYf56nfXQKLqAOCgsjKGSRhyDTiXPPQs+Fb1F+faCKfCJ5NmindAT2+FuvIufMBBNgA8wSb3u/nIzFBVwIHrjN/wqfT2ZV2Z6vI5W0ZdYHF3Svu1EUSO2yvt0DlpEr5etBiyFmuiKihc5q+jqoh1wFP5ETbkfMG+9/pFys9XL5sI9eLH+9TKextToivHlX73SYOiMA+SacTe6xMGbCI+LvsHc+ZbmHbmLyVcCOmMv0WBsWPFmbik6qryuzlgLfbXP95irfBLMXi/bGTW5tYsqmAp3yfXD/iVtZkQ/0XN5PRtgmNxG5eFpNrmfVO27uEy0ZUm9qXGt9mlDA55XDzawG2oYjCFoxLRpC9cgt1bVBIyH5+V+oXwGsZqoBafFOnrgMrkRmKv8oJbZr6iAj0VL53XMibeU+wtP4WIcgm2xERaKF27rSdHemug0spNwhtwgLF/R7lxRA/EwhWnRW+49TF3S76Gi34t2kJsulpsDf8oNwaVYETNgYnQv/gHshMaq0DqDPnJbFBXwiah/EYSlO0h0c1lSDn9Vb1sR5ifKgw0DRV9h62IUwjrohza0og2wUFXDBtEtRQVMJHdffur1AT7EANGRJf1uIXqpaAfsIWpIZSbFx4A2fDSK3/wA3dAT3du9onCHaNLqNraV2yq/ZmjAtaJh2KSk3w8kfbEoZsKyWBiTlLS7RvRlusi7GjAYJ2CidqZmNsEGWBVz5uGwlbEptsYa+YfUWtgOUxVVMDsGp8FXw30yMVWBD/E6zhN9jwVKVsEIyXd4AZ9hdzyBT3EFxottvS96qv74+oBvqE7mYUu8gB9wDn5AX3yHK9ELe+Nb9MYwtOCG1Icd8C4Ghg9nFayEgXi3nfWHi96J5VYA7CgPN9/G+HnKwXOiNsB+GBf3AdrwNWnS0Si6Gl3wM77GHBWvZwI8ghGAlzAefhcthXvktq33c5g4luFhlVTBdNihup755I6JdTyF3zEhfhQ9nPdpczTKDUQnTIpXJc04OJ1xtIgOx8EYWrUCMCmelDThYEyL/qIV8KrcLFgdraIvMFcxqmFfuYVTueVQw26YXtSCU/JknVfk4HJ0wowYKmnD7mnVaRXtiYHYvzpl7lzRX5gSO6MxTo4Z8LXcePgKI0RPolcxquEuUT9MmNIBrsEf6IGlRSOwWezPIcrUUxXYVPSC+ovDrvkkeAYNVUEGFgYgJv5wu+g1dMcg0Yc4Fp/jCUkbLowXe4sVowI+Fj2iHvNjAdSwS/3v7UXDMU88QGlTpn4Bx2eSq0gRDh6Va0Ir7qX8JhMekNseU+FT0Tn1NjXRYxiK9fCBZBi2Kerw3ijZmjBdvsc7AV3RDVfgS/XTME4UDU596YJfAM1oEfXGdDgD8AmWi+OxNP5UDi4oi9flYDysj49QAwzBxhgPTaIG3IS50Srpk7Krlse7xaiAxfBnyZYxH9qwY6rvYtEP6UDjgTRYp+JL0a84AVeU5IHGxVVoUe3IkADMxpadL86uf/UDfIMZMBua5GbBRqKvY6BixWJUwLxxEgzFEuiG9/EEepbngbxVf/wqwGBshe54C/l2VAIn4hR8I6phqNyZmDzF8p6Suwzj437sjAGAF1Mor1n0Qb1sF9Gt6V9d3FiMSnhSMgjr4UH8iWnypJm/JL/gfkA/UsIPW8tdnz+/cXAXTsX0+EpuPfwp9yFewnOYBu+IDsY2uAiLYhBacVk6pGojT8FgddHR6IQrMEsxKmECfJRvHaYrqb8mBojexqwlCbBG0cWYFfPgZPyFrdMtTd/LzYAp8bzc1+kumanxnWQY3k6Bhh8BL+MUXCi3ULol6yvJK7g0vxk16s8L9+ModK6+aeQ03Ied0akiAXYMPsEwSR9cnJ+2HYs38DN6o2+MwGyHj9APt2GyfGU5Cg/gVHSNK9lX+BIroSt2xWW4C5divPiB8xUa8H3MAJf7Fykvx9WyNCXUAAAAAElFTkSuQmCC" class="logo" alt="Logo">
  1328. <div class="lang-selector">
  1329. <a href="#" data-language-name="shell">Shell</a>
  1330. <a href="#" data-language-name="http">HTTP</a>
  1331. <a href="#" data-language-name="javascript">JavaScript</a>
  1332. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1333. <a href="#" data-language-name="ruby">Ruby</a>
  1334. <a href="#" data-language-name="python">Python</a>
  1335. <a href="#" data-language-name="java">Java</a>
  1336. <a href="#" data-language-name="go">Go</a>
  1337. </div>
  1338. <div class="search">
  1339. <input type="text" class="search" id="input-search" placeholder="Search">
  1340. </div>
  1341. <ul class="search-results"></ul>
  1342. <div id="toc" class="toc-list-h1">
  1343. <ul class="toc-list-h1">
  1344. <li>
  1345. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v3.96">Wekan REST API v3.96</a>
  1346. </li>
  1347. <li>
  1348. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1349. </li>
  1350. <li>
  1351. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1352. </li>
  1353. <li>
  1354. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1355. <ul class="toc-list-h2">
  1356. <li>
  1357. <a href="#login" class="toc-h2 toc-link" data-title="login">login</a>
  1358. </li>
  1359. <li>
  1360. <a href="#register" class="toc-h2 toc-link" data-title="register">register</a>
  1361. </li>
  1362. </ul>
  1363. </li>
  1364. <li>
  1365. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1366. <ul class="toc-list-h2">
  1367. <li>
  1368. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="get_public_boards">get_public_boards</a>
  1369. </li>
  1370. <li>
  1371. <a href="#new_board" class="toc-h2 toc-link" data-title="new_board">new_board</a>
  1372. </li>
  1373. <li>
  1374. <a href="#get_board" class="toc-h2 toc-link" data-title="get_board">get_board</a>
  1375. </li>
  1376. <li>
  1377. <a href="#delete_board" class="toc-h2 toc-link" data-title="delete_board">delete_board</a>
  1378. </li>
  1379. <li>
  1380. <a href="#export" class="toc-h2 toc-link" data-title="export">export</a>
  1381. </li>
  1382. <li>
  1383. <a href="#add_board_label" class="toc-h2 toc-link" data-title="add_board_label">add_board_label</a>
  1384. </li>
  1385. <li>
  1386. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="set_board_member_permission">set_board_member_permission</a>
  1387. </li>
  1388. <li>
  1389. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="get_boards_from_user">get_boards_from_user</a>
  1390. </li>
  1391. </ul>
  1392. </li>
  1393. <li>
  1394. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1395. <ul class="toc-list-h2">
  1396. <li>
  1397. <a href="#get_board_card_checklists" class="toc-h2 toc-link" data-title="get_board_card_checklists">get_board_card_checklists</a>
  1398. </li>
  1399. <li>
  1400. <a href="#post_board_card_checklists" class="toc-h2 toc-link" data-title="post_board_card_checklists">post_board_card_checklists</a>
  1401. </li>
  1402. <li>
  1403. <a href="#get_board_card_checklist" class="toc-h2 toc-link" data-title="get_board_card_checklist">get_board_card_checklist</a>
  1404. </li>
  1405. <li>
  1406. <a href="#delete_board_card_checklist" class="toc-h2 toc-link" data-title="delete_board_card_checklist">delete_board_card_checklist</a>
  1407. </li>
  1408. </ul>
  1409. </li>
  1410. <li>
  1411. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1412. <ul class="toc-list-h2">
  1413. <li>
  1414. <a href="#get_board_card_checklist_item" class="toc-h2 toc-link" data-title="get_board_card_checklist_item">get_board_card_checklist_item</a>
  1415. </li>
  1416. <li>
  1417. <a href="#put_board_card_checklist_item" class="toc-h2 toc-link" data-title="put_board_card_checklist_item">put_board_card_checklist_item</a>
  1418. </li>
  1419. <li>
  1420. <a href="#delete_board_card_checklist_item" class="toc-h2 toc-link" data-title="delete_board_card_checklist_item">delete_board_card_checklist_item</a>
  1421. </li>
  1422. </ul>
  1423. </li>
  1424. <li>
  1425. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1426. <ul class="toc-list-h2">
  1427. <li>
  1428. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="get_all_comments">get_all_comments</a>
  1429. </li>
  1430. <li>
  1431. <a href="#post_board_card_comments" class="toc-h2 toc-link" data-title="post_board_card_comments">post_board_card_comments</a>
  1432. </li>
  1433. <li>
  1434. <a href="#get_board_card_comment" class="toc-h2 toc-link" data-title="get_board_card_comment">get_board_card_comment</a>
  1435. </li>
  1436. <li>
  1437. <a href="#delete_board_card_comment" class="toc-h2 toc-link" data-title="delete_board_card_comment">delete_board_card_comment</a>
  1438. </li>
  1439. </ul>
  1440. </li>
  1441. <li>
  1442. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1443. <ul class="toc-list-h2">
  1444. <li>
  1445. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="get_all_custom_fields">get_all_custom_fields</a>
  1446. </li>
  1447. <li>
  1448. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="new_custom_field">new_custom_field</a>
  1449. </li>
  1450. <li>
  1451. <a href="#get_board_customfield" class="toc-h2 toc-link" data-title="get_board_customField">get_board_customField</a>
  1452. </li>
  1453. <li>
  1454. <a href="#delete_board_customfield" class="toc-h2 toc-link" data-title="delete_board_customField">delete_board_customField</a>
  1455. </li>
  1456. </ul>
  1457. </li>
  1458. <li>
  1459. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1460. <ul class="toc-list-h2">
  1461. <li>
  1462. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="get_all_integrations">get_all_integrations</a>
  1463. </li>
  1464. <li>
  1465. <a href="#new_integration" class="toc-h2 toc-link" data-title="new_integration">new_integration</a>
  1466. </li>
  1467. <li>
  1468. <a href="#get_integration" class="toc-h2 toc-link" data-title="get_integration">get_integration</a>
  1469. </li>
  1470. <li>
  1471. <a href="#edit_integration" class="toc-h2 toc-link" data-title="edit_integration">edit_integration</a>
  1472. </li>
  1473. <li>
  1474. <a href="#delete_integration" class="toc-h2 toc-link" data-title="delete_integration">delete_integration</a>
  1475. </li>
  1476. <li>
  1477. <a href="#delete_board_int_activities" class="toc-h2 toc-link" data-title="delete_board_int_activities">delete_board_int_activities</a>
  1478. </li>
  1479. <li>
  1480. <a href="#post_board_int_activities" class="toc-h2 toc-link" data-title="post_board_int_activities">post_board_int_activities</a>
  1481. </li>
  1482. </ul>
  1483. </li>
  1484. <li>
  1485. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1486. <ul class="toc-list-h2">
  1487. <li>
  1488. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="get_all_lists">get_all_lists</a>
  1489. </li>
  1490. <li>
  1491. <a href="#new_list" class="toc-h2 toc-link" data-title="new_list">new_list</a>
  1492. </li>
  1493. <li>
  1494. <a href="#get_list" class="toc-h2 toc-link" data-title="get_list">get_list</a>
  1495. </li>
  1496. <li>
  1497. <a href="#delete_list" class="toc-h2 toc-link" data-title="delete_list">delete_list</a>
  1498. </li>
  1499. </ul>
  1500. </li>
  1501. <li>
  1502. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1503. <ul class="toc-list-h2">
  1504. <li>
  1505. <a href="#add_board_member" class="toc-h2 toc-link" data-title="add_board_member">add_board_member</a>
  1506. </li>
  1507. <li>
  1508. <a href="#post_board_user_remove" class="toc-h2 toc-link" data-title="post_board_user_remove">post_board_user_remove</a>
  1509. </li>
  1510. <li>
  1511. <a href="#get_current_user" class="toc-h2 toc-link" data-title="get_current_user">get_current_user</a>
  1512. </li>
  1513. <li>
  1514. <a href="#get_all_users" class="toc-h2 toc-link" data-title="get_all_users">get_all_users</a>
  1515. </li>
  1516. <li>
  1517. <a href="#new_user" class="toc-h2 toc-link" data-title="new_user">new_user</a>
  1518. </li>
  1519. <li>
  1520. <a href="#get_user" class="toc-h2 toc-link" data-title="get_user">get_user</a>
  1521. </li>
  1522. <li>
  1523. <a href="#edit_user" class="toc-h2 toc-link" data-title="edit_user">edit_user</a>
  1524. </li>
  1525. <li>
  1526. <a href="#delete_user" class="toc-h2 toc-link" data-title="delete_user">delete_user</a>
  1527. </li>
  1528. </ul>
  1529. </li>
  1530. <li>
  1531. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1532. <ul class="toc-list-h2">
  1533. <li>
  1534. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="get_all_swimlanes">get_all_swimlanes</a>
  1535. </li>
  1536. <li>
  1537. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="new_swimlane">new_swimlane</a>
  1538. </li>
  1539. <li>
  1540. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="get_swimlane">get_swimlane</a>
  1541. </li>
  1542. <li>
  1543. <a href="#delete_board_swimlane" class="toc-h2 toc-link" data-title="delete_board_swimlane">delete_board_swimlane</a>
  1544. </li>
  1545. </ul>
  1546. </li>
  1547. <li>
  1548. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1549. <ul class="toc-list-h2">
  1550. <li>
  1551. <a href="#tocsboards" class="toc-h2 toc-link" data-title="Boards">Boards</a>
  1552. </li>
  1553. <li>
  1554. <a href="#tocsboardslabels" class="toc-h2 toc-link" data-title="BoardsLabels">BoardsLabels</a>
  1555. </li>
  1556. <li>
  1557. <a href="#tocsboardsmembers" class="toc-h2 toc-link" data-title="BoardsMembers">BoardsMembers</a>
  1558. </li>
  1559. <li>
  1560. <a href="#tocscardcomments" class="toc-h2 toc-link" data-title="CardComments">CardComments</a>
  1561. </li>
  1562. <li>
  1563. <a href="#tocschecklistitems" class="toc-h2 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1564. </li>
  1565. <li>
  1566. <a href="#tocschecklists" class="toc-h2 toc-link" data-title="Checklists">Checklists</a>
  1567. </li>
  1568. <li>
  1569. <a href="#tocscustomfields" class="toc-h2 toc-link" data-title="CustomFields">CustomFields</a>
  1570. </li>
  1571. <li>
  1572. <a href="#tocscustomfieldssettings" class="toc-h2 toc-link" data-title="CustomFieldsSettings">CustomFieldsSettings</a>
  1573. </li>
  1574. <li>
  1575. <a href="#tocscustomfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="CustomFieldsSettingsDropdownitems">CustomFieldsSettingsDropdownitems</a>
  1576. </li>
  1577. <li>
  1578. <a href="#tocsintegrations" class="toc-h2 toc-link" data-title="Integrations">Integrations</a>
  1579. </li>
  1580. <li>
  1581. <a href="#tocslists" class="toc-h2 toc-link" data-title="Lists">Lists</a>
  1582. </li>
  1583. <li>
  1584. <a href="#tocslistswiplimit" class="toc-h2 toc-link" data-title="ListsWiplimit">ListsWiplimit</a>
  1585. </li>
  1586. <li>
  1587. <a href="#tocsswimlanes" class="toc-h2 toc-link" data-title="Swimlanes">Swimlanes</a>
  1588. </li>
  1589. <li>
  1590. <a href="#tocsusers" class="toc-h2 toc-link" data-title="Users">Users</a>
  1591. </li>
  1592. <li>
  1593. <a href="#tocsusersemails" class="toc-h2 toc-link" data-title="UsersEmails">UsersEmails</a>
  1594. </li>
  1595. <li>
  1596. <a href="#tocsusersprofile" class="toc-h2 toc-link" data-title="UsersProfile">UsersProfile</a>
  1597. </li>
  1598. </ul>
  1599. </li>
  1600. </ul>
  1601. </div>
  1602. <ul class="toc-footer">
  1603. </ul>
  1604. </div>
  1605. <div class="page-wrapper">
  1606. <div class="dark-box"></div>
  1607. <div class="content">
  1608. <h1 id="wekan-rest-api">Wekan REST API v3.96</h1>
  1609. <blockquote>
  1610. <p>Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.</p>
  1611. </blockquote>
  1612. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1613. <p>If you are an end-user and not a dev or a tester, <a href="https://github.com/wekan/wekan/issues/new">create an issue</a> to request new APIs.</p>
  1614. <blockquote>
  1615. <p>All API calls in the documentation are made using <code>curl</code>. However, you are free to use Java / Python / PHP / Golang / Ruby / Swift / Objective-C / Rust / Scala / C# or any other programming languages.</p>
  1616. </blockquote>
  1617. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1618. <p>When calling a production Wekan server, ensure it is running via HTTPS and has a valid SSL Certificate. The login method requires you to post your username and password in plaintext, which is why we highly suggest only calling the REST login api over HTTPS. Also, few things to note:</p>
  1619. <ul>
  1620. <li>Only call via HTTPS</li>
  1621. <li>Implement a timed authorization token expiration strategy</li>
  1622. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1623. </ul>
  1624. <h1 id="authentication">Authentication</h1>
  1625. <ul>
  1626. <li>API Key (UserSecurity)
  1627. <ul>
  1628. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1629. </ul>
  1630. </li>
  1631. </ul>
  1632. <h1 id="wekan-rest-api-login">Login</h1>
  1633. <h2 id="login">login</h2>
  1634. <p><a id="opIdlogin"></a></p>
  1635. <blockquote>
  1636. <p>Code samples</p>
  1637. </blockquote>
  1638. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1639. curl -X POST /users/login \
  1640. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1641. -H <span class="hljs-string">'Accept: */*'</span>
  1642. </code></pre>
  1643. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/login</span> HTTP/1.1
  1644. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1645. <span class="hljs-attribute">Accept</span>: */*
  1646. <span class="undefined"></span></span></code></pre>
  1647. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1648. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1649. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1650. };
  1651. $.ajax({
  1652. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/login'</span>,
  1653. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1654. <span class="hljs-attr">headers</span>: headers,
  1655. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1656. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1657. }
  1658. })
  1659. </code></pre>
  1660. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  1661. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1662. "username": "string",
  1663. "password": "pa$$word"
  1664. }'</span>;
  1665. <span class="hljs-keyword">const</span> headers = {
  1666. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1667. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1668. };
  1669. fetch(<span class="hljs-string">'/users/login'</span>,
  1670. {
  1671. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1672. <span class="hljs-attr">body</span>: inputBody,
  1673. <span class="hljs-attr">headers</span>: headers
  1674. })
  1675. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1676. <span class="hljs-keyword">return</span> res.json();
  1677. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1678. <span class="hljs-built_in">console</span>.log(body);
  1679. });
  1680. </code></pre>
  1681. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1682. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1683. headers = {
  1684. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1685. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1686. }
  1687. result = RestClient.post <span class="hljs-string">'/users/login'</span>,
  1688. <span class="hljs-symbol">params:</span> {
  1689. }, <span class="hljs-symbol">headers:</span> headers
  1690. p JSON.parse(result)
  1691. </code></pre>
  1692. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1693. headers = {
  1694. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1695. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1696. }
  1697. r = requests.post(<span class="hljs-string">'/users/login'</span>, params={
  1698. }, headers = headers)
  1699. <span class="hljs-keyword">print</span> r.json()
  1700. </code></pre>
  1701. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/login"</span>);
  1702. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1703. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1704. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1705. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1706. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1707. String inputLine;
  1708. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1709. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1710. response.append(inputLine);
  1711. }
  1712. in.close();
  1713. System.out.println(response.toString());
  1714. </code></pre>
  1715. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1716. <span class="hljs-keyword">import</span> (
  1717. <span class="hljs-string">"bytes"</span>
  1718. <span class="hljs-string">"net/http"</span>
  1719. )
  1720. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1721. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1722. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  1723. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  1724. }
  1725. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1726. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/login"</span>, data)
  1727. req.Header = headers
  1728. client := &amp;http.Client{}
  1729. resp, err := client.Do(req)
  1730. <span class="hljs-comment">// ...</span>
  1731. }
  1732. </code></pre>
  1733. <p><code>POST /users/login</code></p>
  1734. <p><em>Login with REST API</em></p>
  1735. <blockquote>
  1736. <p>Body parameter</p>
  1737. </blockquote>
  1738. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1739. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1740. </code></pre>
  1741. <h3 id="login-parameters">Parameters</h3>
  1742. <table>
  1743. <thead>
  1744. <tr>
  1745. <th>Name</th>
  1746. <th>In</th>
  1747. <th>Type</th>
  1748. <th>Required</th>
  1749. <th>Description</th>
  1750. </tr>
  1751. </thead>
  1752. <tbody>
  1753. <tr>
  1754. <td>body</td>
  1755. <td>body</td>
  1756. <td>object</td>
  1757. <td>false</td>
  1758. <td>none</td>
  1759. </tr>
  1760. <tr>
  1761. <td>» username</td>
  1762. <td>body</td>
  1763. <td>string</td>
  1764. <td>true</td>
  1765. <td>Your username</td>
  1766. </tr>
  1767. <tr>
  1768. <td>» password</td>
  1769. <td>body</td>
  1770. <td>string(password)</td>
  1771. <td>true</td>
  1772. <td>Your password</td>
  1773. </tr>
  1774. </tbody>
  1775. </table>
  1776. <blockquote>
  1777. <p>Example responses</p>
  1778. </blockquote>
  1779. <blockquote>
  1780. <p>200 Response</p>
  1781. </blockquote>
  1782. <h3 id="login-responses">Responses</h3>
  1783. <table>
  1784. <thead>
  1785. <tr>
  1786. <th>Status</th>
  1787. <th>Meaning</th>
  1788. <th>Description</th>
  1789. <th>Schema</th>
  1790. </tr>
  1791. </thead>
  1792. <tbody>
  1793. <tr>
  1794. <td>200</td>
  1795. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1796. <td>Successful authentication</td>
  1797. <td>Inline</td>
  1798. </tr>
  1799. <tr>
  1800. <td>400</td>
  1801. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1802. <td>Error in authentication</td>
  1803. <td>Inline</td>
  1804. </tr>
  1805. <tr>
  1806. <td>default</td>
  1807. <td>Default</td>
  1808. <td>Error in authentication</td>
  1809. <td>None</td>
  1810. </tr>
  1811. </tbody>
  1812. </table>
  1813. <h3 id="login-responseschema">Response Schema</h3>
  1814. <p>Status Code <strong>200</strong></p>
  1815. <table>
  1816. <thead>
  1817. <tr>
  1818. <th>Name</th>
  1819. <th>Type</th>
  1820. <th>Required</th>
  1821. <th>Restrictions</th>
  1822. <th>Description</th>
  1823. </tr>
  1824. </thead>
  1825. <tbody>
  1826. <tr>
  1827. <td>» id</td>
  1828. <td>string</td>
  1829. <td>false</td>
  1830. <td>none</td>
  1831. <td>none</td>
  1832. </tr>
  1833. <tr>
  1834. <td>» token</td>
  1835. <td>string</td>
  1836. <td>false</td>
  1837. <td>none</td>
  1838. <td>none</td>
  1839. </tr>
  1840. <tr>
  1841. <td>» tokenExpires</td>
  1842. <td>string</td>
  1843. <td>false</td>
  1844. <td>none</td>
  1845. <td>none</td>
  1846. </tr>
  1847. </tbody>
  1848. </table>
  1849. <p>Status Code <strong>400</strong></p>
  1850. <table>
  1851. <thead>
  1852. <tr>
  1853. <th>Name</th>
  1854. <th>Type</th>
  1855. <th>Required</th>
  1856. <th>Restrictions</th>
  1857. <th>Description</th>
  1858. </tr>
  1859. </thead>
  1860. <tbody>
  1861. <tr>
  1862. <td>» error</td>
  1863. <td>number</td>
  1864. <td>false</td>
  1865. <td>none</td>
  1866. <td>none</td>
  1867. </tr>
  1868. <tr>
  1869. <td>» reason</td>
  1870. <td>string</td>
  1871. <td>false</td>
  1872. <td>none</td>
  1873. <td>none</td>
  1874. </tr>
  1875. </tbody>
  1876. </table>
  1877. <aside class="success">
  1878. This operation does not require authentication
  1879. </aside>
  1880. <h2 id="register">register</h2>
  1881. <p><a id="opIdregister"></a></p>
  1882. <blockquote>
  1883. <p>Code samples</p>
  1884. </blockquote>
  1885. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1886. curl -X POST /users/register \
  1887. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1888. -H <span class="hljs-string">'Accept: */*'</span>
  1889. </code></pre>
  1890. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> HTTP/1.1
  1891. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1892. <span class="hljs-attribute">Accept</span>: */*
  1893. <span class="undefined"></span></span></code></pre>
  1894. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1895. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1896. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1897. };
  1898. $.ajax({
  1899. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/register'</span>,
  1900. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1901. <span class="hljs-attr">headers</span>: headers,
  1902. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1903. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1904. }
  1905. })
  1906. </code></pre>
  1907. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  1908. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1909. "username": "string",
  1910. "password": "pa$$word",
  1911. "email": "string"
  1912. }'</span>;
  1913. <span class="hljs-keyword">const</span> headers = {
  1914. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1915. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1916. };
  1917. fetch(<span class="hljs-string">'/users/register'</span>,
  1918. {
  1919. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1920. <span class="hljs-attr">body</span>: inputBody,
  1921. <span class="hljs-attr">headers</span>: headers
  1922. })
  1923. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1924. <span class="hljs-keyword">return</span> res.json();
  1925. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1926. <span class="hljs-built_in">console</span>.log(body);
  1927. });
  1928. </code></pre>
  1929. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1930. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1931. headers = {
  1932. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1933. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1934. }
  1935. result = RestClient.post <span class="hljs-string">'/users/register'</span>,
  1936. <span class="hljs-symbol">params:</span> {
  1937. }, <span class="hljs-symbol">headers:</span> headers
  1938. p JSON.parse(result)
  1939. </code></pre>
  1940. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1941. headers = {
  1942. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1943. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1944. }
  1945. r = requests.post(<span class="hljs-string">'/users/register'</span>, params={
  1946. }, headers = headers)
  1947. <span class="hljs-keyword">print</span> r.json()
  1948. </code></pre>
  1949. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/register"</span>);
  1950. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1951. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1952. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1953. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1954. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1955. String inputLine;
  1956. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1957. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1958. response.append(inputLine);
  1959. }
  1960. in.close();
  1961. System.out.println(response.toString());
  1962. </code></pre>
  1963. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1964. <span class="hljs-keyword">import</span> (
  1965. <span class="hljs-string">"bytes"</span>
  1966. <span class="hljs-string">"net/http"</span>
  1967. )
  1968. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1969. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1970. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  1971. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  1972. }
  1973. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1974. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/register"</span>, data)
  1975. req.Header = headers
  1976. client := &amp;http.Client{}
  1977. resp, err := client.Do(req)
  1978. <span class="hljs-comment">// ...</span>
  1979. }
  1980. </code></pre>
  1981. <p><code>POST /users/register</code></p>
  1982. <p><em>Register with REST API</em></p>
  1983. <p>Notes:</p>
  1984. <ul>
  1985. <li>You will need to provide the token for any of the authenticated methods.</li>
  1986. </ul>
  1987. <blockquote>
  1988. <p>Body parameter</p>
  1989. </blockquote>
  1990. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1991. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1992. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  1993. </code></pre>
  1994. <h3 id="register-parameters">Parameters</h3>
  1995. <table>
  1996. <thead>
  1997. <tr>
  1998. <th>Name</th>
  1999. <th>In</th>
  2000. <th>Type</th>
  2001. <th>Required</th>
  2002. <th>Description</th>
  2003. </tr>
  2004. </thead>
  2005. <tbody>
  2006. <tr>
  2007. <td>body</td>
  2008. <td>body</td>
  2009. <td>object</td>
  2010. <td>false</td>
  2011. <td>none</td>
  2012. </tr>
  2013. <tr>
  2014. <td>» username</td>
  2015. <td>body</td>
  2016. <td>string</td>
  2017. <td>true</td>
  2018. <td>Your username</td>
  2019. </tr>
  2020. <tr>
  2021. <td>» password</td>
  2022. <td>body</td>
  2023. <td>string(password)</td>
  2024. <td>true</td>
  2025. <td>Your password</td>
  2026. </tr>
  2027. <tr>
  2028. <td>» email</td>
  2029. <td>body</td>
  2030. <td>string</td>
  2031. <td>true</td>
  2032. <td>Your email</td>
  2033. </tr>
  2034. </tbody>
  2035. </table>
  2036. <blockquote>
  2037. <p>Example responses</p>
  2038. </blockquote>
  2039. <blockquote>
  2040. <p>200 Response</p>
  2041. </blockquote>
  2042. <h3 id="register-responses">Responses</h3>
  2043. <table>
  2044. <thead>
  2045. <tr>
  2046. <th>Status</th>
  2047. <th>Meaning</th>
  2048. <th>Description</th>
  2049. <th>Schema</th>
  2050. </tr>
  2051. </thead>
  2052. <tbody>
  2053. <tr>
  2054. <td>200</td>
  2055. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2056. <td>Successful registration</td>
  2057. <td>Inline</td>
  2058. </tr>
  2059. <tr>
  2060. <td>400</td>
  2061. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2062. <td>Error in registration</td>
  2063. <td>Inline</td>
  2064. </tr>
  2065. <tr>
  2066. <td>default</td>
  2067. <td>Default</td>
  2068. <td>Error in registration</td>
  2069. <td>None</td>
  2070. </tr>
  2071. </tbody>
  2072. </table>
  2073. <h3 id="register-responseschema">Response Schema</h3>
  2074. <p>Status Code <strong>200</strong></p>
  2075. <table>
  2076. <thead>
  2077. <tr>
  2078. <th>Name</th>
  2079. <th>Type</th>
  2080. <th>Required</th>
  2081. <th>Restrictions</th>
  2082. <th>Description</th>
  2083. </tr>
  2084. </thead>
  2085. <tbody>
  2086. <tr>
  2087. <td>» id</td>
  2088. <td>string</td>
  2089. <td>false</td>
  2090. <td>none</td>
  2091. <td>none</td>
  2092. </tr>
  2093. <tr>
  2094. <td>» token</td>
  2095. <td>string</td>
  2096. <td>false</td>
  2097. <td>none</td>
  2098. <td>none</td>
  2099. </tr>
  2100. <tr>
  2101. <td>» tokenExpires</td>
  2102. <td>string</td>
  2103. <td>false</td>
  2104. <td>none</td>
  2105. <td>none</td>
  2106. </tr>
  2107. </tbody>
  2108. </table>
  2109. <p>Status Code <strong>400</strong></p>
  2110. <table>
  2111. <thead>
  2112. <tr>
  2113. <th>Name</th>
  2114. <th>Type</th>
  2115. <th>Required</th>
  2116. <th>Restrictions</th>
  2117. <th>Description</th>
  2118. </tr>
  2119. </thead>
  2120. <tbody>
  2121. <tr>
  2122. <td>» error</td>
  2123. <td>number</td>
  2124. <td>false</td>
  2125. <td>none</td>
  2126. <td>none</td>
  2127. </tr>
  2128. <tr>
  2129. <td>» reason</td>
  2130. <td>string</td>
  2131. <td>false</td>
  2132. <td>none</td>
  2133. <td>none</td>
  2134. </tr>
  2135. </tbody>
  2136. </table>
  2137. <aside class="success">
  2138. This operation does not require authentication
  2139. </aside>
  2140. <h1 id="wekan-rest-api-boards">Boards</h1>
  2141. <h2 id="get_public_boards">get_public_boards</h2>
  2142. <p><a id="opIdget_public_boards"></a></p>
  2143. <blockquote>
  2144. <p>Code samples</p>
  2145. </blockquote>
  2146. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2147. curl -X GET /api/boards \
  2148. -H <span class="hljs-string">'Accept: application/json'</span> \
  2149. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2150. </code></pre>
  2151. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards</span> HTTP/1.1
  2152. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2153. <span class="undefined"></span></span></code></pre>
  2154. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2155. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2156. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2157. };
  2158. $.ajax({
  2159. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards'</span>,
  2160. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2161. <span class="hljs-attr">headers</span>: headers,
  2162. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2163. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2164. }
  2165. })
  2166. </code></pre>
  2167. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2168. <span class="hljs-keyword">const</span> headers = {
  2169. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2170. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2171. };
  2172. fetch(<span class="hljs-string">'/api/boards'</span>,
  2173. {
  2174. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2175. <span class="hljs-attr">headers</span>: headers
  2176. })
  2177. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2178. <span class="hljs-keyword">return</span> res.json();
  2179. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2180. <span class="hljs-built_in">console</span>.log(body);
  2181. });
  2182. </code></pre>
  2183. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2184. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2185. headers = {
  2186. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2187. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2188. }
  2189. result = RestClient.get <span class="hljs-string">'/api/boards'</span>,
  2190. <span class="hljs-symbol">params:</span> {
  2191. }, <span class="hljs-symbol">headers:</span> headers
  2192. p JSON.parse(result)
  2193. </code></pre>
  2194. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2195. headers = {
  2196. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2197. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2198. }
  2199. r = requests.get(<span class="hljs-string">'/api/boards'</span>, params={
  2200. }, headers = headers)
  2201. <span class="hljs-keyword">print</span> r.json()
  2202. </code></pre>
  2203. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards"</span>);
  2204. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2205. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2206. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2207. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2208. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2209. String inputLine;
  2210. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2211. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2212. response.append(inputLine);
  2213. }
  2214. in.close();
  2215. System.out.println(response.toString());
  2216. </code></pre>
  2217. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2218. <span class="hljs-keyword">import</span> (
  2219. <span class="hljs-string">"bytes"</span>
  2220. <span class="hljs-string">"net/http"</span>
  2221. )
  2222. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2223. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2224. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2225. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2226. }
  2227. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2228. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards"</span>, data)
  2229. req.Header = headers
  2230. client := &amp;http.Client{}
  2231. resp, err := client.Do(req)
  2232. <span class="hljs-comment">// ...</span>
  2233. }
  2234. </code></pre>
  2235. <p><code>GET /api/boards</code></p>
  2236. <p><em>Get all public boards</em></p>
  2237. <blockquote>
  2238. <p>Example responses</p>
  2239. </blockquote>
  2240. <blockquote>
  2241. <p>200 Response</p>
  2242. </blockquote>
  2243. <pre class="highlight tab tab-json"><code>[
  2244. {
  2245. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2246. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  2247. }
  2248. ]
  2249. </code></pre>
  2250. <h3 id="get_public_boards-responses">Responses</h3>
  2251. <table>
  2252. <thead>
  2253. <tr>
  2254. <th>Status</th>
  2255. <th>Meaning</th>
  2256. <th>Description</th>
  2257. <th>Schema</th>
  2258. </tr>
  2259. </thead>
  2260. <tbody>
  2261. <tr>
  2262. <td>200</td>
  2263. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2264. <td>200 response</td>
  2265. <td>Inline</td>
  2266. </tr>
  2267. </tbody>
  2268. </table>
  2269. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2270. <p>Status Code <strong>200</strong></p>
  2271. <table>
  2272. <thead>
  2273. <tr>
  2274. <th>Name</th>
  2275. <th>Type</th>
  2276. <th>Required</th>
  2277. <th>Restrictions</th>
  2278. <th>Description</th>
  2279. </tr>
  2280. </thead>
  2281. <tbody>
  2282. <tr>
  2283. <td>» _id</td>
  2284. <td>string</td>
  2285. <td>false</td>
  2286. <td>none</td>
  2287. <td>none</td>
  2288. </tr>
  2289. <tr>
  2290. <td>» title</td>
  2291. <td>string</td>
  2292. <td>false</td>
  2293. <td>none</td>
  2294. <td>none</td>
  2295. </tr>
  2296. </tbody>
  2297. </table>
  2298. <aside class="warning">
  2299. To perform this operation, you must be authenticated by means of one of the following methods:
  2300. UserSecurity
  2301. </aside>
  2302. <h2 id="new_board">new_board</h2>
  2303. <p><a id="opIdnew_board"></a></p>
  2304. <blockquote>
  2305. <p>Code samples</p>
  2306. </blockquote>
  2307. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2308. curl -X POST /api/boards \
  2309. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  2310. -H <span class="hljs-string">'Accept: application/json'</span> \
  2311. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2312. </code></pre>
  2313. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards</span> HTTP/1.1
  2314. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2315. Accept: application/json
  2316. </span></code></pre>
  2317. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2318. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2319. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2320. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2321. };
  2322. $.ajax({
  2323. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards'</span>,
  2324. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  2325. <span class="hljs-attr">headers</span>: headers,
  2326. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2327. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2328. }
  2329. })
  2330. </code></pre>
  2331. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2332. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  2333. "title": "string",
  2334. "owner": "string",
  2335. "isAdmin": true,
  2336. "isActive": true,
  2337. "isNoComments": true,
  2338. "isCommentOnly": true,
  2339. "isWorker": true,
  2340. "permission": "string",
  2341. "color": "string"
  2342. }'</span>;
  2343. <span class="hljs-keyword">const</span> headers = {
  2344. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2345. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2346. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2347. };
  2348. fetch(<span class="hljs-string">'/api/boards'</span>,
  2349. {
  2350. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  2351. <span class="hljs-attr">body</span>: inputBody,
  2352. <span class="hljs-attr">headers</span>: headers
  2353. })
  2354. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2355. <span class="hljs-keyword">return</span> res.json();
  2356. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2357. <span class="hljs-built_in">console</span>.log(body);
  2358. });
  2359. </code></pre>
  2360. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2361. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2362. headers = {
  2363. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  2364. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2365. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2366. }
  2367. result = RestClient.post <span class="hljs-string">'/api/boards'</span>,
  2368. <span class="hljs-symbol">params:</span> {
  2369. }, <span class="hljs-symbol">headers:</span> headers
  2370. p JSON.parse(result)
  2371. </code></pre>
  2372. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2373. headers = {
  2374. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  2375. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2376. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2377. }
  2378. r = requests.post(<span class="hljs-string">'/api/boards'</span>, params={
  2379. }, headers = headers)
  2380. <span class="hljs-keyword">print</span> r.json()
  2381. </code></pre>
  2382. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards"</span>);
  2383. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2384. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  2385. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2386. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2387. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2388. String inputLine;
  2389. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2390. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2391. response.append(inputLine);
  2392. }
  2393. in.close();
  2394. System.out.println(response.toString());
  2395. </code></pre>
  2396. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2397. <span class="hljs-keyword">import</span> (
  2398. <span class="hljs-string">"bytes"</span>
  2399. <span class="hljs-string">"net/http"</span>
  2400. )
  2401. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2402. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2403. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  2404. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2405. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2406. }
  2407. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2408. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards"</span>, data)
  2409. req.Header = headers
  2410. client := &amp;http.Client{}
  2411. resp, err := client.Do(req)
  2412. <span class="hljs-comment">// ...</span>
  2413. }
  2414. </code></pre>
  2415. <p><code>POST /api/boards</code></p>
  2416. <p><em>Create a board</em></p>
  2417. <p>This allows to create a board.</p>
  2418. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2419. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2420. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2421. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2422. <blockquote>
  2423. <p>Body parameter</p>
  2424. </blockquote>
  2425. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2426. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2427. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2428. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2429. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2430. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2431. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2432. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2433. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2434. </code></pre>
  2435. <h3 id="new_board-parameters">Parameters</h3>
  2436. <table>
  2437. <thead>
  2438. <tr>
  2439. <th>Name</th>
  2440. <th>In</th>
  2441. <th>Type</th>
  2442. <th>Required</th>
  2443. <th>Description</th>
  2444. </tr>
  2445. </thead>
  2446. <tbody>
  2447. <tr>
  2448. <td>body</td>
  2449. <td>body</td>
  2450. <td>object</td>
  2451. <td>false</td>
  2452. <td>none</td>
  2453. </tr>
  2454. <tr>
  2455. <td>» title</td>
  2456. <td>body</td>
  2457. <td>string</td>
  2458. <td>true</td>
  2459. <td>the new title of the board</td>
  2460. </tr>
  2461. <tr>
  2462. <td>» owner</td>
  2463. <td>body</td>
  2464. <td>string</td>
  2465. <td>true</td>
  2466. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2467. </tr>
  2468. <tr>
  2469. <td>» isAdmin</td>
  2470. <td>body</td>
  2471. <td>boolean</td>
  2472. <td>false</td>
  2473. <td>is the owner an admin of the board (default true)</td>
  2474. </tr>
  2475. <tr>
  2476. <td>» isActive</td>
  2477. <td>body</td>
  2478. <td>boolean</td>
  2479. <td>false</td>
  2480. <td>is the board active (default true)</td>
  2481. </tr>
  2482. <tr>
  2483. <td>» isNoComments</td>
  2484. <td>body</td>
  2485. <td>boolean</td>
  2486. <td>false</td>
  2487. <td>disable comments (default false)</td>
  2488. </tr>
  2489. <tr>
  2490. <td>» isCommentOnly</td>
  2491. <td>body</td>
  2492. <td>boolean</td>
  2493. <td>false</td>
  2494. <td>only enable comments (default false)</td>
  2495. </tr>
  2496. <tr>
  2497. <td>» isWorker</td>
  2498. <td>body</td>
  2499. <td>boolean</td>
  2500. <td>false</td>
  2501. <td>only move cards, assign himself to card and comment (default false)</td>
  2502. </tr>
  2503. <tr>
  2504. <td>» permission</td>
  2505. <td>body</td>
  2506. <td>string</td>
  2507. <td>false</td>
  2508. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2509. </tr>
  2510. <tr>
  2511. <td>» color</td>
  2512. <td>body</td>
  2513. <td>string</td>
  2514. <td>false</td>
  2515. <td>the color of the board</td>
  2516. </tr>
  2517. </tbody>
  2518. </table>
  2519. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2520. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2521. (Not username or email)</p>
  2522. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2523. want public Wekan board</p>
  2524. <blockquote>
  2525. <p>Example responses</p>
  2526. </blockquote>
  2527. <blockquote>
  2528. <p>200 Response</p>
  2529. </blockquote>
  2530. <pre class="highlight tab tab-json"><code>{
  2531. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2532. <span class="hljs-attr">"defaultSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  2533. }
  2534. </code></pre>
  2535. <h3 id="new_board-responses">Responses</h3>
  2536. <table>
  2537. <thead>
  2538. <tr>
  2539. <th>Status</th>
  2540. <th>Meaning</th>
  2541. <th>Description</th>
  2542. <th>Schema</th>
  2543. </tr>
  2544. </thead>
  2545. <tbody>
  2546. <tr>
  2547. <td>200</td>
  2548. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2549. <td>200 response</td>
  2550. <td>Inline</td>
  2551. </tr>
  2552. </tbody>
  2553. </table>
  2554. <h3 id="new_board-responseschema">Response Schema</h3>
  2555. <p>Status Code <strong>200</strong></p>
  2556. <table>
  2557. <thead>
  2558. <tr>
  2559. <th>Name</th>
  2560. <th>Type</th>
  2561. <th>Required</th>
  2562. <th>Restrictions</th>
  2563. <th>Description</th>
  2564. </tr>
  2565. </thead>
  2566. <tbody>
  2567. <tr>
  2568. <td>» _id</td>
  2569. <td>string</td>
  2570. <td>false</td>
  2571. <td>none</td>
  2572. <td>none</td>
  2573. </tr>
  2574. <tr>
  2575. <td>» defaultSwimlaneId</td>
  2576. <td>string</td>
  2577. <td>false</td>
  2578. <td>none</td>
  2579. <td>none</td>
  2580. </tr>
  2581. </tbody>
  2582. </table>
  2583. <aside class="warning">
  2584. To perform this operation, you must be authenticated by means of one of the following methods:
  2585. UserSecurity
  2586. </aside>
  2587. <h2 id="get_board">get_board</h2>
  2588. <p><a id="opIdget_board"></a></p>
  2589. <blockquote>
  2590. <p>Code samples</p>
  2591. </blockquote>
  2592. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2593. curl -X GET /api/boards/{board} \
  2594. -H <span class="hljs-string">'Accept: application/json'</span> \
  2595. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2596. </code></pre>
  2597. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}</span> HTTP/1.1
  2598. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2599. <span class="undefined"></span></span></code></pre>
  2600. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2601. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2602. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2603. };
  2604. $.ajax({
  2605. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}'</span>,
  2606. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2607. <span class="hljs-attr">headers</span>: headers,
  2608. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2609. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2610. }
  2611. })
  2612. </code></pre>
  2613. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2614. <span class="hljs-keyword">const</span> headers = {
  2615. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2616. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2617. };
  2618. fetch(<span class="hljs-string">'/api/boards/{board}'</span>,
  2619. {
  2620. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2621. <span class="hljs-attr">headers</span>: headers
  2622. })
  2623. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2624. <span class="hljs-keyword">return</span> res.json();
  2625. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2626. <span class="hljs-built_in">console</span>.log(body);
  2627. });
  2628. </code></pre>
  2629. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2630. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2631. headers = {
  2632. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2633. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2634. }
  2635. result = RestClient.get <span class="hljs-string">'/api/boards/{board}'</span>,
  2636. <span class="hljs-symbol">params:</span> {
  2637. }, <span class="hljs-symbol">headers:</span> headers
  2638. p JSON.parse(result)
  2639. </code></pre>
  2640. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2641. headers = {
  2642. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2643. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2644. }
  2645. r = requests.get(<span class="hljs-string">'/api/boards/{board}'</span>, params={
  2646. }, headers = headers)
  2647. <span class="hljs-keyword">print</span> r.json()
  2648. </code></pre>
  2649. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}"</span>);
  2650. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2651. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2652. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2653. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2654. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2655. String inputLine;
  2656. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2657. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2658. response.append(inputLine);
  2659. }
  2660. in.close();
  2661. System.out.println(response.toString());
  2662. </code></pre>
  2663. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2664. <span class="hljs-keyword">import</span> (
  2665. <span class="hljs-string">"bytes"</span>
  2666. <span class="hljs-string">"net/http"</span>
  2667. )
  2668. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2669. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2670. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2671. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2672. }
  2673. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2674. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}"</span>, data)
  2675. req.Header = headers
  2676. client := &amp;http.Client{}
  2677. resp, err := client.Do(req)
  2678. <span class="hljs-comment">// ...</span>
  2679. }
  2680. </code></pre>
  2681. <p><code>GET /api/boards/{board}</code></p>
  2682. <p><em>Get the board with that particular ID</em></p>
  2683. <h3 id="get_board-parameters">Parameters</h3>
  2684. <table>
  2685. <thead>
  2686. <tr>
  2687. <th>Name</th>
  2688. <th>In</th>
  2689. <th>Type</th>
  2690. <th>Required</th>
  2691. <th>Description</th>
  2692. </tr>
  2693. </thead>
  2694. <tbody>
  2695. <tr>
  2696. <td>board</td>
  2697. <td>path</td>
  2698. <td>string</td>
  2699. <td>true</td>
  2700. <td>the ID of the board to retrieve the data</td>
  2701. </tr>
  2702. </tbody>
  2703. </table>
  2704. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2705. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2706. <blockquote>
  2707. <p>Example responses</p>
  2708. </blockquote>
  2709. <blockquote>
  2710. <p>200 Response</p>
  2711. </blockquote>
  2712. <pre class="highlight tab tab-json"><code>{
  2713. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  2714. <span class="hljs-attr">"slug"</span>: <span class="hljs-string">"string"</span>,
  2715. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  2716. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  2717. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  2718. <span class="hljs-attr">"stars"</span>: <span class="hljs-number">0</span>,
  2719. <span class="hljs-attr">"labels"</span>: [
  2720. {
  2721. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2722. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  2723. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"green"</span>
  2724. }
  2725. ],
  2726. <span class="hljs-attr">"members"</span>: [
  2727. {
  2728. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  2729. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  2730. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  2731. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  2732. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  2733. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  2734. }
  2735. ],
  2736. <span class="hljs-attr">"permission"</span>: <span class="hljs-string">"public"</span>,
  2737. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"belize"</span>,
  2738. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  2739. <span class="hljs-attr">"subtasksDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  2740. <span class="hljs-attr">"subtasksDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  2741. <span class="hljs-attr">"dateSettingsDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  2742. <span class="hljs-attr">"dateSettingsDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  2743. <span class="hljs-attr">"allowsSubtasks"</span>: <span class="hljs-literal">true</span>,
  2744. <span class="hljs-attr">"allowsAttachments"</span>: <span class="hljs-literal">true</span>,
  2745. <span class="hljs-attr">"allowsChecklists"</span>: <span class="hljs-literal">true</span>,
  2746. <span class="hljs-attr">"allowsComments"</span>: <span class="hljs-literal">true</span>,
  2747. <span class="hljs-attr">"allowsDescriptionTitle"</span>: <span class="hljs-literal">true</span>,
  2748. <span class="hljs-attr">"allowsDescriptionText"</span>: <span class="hljs-literal">true</span>,
  2749. <span class="hljs-attr">"allowsActivities"</span>: <span class="hljs-literal">true</span>,
  2750. <span class="hljs-attr">"allowsLabels"</span>: <span class="hljs-literal">true</span>,
  2751. <span class="hljs-attr">"allowsAssignee"</span>: <span class="hljs-literal">true</span>,
  2752. <span class="hljs-attr">"allowsMembers"</span>: <span class="hljs-literal">true</span>,
  2753. <span class="hljs-attr">"allowsRequestedBy"</span>: <span class="hljs-literal">true</span>,
  2754. <span class="hljs-attr">"allowsAssignedBy"</span>: <span class="hljs-literal">true</span>,
  2755. <span class="hljs-attr">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  2756. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  2757. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  2758. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  2759. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  2760. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  2761. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  2762. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  2763. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  2764. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  2765. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  2766. }
  2767. </code></pre>
  2768. <h3 id="get_board-responses">Responses</h3>
  2769. <table>
  2770. <thead>
  2771. <tr>
  2772. <th>Status</th>
  2773. <th>Meaning</th>
  2774. <th>Description</th>
  2775. <th>Schema</th>
  2776. </tr>
  2777. </thead>
  2778. <tbody>
  2779. <tr>
  2780. <td>200</td>
  2781. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2782. <td>200 response</td>
  2783. <td><a href="#schemaboards">Boards</a></td>
  2784. </tr>
  2785. </tbody>
  2786. </table>
  2787. <aside class="warning">
  2788. To perform this operation, you must be authenticated by means of one of the following methods:
  2789. UserSecurity
  2790. </aside>
  2791. <h2 id="delete_board">delete_board</h2>
  2792. <p><a id="opIddelete_board"></a></p>
  2793. <blockquote>
  2794. <p>Code samples</p>
  2795. </blockquote>
  2796. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2797. curl -X DELETE /api/boards/{board} \
  2798. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2799. </code></pre>
  2800. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}</span> HTTP/1.1
  2801. <span class="undefined"></span></code></pre>
  2802. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2803. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2804. };
  2805. $.ajax({
  2806. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}'</span>,
  2807. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  2808. <span class="hljs-attr">headers</span>: headers,
  2809. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2810. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2811. }
  2812. })
  2813. </code></pre>
  2814. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2815. <span class="hljs-keyword">const</span> headers = {
  2816. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2817. };
  2818. fetch(<span class="hljs-string">'/api/boards/{board}'</span>,
  2819. {
  2820. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  2821. <span class="hljs-attr">headers</span>: headers
  2822. })
  2823. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2824. <span class="hljs-keyword">return</span> res.json();
  2825. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2826. <span class="hljs-built_in">console</span>.log(body);
  2827. });
  2828. </code></pre>
  2829. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2830. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2831. headers = {
  2832. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2833. }
  2834. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}'</span>,
  2835. <span class="hljs-symbol">params:</span> {
  2836. }, <span class="hljs-symbol">headers:</span> headers
  2837. p JSON.parse(result)
  2838. </code></pre>
  2839. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2840. headers = {
  2841. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2842. }
  2843. r = requests.delete(<span class="hljs-string">'/api/boards/{board}'</span>, params={
  2844. }, headers = headers)
  2845. <span class="hljs-keyword">print</span> r.json()
  2846. </code></pre>
  2847. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}"</span>);
  2848. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2849. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  2850. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2851. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2852. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2853. String inputLine;
  2854. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2855. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2856. response.append(inputLine);
  2857. }
  2858. in.close();
  2859. System.out.println(response.toString());
  2860. </code></pre>
  2861. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2862. <span class="hljs-keyword">import</span> (
  2863. <span class="hljs-string">"bytes"</span>
  2864. <span class="hljs-string">"net/http"</span>
  2865. )
  2866. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2867. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2868. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2869. }
  2870. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2871. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}"</span>, data)
  2872. req.Header = headers
  2873. client := &amp;http.Client{}
  2874. resp, err := client.Do(req)
  2875. <span class="hljs-comment">// ...</span>
  2876. }
  2877. </code></pre>
  2878. <p><code>DELETE /api/boards/{board}</code></p>
  2879. <p><em>Delete a board</em></p>
  2880. <h3 id="delete_board-parameters">Parameters</h3>
  2881. <table>
  2882. <thead>
  2883. <tr>
  2884. <th>Name</th>
  2885. <th>In</th>
  2886. <th>Type</th>
  2887. <th>Required</th>
  2888. <th>Description</th>
  2889. </tr>
  2890. </thead>
  2891. <tbody>
  2892. <tr>
  2893. <td>board</td>
  2894. <td>path</td>
  2895. <td>string</td>
  2896. <td>true</td>
  2897. <td>the ID of the board</td>
  2898. </tr>
  2899. </tbody>
  2900. </table>
  2901. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2902. <p><strong>board</strong>: the ID of the board</p>
  2903. <h3 id="delete_board-responses">Responses</h3>
  2904. <table>
  2905. <thead>
  2906. <tr>
  2907. <th>Status</th>
  2908. <th>Meaning</th>
  2909. <th>Description</th>
  2910. <th>Schema</th>
  2911. </tr>
  2912. </thead>
  2913. <tbody>
  2914. <tr>
  2915. <td>200</td>
  2916. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2917. <td>200 response</td>
  2918. <td>None</td>
  2919. </tr>
  2920. </tbody>
  2921. </table>
  2922. <aside class="warning">
  2923. To perform this operation, you must be authenticated by means of one of the following methods:
  2924. UserSecurity
  2925. </aside>
  2926. <h2 id="export">export</h2>
  2927. <p><a id="opIdexport"></a></p>
  2928. <blockquote>
  2929. <p>Code samples</p>
  2930. </blockquote>
  2931. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2932. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  2933. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2934. </code></pre>
  2935. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/export</span> HTTP/1.1
  2936. <span class="undefined"></span></code></pre>
  2937. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2938. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2939. };
  2940. $.ajax({
  2941. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/export'</span>,
  2942. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2943. <span class="hljs-attr">headers</span>: headers,
  2944. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2945. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2946. }
  2947. })
  2948. </code></pre>
  2949. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2950. <span class="hljs-keyword">const</span> headers = {
  2951. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2952. };
  2953. fetch(<span class="hljs-string">'/api/boards/{board}/export'</span>,
  2954. {
  2955. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2956. <span class="hljs-attr">headers</span>: headers
  2957. })
  2958. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2959. <span class="hljs-keyword">return</span> res.json();
  2960. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2961. <span class="hljs-built_in">console</span>.log(body);
  2962. });
  2963. </code></pre>
  2964. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2965. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2966. headers = {
  2967. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2968. }
  2969. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/export'</span>,
  2970. <span class="hljs-symbol">params:</span> {
  2971. }, <span class="hljs-symbol">headers:</span> headers
  2972. p JSON.parse(result)
  2973. </code></pre>
  2974. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2975. headers = {
  2976. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2977. }
  2978. r = requests.get(<span class="hljs-string">'/api/boards/{board}/export'</span>, params={
  2979. }, headers = headers)
  2980. <span class="hljs-keyword">print</span> r.json()
  2981. </code></pre>
  2982. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/export"</span>);
  2983. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2984. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2985. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2986. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2987. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2988. String inputLine;
  2989. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2990. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2991. response.append(inputLine);
  2992. }
  2993. in.close();
  2994. System.out.println(response.toString());
  2995. </code></pre>
  2996. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2997. <span class="hljs-keyword">import</span> (
  2998. <span class="hljs-string">"bytes"</span>
  2999. <span class="hljs-string">"net/http"</span>
  3000. )
  3001. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3002. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3003. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3004. }
  3005. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3006. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/export"</span>, data)
  3007. req.Header = headers
  3008. client := &amp;http.Client{}
  3009. resp, err := client.Do(req)
  3010. <span class="hljs-comment">// ...</span>
  3011. }
  3012. </code></pre>
  3013. <p><code>GET /api/boards/{board}/export</code></p>
  3014. <p><em>This route is used to export the board.</em></p>
  3015. <p>If user is already logged-in, pass loginToken as param
  3016. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3017. <p>See <a href="https://blog.kayla.com.au/server-side-route-authentication-in-meteor/">https://blog.kayla.com.au/server-side-route-authentication-in-meteor/</a>
  3018. for detailed explanations</p>
  3019. <h3 id="export-parameters">Parameters</h3>
  3020. <table>
  3021. <thead>
  3022. <tr>
  3023. <th>Name</th>
  3024. <th>In</th>
  3025. <th>Type</th>
  3026. <th>Required</th>
  3027. <th>Description</th>
  3028. </tr>
  3029. </thead>
  3030. <tbody>
  3031. <tr>
  3032. <td>board</td>
  3033. <td>path</td>
  3034. <td>string</td>
  3035. <td>true</td>
  3036. <td>the ID of the board we are exporting</td>
  3037. </tr>
  3038. </tbody>
  3039. </table>
  3040. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3041. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3042. <h3 id="export-responses">Responses</h3>
  3043. <table>
  3044. <thead>
  3045. <tr>
  3046. <th>Status</th>
  3047. <th>Meaning</th>
  3048. <th>Description</th>
  3049. <th>Schema</th>
  3050. </tr>
  3051. </thead>
  3052. <tbody>
  3053. <tr>
  3054. <td>200</td>
  3055. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3056. <td>200 response</td>
  3057. <td>None</td>
  3058. </tr>
  3059. </tbody>
  3060. </table>
  3061. <aside class="warning">
  3062. To perform this operation, you must be authenticated by means of one of the following methods:
  3063. UserSecurity
  3064. </aside>
  3065. <h2 id="add_board_label">add_board_label</h2>
  3066. <p><a id="opIdadd_board_label"></a></p>
  3067. <blockquote>
  3068. <p>Code samples</p>
  3069. </blockquote>
  3070. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3071. curl -X PUT /api/boards/{board}/labels \
  3072. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3073. -H <span class="hljs-string">'Accept: application/json'</span> \
  3074. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3075. </code></pre>
  3076. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/labels</span> HTTP/1.1
  3077. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3078. Accept: application/json
  3079. </span></code></pre>
  3080. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3081. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3082. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3083. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3084. };
  3085. $.ajax({
  3086. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3087. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3088. <span class="hljs-attr">headers</span>: headers,
  3089. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3090. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3091. }
  3092. })
  3093. </code></pre>
  3094. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3095. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3096. "label": "string"
  3097. }'</span>;
  3098. <span class="hljs-keyword">const</span> headers = {
  3099. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3100. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3101. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3102. };
  3103. fetch(<span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3104. {
  3105. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  3106. <span class="hljs-attr">body</span>: inputBody,
  3107. <span class="hljs-attr">headers</span>: headers
  3108. })
  3109. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3110. <span class="hljs-keyword">return</span> res.json();
  3111. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3112. <span class="hljs-built_in">console</span>.log(body);
  3113. });
  3114. </code></pre>
  3115. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3116. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3117. headers = {
  3118. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3119. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3120. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3121. }
  3122. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3123. <span class="hljs-symbol">params:</span> {
  3124. }, <span class="hljs-symbol">headers:</span> headers
  3125. p JSON.parse(result)
  3126. </code></pre>
  3127. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3128. headers = {
  3129. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3130. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3131. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3132. }
  3133. r = requests.put(<span class="hljs-string">'/api/boards/{board}/labels'</span>, params={
  3134. }, headers = headers)
  3135. <span class="hljs-keyword">print</span> r.json()
  3136. </code></pre>
  3137. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/labels"</span>);
  3138. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3139. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  3140. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3141. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3142. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3143. String inputLine;
  3144. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3145. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3146. response.append(inputLine);
  3147. }
  3148. in.close();
  3149. System.out.println(response.toString());
  3150. </code></pre>
  3151. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3152. <span class="hljs-keyword">import</span> (
  3153. <span class="hljs-string">"bytes"</span>
  3154. <span class="hljs-string">"net/http"</span>
  3155. )
  3156. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3157. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3158. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3159. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3160. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3161. }
  3162. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3163. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/labels"</span>, data)
  3164. req.Header = headers
  3165. client := &amp;http.Client{}
  3166. resp, err := client.Do(req)
  3167. <span class="hljs-comment">// ...</span>
  3168. }
  3169. </code></pre>
  3170. <p><code>PUT /api/boards/{board}/labels</code></p>
  3171. <p><em>Add a label to a board</em></p>
  3172. <p>If the board doesn't have the name/color label, this function
  3173. adds the label to the board.</p>
  3174. <blockquote>
  3175. <p>Body parameter</p>
  3176. </blockquote>
  3177. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3178. </code></pre>
  3179. <h3 id="add_board_label-parameters">Parameters</h3>
  3180. <table>
  3181. <thead>
  3182. <tr>
  3183. <th>Name</th>
  3184. <th>In</th>
  3185. <th>Type</th>
  3186. <th>Required</th>
  3187. <th>Description</th>
  3188. </tr>
  3189. </thead>
  3190. <tbody>
  3191. <tr>
  3192. <td>board</td>
  3193. <td>path</td>
  3194. <td>string</td>
  3195. <td>true</td>
  3196. <td>the board</td>
  3197. </tr>
  3198. <tr>
  3199. <td>body</td>
  3200. <td>body</td>
  3201. <td>object</td>
  3202. <td>false</td>
  3203. <td>none</td>
  3204. </tr>
  3205. <tr>
  3206. <td>» label</td>
  3207. <td>body</td>
  3208. <td>string</td>
  3209. <td>true</td>
  3210. <td>the label value</td>
  3211. </tr>
  3212. </tbody>
  3213. </table>
  3214. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3215. <p><strong>board</strong>: the board</p>
  3216. <blockquote>
  3217. <p>Example responses</p>
  3218. </blockquote>
  3219. <blockquote>
  3220. <p>200 Response</p>
  3221. </blockquote>
  3222. <pre class="highlight tab tab-json"><code><span class="hljs-string">"string"</span>
  3223. </code></pre>
  3224. <h3 id="add_board_label-responses">Responses</h3>
  3225. <table>
  3226. <thead>
  3227. <tr>
  3228. <th>Status</th>
  3229. <th>Meaning</th>
  3230. <th>Description</th>
  3231. <th>Schema</th>
  3232. </tr>
  3233. </thead>
  3234. <tbody>
  3235. <tr>
  3236. <td>200</td>
  3237. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3238. <td>200 response</td>
  3239. <td>string</td>
  3240. </tr>
  3241. </tbody>
  3242. </table>
  3243. <aside class="warning">
  3244. To perform this operation, you must be authenticated by means of one of the following methods:
  3245. UserSecurity
  3246. </aside>
  3247. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3248. <p><a id="opIdset_board_member_permission"></a></p>
  3249. <blockquote>
  3250. <p>Code samples</p>
  3251. </blockquote>
  3252. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3253. curl -X POST /api/boards/{board}/members/{member} \
  3254. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3255. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3256. </code></pre>
  3257. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{member}</span> HTTP/1.1
  3258. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3259. </span></code></pre>
  3260. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3261. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3262. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3263. };
  3264. $.ajax({
  3265. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3266. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3267. <span class="hljs-attr">headers</span>: headers,
  3268. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3269. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3270. }
  3271. })
  3272. </code></pre>
  3273. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3274. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3275. "isAdmin": true,
  3276. "isNoComments": true,
  3277. "isCommentOnly": true,
  3278. "isWorker": true
  3279. }'</span>;
  3280. <span class="hljs-keyword">const</span> headers = {
  3281. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3282. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3283. };
  3284. fetch(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3285. {
  3286. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3287. <span class="hljs-attr">body</span>: inputBody,
  3288. <span class="hljs-attr">headers</span>: headers
  3289. })
  3290. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3291. <span class="hljs-keyword">return</span> res.json();
  3292. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3293. <span class="hljs-built_in">console</span>.log(body);
  3294. });
  3295. </code></pre>
  3296. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3297. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3298. headers = {
  3299. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3300. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3301. }
  3302. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3303. <span class="hljs-symbol">params:</span> {
  3304. }, <span class="hljs-symbol">headers:</span> headers
  3305. p JSON.parse(result)
  3306. </code></pre>
  3307. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3308. headers = {
  3309. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3310. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3311. }
  3312. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>, params={
  3313. }, headers = headers)
  3314. <span class="hljs-keyword">print</span> r.json()
  3315. </code></pre>
  3316. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/members/{member}"</span>);
  3317. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3318. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3319. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3320. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3321. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3322. String inputLine;
  3323. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3324. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3325. response.append(inputLine);
  3326. }
  3327. in.close();
  3328. System.out.println(response.toString());
  3329. </code></pre>
  3330. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3331. <span class="hljs-keyword">import</span> (
  3332. <span class="hljs-string">"bytes"</span>
  3333. <span class="hljs-string">"net/http"</span>
  3334. )
  3335. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3336. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3337. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3338. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3339. }
  3340. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3341. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{member}"</span>, data)
  3342. req.Header = headers
  3343. client := &amp;http.Client{}
  3344. resp, err := client.Do(req)
  3345. <span class="hljs-comment">// ...</span>
  3346. }
  3347. </code></pre>
  3348. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3349. <p><em>Change the permission of a member of a board</em></p>
  3350. <blockquote>
  3351. <p>Body parameter</p>
  3352. </blockquote>
  3353. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3354. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3355. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3356. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3357. </code></pre>
  3358. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3359. <table>
  3360. <thead>
  3361. <tr>
  3362. <th>Name</th>
  3363. <th>In</th>
  3364. <th>Type</th>
  3365. <th>Required</th>
  3366. <th>Description</th>
  3367. </tr>
  3368. </thead>
  3369. <tbody>
  3370. <tr>
  3371. <td>board</td>
  3372. <td>path</td>
  3373. <td>string</td>
  3374. <td>true</td>
  3375. <td>the ID of the board that we are changing</td>
  3376. </tr>
  3377. <tr>
  3378. <td>member</td>
  3379. <td>path</td>
  3380. <td>string</td>
  3381. <td>true</td>
  3382. <td>the ID of the user to change permissions</td>
  3383. </tr>
  3384. <tr>
  3385. <td>body</td>
  3386. <td>body</td>
  3387. <td>object</td>
  3388. <td>false</td>
  3389. <td>none</td>
  3390. </tr>
  3391. <tr>
  3392. <td>» isAdmin</td>
  3393. <td>body</td>
  3394. <td>boolean</td>
  3395. <td>true</td>
  3396. <td>admin capability</td>
  3397. </tr>
  3398. <tr>
  3399. <td>» isNoComments</td>
  3400. <td>body</td>
  3401. <td>boolean</td>
  3402. <td>true</td>
  3403. <td>NoComments capability</td>
  3404. </tr>
  3405. <tr>
  3406. <td>» isCommentOnly</td>
  3407. <td>body</td>
  3408. <td>boolean</td>
  3409. <td>true</td>
  3410. <td>CommentsOnly capability</td>
  3411. </tr>
  3412. <tr>
  3413. <td>» isWorker</td>
  3414. <td>body</td>
  3415. <td>boolean</td>
  3416. <td>true</td>
  3417. <td>Worker capability</td>
  3418. </tr>
  3419. </tbody>
  3420. </table>
  3421. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3422. <p><strong>board</strong>: the ID of the board that we are changing</p>
  3423. <p><strong>member</strong>: the ID of the user to change permissions</p>
  3424. <h3 id="set_board_member_permission-responses">Responses</h3>
  3425. <table>
  3426. <thead>
  3427. <tr>
  3428. <th>Status</th>
  3429. <th>Meaning</th>
  3430. <th>Description</th>
  3431. <th>Schema</th>
  3432. </tr>
  3433. </thead>
  3434. <tbody>
  3435. <tr>
  3436. <td>200</td>
  3437. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3438. <td>200 response</td>
  3439. <td>None</td>
  3440. </tr>
  3441. </tbody>
  3442. </table>
  3443. <aside class="warning">
  3444. To perform this operation, you must be authenticated by means of one of the following methods:
  3445. UserSecurity
  3446. </aside>
  3447. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  3448. <p><a id="opIdget_boards_from_user"></a></p>
  3449. <blockquote>
  3450. <p>Code samples</p>
  3451. </blockquote>
  3452. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3453. curl -X GET /api/users/{user}/boards \
  3454. -H <span class="hljs-string">'Accept: application/json'</span> \
  3455. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3456. </code></pre>
  3457. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}/boards</span> HTTP/1.1
  3458. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3459. <span class="undefined"></span></span></code></pre>
  3460. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3461. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3462. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3463. };
  3464. $.ajax({
  3465. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}/boards'</span>,
  3466. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3467. <span class="hljs-attr">headers</span>: headers,
  3468. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3469. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3470. }
  3471. })
  3472. </code></pre>
  3473. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3474. <span class="hljs-keyword">const</span> headers = {
  3475. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3476. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3477. };
  3478. fetch(<span class="hljs-string">'/api/users/{user}/boards'</span>,
  3479. {
  3480. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3481. <span class="hljs-attr">headers</span>: headers
  3482. })
  3483. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3484. <span class="hljs-keyword">return</span> res.json();
  3485. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3486. <span class="hljs-built_in">console</span>.log(body);
  3487. });
  3488. </code></pre>
  3489. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3490. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3491. headers = {
  3492. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3493. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3494. }
  3495. result = RestClient.get <span class="hljs-string">'/api/users/{user}/boards'</span>,
  3496. <span class="hljs-symbol">params:</span> {
  3497. }, <span class="hljs-symbol">headers:</span> headers
  3498. p JSON.parse(result)
  3499. </code></pre>
  3500. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3501. headers = {
  3502. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3503. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3504. }
  3505. r = requests.get(<span class="hljs-string">'/api/users/{user}/boards'</span>, params={
  3506. }, headers = headers)
  3507. <span class="hljs-keyword">print</span> r.json()
  3508. </code></pre>
  3509. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}/boards"</span>);
  3510. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3511. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3512. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3513. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3514. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3515. String inputLine;
  3516. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3517. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3518. response.append(inputLine);
  3519. }
  3520. in.close();
  3521. System.out.println(response.toString());
  3522. </code></pre>
  3523. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3524. <span class="hljs-keyword">import</span> (
  3525. <span class="hljs-string">"bytes"</span>
  3526. <span class="hljs-string">"net/http"</span>
  3527. )
  3528. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3529. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3530. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3531. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3532. }
  3533. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3534. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users/{user}/boards"</span>, data)
  3535. req.Header = headers
  3536. client := &amp;http.Client{}
  3537. resp, err := client.Do(req)
  3538. <span class="hljs-comment">// ...</span>
  3539. }
  3540. </code></pre>
  3541. <p><code>GET /api/users/{user}/boards</code></p>
  3542. <p><em>Get all boards attached to a user</em></p>
  3543. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  3544. <table>
  3545. <thead>
  3546. <tr>
  3547. <th>Name</th>
  3548. <th>In</th>
  3549. <th>Type</th>
  3550. <th>Required</th>
  3551. <th>Description</th>
  3552. </tr>
  3553. </thead>
  3554. <tbody>
  3555. <tr>
  3556. <td>user</td>
  3557. <td>path</td>
  3558. <td>string</td>
  3559. <td>true</td>
  3560. <td>the ID of the user to retrieve the data</td>
  3561. </tr>
  3562. </tbody>
  3563. </table>
  3564. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3565. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  3566. <blockquote>
  3567. <p>Example responses</p>
  3568. </blockquote>
  3569. <blockquote>
  3570. <p>200 Response</p>
  3571. </blockquote>
  3572. <pre class="highlight tab tab-json"><code>[
  3573. {
  3574. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  3575. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  3576. }
  3577. ]
  3578. </code></pre>
  3579. <h3 id="get_boards_from_user-responses">Responses</h3>
  3580. <table>
  3581. <thead>
  3582. <tr>
  3583. <th>Status</th>
  3584. <th>Meaning</th>
  3585. <th>Description</th>
  3586. <th>Schema</th>
  3587. </tr>
  3588. </thead>
  3589. <tbody>
  3590. <tr>
  3591. <td>200</td>
  3592. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3593. <td>200 response</td>
  3594. <td>Inline</td>
  3595. </tr>
  3596. </tbody>
  3597. </table>
  3598. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  3599. <p>Status Code <strong>200</strong></p>
  3600. <table>
  3601. <thead>
  3602. <tr>
  3603. <th>Name</th>
  3604. <th>Type</th>
  3605. <th>Required</th>
  3606. <th>Restrictions</th>
  3607. <th>Description</th>
  3608. </tr>
  3609. </thead>
  3610. <tbody>
  3611. <tr>
  3612. <td>» _id</td>
  3613. <td>string</td>
  3614. <td>false</td>
  3615. <td>none</td>
  3616. <td>none</td>
  3617. </tr>
  3618. <tr>
  3619. <td>» title</td>
  3620. <td>string</td>
  3621. <td>false</td>
  3622. <td>none</td>
  3623. <td>none</td>
  3624. </tr>
  3625. </tbody>
  3626. </table>
  3627. <aside class="warning">
  3628. To perform this operation, you must be authenticated by means of one of the following methods:
  3629. UserSecurity
  3630. </aside>
  3631. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  3632. <h2 id="get_board_card_checklists">get_board_card_checklists</h2>
  3633. <p><a id="opIdget_board_card_checklists"></a></p>
  3634. <blockquote>
  3635. <p>Code samples</p>
  3636. </blockquote>
  3637. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3638. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  3639. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3640. </code></pre>
  3641. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> HTTP/1.1
  3642. <span class="undefined"></span></code></pre>
  3643. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3644. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3645. };
  3646. $.ajax({
  3647. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3648. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3649. <span class="hljs-attr">headers</span>: headers,
  3650. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3651. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3652. }
  3653. })
  3654. </code></pre>
  3655. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3656. <span class="hljs-keyword">const</span> headers = {
  3657. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3658. };
  3659. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3660. {
  3661. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3662. <span class="hljs-attr">headers</span>: headers
  3663. })
  3664. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3665. <span class="hljs-keyword">return</span> res.json();
  3666. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3667. <span class="hljs-built_in">console</span>.log(body);
  3668. });
  3669. </code></pre>
  3670. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3671. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3672. headers = {
  3673. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3674. }
  3675. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3676. <span class="hljs-symbol">params:</span> {
  3677. }, <span class="hljs-symbol">headers:</span> headers
  3678. p JSON.parse(result)
  3679. </code></pre>
  3680. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3681. headers = {
  3682. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3683. }
  3684. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  3685. }, headers = headers)
  3686. <span class="hljs-keyword">print</span> r.json()
  3687. </code></pre>
  3688. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>);
  3689. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3690. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3691. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3692. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3693. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3694. String inputLine;
  3695. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3696. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3697. response.append(inputLine);
  3698. }
  3699. in.close();
  3700. System.out.println(response.toString());
  3701. </code></pre>
  3702. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3703. <span class="hljs-keyword">import</span> (
  3704. <span class="hljs-string">"bytes"</span>
  3705. <span class="hljs-string">"net/http"</span>
  3706. )
  3707. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3708. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3709. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3710. }
  3711. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3712. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  3713. req.Header = headers
  3714. client := &amp;http.Client{}
  3715. resp, err := client.Do(req)
  3716. <span class="hljs-comment">// ...</span>
  3717. }
  3718. </code></pre>
  3719. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  3720. <h3 id="get_board_card_checklists-parameters">Parameters</h3>
  3721. <table>
  3722. <thead>
  3723. <tr>
  3724. <th>Name</th>
  3725. <th>In</th>
  3726. <th>Type</th>
  3727. <th>Required</th>
  3728. <th>Description</th>
  3729. </tr>
  3730. </thead>
  3731. <tbody>
  3732. <tr>
  3733. <td>board</td>
  3734. <td>path</td>
  3735. <td>string</td>
  3736. <td>true</td>
  3737. <td>the board value</td>
  3738. </tr>
  3739. <tr>
  3740. <td>card</td>
  3741. <td>path</td>
  3742. <td>string</td>
  3743. <td>true</td>
  3744. <td>the card value</td>
  3745. </tr>
  3746. </tbody>
  3747. </table>
  3748. <h3 id="get_board_card_checklists-responses">Responses</h3>
  3749. <table>
  3750. <thead>
  3751. <tr>
  3752. <th>Status</th>
  3753. <th>Meaning</th>
  3754. <th>Description</th>
  3755. <th>Schema</th>
  3756. </tr>
  3757. </thead>
  3758. <tbody>
  3759. <tr>
  3760. <td>200</td>
  3761. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3762. <td>200 response</td>
  3763. <td>None</td>
  3764. </tr>
  3765. </tbody>
  3766. </table>
  3767. <aside class="warning">
  3768. To perform this operation, you must be authenticated by means of one of the following methods:
  3769. UserSecurity
  3770. </aside>
  3771. <h2 id="post_board_card_checklists">post_board_card_checklists</h2>
  3772. <p><a id="opIdpost_board_card_checklists"></a></p>
  3773. <blockquote>
  3774. <p>Code samples</p>
  3775. </blockquote>
  3776. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3777. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  3778. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3779. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3780. </code></pre>
  3781. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> HTTP/1.1
  3782. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3783. </span></code></pre>
  3784. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3785. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3786. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3787. };
  3788. $.ajax({
  3789. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3790. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3791. <span class="hljs-attr">headers</span>: headers,
  3792. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3793. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3794. }
  3795. })
  3796. </code></pre>
  3797. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3798. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3799. "title": "string",
  3800. "items": "string"
  3801. }'</span>;
  3802. <span class="hljs-keyword">const</span> headers = {
  3803. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3804. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3805. };
  3806. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3807. {
  3808. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3809. <span class="hljs-attr">body</span>: inputBody,
  3810. <span class="hljs-attr">headers</span>: headers
  3811. })
  3812. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3813. <span class="hljs-keyword">return</span> res.json();
  3814. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3815. <span class="hljs-built_in">console</span>.log(body);
  3816. });
  3817. </code></pre>
  3818. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3819. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3820. headers = {
  3821. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3822. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3823. }
  3824. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3825. <span class="hljs-symbol">params:</span> {
  3826. }, <span class="hljs-symbol">headers:</span> headers
  3827. p JSON.parse(result)
  3828. </code></pre>
  3829. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3830. headers = {
  3831. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3832. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3833. }
  3834. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  3835. }, headers = headers)
  3836. <span class="hljs-keyword">print</span> r.json()
  3837. </code></pre>
  3838. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>);
  3839. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3840. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3841. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3842. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3843. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3844. String inputLine;
  3845. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3846. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3847. response.append(inputLine);
  3848. }
  3849. in.close();
  3850. System.out.println(response.toString());
  3851. </code></pre>
  3852. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3853. <span class="hljs-keyword">import</span> (
  3854. <span class="hljs-string">"bytes"</span>
  3855. <span class="hljs-string">"net/http"</span>
  3856. )
  3857. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3858. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3859. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3860. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3861. }
  3862. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3863. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  3864. req.Header = headers
  3865. client := &amp;http.Client{}
  3866. resp, err := client.Do(req)
  3867. <span class="hljs-comment">// ...</span>
  3868. }
  3869. </code></pre>
  3870. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  3871. <blockquote>
  3872. <p>Body parameter</p>
  3873. </blockquote>
  3874. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3875. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  3876. </code></pre>
  3877. <h3 id="post_board_card_checklists-parameters">Parameters</h3>
  3878. <table>
  3879. <thead>
  3880. <tr>
  3881. <th>Name</th>
  3882. <th>In</th>
  3883. <th>Type</th>
  3884. <th>Required</th>
  3885. <th>Description</th>
  3886. </tr>
  3887. </thead>
  3888. <tbody>
  3889. <tr>
  3890. <td>board</td>
  3891. <td>path</td>
  3892. <td>string</td>
  3893. <td>true</td>
  3894. <td>the board value</td>
  3895. </tr>
  3896. <tr>
  3897. <td>card</td>
  3898. <td>path</td>
  3899. <td>string</td>
  3900. <td>true</td>
  3901. <td>the card value</td>
  3902. </tr>
  3903. <tr>
  3904. <td>body</td>
  3905. <td>body</td>
  3906. <td>object</td>
  3907. <td>false</td>
  3908. <td>none</td>
  3909. </tr>
  3910. <tr>
  3911. <td>» title</td>
  3912. <td>body</td>
  3913. <td>string</td>
  3914. <td>true</td>
  3915. <td>the title value</td>
  3916. </tr>
  3917. <tr>
  3918. <td>» items</td>
  3919. <td>body</td>
  3920. <td>string</td>
  3921. <td>true</td>
  3922. <td>the items value</td>
  3923. </tr>
  3924. </tbody>
  3925. </table>
  3926. <h3 id="post_board_card_checklists-responses">Responses</h3>
  3927. <table>
  3928. <thead>
  3929. <tr>
  3930. <th>Status</th>
  3931. <th>Meaning</th>
  3932. <th>Description</th>
  3933. <th>Schema</th>
  3934. </tr>
  3935. </thead>
  3936. <tbody>
  3937. <tr>
  3938. <td>200</td>
  3939. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3940. <td>200 response</td>
  3941. <td>None</td>
  3942. </tr>
  3943. </tbody>
  3944. </table>
  3945. <aside class="warning">
  3946. To perform this operation, you must be authenticated by means of one of the following methods:
  3947. UserSecurity
  3948. </aside>
  3949. <h2 id="get_board_card_checklist">get_board_card_checklist</h2>
  3950. <p><a id="opIdget_board_card_checklist"></a></p>
  3951. <blockquote>
  3952. <p>Code samples</p>
  3953. </blockquote>
  3954. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3955. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  3956. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3957. </code></pre>
  3958. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> HTTP/1.1
  3959. <span class="undefined"></span></code></pre>
  3960. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3961. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3962. };
  3963. $.ajax({
  3964. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  3965. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3966. <span class="hljs-attr">headers</span>: headers,
  3967. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3968. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3969. }
  3970. })
  3971. </code></pre>
  3972. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3973. <span class="hljs-keyword">const</span> headers = {
  3974. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3975. };
  3976. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  3977. {
  3978. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3979. <span class="hljs-attr">headers</span>: headers
  3980. })
  3981. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3982. <span class="hljs-keyword">return</span> res.json();
  3983. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3984. <span class="hljs-built_in">console</span>.log(body);
  3985. });
  3986. </code></pre>
  3987. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3988. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3989. headers = {
  3990. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3991. }
  3992. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  3993. <span class="hljs-symbol">params:</span> {
  3994. }, <span class="hljs-symbol">headers:</span> headers
  3995. p JSON.parse(result)
  3996. </code></pre>
  3997. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3998. headers = {
  3999. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4000. }
  4001. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  4002. }, headers = headers)
  4003. <span class="hljs-keyword">print</span> r.json()
  4004. </code></pre>
  4005. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>);
  4006. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4007. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4008. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4009. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4010. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4011. String inputLine;
  4012. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4013. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4014. response.append(inputLine);
  4015. }
  4016. in.close();
  4017. System.out.println(response.toString());
  4018. </code></pre>
  4019. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4020. <span class="hljs-keyword">import</span> (
  4021. <span class="hljs-string">"bytes"</span>
  4022. <span class="hljs-string">"net/http"</span>
  4023. )
  4024. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4025. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4026. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4027. }
  4028. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4029. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  4030. req.Header = headers
  4031. client := &amp;http.Client{}
  4032. resp, err := client.Do(req)
  4033. <span class="hljs-comment">// ...</span>
  4034. }
  4035. </code></pre>
  4036. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4037. <h3 id="get_board_card_checklist-parameters">Parameters</h3>
  4038. <table>
  4039. <thead>
  4040. <tr>
  4041. <th>Name</th>
  4042. <th>In</th>
  4043. <th>Type</th>
  4044. <th>Required</th>
  4045. <th>Description</th>
  4046. </tr>
  4047. </thead>
  4048. <tbody>
  4049. <tr>
  4050. <td>board</td>
  4051. <td>path</td>
  4052. <td>string</td>
  4053. <td>true</td>
  4054. <td>the board value</td>
  4055. </tr>
  4056. <tr>
  4057. <td>card</td>
  4058. <td>path</td>
  4059. <td>string</td>
  4060. <td>true</td>
  4061. <td>the card value</td>
  4062. </tr>
  4063. <tr>
  4064. <td>checklist</td>
  4065. <td>path</td>
  4066. <td>string</td>
  4067. <td>true</td>
  4068. <td>the checklist value</td>
  4069. </tr>
  4070. </tbody>
  4071. </table>
  4072. <h3 id="get_board_card_checklist-responses">Responses</h3>
  4073. <table>
  4074. <thead>
  4075. <tr>
  4076. <th>Status</th>
  4077. <th>Meaning</th>
  4078. <th>Description</th>
  4079. <th>Schema</th>
  4080. </tr>
  4081. </thead>
  4082. <tbody>
  4083. <tr>
  4084. <td>200</td>
  4085. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4086. <td>200 response</td>
  4087. <td>None</td>
  4088. </tr>
  4089. </tbody>
  4090. </table>
  4091. <aside class="warning">
  4092. To perform this operation, you must be authenticated by means of one of the following methods:
  4093. UserSecurity
  4094. </aside>
  4095. <h2 id="delete_board_card_checklist">delete_board_card_checklist</h2>
  4096. <p><a id="opIddelete_board_card_checklist"></a></p>
  4097. <blockquote>
  4098. <p>Code samples</p>
  4099. </blockquote>
  4100. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4101. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4102. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4103. </code></pre>
  4104. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> HTTP/1.1
  4105. <span class="undefined"></span></code></pre>
  4106. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4107. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4108. };
  4109. $.ajax({
  4110. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4111. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  4112. <span class="hljs-attr">headers</span>: headers,
  4113. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4114. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4115. }
  4116. })
  4117. </code></pre>
  4118. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4119. <span class="hljs-keyword">const</span> headers = {
  4120. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4121. };
  4122. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4123. {
  4124. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  4125. <span class="hljs-attr">headers</span>: headers
  4126. })
  4127. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4128. <span class="hljs-keyword">return</span> res.json();
  4129. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4130. <span class="hljs-built_in">console</span>.log(body);
  4131. });
  4132. </code></pre>
  4133. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4134. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4135. headers = {
  4136. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4137. }
  4138. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4139. <span class="hljs-symbol">params:</span> {
  4140. }, <span class="hljs-symbol">headers:</span> headers
  4141. p JSON.parse(result)
  4142. </code></pre>
  4143. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4144. headers = {
  4145. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4146. }
  4147. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  4148. }, headers = headers)
  4149. <span class="hljs-keyword">print</span> r.json()
  4150. </code></pre>
  4151. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>);
  4152. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4153. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  4154. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4155. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4156. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4157. String inputLine;
  4158. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4159. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4160. response.append(inputLine);
  4161. }
  4162. in.close();
  4163. System.out.println(response.toString());
  4164. </code></pre>
  4165. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4166. <span class="hljs-keyword">import</span> (
  4167. <span class="hljs-string">"bytes"</span>
  4168. <span class="hljs-string">"net/http"</span>
  4169. )
  4170. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4171. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4172. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4173. }
  4174. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4175. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  4176. req.Header = headers
  4177. client := &amp;http.Client{}
  4178. resp, err := client.Do(req)
  4179. <span class="hljs-comment">// ...</span>
  4180. }
  4181. </code></pre>
  4182. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4183. <h3 id="delete_board_card_checklist-parameters">Parameters</h3>
  4184. <table>
  4185. <thead>
  4186. <tr>
  4187. <th>Name</th>
  4188. <th>In</th>
  4189. <th>Type</th>
  4190. <th>Required</th>
  4191. <th>Description</th>
  4192. </tr>
  4193. </thead>
  4194. <tbody>
  4195. <tr>
  4196. <td>board</td>
  4197. <td>path</td>
  4198. <td>string</td>
  4199. <td>true</td>
  4200. <td>the board value</td>
  4201. </tr>
  4202. <tr>
  4203. <td>card</td>
  4204. <td>path</td>
  4205. <td>string</td>
  4206. <td>true</td>
  4207. <td>the card value</td>
  4208. </tr>
  4209. <tr>
  4210. <td>checklist</td>
  4211. <td>path</td>
  4212. <td>string</td>
  4213. <td>true</td>
  4214. <td>the checklist value</td>
  4215. </tr>
  4216. </tbody>
  4217. </table>
  4218. <h3 id="delete_board_card_checklist-responses">Responses</h3>
  4219. <table>
  4220. <thead>
  4221. <tr>
  4222. <th>Status</th>
  4223. <th>Meaning</th>
  4224. <th>Description</th>
  4225. <th>Schema</th>
  4226. </tr>
  4227. </thead>
  4228. <tbody>
  4229. <tr>
  4230. <td>200</td>
  4231. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4232. <td>200 response</td>
  4233. <td>None</td>
  4234. </tr>
  4235. </tbody>
  4236. </table>
  4237. <aside class="warning">
  4238. To perform this operation, you must be authenticated by means of one of the following methods:
  4239. UserSecurity
  4240. </aside>
  4241. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  4242. <h2 id="get_board_card_checklist_item">get_board_card_checklist_item</h2>
  4243. <p><a id="opIdget_board_card_checklist_item"></a></p>
  4244. <blockquote>
  4245. <p>Code samples</p>
  4246. </blockquote>
  4247. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4248. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  4249. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4250. </code></pre>
  4251. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  4252. <span class="undefined"></span></code></pre>
  4253. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4254. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4255. };
  4256. $.ajax({
  4257. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4258. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4259. <span class="hljs-attr">headers</span>: headers,
  4260. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4261. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4262. }
  4263. })
  4264. </code></pre>
  4265. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4266. <span class="hljs-keyword">const</span> headers = {
  4267. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4268. };
  4269. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4270. {
  4271. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4272. <span class="hljs-attr">headers</span>: headers
  4273. })
  4274. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4275. <span class="hljs-keyword">return</span> res.json();
  4276. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4277. <span class="hljs-built_in">console</span>.log(body);
  4278. });
  4279. </code></pre>
  4280. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4281. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4282. headers = {
  4283. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4284. }
  4285. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4286. <span class="hljs-symbol">params:</span> {
  4287. }, <span class="hljs-symbol">headers:</span> headers
  4288. p JSON.parse(result)
  4289. </code></pre>
  4290. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4291. headers = {
  4292. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4293. }
  4294. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  4295. }, headers = headers)
  4296. <span class="hljs-keyword">print</span> r.json()
  4297. </code></pre>
  4298. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  4299. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4300. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4301. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4302. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4303. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4304. String inputLine;
  4305. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4306. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4307. response.append(inputLine);
  4308. }
  4309. in.close();
  4310. System.out.println(response.toString());
  4311. </code></pre>
  4312. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4313. <span class="hljs-keyword">import</span> (
  4314. <span class="hljs-string">"bytes"</span>
  4315. <span class="hljs-string">"net/http"</span>
  4316. )
  4317. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4318. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4319. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4320. }
  4321. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4322. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  4323. req.Header = headers
  4324. client := &amp;http.Client{}
  4325. resp, err := client.Do(req)
  4326. <span class="hljs-comment">// ...</span>
  4327. }
  4328. </code></pre>
  4329. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  4330. <h3 id="get_board_card_checklist_item-parameters">Parameters</h3>
  4331. <table>
  4332. <thead>
  4333. <tr>
  4334. <th>Name</th>
  4335. <th>In</th>
  4336. <th>Type</th>
  4337. <th>Required</th>
  4338. <th>Description</th>
  4339. </tr>
  4340. </thead>
  4341. <tbody>
  4342. <tr>
  4343. <td>board</td>
  4344. <td>path</td>
  4345. <td>string</td>
  4346. <td>true</td>
  4347. <td>the board value</td>
  4348. </tr>
  4349. <tr>
  4350. <td>card</td>
  4351. <td>path</td>
  4352. <td>string</td>
  4353. <td>true</td>
  4354. <td>the card value</td>
  4355. </tr>
  4356. <tr>
  4357. <td>checklist</td>
  4358. <td>path</td>
  4359. <td>string</td>
  4360. <td>true</td>
  4361. <td>the checklist value</td>
  4362. </tr>
  4363. <tr>
  4364. <td>item</td>
  4365. <td>path</td>
  4366. <td>string</td>
  4367. <td>true</td>
  4368. <td>the item value</td>
  4369. </tr>
  4370. </tbody>
  4371. </table>
  4372. <h3 id="get_board_card_checklist_item-responses">Responses</h3>
  4373. <table>
  4374. <thead>
  4375. <tr>
  4376. <th>Status</th>
  4377. <th>Meaning</th>
  4378. <th>Description</th>
  4379. <th>Schema</th>
  4380. </tr>
  4381. </thead>
  4382. <tbody>
  4383. <tr>
  4384. <td>200</td>
  4385. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4386. <td>200 response</td>
  4387. <td>None</td>
  4388. </tr>
  4389. </tbody>
  4390. </table>
  4391. <aside class="warning">
  4392. To perform this operation, you must be authenticated by means of one of the following methods:
  4393. UserSecurity
  4394. </aside>
  4395. <h2 id="put_board_card_checklist_item">put_board_card_checklist_item</h2>
  4396. <p><a id="opIdput_board_card_checklist_item"></a></p>
  4397. <blockquote>
  4398. <p>Code samples</p>
  4399. </blockquote>
  4400. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4401. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  4402. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4403. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4404. </code></pre>
  4405. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  4406. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4407. </span></code></pre>
  4408. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4409. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4410. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4411. };
  4412. $.ajax({
  4413. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4414. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  4415. <span class="hljs-attr">headers</span>: headers,
  4416. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4417. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4418. }
  4419. })
  4420. </code></pre>
  4421. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4422. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4423. "isFinished": "string",
  4424. "title": "string"
  4425. }'</span>;
  4426. <span class="hljs-keyword">const</span> headers = {
  4427. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4428. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4429. };
  4430. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4431. {
  4432. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  4433. <span class="hljs-attr">body</span>: inputBody,
  4434. <span class="hljs-attr">headers</span>: headers
  4435. })
  4436. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4437. <span class="hljs-keyword">return</span> res.json();
  4438. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4439. <span class="hljs-built_in">console</span>.log(body);
  4440. });
  4441. </code></pre>
  4442. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4443. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4444. headers = {
  4445. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4446. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4447. }
  4448. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4449. <span class="hljs-symbol">params:</span> {
  4450. }, <span class="hljs-symbol">headers:</span> headers
  4451. p JSON.parse(result)
  4452. </code></pre>
  4453. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4454. headers = {
  4455. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4456. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4457. }
  4458. r = requests.put(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  4459. }, headers = headers)
  4460. <span class="hljs-keyword">print</span> r.json()
  4461. </code></pre>
  4462. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  4463. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4464. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  4465. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4466. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4467. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4468. String inputLine;
  4469. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4470. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4471. response.append(inputLine);
  4472. }
  4473. in.close();
  4474. System.out.println(response.toString());
  4475. </code></pre>
  4476. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4477. <span class="hljs-keyword">import</span> (
  4478. <span class="hljs-string">"bytes"</span>
  4479. <span class="hljs-string">"net/http"</span>
  4480. )
  4481. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4482. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4483. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4484. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4485. }
  4486. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4487. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  4488. req.Header = headers
  4489. client := &amp;http.Client{}
  4490. resp, err := client.Do(req)
  4491. <span class="hljs-comment">// ...</span>
  4492. }
  4493. </code></pre>
  4494. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  4495. <blockquote>
  4496. <p>Body parameter</p>
  4497. </blockquote>
  4498. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  4499. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4500. </code></pre>
  4501. <h3 id="put_board_card_checklist_item-parameters">Parameters</h3>
  4502. <table>
  4503. <thead>
  4504. <tr>
  4505. <th>Name</th>
  4506. <th>In</th>
  4507. <th>Type</th>
  4508. <th>Required</th>
  4509. <th>Description</th>
  4510. </tr>
  4511. </thead>
  4512. <tbody>
  4513. <tr>
  4514. <td>board</td>
  4515. <td>path</td>
  4516. <td>string</td>
  4517. <td>true</td>
  4518. <td>the board value</td>
  4519. </tr>
  4520. <tr>
  4521. <td>card</td>
  4522. <td>path</td>
  4523. <td>string</td>
  4524. <td>true</td>
  4525. <td>the card value</td>
  4526. </tr>
  4527. <tr>
  4528. <td>checklist</td>
  4529. <td>path</td>
  4530. <td>string</td>
  4531. <td>true</td>
  4532. <td>the checklist value</td>
  4533. </tr>
  4534. <tr>
  4535. <td>item</td>
  4536. <td>path</td>
  4537. <td>string</td>
  4538. <td>true</td>
  4539. <td>the item value</td>
  4540. </tr>
  4541. <tr>
  4542. <td>body</td>
  4543. <td>body</td>
  4544. <td>object</td>
  4545. <td>false</td>
  4546. <td>none</td>
  4547. </tr>
  4548. <tr>
  4549. <td>» isFinished</td>
  4550. <td>body</td>
  4551. <td>string</td>
  4552. <td>true</td>
  4553. <td>the isFinished value</td>
  4554. </tr>
  4555. <tr>
  4556. <td>» title</td>
  4557. <td>body</td>
  4558. <td>string</td>
  4559. <td>true</td>
  4560. <td>the title value</td>
  4561. </tr>
  4562. </tbody>
  4563. </table>
  4564. <h3 id="put_board_card_checklist_item-responses">Responses</h3>
  4565. <table>
  4566. <thead>
  4567. <tr>
  4568. <th>Status</th>
  4569. <th>Meaning</th>
  4570. <th>Description</th>
  4571. <th>Schema</th>
  4572. </tr>
  4573. </thead>
  4574. <tbody>
  4575. <tr>
  4576. <td>200</td>
  4577. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4578. <td>200 response</td>
  4579. <td>None</td>
  4580. </tr>
  4581. </tbody>
  4582. </table>
  4583. <aside class="warning">
  4584. To perform this operation, you must be authenticated by means of one of the following methods:
  4585. UserSecurity
  4586. </aside>
  4587. <h2 id="delete_board_card_checklist_item">delete_board_card_checklist_item</h2>
  4588. <p><a id="opIddelete_board_card_checklist_item"></a></p>
  4589. <blockquote>
  4590. <p>Code samples</p>
  4591. </blockquote>
  4592. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4593. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  4594. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4595. </code></pre>
  4596. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  4597. <span class="undefined"></span></code></pre>
  4598. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4599. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4600. };
  4601. $.ajax({
  4602. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4603. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  4604. <span class="hljs-attr">headers</span>: headers,
  4605. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4606. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4607. }
  4608. })
  4609. </code></pre>
  4610. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4611. <span class="hljs-keyword">const</span> headers = {
  4612. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4613. };
  4614. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4615. {
  4616. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  4617. <span class="hljs-attr">headers</span>: headers
  4618. })
  4619. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4620. <span class="hljs-keyword">return</span> res.json();
  4621. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4622. <span class="hljs-built_in">console</span>.log(body);
  4623. });
  4624. </code></pre>
  4625. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4626. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4627. headers = {
  4628. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4629. }
  4630. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4631. <span class="hljs-symbol">params:</span> {
  4632. }, <span class="hljs-symbol">headers:</span> headers
  4633. p JSON.parse(result)
  4634. </code></pre>
  4635. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4636. headers = {
  4637. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4638. }
  4639. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  4640. }, headers = headers)
  4641. <span class="hljs-keyword">print</span> r.json()
  4642. </code></pre>
  4643. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  4644. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4645. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  4646. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4647. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4648. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4649. String inputLine;
  4650. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4651. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4652. response.append(inputLine);
  4653. }
  4654. in.close();
  4655. System.out.println(response.toString());
  4656. </code></pre>
  4657. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4658. <span class="hljs-keyword">import</span> (
  4659. <span class="hljs-string">"bytes"</span>
  4660. <span class="hljs-string">"net/http"</span>
  4661. )
  4662. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4663. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4664. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4665. }
  4666. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4667. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  4668. req.Header = headers
  4669. client := &amp;http.Client{}
  4670. resp, err := client.Do(req)
  4671. <span class="hljs-comment">// ...</span>
  4672. }
  4673. </code></pre>
  4674. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  4675. <h3 id="delete_board_card_checklist_item-parameters">Parameters</h3>
  4676. <table>
  4677. <thead>
  4678. <tr>
  4679. <th>Name</th>
  4680. <th>In</th>
  4681. <th>Type</th>
  4682. <th>Required</th>
  4683. <th>Description</th>
  4684. </tr>
  4685. </thead>
  4686. <tbody>
  4687. <tr>
  4688. <td>board</td>
  4689. <td>path</td>
  4690. <td>string</td>
  4691. <td>true</td>
  4692. <td>the board value</td>
  4693. </tr>
  4694. <tr>
  4695. <td>card</td>
  4696. <td>path</td>
  4697. <td>string</td>
  4698. <td>true</td>
  4699. <td>the card value</td>
  4700. </tr>
  4701. <tr>
  4702. <td>checklist</td>
  4703. <td>path</td>
  4704. <td>string</td>
  4705. <td>true</td>
  4706. <td>the checklist value</td>
  4707. </tr>
  4708. <tr>
  4709. <td>item</td>
  4710. <td>path</td>
  4711. <td>string</td>
  4712. <td>true</td>
  4713. <td>the item value</td>
  4714. </tr>
  4715. </tbody>
  4716. </table>
  4717. <h3 id="delete_board_card_checklist_item-responses">Responses</h3>
  4718. <table>
  4719. <thead>
  4720. <tr>
  4721. <th>Status</th>
  4722. <th>Meaning</th>
  4723. <th>Description</th>
  4724. <th>Schema</th>
  4725. </tr>
  4726. </thead>
  4727. <tbody>
  4728. <tr>
  4729. <td>200</td>
  4730. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4731. <td>200 response</td>
  4732. <td>None</td>
  4733. </tr>
  4734. </tbody>
  4735. </table>
  4736. <aside class="warning">
  4737. To perform this operation, you must be authenticated by means of one of the following methods:
  4738. UserSecurity
  4739. </aside>
  4740. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  4741. <h2 id="get_all_comments">get_all_comments</h2>
  4742. <p><a id="opIdget_all_comments"></a></p>
  4743. <blockquote>
  4744. <p>Code samples</p>
  4745. </blockquote>
  4746. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4747. curl -X GET /api/boards/{board}/cards/{card}/comments \
  4748. -H <span class="hljs-string">'Accept: application/json'</span> \
  4749. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4750. </code></pre>
  4751. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> HTTP/1.1
  4752. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4753. <span class="undefined"></span></span></code></pre>
  4754. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4755. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4756. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4757. };
  4758. $.ajax({
  4759. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4760. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4761. <span class="hljs-attr">headers</span>: headers,
  4762. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4763. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4764. }
  4765. })
  4766. </code></pre>
  4767. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4768. <span class="hljs-keyword">const</span> headers = {
  4769. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4770. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4771. };
  4772. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4773. {
  4774. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4775. <span class="hljs-attr">headers</span>: headers
  4776. })
  4777. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4778. <span class="hljs-keyword">return</span> res.json();
  4779. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4780. <span class="hljs-built_in">console</span>.log(body);
  4781. });
  4782. </code></pre>
  4783. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4784. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4785. headers = {
  4786. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4787. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4788. }
  4789. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4790. <span class="hljs-symbol">params:</span> {
  4791. }, <span class="hljs-symbol">headers:</span> headers
  4792. p JSON.parse(result)
  4793. </code></pre>
  4794. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4795. headers = {
  4796. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4797. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4798. }
  4799. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  4800. }, headers = headers)
  4801. <span class="hljs-keyword">print</span> r.json()
  4802. </code></pre>
  4803. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>);
  4804. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4805. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4806. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4807. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4808. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4809. String inputLine;
  4810. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4811. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4812. response.append(inputLine);
  4813. }
  4814. in.close();
  4815. System.out.println(response.toString());
  4816. </code></pre>
  4817. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4818. <span class="hljs-keyword">import</span> (
  4819. <span class="hljs-string">"bytes"</span>
  4820. <span class="hljs-string">"net/http"</span>
  4821. )
  4822. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4823. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4824. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4825. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4826. }
  4827. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4828. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  4829. req.Header = headers
  4830. client := &amp;http.Client{}
  4831. resp, err := client.Do(req)
  4832. <span class="hljs-comment">// ...</span>
  4833. }
  4834. </code></pre>
  4835. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  4836. <p><em>Get all comments attached to a card</em></p>
  4837. <h3 id="get_all_comments-parameters">Parameters</h3>
  4838. <table>
  4839. <thead>
  4840. <tr>
  4841. <th>Name</th>
  4842. <th>In</th>
  4843. <th>Type</th>
  4844. <th>Required</th>
  4845. <th>Description</th>
  4846. </tr>
  4847. </thead>
  4848. <tbody>
  4849. <tr>
  4850. <td>board</td>
  4851. <td>path</td>
  4852. <td>string</td>
  4853. <td>true</td>
  4854. <td>the board ID of the card</td>
  4855. </tr>
  4856. <tr>
  4857. <td>card</td>
  4858. <td>path</td>
  4859. <td>string</td>
  4860. <td>true</td>
  4861. <td>the ID of the card</td>
  4862. </tr>
  4863. </tbody>
  4864. </table>
  4865. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4866. <p><strong>board</strong>: the board ID of the card</p>
  4867. <p><strong>card</strong>: the ID of the card</p>
  4868. <blockquote>
  4869. <p>Example responses</p>
  4870. </blockquote>
  4871. <blockquote>
  4872. <p>200 Response</p>
  4873. </blockquote>
  4874. <pre class="highlight tab tab-json"><code>[
  4875. {
  4876. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4877. <span class="hljs-attr">"comment"</span>: <span class="hljs-string">"string"</span>,
  4878. <span class="hljs-attr">"authorId"</span>: <span class="hljs-string">"string"</span>
  4879. }
  4880. ]
  4881. </code></pre>
  4882. <h3 id="get_all_comments-responses">Responses</h3>
  4883. <table>
  4884. <thead>
  4885. <tr>
  4886. <th>Status</th>
  4887. <th>Meaning</th>
  4888. <th>Description</th>
  4889. <th>Schema</th>
  4890. </tr>
  4891. </thead>
  4892. <tbody>
  4893. <tr>
  4894. <td>200</td>
  4895. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4896. <td>200 response</td>
  4897. <td>Inline</td>
  4898. </tr>
  4899. </tbody>
  4900. </table>
  4901. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  4902. <p>Status Code <strong>200</strong></p>
  4903. <table>
  4904. <thead>
  4905. <tr>
  4906. <th>Name</th>
  4907. <th>Type</th>
  4908. <th>Required</th>
  4909. <th>Restrictions</th>
  4910. <th>Description</th>
  4911. </tr>
  4912. </thead>
  4913. <tbody>
  4914. <tr>
  4915. <td>» _id</td>
  4916. <td>string</td>
  4917. <td>false</td>
  4918. <td>none</td>
  4919. <td>none</td>
  4920. </tr>
  4921. <tr>
  4922. <td>» comment</td>
  4923. <td>string</td>
  4924. <td>false</td>
  4925. <td>none</td>
  4926. <td>none</td>
  4927. </tr>
  4928. <tr>
  4929. <td>» authorId</td>
  4930. <td>string</td>
  4931. <td>false</td>
  4932. <td>none</td>
  4933. <td>none</td>
  4934. </tr>
  4935. </tbody>
  4936. </table>
  4937. <aside class="warning">
  4938. To perform this operation, you must be authenticated by means of one of the following methods:
  4939. UserSecurity
  4940. </aside>
  4941. <h2 id="post_board_card_comments">post_board_card_comments</h2>
  4942. <p><a id="opIdpost_board_card_comments"></a></p>
  4943. <blockquote>
  4944. <p>Code samples</p>
  4945. </blockquote>
  4946. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4947. curl -X POST /api/boards/{board}/cards/{card}/comments \
  4948. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4949. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4950. </code></pre>
  4951. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> HTTP/1.1
  4952. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4953. </span></code></pre>
  4954. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4955. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4956. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4957. };
  4958. $.ajax({
  4959. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4960. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  4961. <span class="hljs-attr">headers</span>: headers,
  4962. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4963. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4964. }
  4965. })
  4966. </code></pre>
  4967. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4968. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4969. "authorId": "string",
  4970. "comment": "string"
  4971. }'</span>;
  4972. <span class="hljs-keyword">const</span> headers = {
  4973. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4974. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4975. };
  4976. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4977. {
  4978. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  4979. <span class="hljs-attr">body</span>: inputBody,
  4980. <span class="hljs-attr">headers</span>: headers
  4981. })
  4982. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4983. <span class="hljs-keyword">return</span> res.json();
  4984. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4985. <span class="hljs-built_in">console</span>.log(body);
  4986. });
  4987. </code></pre>
  4988. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4989. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4990. headers = {
  4991. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4992. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4993. }
  4994. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4995. <span class="hljs-symbol">params:</span> {
  4996. }, <span class="hljs-symbol">headers:</span> headers
  4997. p JSON.parse(result)
  4998. </code></pre>
  4999. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5000. headers = {
  5001. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5002. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5003. }
  5004. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  5005. }, headers = headers)
  5006. <span class="hljs-keyword">print</span> r.json()
  5007. </code></pre>
  5008. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>);
  5009. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5010. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  5011. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5012. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5013. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5014. String inputLine;
  5015. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5016. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5017. response.append(inputLine);
  5018. }
  5019. in.close();
  5020. System.out.println(response.toString());
  5021. </code></pre>
  5022. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5023. <span class="hljs-keyword">import</span> (
  5024. <span class="hljs-string">"bytes"</span>
  5025. <span class="hljs-string">"net/http"</span>
  5026. )
  5027. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5028. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5029. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5030. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5031. }
  5032. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5033. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  5034. req.Header = headers
  5035. client := &amp;http.Client{}
  5036. resp, err := client.Do(req)
  5037. <span class="hljs-comment">// ...</span>
  5038. }
  5039. </code></pre>
  5040. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  5041. <blockquote>
  5042. <p>Body parameter</p>
  5043. </blockquote>
  5044. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  5045. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  5046. </code></pre>
  5047. <h3 id="post_board_card_comments-parameters">Parameters</h3>
  5048. <table>
  5049. <thead>
  5050. <tr>
  5051. <th>Name</th>
  5052. <th>In</th>
  5053. <th>Type</th>
  5054. <th>Required</th>
  5055. <th>Description</th>
  5056. </tr>
  5057. </thead>
  5058. <tbody>
  5059. <tr>
  5060. <td>board</td>
  5061. <td>path</td>
  5062. <td>string</td>
  5063. <td>true</td>
  5064. <td>the board value</td>
  5065. </tr>
  5066. <tr>
  5067. <td>card</td>
  5068. <td>path</td>
  5069. <td>string</td>
  5070. <td>true</td>
  5071. <td>the card value</td>
  5072. </tr>
  5073. <tr>
  5074. <td>body</td>
  5075. <td>body</td>
  5076. <td>object</td>
  5077. <td>false</td>
  5078. <td>none</td>
  5079. </tr>
  5080. <tr>
  5081. <td>» authorId</td>
  5082. <td>body</td>
  5083. <td>string</td>
  5084. <td>true</td>
  5085. <td>the authorId value</td>
  5086. </tr>
  5087. <tr>
  5088. <td>» comment</td>
  5089. <td>body</td>
  5090. <td>string</td>
  5091. <td>true</td>
  5092. <td>the comment value</td>
  5093. </tr>
  5094. </tbody>
  5095. </table>
  5096. <h3 id="post_board_card_comments-responses">Responses</h3>
  5097. <table>
  5098. <thead>
  5099. <tr>
  5100. <th>Status</th>
  5101. <th>Meaning</th>
  5102. <th>Description</th>
  5103. <th>Schema</th>
  5104. </tr>
  5105. </thead>
  5106. <tbody>
  5107. <tr>
  5108. <td>200</td>
  5109. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5110. <td>200 response</td>
  5111. <td>None</td>
  5112. </tr>
  5113. </tbody>
  5114. </table>
  5115. <aside class="warning">
  5116. To perform this operation, you must be authenticated by means of one of the following methods:
  5117. UserSecurity
  5118. </aside>
  5119. <h2 id="get_board_card_comment">get_board_card_comment</h2>
  5120. <p><a id="opIdget_board_card_comment"></a></p>
  5121. <blockquote>
  5122. <p>Code samples</p>
  5123. </blockquote>
  5124. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5125. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  5126. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5127. </code></pre>
  5128. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> HTTP/1.1
  5129. <span class="undefined"></span></code></pre>
  5130. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5131. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5132. };
  5133. $.ajax({
  5134. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5135. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5136. <span class="hljs-attr">headers</span>: headers,
  5137. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5138. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5139. }
  5140. })
  5141. </code></pre>
  5142. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5143. <span class="hljs-keyword">const</span> headers = {
  5144. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5145. };
  5146. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5147. {
  5148. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5149. <span class="hljs-attr">headers</span>: headers
  5150. })
  5151. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5152. <span class="hljs-keyword">return</span> res.json();
  5153. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5154. <span class="hljs-built_in">console</span>.log(body);
  5155. });
  5156. </code></pre>
  5157. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5158. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5159. headers = {
  5160. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5161. }
  5162. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5163. <span class="hljs-symbol">params:</span> {
  5164. }, <span class="hljs-symbol">headers:</span> headers
  5165. p JSON.parse(result)
  5166. </code></pre>
  5167. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5168. headers = {
  5169. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5170. }
  5171. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  5172. }, headers = headers)
  5173. <span class="hljs-keyword">print</span> r.json()
  5174. </code></pre>
  5175. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>);
  5176. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5177. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5178. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5179. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5180. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5181. String inputLine;
  5182. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5183. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5184. response.append(inputLine);
  5185. }
  5186. in.close();
  5187. System.out.println(response.toString());
  5188. </code></pre>
  5189. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5190. <span class="hljs-keyword">import</span> (
  5191. <span class="hljs-string">"bytes"</span>
  5192. <span class="hljs-string">"net/http"</span>
  5193. )
  5194. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5195. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5196. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5197. }
  5198. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5199. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  5200. req.Header = headers
  5201. client := &amp;http.Client{}
  5202. resp, err := client.Do(req)
  5203. <span class="hljs-comment">// ...</span>
  5204. }
  5205. </code></pre>
  5206. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  5207. <h3 id="get_board_card_comment-parameters">Parameters</h3>
  5208. <table>
  5209. <thead>
  5210. <tr>
  5211. <th>Name</th>
  5212. <th>In</th>
  5213. <th>Type</th>
  5214. <th>Required</th>
  5215. <th>Description</th>
  5216. </tr>
  5217. </thead>
  5218. <tbody>
  5219. <tr>
  5220. <td>board</td>
  5221. <td>path</td>
  5222. <td>string</td>
  5223. <td>true</td>
  5224. <td>the board value</td>
  5225. </tr>
  5226. <tr>
  5227. <td>card</td>
  5228. <td>path</td>
  5229. <td>string</td>
  5230. <td>true</td>
  5231. <td>the card value</td>
  5232. </tr>
  5233. <tr>
  5234. <td>comment</td>
  5235. <td>path</td>
  5236. <td>string</td>
  5237. <td>true</td>
  5238. <td>the comment value</td>
  5239. </tr>
  5240. </tbody>
  5241. </table>
  5242. <h3 id="get_board_card_comment-responses">Responses</h3>
  5243. <table>
  5244. <thead>
  5245. <tr>
  5246. <th>Status</th>
  5247. <th>Meaning</th>
  5248. <th>Description</th>
  5249. <th>Schema</th>
  5250. </tr>
  5251. </thead>
  5252. <tbody>
  5253. <tr>
  5254. <td>200</td>
  5255. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5256. <td>200 response</td>
  5257. <td>None</td>
  5258. </tr>
  5259. </tbody>
  5260. </table>
  5261. <aside class="warning">
  5262. To perform this operation, you must be authenticated by means of one of the following methods:
  5263. UserSecurity
  5264. </aside>
  5265. <h2 id="delete_board_card_comment">delete_board_card_comment</h2>
  5266. <p><a id="opIddelete_board_card_comment"></a></p>
  5267. <blockquote>
  5268. <p>Code samples</p>
  5269. </blockquote>
  5270. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5271. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  5272. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5273. </code></pre>
  5274. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> HTTP/1.1
  5275. <span class="undefined"></span></code></pre>
  5276. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5277. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5278. };
  5279. $.ajax({
  5280. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5281. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  5282. <span class="hljs-attr">headers</span>: headers,
  5283. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5284. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5285. }
  5286. })
  5287. </code></pre>
  5288. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5289. <span class="hljs-keyword">const</span> headers = {
  5290. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5291. };
  5292. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5293. {
  5294. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  5295. <span class="hljs-attr">headers</span>: headers
  5296. })
  5297. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5298. <span class="hljs-keyword">return</span> res.json();
  5299. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5300. <span class="hljs-built_in">console</span>.log(body);
  5301. });
  5302. </code></pre>
  5303. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5304. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5305. headers = {
  5306. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5307. }
  5308. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5309. <span class="hljs-symbol">params:</span> {
  5310. }, <span class="hljs-symbol">headers:</span> headers
  5311. p JSON.parse(result)
  5312. </code></pre>
  5313. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5314. headers = {
  5315. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5316. }
  5317. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  5318. }, headers = headers)
  5319. <span class="hljs-keyword">print</span> r.json()
  5320. </code></pre>
  5321. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>);
  5322. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5323. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  5324. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5325. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5326. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5327. String inputLine;
  5328. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5329. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5330. response.append(inputLine);
  5331. }
  5332. in.close();
  5333. System.out.println(response.toString());
  5334. </code></pre>
  5335. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5336. <span class="hljs-keyword">import</span> (
  5337. <span class="hljs-string">"bytes"</span>
  5338. <span class="hljs-string">"net/http"</span>
  5339. )
  5340. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5341. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5342. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5343. }
  5344. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5345. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  5346. req.Header = headers
  5347. client := &amp;http.Client{}
  5348. resp, err := client.Do(req)
  5349. <span class="hljs-comment">// ...</span>
  5350. }
  5351. </code></pre>
  5352. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  5353. <h3 id="delete_board_card_comment-parameters">Parameters</h3>
  5354. <table>
  5355. <thead>
  5356. <tr>
  5357. <th>Name</th>
  5358. <th>In</th>
  5359. <th>Type</th>
  5360. <th>Required</th>
  5361. <th>Description</th>
  5362. </tr>
  5363. </thead>
  5364. <tbody>
  5365. <tr>
  5366. <td>board</td>
  5367. <td>path</td>
  5368. <td>string</td>
  5369. <td>true</td>
  5370. <td>the board value</td>
  5371. </tr>
  5372. <tr>
  5373. <td>card</td>
  5374. <td>path</td>
  5375. <td>string</td>
  5376. <td>true</td>
  5377. <td>the card value</td>
  5378. </tr>
  5379. <tr>
  5380. <td>comment</td>
  5381. <td>path</td>
  5382. <td>string</td>
  5383. <td>true</td>
  5384. <td>the comment value</td>
  5385. </tr>
  5386. </tbody>
  5387. </table>
  5388. <h3 id="delete_board_card_comment-responses">Responses</h3>
  5389. <table>
  5390. <thead>
  5391. <tr>
  5392. <th>Status</th>
  5393. <th>Meaning</th>
  5394. <th>Description</th>
  5395. <th>Schema</th>
  5396. </tr>
  5397. </thead>
  5398. <tbody>
  5399. <tr>
  5400. <td>200</td>
  5401. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5402. <td>200 response</td>
  5403. <td>None</td>
  5404. </tr>
  5405. </tbody>
  5406. </table>
  5407. <aside class="warning">
  5408. To perform this operation, you must be authenticated by means of one of the following methods:
  5409. UserSecurity
  5410. </aside>
  5411. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  5412. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  5413. <p><a id="opIdget_all_custom_fields"></a></p>
  5414. <blockquote>
  5415. <p>Code samples</p>
  5416. </blockquote>
  5417. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5418. curl -X GET /api/boards/{board}/custom-fields \
  5419. -H <span class="hljs-string">'Accept: application/json'</span> \
  5420. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5421. </code></pre>
  5422. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> HTTP/1.1
  5423. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5424. <span class="undefined"></span></span></code></pre>
  5425. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5426. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5427. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5428. };
  5429. $.ajax({
  5430. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  5431. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5432. <span class="hljs-attr">headers</span>: headers,
  5433. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5434. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5435. }
  5436. })
  5437. </code></pre>
  5438. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5439. <span class="hljs-keyword">const</span> headers = {
  5440. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5441. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5442. };
  5443. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  5444. {
  5445. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5446. <span class="hljs-attr">headers</span>: headers
  5447. })
  5448. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5449. <span class="hljs-keyword">return</span> res.json();
  5450. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5451. <span class="hljs-built_in">console</span>.log(body);
  5452. });
  5453. </code></pre>
  5454. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5455. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5456. headers = {
  5457. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5458. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5459. }
  5460. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  5461. <span class="hljs-symbol">params:</span> {
  5462. }, <span class="hljs-symbol">headers:</span> headers
  5463. p JSON.parse(result)
  5464. </code></pre>
  5465. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5466. headers = {
  5467. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5468. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5469. }
  5470. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  5471. }, headers = headers)
  5472. <span class="hljs-keyword">print</span> r.json()
  5473. </code></pre>
  5474. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields"</span>);
  5475. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5476. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5477. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5478. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5479. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5480. String inputLine;
  5481. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5482. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5483. response.append(inputLine);
  5484. }
  5485. in.close();
  5486. System.out.println(response.toString());
  5487. </code></pre>
  5488. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5489. <span class="hljs-keyword">import</span> (
  5490. <span class="hljs-string">"bytes"</span>
  5491. <span class="hljs-string">"net/http"</span>
  5492. )
  5493. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5494. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5495. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5496. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5497. }
  5498. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5499. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  5500. req.Header = headers
  5501. client := &amp;http.Client{}
  5502. resp, err := client.Do(req)
  5503. <span class="hljs-comment">// ...</span>
  5504. }
  5505. </code></pre>
  5506. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  5507. <p><em>Get the list of Custom Fields attached to a board</em></p>
  5508. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  5509. <table>
  5510. <thead>
  5511. <tr>
  5512. <th>Name</th>
  5513. <th>In</th>
  5514. <th>Type</th>
  5515. <th>Required</th>
  5516. <th>Description</th>
  5517. </tr>
  5518. </thead>
  5519. <tbody>
  5520. <tr>
  5521. <td>board</td>
  5522. <td>path</td>
  5523. <td>string</td>
  5524. <td>true</td>
  5525. <td>the board value</td>
  5526. </tr>
  5527. </tbody>
  5528. </table>
  5529. <blockquote>
  5530. <p>Example responses</p>
  5531. </blockquote>
  5532. <blockquote>
  5533. <p>200 Response</p>
  5534. </blockquote>
  5535. <pre class="highlight tab tab-json"><code>[
  5536. {
  5537. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  5538. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  5539. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  5540. }
  5541. ]
  5542. </code></pre>
  5543. <h3 id="get_all_custom_fields-responses">Responses</h3>
  5544. <table>
  5545. <thead>
  5546. <tr>
  5547. <th>Status</th>
  5548. <th>Meaning</th>
  5549. <th>Description</th>
  5550. <th>Schema</th>
  5551. </tr>
  5552. </thead>
  5553. <tbody>
  5554. <tr>
  5555. <td>200</td>
  5556. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5557. <td>200 response</td>
  5558. <td>Inline</td>
  5559. </tr>
  5560. </tbody>
  5561. </table>
  5562. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  5563. <p>Status Code <strong>200</strong></p>
  5564. <table>
  5565. <thead>
  5566. <tr>
  5567. <th>Name</th>
  5568. <th>Type</th>
  5569. <th>Required</th>
  5570. <th>Restrictions</th>
  5571. <th>Description</th>
  5572. </tr>
  5573. </thead>
  5574. <tbody>
  5575. <tr>
  5576. <td>» _id</td>
  5577. <td>string</td>
  5578. <td>false</td>
  5579. <td>none</td>
  5580. <td>none</td>
  5581. </tr>
  5582. <tr>
  5583. <td>» name</td>
  5584. <td>string</td>
  5585. <td>false</td>
  5586. <td>none</td>
  5587. <td>none</td>
  5588. </tr>
  5589. <tr>
  5590. <td>» type</td>
  5591. <td>string</td>
  5592. <td>false</td>
  5593. <td>none</td>
  5594. <td>none</td>
  5595. </tr>
  5596. </tbody>
  5597. </table>
  5598. <aside class="warning">
  5599. To perform this operation, you must be authenticated by means of one of the following methods:
  5600. UserSecurity
  5601. </aside>
  5602. <h2 id="new_custom_field">new_custom_field</h2>
  5603. <p><a id="opIdnew_custom_field"></a></p>
  5604. <blockquote>
  5605. <p>Code samples</p>
  5606. </blockquote>
  5607. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5608. curl -X POST /api/boards/{board}/custom-fields \
  5609. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5610. -H <span class="hljs-string">'Accept: application/json'</span> \
  5611. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5612. </code></pre>
  5613. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> HTTP/1.1
  5614. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5615. Accept: application/json
  5616. </span></code></pre>
  5617. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5618. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5619. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5620. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5621. };
  5622. $.ajax({
  5623. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  5624. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  5625. <span class="hljs-attr">headers</span>: headers,
  5626. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5627. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5628. }
  5629. })
  5630. </code></pre>
  5631. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5632. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5633. "name": "string",
  5634. "type": "string",
  5635. "settings": "string",
  5636. "showOnCard": true,
  5637. "automaticallyOnCard": true,
  5638. "showLabelOnMiniCard": true,
  5639. "authorId": "string"
  5640. }'</span>;
  5641. <span class="hljs-keyword">const</span> headers = {
  5642. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5643. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5644. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5645. };
  5646. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  5647. {
  5648. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  5649. <span class="hljs-attr">body</span>: inputBody,
  5650. <span class="hljs-attr">headers</span>: headers
  5651. })
  5652. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5653. <span class="hljs-keyword">return</span> res.json();
  5654. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5655. <span class="hljs-built_in">console</span>.log(body);
  5656. });
  5657. </code></pre>
  5658. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5659. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5660. headers = {
  5661. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5662. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5663. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5664. }
  5665. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  5666. <span class="hljs-symbol">params:</span> {
  5667. }, <span class="hljs-symbol">headers:</span> headers
  5668. p JSON.parse(result)
  5669. </code></pre>
  5670. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5671. headers = {
  5672. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5673. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5674. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5675. }
  5676. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  5677. }, headers = headers)
  5678. <span class="hljs-keyword">print</span> r.json()
  5679. </code></pre>
  5680. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields"</span>);
  5681. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5682. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  5683. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5684. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5685. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5686. String inputLine;
  5687. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5688. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5689. response.append(inputLine);
  5690. }
  5691. in.close();
  5692. System.out.println(response.toString());
  5693. </code></pre>
  5694. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5695. <span class="hljs-keyword">import</span> (
  5696. <span class="hljs-string">"bytes"</span>
  5697. <span class="hljs-string">"net/http"</span>
  5698. )
  5699. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5700. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5701. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5702. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5703. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5704. }
  5705. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5706. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  5707. req.Header = headers
  5708. client := &amp;http.Client{}
  5709. resp, err := client.Do(req)
  5710. <span class="hljs-comment">// ...</span>
  5711. }
  5712. </code></pre>
  5713. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  5714. <p><em>Create a Custom Field</em></p>
  5715. <blockquote>
  5716. <p>Body parameter</p>
  5717. </blockquote>
  5718. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  5719. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  5720. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  5721. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  5722. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  5723. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  5724. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  5725. </code></pre>
  5726. <h3 id="new_custom_field-parameters">Parameters</h3>
  5727. <table>
  5728. <thead>
  5729. <tr>
  5730. <th>Name</th>
  5731. <th>In</th>
  5732. <th>Type</th>
  5733. <th>Required</th>
  5734. <th>Description</th>
  5735. </tr>
  5736. </thead>
  5737. <tbody>
  5738. <tr>
  5739. <td>board</td>
  5740. <td>path</td>
  5741. <td>string</td>
  5742. <td>true</td>
  5743. <td>the board value</td>
  5744. </tr>
  5745. <tr>
  5746. <td>body</td>
  5747. <td>body</td>
  5748. <td>object</td>
  5749. <td>false</td>
  5750. <td>none</td>
  5751. </tr>
  5752. <tr>
  5753. <td>» name</td>
  5754. <td>body</td>
  5755. <td>string</td>
  5756. <td>true</td>
  5757. <td>the name of the custom field</td>
  5758. </tr>
  5759. <tr>
  5760. <td>» type</td>
  5761. <td>body</td>
  5762. <td>string</td>
  5763. <td>true</td>
  5764. <td>the type of the custom field</td>
  5765. </tr>
  5766. <tr>
  5767. <td>» settings</td>
  5768. <td>body</td>
  5769. <td>string</td>
  5770. <td>true</td>
  5771. <td>the settings object of the custom field</td>
  5772. </tr>
  5773. <tr>
  5774. <td>» showOnCard</td>
  5775. <td>body</td>
  5776. <td>boolean</td>
  5777. <td>true</td>
  5778. <td>should we show the custom field on cards?</td>
  5779. </tr>
  5780. <tr>
  5781. <td>» automaticallyOnCard</td>
  5782. <td>body</td>
  5783. <td>boolean</td>
  5784. <td>true</td>
  5785. <td>should the custom fields automatically be added on cards?</td>
  5786. </tr>
  5787. <tr>
  5788. <td>» showLabelOnMiniCard</td>
  5789. <td>body</td>
  5790. <td>boolean</td>
  5791. <td>true</td>
  5792. <td>should the label of the custom field be shown on minicards?</td>
  5793. </tr>
  5794. <tr>
  5795. <td>» authorId</td>
  5796. <td>body</td>
  5797. <td>string</td>
  5798. <td>true</td>
  5799. <td>the authorId value</td>
  5800. </tr>
  5801. </tbody>
  5802. </table>
  5803. <blockquote>
  5804. <p>Example responses</p>
  5805. </blockquote>
  5806. <blockquote>
  5807. <p>200 Response</p>
  5808. </blockquote>
  5809. <pre class="highlight tab tab-json"><code>{
  5810. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5811. }
  5812. </code></pre>
  5813. <h3 id="new_custom_field-responses">Responses</h3>
  5814. <table>
  5815. <thead>
  5816. <tr>
  5817. <th>Status</th>
  5818. <th>Meaning</th>
  5819. <th>Description</th>
  5820. <th>Schema</th>
  5821. </tr>
  5822. </thead>
  5823. <tbody>
  5824. <tr>
  5825. <td>200</td>
  5826. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5827. <td>200 response</td>
  5828. <td>Inline</td>
  5829. </tr>
  5830. </tbody>
  5831. </table>
  5832. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  5833. <p>Status Code <strong>200</strong></p>
  5834. <table>
  5835. <thead>
  5836. <tr>
  5837. <th>Name</th>
  5838. <th>Type</th>
  5839. <th>Required</th>
  5840. <th>Restrictions</th>
  5841. <th>Description</th>
  5842. </tr>
  5843. </thead>
  5844. <tbody>
  5845. <tr>
  5846. <td>» _id</td>
  5847. <td>string</td>
  5848. <td>false</td>
  5849. <td>none</td>
  5850. <td>none</td>
  5851. </tr>
  5852. </tbody>
  5853. </table>
  5854. <aside class="warning">
  5855. To perform this operation, you must be authenticated by means of one of the following methods:
  5856. UserSecurity
  5857. </aside>
  5858. <h2 id="get_board_customfield">get_board_customField</h2>
  5859. <p><a id="opIdget_board_customField"></a></p>
  5860. <blockquote>
  5861. <p>Code samples</p>
  5862. </blockquote>
  5863. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5864. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  5865. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5866. </code></pre>
  5867. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  5868. <span class="undefined"></span></code></pre>
  5869. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5870. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5871. };
  5872. $.ajax({
  5873. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  5874. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5875. <span class="hljs-attr">headers</span>: headers,
  5876. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5877. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5878. }
  5879. })
  5880. </code></pre>
  5881. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5882. <span class="hljs-keyword">const</span> headers = {
  5883. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5884. };
  5885. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  5886. {
  5887. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5888. <span class="hljs-attr">headers</span>: headers
  5889. })
  5890. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5891. <span class="hljs-keyword">return</span> res.json();
  5892. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5893. <span class="hljs-built_in">console</span>.log(body);
  5894. });
  5895. </code></pre>
  5896. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5897. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5898. headers = {
  5899. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5900. }
  5901. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  5902. <span class="hljs-symbol">params:</span> {
  5903. }, <span class="hljs-symbol">headers:</span> headers
  5904. p JSON.parse(result)
  5905. </code></pre>
  5906. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5907. headers = {
  5908. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5909. }
  5910. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  5911. }, headers = headers)
  5912. <span class="hljs-keyword">print</span> r.json()
  5913. </code></pre>
  5914. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>);
  5915. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5916. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5917. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5918. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5919. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5920. String inputLine;
  5921. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5922. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5923. response.append(inputLine);
  5924. }
  5925. in.close();
  5926. System.out.println(response.toString());
  5927. </code></pre>
  5928. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5929. <span class="hljs-keyword">import</span> (
  5930. <span class="hljs-string">"bytes"</span>
  5931. <span class="hljs-string">"net/http"</span>
  5932. )
  5933. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5934. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5935. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5936. }
  5937. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5938. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  5939. req.Header = headers
  5940. client := &amp;http.Client{}
  5941. resp, err := client.Do(req)
  5942. <span class="hljs-comment">// ...</span>
  5943. }
  5944. </code></pre>
  5945. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  5946. <h3 id="get_board_customfield-parameters">Parameters</h3>
  5947. <table>
  5948. <thead>
  5949. <tr>
  5950. <th>Name</th>
  5951. <th>In</th>
  5952. <th>Type</th>
  5953. <th>Required</th>
  5954. <th>Description</th>
  5955. </tr>
  5956. </thead>
  5957. <tbody>
  5958. <tr>
  5959. <td>board</td>
  5960. <td>path</td>
  5961. <td>string</td>
  5962. <td>true</td>
  5963. <td>the board value</td>
  5964. </tr>
  5965. <tr>
  5966. <td>customField</td>
  5967. <td>path</td>
  5968. <td>string</td>
  5969. <td>true</td>
  5970. <td>the customField value</td>
  5971. </tr>
  5972. </tbody>
  5973. </table>
  5974. <h3 id="get_board_customfield-responses">Responses</h3>
  5975. <table>
  5976. <thead>
  5977. <tr>
  5978. <th>Status</th>
  5979. <th>Meaning</th>
  5980. <th>Description</th>
  5981. <th>Schema</th>
  5982. </tr>
  5983. </thead>
  5984. <tbody>
  5985. <tr>
  5986. <td>200</td>
  5987. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5988. <td>200 response</td>
  5989. <td>None</td>
  5990. </tr>
  5991. </tbody>
  5992. </table>
  5993. <aside class="warning">
  5994. To perform this operation, you must be authenticated by means of one of the following methods:
  5995. UserSecurity
  5996. </aside>
  5997. <h2 id="delete_board_customfield">delete_board_customField</h2>
  5998. <p><a id="opIddelete_board_customField"></a></p>
  5999. <blockquote>
  6000. <p>Code samples</p>
  6001. </blockquote>
  6002. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6003. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  6004. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6005. </code></pre>
  6006. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  6007. <span class="undefined"></span></code></pre>
  6008. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6009. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6010. };
  6011. $.ajax({
  6012. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  6013. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  6014. <span class="hljs-attr">headers</span>: headers,
  6015. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6016. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6017. }
  6018. })
  6019. </code></pre>
  6020. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6021. <span class="hljs-keyword">const</span> headers = {
  6022. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6023. };
  6024. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  6025. {
  6026. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  6027. <span class="hljs-attr">headers</span>: headers
  6028. })
  6029. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6030. <span class="hljs-keyword">return</span> res.json();
  6031. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6032. <span class="hljs-built_in">console</span>.log(body);
  6033. });
  6034. </code></pre>
  6035. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6036. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6037. headers = {
  6038. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6039. }
  6040. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  6041. <span class="hljs-symbol">params:</span> {
  6042. }, <span class="hljs-symbol">headers:</span> headers
  6043. p JSON.parse(result)
  6044. </code></pre>
  6045. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6046. headers = {
  6047. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6048. }
  6049. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  6050. }, headers = headers)
  6051. <span class="hljs-keyword">print</span> r.json()
  6052. </code></pre>
  6053. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>);
  6054. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6055. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6056. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6057. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6058. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6059. String inputLine;
  6060. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6061. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6062. response.append(inputLine);
  6063. }
  6064. in.close();
  6065. System.out.println(response.toString());
  6066. </code></pre>
  6067. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6068. <span class="hljs-keyword">import</span> (
  6069. <span class="hljs-string">"bytes"</span>
  6070. <span class="hljs-string">"net/http"</span>
  6071. )
  6072. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6073. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6074. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6075. }
  6076. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6077. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  6078. req.Header = headers
  6079. client := &amp;http.Client{}
  6080. resp, err := client.Do(req)
  6081. <span class="hljs-comment">// ...</span>
  6082. }
  6083. </code></pre>
  6084. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  6085. <h3 id="delete_board_customfield-parameters">Parameters</h3>
  6086. <table>
  6087. <thead>
  6088. <tr>
  6089. <th>Name</th>
  6090. <th>In</th>
  6091. <th>Type</th>
  6092. <th>Required</th>
  6093. <th>Description</th>
  6094. </tr>
  6095. </thead>
  6096. <tbody>
  6097. <tr>
  6098. <td>board</td>
  6099. <td>path</td>
  6100. <td>string</td>
  6101. <td>true</td>
  6102. <td>the board value</td>
  6103. </tr>
  6104. <tr>
  6105. <td>customField</td>
  6106. <td>path</td>
  6107. <td>string</td>
  6108. <td>true</td>
  6109. <td>the customField value</td>
  6110. </tr>
  6111. </tbody>
  6112. </table>
  6113. <h3 id="delete_board_customfield-responses">Responses</h3>
  6114. <table>
  6115. <thead>
  6116. <tr>
  6117. <th>Status</th>
  6118. <th>Meaning</th>
  6119. <th>Description</th>
  6120. <th>Schema</th>
  6121. </tr>
  6122. </thead>
  6123. <tbody>
  6124. <tr>
  6125. <td>200</td>
  6126. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6127. <td>200 response</td>
  6128. <td>None</td>
  6129. </tr>
  6130. </tbody>
  6131. </table>
  6132. <aside class="warning">
  6133. To perform this operation, you must be authenticated by means of one of the following methods:
  6134. UserSecurity
  6135. </aside>
  6136. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  6137. <h2 id="get_all_integrations">get_all_integrations</h2>
  6138. <p><a id="opIdget_all_integrations"></a></p>
  6139. <blockquote>
  6140. <p>Code samples</p>
  6141. </blockquote>
  6142. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6143. curl -X GET /api/boards/{board}/integrations \
  6144. -H <span class="hljs-string">'Accept: application/json'</span> \
  6145. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6146. </code></pre>
  6147. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations</span> HTTP/1.1
  6148. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6149. <span class="undefined"></span></span></code></pre>
  6150. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6151. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6152. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6153. };
  6154. $.ajax({
  6155. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  6156. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6157. <span class="hljs-attr">headers</span>: headers,
  6158. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6159. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6160. }
  6161. })
  6162. </code></pre>
  6163. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6164. <span class="hljs-keyword">const</span> headers = {
  6165. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6166. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6167. };
  6168. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  6169. {
  6170. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6171. <span class="hljs-attr">headers</span>: headers
  6172. })
  6173. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6174. <span class="hljs-keyword">return</span> res.json();
  6175. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6176. <span class="hljs-built_in">console</span>.log(body);
  6177. });
  6178. </code></pre>
  6179. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6180. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6181. headers = {
  6182. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6183. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6184. }
  6185. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  6186. <span class="hljs-symbol">params:</span> {
  6187. }, <span class="hljs-symbol">headers:</span> headers
  6188. p JSON.parse(result)
  6189. </code></pre>
  6190. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6191. headers = {
  6192. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6193. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6194. }
  6195. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  6196. }, headers = headers)
  6197. <span class="hljs-keyword">print</span> r.json()
  6198. </code></pre>
  6199. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations"</span>);
  6200. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6201. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6202. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6203. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6204. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6205. String inputLine;
  6206. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6207. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6208. response.append(inputLine);
  6209. }
  6210. in.close();
  6211. System.out.println(response.toString());
  6212. </code></pre>
  6213. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6214. <span class="hljs-keyword">import</span> (
  6215. <span class="hljs-string">"bytes"</span>
  6216. <span class="hljs-string">"net/http"</span>
  6217. )
  6218. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6219. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6220. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6221. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6222. }
  6223. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6224. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  6225. req.Header = headers
  6226. client := &amp;http.Client{}
  6227. resp, err := client.Do(req)
  6228. <span class="hljs-comment">// ...</span>
  6229. }
  6230. </code></pre>
  6231. <p><code>GET /api/boards/{board}/integrations</code></p>
  6232. <p><em>Get all integrations in board</em></p>
  6233. <h3 id="get_all_integrations-parameters">Parameters</h3>
  6234. <table>
  6235. <thead>
  6236. <tr>
  6237. <th>Name</th>
  6238. <th>In</th>
  6239. <th>Type</th>
  6240. <th>Required</th>
  6241. <th>Description</th>
  6242. </tr>
  6243. </thead>
  6244. <tbody>
  6245. <tr>
  6246. <td>board</td>
  6247. <td>path</td>
  6248. <td>string</td>
  6249. <td>true</td>
  6250. <td>the board ID</td>
  6251. </tr>
  6252. </tbody>
  6253. </table>
  6254. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6255. <p><strong>board</strong>: the board ID</p>
  6256. <blockquote>
  6257. <p>Example responses</p>
  6258. </blockquote>
  6259. <blockquote>
  6260. <p>200 Response</p>
  6261. </blockquote>
  6262. <pre class="highlight tab tab-json"><code>[
  6263. {
  6264. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  6265. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  6266. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  6267. <span class="hljs-attr">"activities"</span>: [
  6268. <span class="hljs-string">"string"</span>
  6269. ],
  6270. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  6271. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  6272. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  6273. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  6274. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  6275. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  6276. }
  6277. ]
  6278. </code></pre>
  6279. <h3 id="get_all_integrations-responses">Responses</h3>
  6280. <table>
  6281. <thead>
  6282. <tr>
  6283. <th>Status</th>
  6284. <th>Meaning</th>
  6285. <th>Description</th>
  6286. <th>Schema</th>
  6287. </tr>
  6288. </thead>
  6289. <tbody>
  6290. <tr>
  6291. <td>200</td>
  6292. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6293. <td>200 response</td>
  6294. <td>Inline</td>
  6295. </tr>
  6296. </tbody>
  6297. </table>
  6298. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  6299. <p>Status Code <strong>200</strong></p>
  6300. <table>
  6301. <thead>
  6302. <tr>
  6303. <th>Name</th>
  6304. <th>Type</th>
  6305. <th>Required</th>
  6306. <th>Restrictions</th>
  6307. <th>Description</th>
  6308. </tr>
  6309. </thead>
  6310. <tbody>
  6311. <tr>
  6312. <td><em>anonymous</em></td>
  6313. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  6314. <td>false</td>
  6315. <td>none</td>
  6316. <td>[Integration with third-party applications]</td>
  6317. </tr>
  6318. <tr>
  6319. <td>» enabled</td>
  6320. <td>boolean</td>
  6321. <td>true</td>
  6322. <td>none</td>
  6323. <td>is the integration enabled?</td>
  6324. </tr>
  6325. <tr>
  6326. <td>» title</td>
  6327. <td>string|null</td>
  6328. <td>false</td>
  6329. <td>none</td>
  6330. <td>name of the integration</td>
  6331. </tr>
  6332. <tr>
  6333. <td>» type</td>
  6334. <td>string</td>
  6335. <td>true</td>
  6336. <td>none</td>
  6337. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  6338. </tr>
  6339. <tr>
  6340. <td>» activities</td>
  6341. <td>[string]</td>
  6342. <td>true</td>
  6343. <td>none</td>
  6344. <td>activities the integration gets triggered (list)</td>
  6345. </tr>
  6346. <tr>
  6347. <td>» url</td>
  6348. <td>string</td>
  6349. <td>true</td>
  6350. <td>none</td>
  6351. <td>none</td>
  6352. </tr>
  6353. <tr>
  6354. <td>» token</td>
  6355. <td>string|null</td>
  6356. <td>false</td>
  6357. <td>none</td>
  6358. <td>token of the integration</td>
  6359. </tr>
  6360. <tr>
  6361. <td>» boardId</td>
  6362. <td>string</td>
  6363. <td>true</td>
  6364. <td>none</td>
  6365. <td>Board ID of the integration</td>
  6366. </tr>
  6367. <tr>
  6368. <td>» createdAt</td>
  6369. <td>string</td>
  6370. <td>true</td>
  6371. <td>none</td>
  6372. <td>Creation date of the integration</td>
  6373. </tr>
  6374. <tr>
  6375. <td>» modifiedAt</td>
  6376. <td>string</td>
  6377. <td>true</td>
  6378. <td>none</td>
  6379. <td>none</td>
  6380. </tr>
  6381. <tr>
  6382. <td>» userId</td>
  6383. <td>string</td>
  6384. <td>true</td>
  6385. <td>none</td>
  6386. <td>user ID who created the interation</td>
  6387. </tr>
  6388. </tbody>
  6389. </table>
  6390. <aside class="warning">
  6391. To perform this operation, you must be authenticated by means of one of the following methods:
  6392. UserSecurity
  6393. </aside>
  6394. <h2 id="new_integration">new_integration</h2>
  6395. <p><a id="opIdnew_integration"></a></p>
  6396. <blockquote>
  6397. <p>Code samples</p>
  6398. </blockquote>
  6399. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6400. curl -X POST /api/boards/{board}/integrations \
  6401. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  6402. -H <span class="hljs-string">'Accept: application/json'</span> \
  6403. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6404. </code></pre>
  6405. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations</span> HTTP/1.1
  6406. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6407. Accept: application/json
  6408. </span></code></pre>
  6409. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6410. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6411. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6412. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6413. };
  6414. $.ajax({
  6415. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  6416. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  6417. <span class="hljs-attr">headers</span>: headers,
  6418. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6419. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6420. }
  6421. })
  6422. </code></pre>
  6423. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6424. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  6425. "url": "string"
  6426. }'</span>;
  6427. <span class="hljs-keyword">const</span> headers = {
  6428. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6429. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6430. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6431. };
  6432. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  6433. {
  6434. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  6435. <span class="hljs-attr">body</span>: inputBody,
  6436. <span class="hljs-attr">headers</span>: headers
  6437. })
  6438. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6439. <span class="hljs-keyword">return</span> res.json();
  6440. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6441. <span class="hljs-built_in">console</span>.log(body);
  6442. });
  6443. </code></pre>
  6444. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6445. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6446. headers = {
  6447. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  6448. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6449. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6450. }
  6451. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  6452. <span class="hljs-symbol">params:</span> {
  6453. }, <span class="hljs-symbol">headers:</span> headers
  6454. p JSON.parse(result)
  6455. </code></pre>
  6456. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6457. headers = {
  6458. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  6459. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6460. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6461. }
  6462. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  6463. }, headers = headers)
  6464. <span class="hljs-keyword">print</span> r.json()
  6465. </code></pre>
  6466. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations"</span>);
  6467. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6468. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  6469. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6470. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6471. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6472. String inputLine;
  6473. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6474. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6475. response.append(inputLine);
  6476. }
  6477. in.close();
  6478. System.out.println(response.toString());
  6479. </code></pre>
  6480. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6481. <span class="hljs-keyword">import</span> (
  6482. <span class="hljs-string">"bytes"</span>
  6483. <span class="hljs-string">"net/http"</span>
  6484. )
  6485. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6486. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6487. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6488. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6489. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6490. }
  6491. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6492. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  6493. req.Header = headers
  6494. client := &amp;http.Client{}
  6495. resp, err := client.Do(req)
  6496. <span class="hljs-comment">// ...</span>
  6497. }
  6498. </code></pre>
  6499. <p><code>POST /api/boards/{board}/integrations</code></p>
  6500. <p><em>Create a new integration</em></p>
  6501. <blockquote>
  6502. <p>Body parameter</p>
  6503. </blockquote>
  6504. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  6505. </code></pre>
  6506. <h3 id="new_integration-parameters">Parameters</h3>
  6507. <table>
  6508. <thead>
  6509. <tr>
  6510. <th>Name</th>
  6511. <th>In</th>
  6512. <th>Type</th>
  6513. <th>Required</th>
  6514. <th>Description</th>
  6515. </tr>
  6516. </thead>
  6517. <tbody>
  6518. <tr>
  6519. <td>board</td>
  6520. <td>path</td>
  6521. <td>string</td>
  6522. <td>true</td>
  6523. <td>the board ID</td>
  6524. </tr>
  6525. <tr>
  6526. <td>body</td>
  6527. <td>body</td>
  6528. <td>object</td>
  6529. <td>false</td>
  6530. <td>none</td>
  6531. </tr>
  6532. <tr>
  6533. <td>» url</td>
  6534. <td>body</td>
  6535. <td>string</td>
  6536. <td>true</td>
  6537. <td>the URL of the integration</td>
  6538. </tr>
  6539. </tbody>
  6540. </table>
  6541. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6542. <p><strong>board</strong>: the board ID</p>
  6543. <blockquote>
  6544. <p>Example responses</p>
  6545. </blockquote>
  6546. <blockquote>
  6547. <p>200 Response</p>
  6548. </blockquote>
  6549. <pre class="highlight tab tab-json"><code>{
  6550. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6551. }
  6552. </code></pre>
  6553. <h3 id="new_integration-responses">Responses</h3>
  6554. <table>
  6555. <thead>
  6556. <tr>
  6557. <th>Status</th>
  6558. <th>Meaning</th>
  6559. <th>Description</th>
  6560. <th>Schema</th>
  6561. </tr>
  6562. </thead>
  6563. <tbody>
  6564. <tr>
  6565. <td>200</td>
  6566. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6567. <td>200 response</td>
  6568. <td>Inline</td>
  6569. </tr>
  6570. </tbody>
  6571. </table>
  6572. <h3 id="new_integration-responseschema">Response Schema</h3>
  6573. <p>Status Code <strong>200</strong></p>
  6574. <table>
  6575. <thead>
  6576. <tr>
  6577. <th>Name</th>
  6578. <th>Type</th>
  6579. <th>Required</th>
  6580. <th>Restrictions</th>
  6581. <th>Description</th>
  6582. </tr>
  6583. </thead>
  6584. <tbody>
  6585. <tr>
  6586. <td>» _id</td>
  6587. <td>string</td>
  6588. <td>false</td>
  6589. <td>none</td>
  6590. <td>none</td>
  6591. </tr>
  6592. </tbody>
  6593. </table>
  6594. <aside class="warning">
  6595. To perform this operation, you must be authenticated by means of one of the following methods:
  6596. UserSecurity
  6597. </aside>
  6598. <h2 id="get_integration">get_integration</h2>
  6599. <p><a id="opIdget_integration"></a></p>
  6600. <blockquote>
  6601. <p>Code samples</p>
  6602. </blockquote>
  6603. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6604. curl -X GET /api/boards/{board}/integrations/{int} \
  6605. -H <span class="hljs-string">'Accept: application/json'</span> \
  6606. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6607. </code></pre>
  6608. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  6609. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6610. <span class="undefined"></span></span></code></pre>
  6611. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6612. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6613. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6614. };
  6615. $.ajax({
  6616. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  6617. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6618. <span class="hljs-attr">headers</span>: headers,
  6619. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6620. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6621. }
  6622. })
  6623. </code></pre>
  6624. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6625. <span class="hljs-keyword">const</span> headers = {
  6626. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6627. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6628. };
  6629. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  6630. {
  6631. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6632. <span class="hljs-attr">headers</span>: headers
  6633. })
  6634. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6635. <span class="hljs-keyword">return</span> res.json();
  6636. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6637. <span class="hljs-built_in">console</span>.log(body);
  6638. });
  6639. </code></pre>
  6640. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6641. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6642. headers = {
  6643. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6644. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6645. }
  6646. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  6647. <span class="hljs-symbol">params:</span> {
  6648. }, <span class="hljs-symbol">headers:</span> headers
  6649. p JSON.parse(result)
  6650. </code></pre>
  6651. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6652. headers = {
  6653. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6654. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6655. }
  6656. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  6657. }, headers = headers)
  6658. <span class="hljs-keyword">print</span> r.json()
  6659. </code></pre>
  6660. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  6661. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6662. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6663. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6664. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6665. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6666. String inputLine;
  6667. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6668. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6669. response.append(inputLine);
  6670. }
  6671. in.close();
  6672. System.out.println(response.toString());
  6673. </code></pre>
  6674. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6675. <span class="hljs-keyword">import</span> (
  6676. <span class="hljs-string">"bytes"</span>
  6677. <span class="hljs-string">"net/http"</span>
  6678. )
  6679. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6680. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6681. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6682. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6683. }
  6684. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6685. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  6686. req.Header = headers
  6687. client := &amp;http.Client{}
  6688. resp, err := client.Do(req)
  6689. <span class="hljs-comment">// ...</span>
  6690. }
  6691. </code></pre>
  6692. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  6693. <p><em>Get a single integration in board</em></p>
  6694. <h3 id="get_integration-parameters">Parameters</h3>
  6695. <table>
  6696. <thead>
  6697. <tr>
  6698. <th>Name</th>
  6699. <th>In</th>
  6700. <th>Type</th>
  6701. <th>Required</th>
  6702. <th>Description</th>
  6703. </tr>
  6704. </thead>
  6705. <tbody>
  6706. <tr>
  6707. <td>board</td>
  6708. <td>path</td>
  6709. <td>string</td>
  6710. <td>true</td>
  6711. <td>the board ID</td>
  6712. </tr>
  6713. <tr>
  6714. <td>int</td>
  6715. <td>path</td>
  6716. <td>string</td>
  6717. <td>true</td>
  6718. <td>the integration ID</td>
  6719. </tr>
  6720. </tbody>
  6721. </table>
  6722. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6723. <p><strong>board</strong>: the board ID</p>
  6724. <p><strong>int</strong>: the integration ID</p>
  6725. <blockquote>
  6726. <p>Example responses</p>
  6727. </blockquote>
  6728. <blockquote>
  6729. <p>200 Response</p>
  6730. </blockquote>
  6731. <pre class="highlight tab tab-json"><code>{
  6732. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  6733. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  6734. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  6735. <span class="hljs-attr">"activities"</span>: [
  6736. <span class="hljs-string">"string"</span>
  6737. ],
  6738. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  6739. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  6740. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  6741. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  6742. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  6743. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  6744. }
  6745. </code></pre>
  6746. <h3 id="get_integration-responses">Responses</h3>
  6747. <table>
  6748. <thead>
  6749. <tr>
  6750. <th>Status</th>
  6751. <th>Meaning</th>
  6752. <th>Description</th>
  6753. <th>Schema</th>
  6754. </tr>
  6755. </thead>
  6756. <tbody>
  6757. <tr>
  6758. <td>200</td>
  6759. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6760. <td>200 response</td>
  6761. <td><a href="#schemaintegrations">Integrations</a></td>
  6762. </tr>
  6763. </tbody>
  6764. </table>
  6765. <aside class="warning">
  6766. To perform this operation, you must be authenticated by means of one of the following methods:
  6767. UserSecurity
  6768. </aside>
  6769. <h2 id="edit_integration">edit_integration</h2>
  6770. <p><a id="opIdedit_integration"></a></p>
  6771. <blockquote>
  6772. <p>Code samples</p>
  6773. </blockquote>
  6774. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6775. curl -X PUT /api/boards/{board}/integrations/{int} \
  6776. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  6777. -H <span class="hljs-string">'Accept: application/json'</span> \
  6778. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6779. </code></pre>
  6780. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  6781. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6782. Accept: application/json
  6783. </span></code></pre>
  6784. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6785. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6786. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6787. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6788. };
  6789. $.ajax({
  6790. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  6791. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  6792. <span class="hljs-attr">headers</span>: headers,
  6793. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6794. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6795. }
  6796. })
  6797. </code></pre>
  6798. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6799. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  6800. "enabled": "string",
  6801. "title": "string",
  6802. "url": "string",
  6803. "token": "string",
  6804. "activities": "string"
  6805. }'</span>;
  6806. <span class="hljs-keyword">const</span> headers = {
  6807. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6808. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6809. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6810. };
  6811. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  6812. {
  6813. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  6814. <span class="hljs-attr">body</span>: inputBody,
  6815. <span class="hljs-attr">headers</span>: headers
  6816. })
  6817. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6818. <span class="hljs-keyword">return</span> res.json();
  6819. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6820. <span class="hljs-built_in">console</span>.log(body);
  6821. });
  6822. </code></pre>
  6823. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6824. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6825. headers = {
  6826. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  6827. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6828. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6829. }
  6830. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  6831. <span class="hljs-symbol">params:</span> {
  6832. }, <span class="hljs-symbol">headers:</span> headers
  6833. p JSON.parse(result)
  6834. </code></pre>
  6835. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6836. headers = {
  6837. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  6838. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6839. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6840. }
  6841. r = requests.put(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  6842. }, headers = headers)
  6843. <span class="hljs-keyword">print</span> r.json()
  6844. </code></pre>
  6845. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  6846. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6847. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  6848. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6849. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6850. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6851. String inputLine;
  6852. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6853. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6854. response.append(inputLine);
  6855. }
  6856. in.close();
  6857. System.out.println(response.toString());
  6858. </code></pre>
  6859. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6860. <span class="hljs-keyword">import</span> (
  6861. <span class="hljs-string">"bytes"</span>
  6862. <span class="hljs-string">"net/http"</span>
  6863. )
  6864. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6865. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6866. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6867. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6868. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6869. }
  6870. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6871. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  6872. req.Header = headers
  6873. client := &amp;http.Client{}
  6874. resp, err := client.Do(req)
  6875. <span class="hljs-comment">// ...</span>
  6876. }
  6877. </code></pre>
  6878. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  6879. <p><em>Edit integration data</em></p>
  6880. <blockquote>
  6881. <p>Body parameter</p>
  6882. </blockquote>
  6883. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  6884. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  6885. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  6886. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  6887. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  6888. </code></pre>
  6889. <h3 id="edit_integration-parameters">Parameters</h3>
  6890. <table>
  6891. <thead>
  6892. <tr>
  6893. <th>Name</th>
  6894. <th>In</th>
  6895. <th>Type</th>
  6896. <th>Required</th>
  6897. <th>Description</th>
  6898. </tr>
  6899. </thead>
  6900. <tbody>
  6901. <tr>
  6902. <td>board</td>
  6903. <td>path</td>
  6904. <td>string</td>
  6905. <td>true</td>
  6906. <td>the board ID</td>
  6907. </tr>
  6908. <tr>
  6909. <td>int</td>
  6910. <td>path</td>
  6911. <td>string</td>
  6912. <td>true</td>
  6913. <td>the integration ID</td>
  6914. </tr>
  6915. <tr>
  6916. <td>body</td>
  6917. <td>body</td>
  6918. <td>object</td>
  6919. <td>false</td>
  6920. <td>none</td>
  6921. </tr>
  6922. <tr>
  6923. <td>» enabled</td>
  6924. <td>body</td>
  6925. <td>string</td>
  6926. <td>false</td>
  6927. <td>is the integration enabled?</td>
  6928. </tr>
  6929. <tr>
  6930. <td>» title</td>
  6931. <td>body</td>
  6932. <td>string</td>
  6933. <td>false</td>
  6934. <td>new name of the integration</td>
  6935. </tr>
  6936. <tr>
  6937. <td>» url</td>
  6938. <td>body</td>
  6939. <td>string</td>
  6940. <td>false</td>
  6941. <td>new URL of the integration</td>
  6942. </tr>
  6943. <tr>
  6944. <td>» token</td>
  6945. <td>body</td>
  6946. <td>string</td>
  6947. <td>false</td>
  6948. <td>new token of the integration</td>
  6949. </tr>
  6950. <tr>
  6951. <td>» activities</td>
  6952. <td>body</td>
  6953. <td>string</td>
  6954. <td>false</td>
  6955. <td>new list of activities of the integration</td>
  6956. </tr>
  6957. </tbody>
  6958. </table>
  6959. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6960. <p><strong>board</strong>: the board ID</p>
  6961. <p><strong>int</strong>: the integration ID</p>
  6962. <blockquote>
  6963. <p>Example responses</p>
  6964. </blockquote>
  6965. <blockquote>
  6966. <p>200 Response</p>
  6967. </blockquote>
  6968. <pre class="highlight tab tab-json"><code>{
  6969. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6970. }
  6971. </code></pre>
  6972. <h3 id="edit_integration-responses">Responses</h3>
  6973. <table>
  6974. <thead>
  6975. <tr>
  6976. <th>Status</th>
  6977. <th>Meaning</th>
  6978. <th>Description</th>
  6979. <th>Schema</th>
  6980. </tr>
  6981. </thead>
  6982. <tbody>
  6983. <tr>
  6984. <td>200</td>
  6985. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6986. <td>200 response</td>
  6987. <td>Inline</td>
  6988. </tr>
  6989. </tbody>
  6990. </table>
  6991. <h3 id="edit_integration-responseschema">Response Schema</h3>
  6992. <p>Status Code <strong>200</strong></p>
  6993. <table>
  6994. <thead>
  6995. <tr>
  6996. <th>Name</th>
  6997. <th>Type</th>
  6998. <th>Required</th>
  6999. <th>Restrictions</th>
  7000. <th>Description</th>
  7001. </tr>
  7002. </thead>
  7003. <tbody>
  7004. <tr>
  7005. <td>» _id</td>
  7006. <td>string</td>
  7007. <td>false</td>
  7008. <td>none</td>
  7009. <td>none</td>
  7010. </tr>
  7011. </tbody>
  7012. </table>
  7013. <aside class="warning">
  7014. To perform this operation, you must be authenticated by means of one of the following methods:
  7015. UserSecurity
  7016. </aside>
  7017. <h2 id="delete_integration">delete_integration</h2>
  7018. <p><a id="opIddelete_integration"></a></p>
  7019. <blockquote>
  7020. <p>Code samples</p>
  7021. </blockquote>
  7022. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7023. curl -X DELETE /api/boards/{board}/integrations/{int} \
  7024. -H <span class="hljs-string">'Accept: application/json'</span> \
  7025. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7026. </code></pre>
  7027. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  7028. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7029. <span class="undefined"></span></span></code></pre>
  7030. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7031. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7032. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7033. };
  7034. $.ajax({
  7035. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  7036. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  7037. <span class="hljs-attr">headers</span>: headers,
  7038. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7039. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7040. }
  7041. })
  7042. </code></pre>
  7043. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7044. <span class="hljs-keyword">const</span> headers = {
  7045. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7046. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7047. };
  7048. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  7049. {
  7050. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  7051. <span class="hljs-attr">headers</span>: headers
  7052. })
  7053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7054. <span class="hljs-keyword">return</span> res.json();
  7055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7056. <span class="hljs-built_in">console</span>.log(body);
  7057. });
  7058. </code></pre>
  7059. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7060. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7061. headers = {
  7062. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7063. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7064. }
  7065. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  7066. <span class="hljs-symbol">params:</span> {
  7067. }, <span class="hljs-symbol">headers:</span> headers
  7068. p JSON.parse(result)
  7069. </code></pre>
  7070. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7071. headers = {
  7072. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7073. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7074. }
  7075. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  7076. }, headers = headers)
  7077. <span class="hljs-keyword">print</span> r.json()
  7078. </code></pre>
  7079. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  7080. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7081. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  7082. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7083. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7084. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7085. String inputLine;
  7086. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7087. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7088. response.append(inputLine);
  7089. }
  7090. in.close();
  7091. System.out.println(response.toString());
  7092. </code></pre>
  7093. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7094. <span class="hljs-keyword">import</span> (
  7095. <span class="hljs-string">"bytes"</span>
  7096. <span class="hljs-string">"net/http"</span>
  7097. )
  7098. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7099. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7100. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7101. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7102. }
  7103. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7104. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  7105. req.Header = headers
  7106. client := &amp;http.Client{}
  7107. resp, err := client.Do(req)
  7108. <span class="hljs-comment">// ...</span>
  7109. }
  7110. </code></pre>
  7111. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  7112. <p><em>Delete integration</em></p>
  7113. <h3 id="delete_integration-parameters">Parameters</h3>
  7114. <table>
  7115. <thead>
  7116. <tr>
  7117. <th>Name</th>
  7118. <th>In</th>
  7119. <th>Type</th>
  7120. <th>Required</th>
  7121. <th>Description</th>
  7122. </tr>
  7123. </thead>
  7124. <tbody>
  7125. <tr>
  7126. <td>board</td>
  7127. <td>path</td>
  7128. <td>string</td>
  7129. <td>true</td>
  7130. <td>the board ID</td>
  7131. </tr>
  7132. <tr>
  7133. <td>int</td>
  7134. <td>path</td>
  7135. <td>string</td>
  7136. <td>true</td>
  7137. <td>the integration ID</td>
  7138. </tr>
  7139. </tbody>
  7140. </table>
  7141. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7142. <p><strong>board</strong>: the board ID</p>
  7143. <p><strong>int</strong>: the integration ID</p>
  7144. <blockquote>
  7145. <p>Example responses</p>
  7146. </blockquote>
  7147. <blockquote>
  7148. <p>200 Response</p>
  7149. </blockquote>
  7150. <pre class="highlight tab tab-json"><code>{
  7151. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7152. }
  7153. </code></pre>
  7154. <h3 id="delete_integration-responses">Responses</h3>
  7155. <table>
  7156. <thead>
  7157. <tr>
  7158. <th>Status</th>
  7159. <th>Meaning</th>
  7160. <th>Description</th>
  7161. <th>Schema</th>
  7162. </tr>
  7163. </thead>
  7164. <tbody>
  7165. <tr>
  7166. <td>200</td>
  7167. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7168. <td>200 response</td>
  7169. <td>Inline</td>
  7170. </tr>
  7171. </tbody>
  7172. </table>
  7173. <h3 id="delete_integration-responseschema">Response Schema</h3>
  7174. <p>Status Code <strong>200</strong></p>
  7175. <table>
  7176. <thead>
  7177. <tr>
  7178. <th>Name</th>
  7179. <th>Type</th>
  7180. <th>Required</th>
  7181. <th>Restrictions</th>
  7182. <th>Description</th>
  7183. </tr>
  7184. </thead>
  7185. <tbody>
  7186. <tr>
  7187. <td>» _id</td>
  7188. <td>string</td>
  7189. <td>false</td>
  7190. <td>none</td>
  7191. <td>none</td>
  7192. </tr>
  7193. </tbody>
  7194. </table>
  7195. <aside class="warning">
  7196. To perform this operation, you must be authenticated by means of one of the following methods:
  7197. UserSecurity
  7198. </aside>
  7199. <h2 id="delete_board_int_activities">delete_board_int_activities</h2>
  7200. <p><a id="opIddelete_board_int_activities"></a></p>
  7201. <blockquote>
  7202. <p>Code samples</p>
  7203. </blockquote>
  7204. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7205. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  7206. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7207. </code></pre>
  7208. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> HTTP/1.1
  7209. <span class="undefined"></span></code></pre>
  7210. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7211. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7212. };
  7213. $.ajax({
  7214. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  7215. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  7216. <span class="hljs-attr">headers</span>: headers,
  7217. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7218. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7219. }
  7220. })
  7221. </code></pre>
  7222. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7223. <span class="hljs-keyword">const</span> headers = {
  7224. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7225. };
  7226. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  7227. {
  7228. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  7229. <span class="hljs-attr">headers</span>: headers
  7230. })
  7231. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7232. <span class="hljs-keyword">return</span> res.json();
  7233. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7234. <span class="hljs-built_in">console</span>.log(body);
  7235. });
  7236. </code></pre>
  7237. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7238. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7239. headers = {
  7240. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7241. }
  7242. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  7243. <span class="hljs-symbol">params:</span> {
  7244. }, <span class="hljs-symbol">headers:</span> headers
  7245. p JSON.parse(result)
  7246. </code></pre>
  7247. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7248. headers = {
  7249. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7250. }
  7251. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  7252. }, headers = headers)
  7253. <span class="hljs-keyword">print</span> r.json()
  7254. </code></pre>
  7255. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>);
  7256. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7257. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  7258. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7259. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7260. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7261. String inputLine;
  7262. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7263. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7264. response.append(inputLine);
  7265. }
  7266. in.close();
  7267. System.out.println(response.toString());
  7268. </code></pre>
  7269. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7270. <span class="hljs-keyword">import</span> (
  7271. <span class="hljs-string">"bytes"</span>
  7272. <span class="hljs-string">"net/http"</span>
  7273. )
  7274. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7275. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7276. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7277. }
  7278. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7279. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  7280. req.Header = headers
  7281. client := &amp;http.Client{}
  7282. resp, err := client.Do(req)
  7283. <span class="hljs-comment">// ...</span>
  7284. }
  7285. </code></pre>
  7286. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  7287. <h3 id="delete_board_int_activities-parameters">Parameters</h3>
  7288. <table>
  7289. <thead>
  7290. <tr>
  7291. <th>Name</th>
  7292. <th>In</th>
  7293. <th>Type</th>
  7294. <th>Required</th>
  7295. <th>Description</th>
  7296. </tr>
  7297. </thead>
  7298. <tbody>
  7299. <tr>
  7300. <td>board</td>
  7301. <td>path</td>
  7302. <td>string</td>
  7303. <td>true</td>
  7304. <td>the board value</td>
  7305. </tr>
  7306. <tr>
  7307. <td>int</td>
  7308. <td>path</td>
  7309. <td>string</td>
  7310. <td>true</td>
  7311. <td>the int value</td>
  7312. </tr>
  7313. </tbody>
  7314. </table>
  7315. <h3 id="delete_board_int_activities-responses">Responses</h3>
  7316. <table>
  7317. <thead>
  7318. <tr>
  7319. <th>Status</th>
  7320. <th>Meaning</th>
  7321. <th>Description</th>
  7322. <th>Schema</th>
  7323. </tr>
  7324. </thead>
  7325. <tbody>
  7326. <tr>
  7327. <td>200</td>
  7328. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7329. <td>200 response</td>
  7330. <td>None</td>
  7331. </tr>
  7332. </tbody>
  7333. </table>
  7334. <aside class="warning">
  7335. To perform this operation, you must be authenticated by means of one of the following methods:
  7336. UserSecurity
  7337. </aside>
  7338. <h2 id="post_board_int_activities">post_board_int_activities</h2>
  7339. <p><a id="opIdpost_board_int_activities"></a></p>
  7340. <blockquote>
  7341. <p>Code samples</p>
  7342. </blockquote>
  7343. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7344. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  7345. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7346. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7347. </code></pre>
  7348. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> HTTP/1.1
  7349. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7350. </span></code></pre>
  7351. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7352. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7353. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7354. };
  7355. $.ajax({
  7356. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  7357. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  7358. <span class="hljs-attr">headers</span>: headers,
  7359. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7360. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7361. }
  7362. })
  7363. </code></pre>
  7364. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7365. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7366. "activities": "string"
  7367. }'</span>;
  7368. <span class="hljs-keyword">const</span> headers = {
  7369. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7370. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7371. };
  7372. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  7373. {
  7374. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  7375. <span class="hljs-attr">body</span>: inputBody,
  7376. <span class="hljs-attr">headers</span>: headers
  7377. })
  7378. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7379. <span class="hljs-keyword">return</span> res.json();
  7380. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7381. <span class="hljs-built_in">console</span>.log(body);
  7382. });
  7383. </code></pre>
  7384. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7385. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7386. headers = {
  7387. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7388. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7389. }
  7390. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  7391. <span class="hljs-symbol">params:</span> {
  7392. }, <span class="hljs-symbol">headers:</span> headers
  7393. p JSON.parse(result)
  7394. </code></pre>
  7395. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7396. headers = {
  7397. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7398. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7399. }
  7400. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  7401. }, headers = headers)
  7402. <span class="hljs-keyword">print</span> r.json()
  7403. </code></pre>
  7404. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>);
  7405. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7406. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  7407. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7408. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7409. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7410. String inputLine;
  7411. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7412. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7413. response.append(inputLine);
  7414. }
  7415. in.close();
  7416. System.out.println(response.toString());
  7417. </code></pre>
  7418. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7419. <span class="hljs-keyword">import</span> (
  7420. <span class="hljs-string">"bytes"</span>
  7421. <span class="hljs-string">"net/http"</span>
  7422. )
  7423. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7424. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7425. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7426. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7427. }
  7428. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7429. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  7430. req.Header = headers
  7431. client := &amp;http.Client{}
  7432. resp, err := client.Do(req)
  7433. <span class="hljs-comment">// ...</span>
  7434. }
  7435. </code></pre>
  7436. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  7437. <blockquote>
  7438. <p>Body parameter</p>
  7439. </blockquote>
  7440. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  7441. </code></pre>
  7442. <h3 id="post_board_int_activities-parameters">Parameters</h3>
  7443. <table>
  7444. <thead>
  7445. <tr>
  7446. <th>Name</th>
  7447. <th>In</th>
  7448. <th>Type</th>
  7449. <th>Required</th>
  7450. <th>Description</th>
  7451. </tr>
  7452. </thead>
  7453. <tbody>
  7454. <tr>
  7455. <td>board</td>
  7456. <td>path</td>
  7457. <td>string</td>
  7458. <td>true</td>
  7459. <td>the board value</td>
  7460. </tr>
  7461. <tr>
  7462. <td>int</td>
  7463. <td>path</td>
  7464. <td>string</td>
  7465. <td>true</td>
  7466. <td>the int value</td>
  7467. </tr>
  7468. <tr>
  7469. <td>body</td>
  7470. <td>body</td>
  7471. <td>object</td>
  7472. <td>false</td>
  7473. <td>none</td>
  7474. </tr>
  7475. <tr>
  7476. <td>» activities</td>
  7477. <td>body</td>
  7478. <td>string</td>
  7479. <td>true</td>
  7480. <td>the activities value</td>
  7481. </tr>
  7482. </tbody>
  7483. </table>
  7484. <h3 id="post_board_int_activities-responses">Responses</h3>
  7485. <table>
  7486. <thead>
  7487. <tr>
  7488. <th>Status</th>
  7489. <th>Meaning</th>
  7490. <th>Description</th>
  7491. <th>Schema</th>
  7492. </tr>
  7493. </thead>
  7494. <tbody>
  7495. <tr>
  7496. <td>200</td>
  7497. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7498. <td>200 response</td>
  7499. <td>None</td>
  7500. </tr>
  7501. </tbody>
  7502. </table>
  7503. <aside class="warning">
  7504. To perform this operation, you must be authenticated by means of one of the following methods:
  7505. UserSecurity
  7506. </aside>
  7507. <h1 id="wekan-rest-api-lists">Lists</h1>
  7508. <h2 id="get_all_lists">get_all_lists</h2>
  7509. <p><a id="opIdget_all_lists"></a></p>
  7510. <blockquote>
  7511. <p>Code samples</p>
  7512. </blockquote>
  7513. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7514. curl -X GET /api/boards/{board}/lists \
  7515. -H <span class="hljs-string">'Accept: application/json'</span> \
  7516. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7517. </code></pre>
  7518. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists</span> HTTP/1.1
  7519. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7520. <span class="undefined"></span></span></code></pre>
  7521. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7522. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7523. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7524. };
  7525. $.ajax({
  7526. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  7527. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7528. <span class="hljs-attr">headers</span>: headers,
  7529. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7530. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7531. }
  7532. })
  7533. </code></pre>
  7534. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7535. <span class="hljs-keyword">const</span> headers = {
  7536. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7537. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7538. };
  7539. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  7540. {
  7541. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7542. <span class="hljs-attr">headers</span>: headers
  7543. })
  7544. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7545. <span class="hljs-keyword">return</span> res.json();
  7546. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7547. <span class="hljs-built_in">console</span>.log(body);
  7548. });
  7549. </code></pre>
  7550. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7551. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7552. headers = {
  7553. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7554. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7555. }
  7556. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  7557. <span class="hljs-symbol">params:</span> {
  7558. }, <span class="hljs-symbol">headers:</span> headers
  7559. p JSON.parse(result)
  7560. </code></pre>
  7561. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7562. headers = {
  7563. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7564. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7565. }
  7566. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  7567. }, headers = headers)
  7568. <span class="hljs-keyword">print</span> r.json()
  7569. </code></pre>
  7570. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists"</span>);
  7571. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7572. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7573. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7574. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7575. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7576. String inputLine;
  7577. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7578. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7579. response.append(inputLine);
  7580. }
  7581. in.close();
  7582. System.out.println(response.toString());
  7583. </code></pre>
  7584. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7585. <span class="hljs-keyword">import</span> (
  7586. <span class="hljs-string">"bytes"</span>
  7587. <span class="hljs-string">"net/http"</span>
  7588. )
  7589. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7590. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7591. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7592. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7593. }
  7594. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7595. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  7596. req.Header = headers
  7597. client := &amp;http.Client{}
  7598. resp, err := client.Do(req)
  7599. <span class="hljs-comment">// ...</span>
  7600. }
  7601. </code></pre>
  7602. <p><code>GET /api/boards/{board}/lists</code></p>
  7603. <p><em>Get the list of Lists attached to a board</em></p>
  7604. <h3 id="get_all_lists-parameters">Parameters</h3>
  7605. <table>
  7606. <thead>
  7607. <tr>
  7608. <th>Name</th>
  7609. <th>In</th>
  7610. <th>Type</th>
  7611. <th>Required</th>
  7612. <th>Description</th>
  7613. </tr>
  7614. </thead>
  7615. <tbody>
  7616. <tr>
  7617. <td>board</td>
  7618. <td>path</td>
  7619. <td>string</td>
  7620. <td>true</td>
  7621. <td>the board ID</td>
  7622. </tr>
  7623. </tbody>
  7624. </table>
  7625. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7626. <p><strong>board</strong>: the board ID</p>
  7627. <blockquote>
  7628. <p>Example responses</p>
  7629. </blockquote>
  7630. <blockquote>
  7631. <p>200 Response</p>
  7632. </blockquote>
  7633. <pre class="highlight tab tab-json"><code>[
  7634. {
  7635. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7636. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  7637. }
  7638. ]
  7639. </code></pre>
  7640. <h3 id="get_all_lists-responses">Responses</h3>
  7641. <table>
  7642. <thead>
  7643. <tr>
  7644. <th>Status</th>
  7645. <th>Meaning</th>
  7646. <th>Description</th>
  7647. <th>Schema</th>
  7648. </tr>
  7649. </thead>
  7650. <tbody>
  7651. <tr>
  7652. <td>200</td>
  7653. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7654. <td>200 response</td>
  7655. <td>Inline</td>
  7656. </tr>
  7657. </tbody>
  7658. </table>
  7659. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  7660. <p>Status Code <strong>200</strong></p>
  7661. <table>
  7662. <thead>
  7663. <tr>
  7664. <th>Name</th>
  7665. <th>Type</th>
  7666. <th>Required</th>
  7667. <th>Restrictions</th>
  7668. <th>Description</th>
  7669. </tr>
  7670. </thead>
  7671. <tbody>
  7672. <tr>
  7673. <td>» _id</td>
  7674. <td>string</td>
  7675. <td>false</td>
  7676. <td>none</td>
  7677. <td>none</td>
  7678. </tr>
  7679. <tr>
  7680. <td>» title</td>
  7681. <td>string</td>
  7682. <td>false</td>
  7683. <td>none</td>
  7684. <td>none</td>
  7685. </tr>
  7686. </tbody>
  7687. </table>
  7688. <aside class="warning">
  7689. To perform this operation, you must be authenticated by means of one of the following methods:
  7690. UserSecurity
  7691. </aside>
  7692. <h2 id="new_list">new_list</h2>
  7693. <p><a id="opIdnew_list"></a></p>
  7694. <blockquote>
  7695. <p>Code samples</p>
  7696. </blockquote>
  7697. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7698. curl -X POST /api/boards/{board}/lists \
  7699. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7700. -H <span class="hljs-string">'Accept: application/json'</span> \
  7701. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7702. </code></pre>
  7703. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists</span> HTTP/1.1
  7704. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7705. Accept: application/json
  7706. </span></code></pre>
  7707. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7708. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7709. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7710. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7711. };
  7712. $.ajax({
  7713. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  7714. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  7715. <span class="hljs-attr">headers</span>: headers,
  7716. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7717. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7718. }
  7719. })
  7720. </code></pre>
  7721. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7722. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7723. "title": "string"
  7724. }'</span>;
  7725. <span class="hljs-keyword">const</span> headers = {
  7726. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7727. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7728. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7729. };
  7730. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  7731. {
  7732. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  7733. <span class="hljs-attr">body</span>: inputBody,
  7734. <span class="hljs-attr">headers</span>: headers
  7735. })
  7736. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7737. <span class="hljs-keyword">return</span> res.json();
  7738. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7739. <span class="hljs-built_in">console</span>.log(body);
  7740. });
  7741. </code></pre>
  7742. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7743. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7744. headers = {
  7745. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7746. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7747. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7748. }
  7749. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  7750. <span class="hljs-symbol">params:</span> {
  7751. }, <span class="hljs-symbol">headers:</span> headers
  7752. p JSON.parse(result)
  7753. </code></pre>
  7754. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7755. headers = {
  7756. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7757. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7758. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7759. }
  7760. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  7761. }, headers = headers)
  7762. <span class="hljs-keyword">print</span> r.json()
  7763. </code></pre>
  7764. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists"</span>);
  7765. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7766. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  7767. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7768. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7769. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7770. String inputLine;
  7771. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7772. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7773. response.append(inputLine);
  7774. }
  7775. in.close();
  7776. System.out.println(response.toString());
  7777. </code></pre>
  7778. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7779. <span class="hljs-keyword">import</span> (
  7780. <span class="hljs-string">"bytes"</span>
  7781. <span class="hljs-string">"net/http"</span>
  7782. )
  7783. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7784. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7785. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7786. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7787. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7788. }
  7789. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7790. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  7791. req.Header = headers
  7792. client := &amp;http.Client{}
  7793. resp, err := client.Do(req)
  7794. <span class="hljs-comment">// ...</span>
  7795. }
  7796. </code></pre>
  7797. <p><code>POST /api/boards/{board}/lists</code></p>
  7798. <p><em>Add a List to a board</em></p>
  7799. <blockquote>
  7800. <p>Body parameter</p>
  7801. </blockquote>
  7802. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7803. </code></pre>
  7804. <h3 id="new_list-parameters">Parameters</h3>
  7805. <table>
  7806. <thead>
  7807. <tr>
  7808. <th>Name</th>
  7809. <th>In</th>
  7810. <th>Type</th>
  7811. <th>Required</th>
  7812. <th>Description</th>
  7813. </tr>
  7814. </thead>
  7815. <tbody>
  7816. <tr>
  7817. <td>board</td>
  7818. <td>path</td>
  7819. <td>string</td>
  7820. <td>true</td>
  7821. <td>the board ID</td>
  7822. </tr>
  7823. <tr>
  7824. <td>body</td>
  7825. <td>body</td>
  7826. <td>object</td>
  7827. <td>false</td>
  7828. <td>none</td>
  7829. </tr>
  7830. <tr>
  7831. <td>» title</td>
  7832. <td>body</td>
  7833. <td>string</td>
  7834. <td>true</td>
  7835. <td>the title of the List</td>
  7836. </tr>
  7837. </tbody>
  7838. </table>
  7839. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7840. <p><strong>board</strong>: the board ID</p>
  7841. <blockquote>
  7842. <p>Example responses</p>
  7843. </blockquote>
  7844. <blockquote>
  7845. <p>200 Response</p>
  7846. </blockquote>
  7847. <pre class="highlight tab tab-json"><code>{
  7848. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7849. }
  7850. </code></pre>
  7851. <h3 id="new_list-responses">Responses</h3>
  7852. <table>
  7853. <thead>
  7854. <tr>
  7855. <th>Status</th>
  7856. <th>Meaning</th>
  7857. <th>Description</th>
  7858. <th>Schema</th>
  7859. </tr>
  7860. </thead>
  7861. <tbody>
  7862. <tr>
  7863. <td>200</td>
  7864. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7865. <td>200 response</td>
  7866. <td>Inline</td>
  7867. </tr>
  7868. </tbody>
  7869. </table>
  7870. <h3 id="new_list-responseschema">Response Schema</h3>
  7871. <p>Status Code <strong>200</strong></p>
  7872. <table>
  7873. <thead>
  7874. <tr>
  7875. <th>Name</th>
  7876. <th>Type</th>
  7877. <th>Required</th>
  7878. <th>Restrictions</th>
  7879. <th>Description</th>
  7880. </tr>
  7881. </thead>
  7882. <tbody>
  7883. <tr>
  7884. <td>» _id</td>
  7885. <td>string</td>
  7886. <td>false</td>
  7887. <td>none</td>
  7888. <td>none</td>
  7889. </tr>
  7890. </tbody>
  7891. </table>
  7892. <aside class="warning">
  7893. To perform this operation, you must be authenticated by means of one of the following methods:
  7894. UserSecurity
  7895. </aside>
  7896. <h2 id="get_list">get_list</h2>
  7897. <p><a id="opIdget_list"></a></p>
  7898. <blockquote>
  7899. <p>Code samples</p>
  7900. </blockquote>
  7901. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7902. curl -X GET /api/boards/{board}/lists/{list} \
  7903. -H <span class="hljs-string">'Accept: application/json'</span> \
  7904. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7905. </code></pre>
  7906. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> HTTP/1.1
  7907. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7908. <span class="undefined"></span></span></code></pre>
  7909. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7910. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7911. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7912. };
  7913. $.ajax({
  7914. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  7915. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7916. <span class="hljs-attr">headers</span>: headers,
  7917. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7918. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7919. }
  7920. })
  7921. </code></pre>
  7922. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7923. <span class="hljs-keyword">const</span> headers = {
  7924. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7925. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7926. };
  7927. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  7928. {
  7929. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7930. <span class="hljs-attr">headers</span>: headers
  7931. })
  7932. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7933. <span class="hljs-keyword">return</span> res.json();
  7934. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7935. <span class="hljs-built_in">console</span>.log(body);
  7936. });
  7937. </code></pre>
  7938. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7939. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7940. headers = {
  7941. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7942. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7943. }
  7944. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  7945. <span class="hljs-symbol">params:</span> {
  7946. }, <span class="hljs-symbol">headers:</span> headers
  7947. p JSON.parse(result)
  7948. </code></pre>
  7949. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7950. headers = {
  7951. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7952. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7953. }
  7954. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  7955. }, headers = headers)
  7956. <span class="hljs-keyword">print</span> r.json()
  7957. </code></pre>
  7958. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>);
  7959. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7960. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7961. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7962. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7963. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7964. String inputLine;
  7965. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7966. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7967. response.append(inputLine);
  7968. }
  7969. in.close();
  7970. System.out.println(response.toString());
  7971. </code></pre>
  7972. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7973. <span class="hljs-keyword">import</span> (
  7974. <span class="hljs-string">"bytes"</span>
  7975. <span class="hljs-string">"net/http"</span>
  7976. )
  7977. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7978. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7979. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7980. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7981. }
  7982. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7983. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  7984. req.Header = headers
  7985. client := &amp;http.Client{}
  7986. resp, err := client.Do(req)
  7987. <span class="hljs-comment">// ...</span>
  7988. }
  7989. </code></pre>
  7990. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  7991. <p><em>Get a List attached to a board</em></p>
  7992. <h3 id="get_list-parameters">Parameters</h3>
  7993. <table>
  7994. <thead>
  7995. <tr>
  7996. <th>Name</th>
  7997. <th>In</th>
  7998. <th>Type</th>
  7999. <th>Required</th>
  8000. <th>Description</th>
  8001. </tr>
  8002. </thead>
  8003. <tbody>
  8004. <tr>
  8005. <td>board</td>
  8006. <td>path</td>
  8007. <td>string</td>
  8008. <td>true</td>
  8009. <td>the board ID</td>
  8010. </tr>
  8011. <tr>
  8012. <td>list</td>
  8013. <td>path</td>
  8014. <td>string</td>
  8015. <td>true</td>
  8016. <td>the List ID</td>
  8017. </tr>
  8018. </tbody>
  8019. </table>
  8020. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8021. <p><strong>board</strong>: the board ID</p>
  8022. <p><strong>list</strong>: the List ID</p>
  8023. <blockquote>
  8024. <p>Example responses</p>
  8025. </blockquote>
  8026. <blockquote>
  8027. <p>200 Response</p>
  8028. </blockquote>
  8029. <pre class="highlight tab tab-json"><code>{
  8030. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  8031. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  8032. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  8033. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  8034. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  8035. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  8036. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  8037. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  8038. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  8039. <span class="hljs-attr">"wipLimit"</span>: {
  8040. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  8041. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  8042. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  8043. },
  8044. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  8045. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  8046. }
  8047. </code></pre>
  8048. <h3 id="get_list-responses">Responses</h3>
  8049. <table>
  8050. <thead>
  8051. <tr>
  8052. <th>Status</th>
  8053. <th>Meaning</th>
  8054. <th>Description</th>
  8055. <th>Schema</th>
  8056. </tr>
  8057. </thead>
  8058. <tbody>
  8059. <tr>
  8060. <td>200</td>
  8061. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8062. <td>200 response</td>
  8063. <td><a href="#schemalists">Lists</a></td>
  8064. </tr>
  8065. </tbody>
  8066. </table>
  8067. <aside class="warning">
  8068. To perform this operation, you must be authenticated by means of one of the following methods:
  8069. UserSecurity
  8070. </aside>
  8071. <h2 id="delete_list">delete_list</h2>
  8072. <p><a id="opIddelete_list"></a></p>
  8073. <blockquote>
  8074. <p>Code samples</p>
  8075. </blockquote>
  8076. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8077. curl -X DELETE /api/boards/{board}/lists/{list} \
  8078. -H <span class="hljs-string">'Accept: application/json'</span> \
  8079. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8080. </code></pre>
  8081. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> HTTP/1.1
  8082. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8083. <span class="undefined"></span></span></code></pre>
  8084. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8085. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8086. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8087. };
  8088. $.ajax({
  8089. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  8090. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8091. <span class="hljs-attr">headers</span>: headers,
  8092. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8093. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8094. }
  8095. })
  8096. </code></pre>
  8097. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8098. <span class="hljs-keyword">const</span> headers = {
  8099. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8100. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8101. };
  8102. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  8103. {
  8104. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8105. <span class="hljs-attr">headers</span>: headers
  8106. })
  8107. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8108. <span class="hljs-keyword">return</span> res.json();
  8109. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8110. <span class="hljs-built_in">console</span>.log(body);
  8111. });
  8112. </code></pre>
  8113. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8114. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8115. headers = {
  8116. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8117. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8118. }
  8119. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  8120. <span class="hljs-symbol">params:</span> {
  8121. }, <span class="hljs-symbol">headers:</span> headers
  8122. p JSON.parse(result)
  8123. </code></pre>
  8124. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8125. headers = {
  8126. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8127. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8128. }
  8129. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  8130. }, headers = headers)
  8131. <span class="hljs-keyword">print</span> r.json()
  8132. </code></pre>
  8133. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>);
  8134. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8135. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8136. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8137. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8138. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8139. String inputLine;
  8140. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8141. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8142. response.append(inputLine);
  8143. }
  8144. in.close();
  8145. System.out.println(response.toString());
  8146. </code></pre>
  8147. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8148. <span class="hljs-keyword">import</span> (
  8149. <span class="hljs-string">"bytes"</span>
  8150. <span class="hljs-string">"net/http"</span>
  8151. )
  8152. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8153. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8154. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8155. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8156. }
  8157. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8158. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  8159. req.Header = headers
  8160. client := &amp;http.Client{}
  8161. resp, err := client.Do(req)
  8162. <span class="hljs-comment">// ...</span>
  8163. }
  8164. </code></pre>
  8165. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  8166. <p><em>Delete a List</em></p>
  8167. <p>This <strong>deletes</strong> a list from a board.
  8168. The list is not put in the recycle bin.</p>
  8169. <h3 id="delete_list-parameters">Parameters</h3>
  8170. <table>
  8171. <thead>
  8172. <tr>
  8173. <th>Name</th>
  8174. <th>In</th>
  8175. <th>Type</th>
  8176. <th>Required</th>
  8177. <th>Description</th>
  8178. </tr>
  8179. </thead>
  8180. <tbody>
  8181. <tr>
  8182. <td>board</td>
  8183. <td>path</td>
  8184. <td>string</td>
  8185. <td>true</td>
  8186. <td>the board ID</td>
  8187. </tr>
  8188. <tr>
  8189. <td>list</td>
  8190. <td>path</td>
  8191. <td>string</td>
  8192. <td>true</td>
  8193. <td>the ID of the list to remove</td>
  8194. </tr>
  8195. </tbody>
  8196. </table>
  8197. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8198. <p><strong>board</strong>: the board ID</p>
  8199. <p><strong>list</strong>: the ID of the list to remove</p>
  8200. <blockquote>
  8201. <p>Example responses</p>
  8202. </blockquote>
  8203. <blockquote>
  8204. <p>200 Response</p>
  8205. </blockquote>
  8206. <pre class="highlight tab tab-json"><code>{
  8207. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8208. }
  8209. </code></pre>
  8210. <h3 id="delete_list-responses">Responses</h3>
  8211. <table>
  8212. <thead>
  8213. <tr>
  8214. <th>Status</th>
  8215. <th>Meaning</th>
  8216. <th>Description</th>
  8217. <th>Schema</th>
  8218. </tr>
  8219. </thead>
  8220. <tbody>
  8221. <tr>
  8222. <td>200</td>
  8223. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8224. <td>200 response</td>
  8225. <td>Inline</td>
  8226. </tr>
  8227. </tbody>
  8228. </table>
  8229. <h3 id="delete_list-responseschema">Response Schema</h3>
  8230. <p>Status Code <strong>200</strong></p>
  8231. <table>
  8232. <thead>
  8233. <tr>
  8234. <th>Name</th>
  8235. <th>Type</th>
  8236. <th>Required</th>
  8237. <th>Restrictions</th>
  8238. <th>Description</th>
  8239. </tr>
  8240. </thead>
  8241. <tbody>
  8242. <tr>
  8243. <td>» _id</td>
  8244. <td>string</td>
  8245. <td>false</td>
  8246. <td>none</td>
  8247. <td>none</td>
  8248. </tr>
  8249. </tbody>
  8250. </table>
  8251. <aside class="warning">
  8252. To perform this operation, you must be authenticated by means of one of the following methods:
  8253. UserSecurity
  8254. </aside>
  8255. <h1 id="wekan-rest-api-users">Users</h1>
  8256. <h2 id="add_board_member">add_board_member</h2>
  8257. <p><a id="opIdadd_board_member"></a></p>
  8258. <blockquote>
  8259. <p>Code samples</p>
  8260. </blockquote>
  8261. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8262. curl -X POST /api/boards/{board}/members/{user}/add \
  8263. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8264. -H <span class="hljs-string">'Accept: application/json'</span> \
  8265. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8266. </code></pre>
  8267. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{user}/add</span> HTTP/1.1
  8268. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8269. Accept: application/json
  8270. </span></code></pre>
  8271. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8272. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8273. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8274. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8275. };
  8276. $.ajax({
  8277. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>,
  8278. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8279. <span class="hljs-attr">headers</span>: headers,
  8280. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8281. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8282. }
  8283. })
  8284. </code></pre>
  8285. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8286. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8287. "action": "string",
  8288. "isAdmin": true,
  8289. "isNoComments": true,
  8290. "isCommentOnly": true
  8291. }'</span>;
  8292. <span class="hljs-keyword">const</span> headers = {
  8293. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8294. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8295. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8296. };
  8297. fetch(<span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>,
  8298. {
  8299. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8300. <span class="hljs-attr">body</span>: inputBody,
  8301. <span class="hljs-attr">headers</span>: headers
  8302. })
  8303. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8304. <span class="hljs-keyword">return</span> res.json();
  8305. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8306. <span class="hljs-built_in">console</span>.log(body);
  8307. });
  8308. </code></pre>
  8309. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8310. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8311. headers = {
  8312. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8313. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8314. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8315. }
  8316. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>,
  8317. <span class="hljs-symbol">params:</span> {
  8318. }, <span class="hljs-symbol">headers:</span> headers
  8319. p JSON.parse(result)
  8320. </code></pre>
  8321. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8322. headers = {
  8323. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8324. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8325. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8326. }
  8327. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>, params={
  8328. }, headers = headers)
  8329. <span class="hljs-keyword">print</span> r.json()
  8330. </code></pre>
  8331. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/members/{user}/add"</span>);
  8332. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8333. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8334. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8335. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8336. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8337. String inputLine;
  8338. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8339. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8340. response.append(inputLine);
  8341. }
  8342. in.close();
  8343. System.out.println(response.toString());
  8344. </code></pre>
  8345. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8346. <span class="hljs-keyword">import</span> (
  8347. <span class="hljs-string">"bytes"</span>
  8348. <span class="hljs-string">"net/http"</span>
  8349. )
  8350. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8351. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8352. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8353. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8354. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8355. }
  8356. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8357. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{user}/add"</span>, data)
  8358. req.Header = headers
  8359. client := &amp;http.Client{}
  8360. resp, err := client.Do(req)
  8361. <span class="hljs-comment">// ...</span>
  8362. }
  8363. </code></pre>
  8364. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  8365. <p><em>Add New Board Member with Role</em></p>
  8366. <p>Only the admin user (the first user) can call the REST API.</p>
  8367. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  8368. to later change the permissions.</p>
  8369. <blockquote>
  8370. <p>Body parameter</p>
  8371. </blockquote>
  8372. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  8373. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  8374. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  8375. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  8376. </code></pre>
  8377. <h3 id="add_board_member-parameters">Parameters</h3>
  8378. <table>
  8379. <thead>
  8380. <tr>
  8381. <th>Name</th>
  8382. <th>In</th>
  8383. <th>Type</th>
  8384. <th>Required</th>
  8385. <th>Description</th>
  8386. </tr>
  8387. </thead>
  8388. <tbody>
  8389. <tr>
  8390. <td>board</td>
  8391. <td>path</td>
  8392. <td>string</td>
  8393. <td>true</td>
  8394. <td>the board ID</td>
  8395. </tr>
  8396. <tr>
  8397. <td>user</td>
  8398. <td>path</td>
  8399. <td>string</td>
  8400. <td>true</td>
  8401. <td>the user ID</td>
  8402. </tr>
  8403. <tr>
  8404. <td>body</td>
  8405. <td>body</td>
  8406. <td>object</td>
  8407. <td>false</td>
  8408. <td>none</td>
  8409. </tr>
  8410. <tr>
  8411. <td>» action</td>
  8412. <td>body</td>
  8413. <td>string</td>
  8414. <td>true</td>
  8415. <td>the action value</td>
  8416. </tr>
  8417. <tr>
  8418. <td>» isAdmin</td>
  8419. <td>body</td>
  8420. <td>boolean</td>
  8421. <td>true</td>
  8422. <td>is the user an admin of the board</td>
  8423. </tr>
  8424. <tr>
  8425. <td>» isNoComments</td>
  8426. <td>body</td>
  8427. <td>boolean</td>
  8428. <td>true</td>
  8429. <td>disable comments</td>
  8430. </tr>
  8431. <tr>
  8432. <td>» isCommentOnly</td>
  8433. <td>body</td>
  8434. <td>boolean</td>
  8435. <td>true</td>
  8436. <td>only enable comments</td>
  8437. </tr>
  8438. </tbody>
  8439. </table>
  8440. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8441. <p><strong>board</strong>: the board ID</p>
  8442. <p><strong>user</strong>: the user ID</p>
  8443. <blockquote>
  8444. <p>Example responses</p>
  8445. </blockquote>
  8446. <blockquote>
  8447. <p>200 Response</p>
  8448. </blockquote>
  8449. <pre class="highlight tab tab-json"><code>{
  8450. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  8451. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  8452. }
  8453. </code></pre>
  8454. <h3 id="add_board_member-responses">Responses</h3>
  8455. <table>
  8456. <thead>
  8457. <tr>
  8458. <th>Status</th>
  8459. <th>Meaning</th>
  8460. <th>Description</th>
  8461. <th>Schema</th>
  8462. </tr>
  8463. </thead>
  8464. <tbody>
  8465. <tr>
  8466. <td>200</td>
  8467. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8468. <td>200 response</td>
  8469. <td>Inline</td>
  8470. </tr>
  8471. </tbody>
  8472. </table>
  8473. <h3 id="add_board_member-responseschema">Response Schema</h3>
  8474. <p>Status Code <strong>200</strong></p>
  8475. <table>
  8476. <thead>
  8477. <tr>
  8478. <th>Name</th>
  8479. <th>Type</th>
  8480. <th>Required</th>
  8481. <th>Restrictions</th>
  8482. <th>Description</th>
  8483. </tr>
  8484. </thead>
  8485. <tbody>
  8486. <tr>
  8487. <td>» _id</td>
  8488. <td>string</td>
  8489. <td>false</td>
  8490. <td>none</td>
  8491. <td>none</td>
  8492. </tr>
  8493. <tr>
  8494. <td>» title</td>
  8495. <td>string</td>
  8496. <td>false</td>
  8497. <td>none</td>
  8498. <td>none</td>
  8499. </tr>
  8500. </tbody>
  8501. </table>
  8502. <aside class="warning">
  8503. To perform this operation, you must be authenticated by means of one of the following methods:
  8504. UserSecurity
  8505. </aside>
  8506. <h2 id="post_board_user_remove">post_board_user_remove</h2>
  8507. <p><a id="opIdpost_board_user_remove"></a></p>
  8508. <blockquote>
  8509. <p>Code samples</p>
  8510. </blockquote>
  8511. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8512. curl -X POST /api/boards/{board}/members/{user}/remove \
  8513. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8514. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8515. </code></pre>
  8516. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{user}/remove</span> HTTP/1.1
  8517. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8518. </span></code></pre>
  8519. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8520. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8521. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8522. };
  8523. $.ajax({
  8524. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>,
  8525. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8526. <span class="hljs-attr">headers</span>: headers,
  8527. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8528. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8529. }
  8530. })
  8531. </code></pre>
  8532. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8533. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8534. "action": "string"
  8535. }'</span>;
  8536. <span class="hljs-keyword">const</span> headers = {
  8537. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8538. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8539. };
  8540. fetch(<span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>,
  8541. {
  8542. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8543. <span class="hljs-attr">body</span>: inputBody,
  8544. <span class="hljs-attr">headers</span>: headers
  8545. })
  8546. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8547. <span class="hljs-keyword">return</span> res.json();
  8548. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8549. <span class="hljs-built_in">console</span>.log(body);
  8550. });
  8551. </code></pre>
  8552. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8553. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8554. headers = {
  8555. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8556. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8557. }
  8558. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>,
  8559. <span class="hljs-symbol">params:</span> {
  8560. }, <span class="hljs-symbol">headers:</span> headers
  8561. p JSON.parse(result)
  8562. </code></pre>
  8563. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8564. headers = {
  8565. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8566. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8567. }
  8568. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>, params={
  8569. }, headers = headers)
  8570. <span class="hljs-keyword">print</span> r.json()
  8571. </code></pre>
  8572. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/members/{user}/remove"</span>);
  8573. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8574. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8575. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8576. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8577. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8578. String inputLine;
  8579. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8580. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8581. response.append(inputLine);
  8582. }
  8583. in.close();
  8584. System.out.println(response.toString());
  8585. </code></pre>
  8586. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8587. <span class="hljs-keyword">import</span> (
  8588. <span class="hljs-string">"bytes"</span>
  8589. <span class="hljs-string">"net/http"</span>
  8590. )
  8591. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8592. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8593. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8594. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8595. }
  8596. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8597. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{user}/remove"</span>, data)
  8598. req.Header = headers
  8599. client := &amp;http.Client{}
  8600. resp, err := client.Do(req)
  8601. <span class="hljs-comment">// ...</span>
  8602. }
  8603. </code></pre>
  8604. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  8605. <blockquote>
  8606. <p>Body parameter</p>
  8607. </blockquote>
  8608. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  8609. </code></pre>
  8610. <h3 id="post_board_user_remove-parameters">Parameters</h3>
  8611. <table>
  8612. <thead>
  8613. <tr>
  8614. <th>Name</th>
  8615. <th>In</th>
  8616. <th>Type</th>
  8617. <th>Required</th>
  8618. <th>Description</th>
  8619. </tr>
  8620. </thead>
  8621. <tbody>
  8622. <tr>
  8623. <td>board</td>
  8624. <td>path</td>
  8625. <td>string</td>
  8626. <td>true</td>
  8627. <td>the board value</td>
  8628. </tr>
  8629. <tr>
  8630. <td>user</td>
  8631. <td>path</td>
  8632. <td>string</td>
  8633. <td>true</td>
  8634. <td>the user value</td>
  8635. </tr>
  8636. <tr>
  8637. <td>body</td>
  8638. <td>body</td>
  8639. <td>object</td>
  8640. <td>false</td>
  8641. <td>none</td>
  8642. </tr>
  8643. <tr>
  8644. <td>» action</td>
  8645. <td>body</td>
  8646. <td>string</td>
  8647. <td>true</td>
  8648. <td>the action value</td>
  8649. </tr>
  8650. </tbody>
  8651. </table>
  8652. <h3 id="post_board_user_remove-responses">Responses</h3>
  8653. <table>
  8654. <thead>
  8655. <tr>
  8656. <th>Status</th>
  8657. <th>Meaning</th>
  8658. <th>Description</th>
  8659. <th>Schema</th>
  8660. </tr>
  8661. </thead>
  8662. <tbody>
  8663. <tr>
  8664. <td>200</td>
  8665. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8666. <td>200 response</td>
  8667. <td>None</td>
  8668. </tr>
  8669. </tbody>
  8670. </table>
  8671. <aside class="warning">
  8672. To perform this operation, you must be authenticated by means of one of the following methods:
  8673. UserSecurity
  8674. </aside>
  8675. <h2 id="get_current_user">get_current_user</h2>
  8676. <p><a id="opIdget_current_user"></a></p>
  8677. <blockquote>
  8678. <p>Code samples</p>
  8679. </blockquote>
  8680. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8681. curl -X GET /api/user \
  8682. -H <span class="hljs-string">'Accept: application/json'</span> \
  8683. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8684. </code></pre>
  8685. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/user</span> HTTP/1.1
  8686. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8687. <span class="undefined"></span></span></code></pre>
  8688. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8689. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8690. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8691. };
  8692. $.ajax({
  8693. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/user'</span>,
  8694. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8695. <span class="hljs-attr">headers</span>: headers,
  8696. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8697. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8698. }
  8699. })
  8700. </code></pre>
  8701. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8702. <span class="hljs-keyword">const</span> headers = {
  8703. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8704. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8705. };
  8706. fetch(<span class="hljs-string">'/api/user'</span>,
  8707. {
  8708. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  8709. <span class="hljs-attr">headers</span>: headers
  8710. })
  8711. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8712. <span class="hljs-keyword">return</span> res.json();
  8713. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8714. <span class="hljs-built_in">console</span>.log(body);
  8715. });
  8716. </code></pre>
  8717. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8718. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8719. headers = {
  8720. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8721. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8722. }
  8723. result = RestClient.get <span class="hljs-string">'/api/user'</span>,
  8724. <span class="hljs-symbol">params:</span> {
  8725. }, <span class="hljs-symbol">headers:</span> headers
  8726. p JSON.parse(result)
  8727. </code></pre>
  8728. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8729. headers = {
  8730. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8731. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8732. }
  8733. r = requests.get(<span class="hljs-string">'/api/user'</span>, params={
  8734. }, headers = headers)
  8735. <span class="hljs-keyword">print</span> r.json()
  8736. </code></pre>
  8737. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/user"</span>);
  8738. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8739. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  8740. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8741. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8742. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8743. String inputLine;
  8744. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8745. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8746. response.append(inputLine);
  8747. }
  8748. in.close();
  8749. System.out.println(response.toString());
  8750. </code></pre>
  8751. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8752. <span class="hljs-keyword">import</span> (
  8753. <span class="hljs-string">"bytes"</span>
  8754. <span class="hljs-string">"net/http"</span>
  8755. )
  8756. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8757. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8758. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8759. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8760. }
  8761. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8762. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/user"</span>, data)
  8763. req.Header = headers
  8764. client := &amp;http.Client{}
  8765. resp, err := client.Do(req)
  8766. <span class="hljs-comment">// ...</span>
  8767. }
  8768. </code></pre>
  8769. <p><code>GET /api/user</code></p>
  8770. <p><em>returns the current user</em></p>
  8771. <blockquote>
  8772. <p>Example responses</p>
  8773. </blockquote>
  8774. <blockquote>
  8775. <p>200 Response</p>
  8776. </blockquote>
  8777. <pre class="highlight tab tab-json"><code>{
  8778. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  8779. <span class="hljs-attr">"emails"</span>: [
  8780. {
  8781. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  8782. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  8783. }
  8784. ],
  8785. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  8786. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  8787. <span class="hljs-attr">"profile"</span>: {
  8788. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  8789. <span class="hljs-attr">"emailBuffer"</span>: [
  8790. <span class="hljs-string">"string"</span>
  8791. ],
  8792. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  8793. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  8794. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  8795. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  8796. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  8797. <span class="hljs-attr">"invitedBoards"</span>: [
  8798. <span class="hljs-string">"string"</span>
  8799. ],
  8800. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  8801. <span class="hljs-attr">"notifications"</span>: [],
  8802. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  8803. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  8804. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  8805. <span class="hljs-attr">"starredBoards"</span>: [
  8806. <span class="hljs-string">"string"</span>
  8807. ],
  8808. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  8809. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-lists"</span>,
  8810. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  8811. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  8812. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  8813. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  8814. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  8815. },
  8816. <span class="hljs-attr">"services"</span>: {},
  8817. <span class="hljs-attr">"heartbeat"</span>: <span class="hljs-string">"string"</span>,
  8818. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  8819. <span class="hljs-attr">"createdThroughApi"</span>: <span class="hljs-literal">true</span>,
  8820. <span class="hljs-attr">"loginDisabled"</span>: <span class="hljs-literal">true</span>,
  8821. <span class="hljs-attr">"authenticationMethod"</span>: <span class="hljs-string">"string"</span>
  8822. }
  8823. </code></pre>
  8824. <h3 id="get_current_user-responses">Responses</h3>
  8825. <table>
  8826. <thead>
  8827. <tr>
  8828. <th>Status</th>
  8829. <th>Meaning</th>
  8830. <th>Description</th>
  8831. <th>Schema</th>
  8832. </tr>
  8833. </thead>
  8834. <tbody>
  8835. <tr>
  8836. <td>200</td>
  8837. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8838. <td>200 response</td>
  8839. <td><a href="#schemausers">Users</a></td>
  8840. </tr>
  8841. </tbody>
  8842. </table>
  8843. <aside class="warning">
  8844. To perform this operation, you must be authenticated by means of one of the following methods:
  8845. UserSecurity
  8846. </aside>
  8847. <h2 id="get_all_users">get_all_users</h2>
  8848. <p><a id="opIdget_all_users"></a></p>
  8849. <blockquote>
  8850. <p>Code samples</p>
  8851. </blockquote>
  8852. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8853. curl -X GET /api/users \
  8854. -H <span class="hljs-string">'Accept: application/json'</span> \
  8855. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8856. </code></pre>
  8857. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users</span> HTTP/1.1
  8858. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8859. <span class="undefined"></span></span></code></pre>
  8860. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8861. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8862. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8863. };
  8864. $.ajax({
  8865. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users'</span>,
  8866. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8867. <span class="hljs-attr">headers</span>: headers,
  8868. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8869. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8870. }
  8871. })
  8872. </code></pre>
  8873. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8874. <span class="hljs-keyword">const</span> headers = {
  8875. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8876. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8877. };
  8878. fetch(<span class="hljs-string">'/api/users'</span>,
  8879. {
  8880. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  8881. <span class="hljs-attr">headers</span>: headers
  8882. })
  8883. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8884. <span class="hljs-keyword">return</span> res.json();
  8885. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8886. <span class="hljs-built_in">console</span>.log(body);
  8887. });
  8888. </code></pre>
  8889. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8890. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8891. headers = {
  8892. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8893. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8894. }
  8895. result = RestClient.get <span class="hljs-string">'/api/users'</span>,
  8896. <span class="hljs-symbol">params:</span> {
  8897. }, <span class="hljs-symbol">headers:</span> headers
  8898. p JSON.parse(result)
  8899. </code></pre>
  8900. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8901. headers = {
  8902. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8903. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8904. }
  8905. r = requests.get(<span class="hljs-string">'/api/users'</span>, params={
  8906. }, headers = headers)
  8907. <span class="hljs-keyword">print</span> r.json()
  8908. </code></pre>
  8909. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users"</span>);
  8910. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8911. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  8912. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8913. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8914. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8915. String inputLine;
  8916. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8917. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8918. response.append(inputLine);
  8919. }
  8920. in.close();
  8921. System.out.println(response.toString());
  8922. </code></pre>
  8923. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8924. <span class="hljs-keyword">import</span> (
  8925. <span class="hljs-string">"bytes"</span>
  8926. <span class="hljs-string">"net/http"</span>
  8927. )
  8928. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8929. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8930. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8931. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8932. }
  8933. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8934. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users"</span>, data)
  8935. req.Header = headers
  8936. client := &amp;http.Client{}
  8937. resp, err := client.Do(req)
  8938. <span class="hljs-comment">// ...</span>
  8939. }
  8940. </code></pre>
  8941. <p><code>GET /api/users</code></p>
  8942. <p><em>return all the users</em></p>
  8943. <p>Only the admin user (the first user) can call the REST API.</p>
  8944. <blockquote>
  8945. <p>Example responses</p>
  8946. </blockquote>
  8947. <blockquote>
  8948. <p>200 Response</p>
  8949. </blockquote>
  8950. <pre class="highlight tab tab-json"><code>[
  8951. {
  8952. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  8953. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>
  8954. }
  8955. ]
  8956. </code></pre>
  8957. <h3 id="get_all_users-responses">Responses</h3>
  8958. <table>
  8959. <thead>
  8960. <tr>
  8961. <th>Status</th>
  8962. <th>Meaning</th>
  8963. <th>Description</th>
  8964. <th>Schema</th>
  8965. </tr>
  8966. </thead>
  8967. <tbody>
  8968. <tr>
  8969. <td>200</td>
  8970. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8971. <td>200 response</td>
  8972. <td>Inline</td>
  8973. </tr>
  8974. </tbody>
  8975. </table>
  8976. <h3 id="get_all_users-responseschema">Response Schema</h3>
  8977. <p>Status Code <strong>200</strong></p>
  8978. <table>
  8979. <thead>
  8980. <tr>
  8981. <th>Name</th>
  8982. <th>Type</th>
  8983. <th>Required</th>
  8984. <th>Restrictions</th>
  8985. <th>Description</th>
  8986. </tr>
  8987. </thead>
  8988. <tbody>
  8989. <tr>
  8990. <td>» _id</td>
  8991. <td>string</td>
  8992. <td>false</td>
  8993. <td>none</td>
  8994. <td>none</td>
  8995. </tr>
  8996. <tr>
  8997. <td>» username</td>
  8998. <td>string</td>
  8999. <td>false</td>
  9000. <td>none</td>
  9001. <td>none</td>
  9002. </tr>
  9003. </tbody>
  9004. </table>
  9005. <aside class="warning">
  9006. To perform this operation, you must be authenticated by means of one of the following methods:
  9007. UserSecurity
  9008. </aside>
  9009. <h2 id="new_user">new_user</h2>
  9010. <p><a id="opIdnew_user"></a></p>
  9011. <blockquote>
  9012. <p>Code samples</p>
  9013. </blockquote>
  9014. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9015. curl -X POST /api/users \
  9016. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9017. -H <span class="hljs-string">'Accept: application/json'</span> \
  9018. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9019. </code></pre>
  9020. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/users</span> HTTP/1.1
  9021. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9022. Accept: application/json
  9023. </span></code></pre>
  9024. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9025. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9026. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9027. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9028. };
  9029. $.ajax({
  9030. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users'</span>,
  9031. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  9032. <span class="hljs-attr">headers</span>: headers,
  9033. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9034. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9035. }
  9036. })
  9037. </code></pre>
  9038. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9039. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9040. "username": "string",
  9041. "email": "string",
  9042. "password": "string"
  9043. }'</span>;
  9044. <span class="hljs-keyword">const</span> headers = {
  9045. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9046. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9047. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9048. };
  9049. fetch(<span class="hljs-string">'/api/users'</span>,
  9050. {
  9051. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  9052. <span class="hljs-attr">body</span>: inputBody,
  9053. <span class="hljs-attr">headers</span>: headers
  9054. })
  9055. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9056. <span class="hljs-keyword">return</span> res.json();
  9057. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9058. <span class="hljs-built_in">console</span>.log(body);
  9059. });
  9060. </code></pre>
  9061. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9062. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9063. headers = {
  9064. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9065. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9066. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9067. }
  9068. result = RestClient.post <span class="hljs-string">'/api/users'</span>,
  9069. <span class="hljs-symbol">params:</span> {
  9070. }, <span class="hljs-symbol">headers:</span> headers
  9071. p JSON.parse(result)
  9072. </code></pre>
  9073. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9074. headers = {
  9075. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9076. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9077. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9078. }
  9079. r = requests.post(<span class="hljs-string">'/api/users'</span>, params={
  9080. }, headers = headers)
  9081. <span class="hljs-keyword">print</span> r.json()
  9082. </code></pre>
  9083. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users"</span>);
  9084. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9085. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  9086. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9087. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9088. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9089. String inputLine;
  9090. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9091. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9092. response.append(inputLine);
  9093. }
  9094. in.close();
  9095. System.out.println(response.toString());
  9096. </code></pre>
  9097. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9098. <span class="hljs-keyword">import</span> (
  9099. <span class="hljs-string">"bytes"</span>
  9100. <span class="hljs-string">"net/http"</span>
  9101. )
  9102. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9103. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9104. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9105. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9106. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9107. }
  9108. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9109. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/users"</span>, data)
  9110. req.Header = headers
  9111. client := &amp;http.Client{}
  9112. resp, err := client.Do(req)
  9113. <span class="hljs-comment">// ...</span>
  9114. }
  9115. </code></pre>
  9116. <p><code>POST /api/users</code></p>
  9117. <p><em>Create a new user</em></p>
  9118. <p>Only the admin user (the first user) can call the REST API.</p>
  9119. <blockquote>
  9120. <p>Body parameter</p>
  9121. </blockquote>
  9122. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  9123. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  9124. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  9125. </code></pre>
  9126. <h3 id="new_user-parameters">Parameters</h3>
  9127. <table>
  9128. <thead>
  9129. <tr>
  9130. <th>Name</th>
  9131. <th>In</th>
  9132. <th>Type</th>
  9133. <th>Required</th>
  9134. <th>Description</th>
  9135. </tr>
  9136. </thead>
  9137. <tbody>
  9138. <tr>
  9139. <td>body</td>
  9140. <td>body</td>
  9141. <td>object</td>
  9142. <td>false</td>
  9143. <td>none</td>
  9144. </tr>
  9145. <tr>
  9146. <td>» username</td>
  9147. <td>body</td>
  9148. <td>string</td>
  9149. <td>true</td>
  9150. <td>the new username</td>
  9151. </tr>
  9152. <tr>
  9153. <td>» email</td>
  9154. <td>body</td>
  9155. <td>string</td>
  9156. <td>true</td>
  9157. <td>the email of the new user</td>
  9158. </tr>
  9159. <tr>
  9160. <td>» password</td>
  9161. <td>body</td>
  9162. <td>string</td>
  9163. <td>true</td>
  9164. <td>the password of the new user</td>
  9165. </tr>
  9166. </tbody>
  9167. </table>
  9168. <blockquote>
  9169. <p>Example responses</p>
  9170. </blockquote>
  9171. <blockquote>
  9172. <p>200 Response</p>
  9173. </blockquote>
  9174. <pre class="highlight tab tab-json"><code>{
  9175. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9176. }
  9177. </code></pre>
  9178. <h3 id="new_user-responses">Responses</h3>
  9179. <table>
  9180. <thead>
  9181. <tr>
  9182. <th>Status</th>
  9183. <th>Meaning</th>
  9184. <th>Description</th>
  9185. <th>Schema</th>
  9186. </tr>
  9187. </thead>
  9188. <tbody>
  9189. <tr>
  9190. <td>200</td>
  9191. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9192. <td>200 response</td>
  9193. <td>Inline</td>
  9194. </tr>
  9195. </tbody>
  9196. </table>
  9197. <h3 id="new_user-responseschema">Response Schema</h3>
  9198. <p>Status Code <strong>200</strong></p>
  9199. <table>
  9200. <thead>
  9201. <tr>
  9202. <th>Name</th>
  9203. <th>Type</th>
  9204. <th>Required</th>
  9205. <th>Restrictions</th>
  9206. <th>Description</th>
  9207. </tr>
  9208. </thead>
  9209. <tbody>
  9210. <tr>
  9211. <td>» _id</td>
  9212. <td>string</td>
  9213. <td>false</td>
  9214. <td>none</td>
  9215. <td>none</td>
  9216. </tr>
  9217. </tbody>
  9218. </table>
  9219. <aside class="warning">
  9220. To perform this operation, you must be authenticated by means of one of the following methods:
  9221. UserSecurity
  9222. </aside>
  9223. <h2 id="get_user">get_user</h2>
  9224. <p><a id="opIdget_user"></a></p>
  9225. <blockquote>
  9226. <p>Code samples</p>
  9227. </blockquote>
  9228. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9229. curl -X GET /api/users/{user} \
  9230. -H <span class="hljs-string">'Accept: application/json'</span> \
  9231. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9232. </code></pre>
  9233. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}</span> HTTP/1.1
  9234. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9235. <span class="undefined"></span></span></code></pre>
  9236. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9237. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9238. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9239. };
  9240. $.ajax({
  9241. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}'</span>,
  9242. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9243. <span class="hljs-attr">headers</span>: headers,
  9244. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9245. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9246. }
  9247. })
  9248. </code></pre>
  9249. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9250. <span class="hljs-keyword">const</span> headers = {
  9251. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9252. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9253. };
  9254. fetch(<span class="hljs-string">'/api/users/{user}'</span>,
  9255. {
  9256. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9257. <span class="hljs-attr">headers</span>: headers
  9258. })
  9259. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9260. <span class="hljs-keyword">return</span> res.json();
  9261. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9262. <span class="hljs-built_in">console</span>.log(body);
  9263. });
  9264. </code></pre>
  9265. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9266. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9267. headers = {
  9268. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9269. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9270. }
  9271. result = RestClient.get <span class="hljs-string">'/api/users/{user}'</span>,
  9272. <span class="hljs-symbol">params:</span> {
  9273. }, <span class="hljs-symbol">headers:</span> headers
  9274. p JSON.parse(result)
  9275. </code></pre>
  9276. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9277. headers = {
  9278. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9279. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9280. }
  9281. r = requests.get(<span class="hljs-string">'/api/users/{user}'</span>, params={
  9282. }, headers = headers)
  9283. <span class="hljs-keyword">print</span> r.json()
  9284. </code></pre>
  9285. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}"</span>);
  9286. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9287. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9288. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9289. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9290. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9291. String inputLine;
  9292. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9293. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9294. response.append(inputLine);
  9295. }
  9296. in.close();
  9297. System.out.println(response.toString());
  9298. </code></pre>
  9299. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9300. <span class="hljs-keyword">import</span> (
  9301. <span class="hljs-string">"bytes"</span>
  9302. <span class="hljs-string">"net/http"</span>
  9303. )
  9304. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9305. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9306. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9307. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9308. }
  9309. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9310. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users/{user}"</span>, data)
  9311. req.Header = headers
  9312. client := &amp;http.Client{}
  9313. resp, err := client.Do(req)
  9314. <span class="hljs-comment">// ...</span>
  9315. }
  9316. </code></pre>
  9317. <p><code>GET /api/users/{user}</code></p>
  9318. <p><em>get a given user</em></p>
  9319. <p>Only the admin user (the first user) can call the REST API.</p>
  9320. <h3 id="get_user-parameters">Parameters</h3>
  9321. <table>
  9322. <thead>
  9323. <tr>
  9324. <th>Name</th>
  9325. <th>In</th>
  9326. <th>Type</th>
  9327. <th>Required</th>
  9328. <th>Description</th>
  9329. </tr>
  9330. </thead>
  9331. <tbody>
  9332. <tr>
  9333. <td>user</td>
  9334. <td>path</td>
  9335. <td>string</td>
  9336. <td>true</td>
  9337. <td>the user ID</td>
  9338. </tr>
  9339. </tbody>
  9340. </table>
  9341. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9342. <p><strong>user</strong>: the user ID</p>
  9343. <blockquote>
  9344. <p>Example responses</p>
  9345. </blockquote>
  9346. <blockquote>
  9347. <p>200 Response</p>
  9348. </blockquote>
  9349. <pre class="highlight tab tab-json"><code>{
  9350. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  9351. <span class="hljs-attr">"emails"</span>: [
  9352. {
  9353. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  9354. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  9355. }
  9356. ],
  9357. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9358. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9359. <span class="hljs-attr">"profile"</span>: {
  9360. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  9361. <span class="hljs-attr">"emailBuffer"</span>: [
  9362. <span class="hljs-string">"string"</span>
  9363. ],
  9364. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  9365. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  9366. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  9367. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  9368. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  9369. <span class="hljs-attr">"invitedBoards"</span>: [
  9370. <span class="hljs-string">"string"</span>
  9371. ],
  9372. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  9373. <span class="hljs-attr">"notifications"</span>: [],
  9374. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  9375. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  9376. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  9377. <span class="hljs-attr">"starredBoards"</span>: [
  9378. <span class="hljs-string">"string"</span>
  9379. ],
  9380. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  9381. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-lists"</span>,
  9382. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  9383. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  9384. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  9385. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  9386. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  9387. },
  9388. <span class="hljs-attr">"services"</span>: {},
  9389. <span class="hljs-attr">"heartbeat"</span>: <span class="hljs-string">"string"</span>,
  9390. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  9391. <span class="hljs-attr">"createdThroughApi"</span>: <span class="hljs-literal">true</span>,
  9392. <span class="hljs-attr">"loginDisabled"</span>: <span class="hljs-literal">true</span>,
  9393. <span class="hljs-attr">"authenticationMethod"</span>: <span class="hljs-string">"string"</span>
  9394. }
  9395. </code></pre>
  9396. <h3 id="get_user-responses">Responses</h3>
  9397. <table>
  9398. <thead>
  9399. <tr>
  9400. <th>Status</th>
  9401. <th>Meaning</th>
  9402. <th>Description</th>
  9403. <th>Schema</th>
  9404. </tr>
  9405. </thead>
  9406. <tbody>
  9407. <tr>
  9408. <td>200</td>
  9409. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9410. <td>200 response</td>
  9411. <td><a href="#schemausers">Users</a></td>
  9412. </tr>
  9413. </tbody>
  9414. </table>
  9415. <aside class="warning">
  9416. To perform this operation, you must be authenticated by means of one of the following methods:
  9417. UserSecurity
  9418. </aside>
  9419. <h2 id="edit_user">edit_user</h2>
  9420. <p><a id="opIdedit_user"></a></p>
  9421. <blockquote>
  9422. <p>Code samples</p>
  9423. </blockquote>
  9424. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9425. curl -X PUT /api/users/{user} \
  9426. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9427. -H <span class="hljs-string">'Accept: application/json'</span> \
  9428. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9429. </code></pre>
  9430. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/users/{user}</span> HTTP/1.1
  9431. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9432. Accept: application/json
  9433. </span></code></pre>
  9434. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9435. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9436. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9437. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9438. };
  9439. $.ajax({
  9440. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}'</span>,
  9441. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  9442. <span class="hljs-attr">headers</span>: headers,
  9443. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9444. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9445. }
  9446. })
  9447. </code></pre>
  9448. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9449. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9450. "action": "string"
  9451. }'</span>;
  9452. <span class="hljs-keyword">const</span> headers = {
  9453. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9454. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9455. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9456. };
  9457. fetch(<span class="hljs-string">'/api/users/{user}'</span>,
  9458. {
  9459. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  9460. <span class="hljs-attr">body</span>: inputBody,
  9461. <span class="hljs-attr">headers</span>: headers
  9462. })
  9463. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9464. <span class="hljs-keyword">return</span> res.json();
  9465. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9466. <span class="hljs-built_in">console</span>.log(body);
  9467. });
  9468. </code></pre>
  9469. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9470. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9471. headers = {
  9472. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9473. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9474. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9475. }
  9476. result = RestClient.put <span class="hljs-string">'/api/users/{user}'</span>,
  9477. <span class="hljs-symbol">params:</span> {
  9478. }, <span class="hljs-symbol">headers:</span> headers
  9479. p JSON.parse(result)
  9480. </code></pre>
  9481. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9482. headers = {
  9483. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9484. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9485. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9486. }
  9487. r = requests.put(<span class="hljs-string">'/api/users/{user}'</span>, params={
  9488. }, headers = headers)
  9489. <span class="hljs-keyword">print</span> r.json()
  9490. </code></pre>
  9491. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}"</span>);
  9492. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9493. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  9494. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9495. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9496. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9497. String inputLine;
  9498. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9499. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9500. response.append(inputLine);
  9501. }
  9502. in.close();
  9503. System.out.println(response.toString());
  9504. </code></pre>
  9505. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9506. <span class="hljs-keyword">import</span> (
  9507. <span class="hljs-string">"bytes"</span>
  9508. <span class="hljs-string">"net/http"</span>
  9509. )
  9510. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9511. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9512. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9513. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9514. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9515. }
  9516. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9517. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/users/{user}"</span>, data)
  9518. req.Header = headers
  9519. client := &amp;http.Client{}
  9520. resp, err := client.Do(req)
  9521. <span class="hljs-comment">// ...</span>
  9522. }
  9523. </code></pre>
  9524. <p><code>PUT /api/users/{user}</code></p>
  9525. <p><em>edit a given user</em></p>
  9526. <p>Only the admin user (the first user) can call the REST API.</p>
  9527. <p>Possible values for <em>action</em>:</p>
  9528. <ul>
  9529. <li><code>takeOwnership</code>: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.</li>
  9530. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  9531. <li><code>enableLogin</code>: Enable a user</li>
  9532. </ul>
  9533. <blockquote>
  9534. <p>Body parameter</p>
  9535. </blockquote>
  9536. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  9537. </code></pre>
  9538. <h3 id="edit_user-parameters">Parameters</h3>
  9539. <table>
  9540. <thead>
  9541. <tr>
  9542. <th>Name</th>
  9543. <th>In</th>
  9544. <th>Type</th>
  9545. <th>Required</th>
  9546. <th>Description</th>
  9547. </tr>
  9548. </thead>
  9549. <tbody>
  9550. <tr>
  9551. <td>user</td>
  9552. <td>path</td>
  9553. <td>string</td>
  9554. <td>true</td>
  9555. <td>the user ID</td>
  9556. </tr>
  9557. <tr>
  9558. <td>body</td>
  9559. <td>body</td>
  9560. <td>object</td>
  9561. <td>false</td>
  9562. <td>none</td>
  9563. </tr>
  9564. <tr>
  9565. <td>» action</td>
  9566. <td>body</td>
  9567. <td>string</td>
  9568. <td>true</td>
  9569. <td>the action</td>
  9570. </tr>
  9571. </tbody>
  9572. </table>
  9573. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9574. <p><strong>user</strong>: the user ID</p>
  9575. <blockquote>
  9576. <p>Example responses</p>
  9577. </blockquote>
  9578. <blockquote>
  9579. <p>200 Response</p>
  9580. </blockquote>
  9581. <pre class="highlight tab tab-json"><code>{
  9582. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  9583. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  9584. }
  9585. </code></pre>
  9586. <h3 id="edit_user-responses">Responses</h3>
  9587. <table>
  9588. <thead>
  9589. <tr>
  9590. <th>Status</th>
  9591. <th>Meaning</th>
  9592. <th>Description</th>
  9593. <th>Schema</th>
  9594. </tr>
  9595. </thead>
  9596. <tbody>
  9597. <tr>
  9598. <td>200</td>
  9599. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9600. <td>200 response</td>
  9601. <td>Inline</td>
  9602. </tr>
  9603. </tbody>
  9604. </table>
  9605. <h3 id="edit_user-responseschema">Response Schema</h3>
  9606. <p>Status Code <strong>200</strong></p>
  9607. <table>
  9608. <thead>
  9609. <tr>
  9610. <th>Name</th>
  9611. <th>Type</th>
  9612. <th>Required</th>
  9613. <th>Restrictions</th>
  9614. <th>Description</th>
  9615. </tr>
  9616. </thead>
  9617. <tbody>
  9618. <tr>
  9619. <td>» _id</td>
  9620. <td>string</td>
  9621. <td>false</td>
  9622. <td>none</td>
  9623. <td>none</td>
  9624. </tr>
  9625. <tr>
  9626. <td>» title</td>
  9627. <td>string</td>
  9628. <td>false</td>
  9629. <td>none</td>
  9630. <td>none</td>
  9631. </tr>
  9632. </tbody>
  9633. </table>
  9634. <aside class="warning">
  9635. To perform this operation, you must be authenticated by means of one of the following methods:
  9636. UserSecurity
  9637. </aside>
  9638. <h2 id="delete_user">delete_user</h2>
  9639. <p><a id="opIddelete_user"></a></p>
  9640. <blockquote>
  9641. <p>Code samples</p>
  9642. </blockquote>
  9643. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9644. curl -X DELETE /api/users/{user} \
  9645. -H <span class="hljs-string">'Accept: application/json'</span> \
  9646. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9647. </code></pre>
  9648. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/users/{user}</span> HTTP/1.1
  9649. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9650. <span class="undefined"></span></span></code></pre>
  9651. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9652. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9653. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9654. };
  9655. $.ajax({
  9656. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}'</span>,
  9657. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  9658. <span class="hljs-attr">headers</span>: headers,
  9659. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9660. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9661. }
  9662. })
  9663. </code></pre>
  9664. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9665. <span class="hljs-keyword">const</span> headers = {
  9666. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9667. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9668. };
  9669. fetch(<span class="hljs-string">'/api/users/{user}'</span>,
  9670. {
  9671. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  9672. <span class="hljs-attr">headers</span>: headers
  9673. })
  9674. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9675. <span class="hljs-keyword">return</span> res.json();
  9676. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9677. <span class="hljs-built_in">console</span>.log(body);
  9678. });
  9679. </code></pre>
  9680. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9681. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9682. headers = {
  9683. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9684. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9685. }
  9686. result = RestClient.delete <span class="hljs-string">'/api/users/{user}'</span>,
  9687. <span class="hljs-symbol">params:</span> {
  9688. }, <span class="hljs-symbol">headers:</span> headers
  9689. p JSON.parse(result)
  9690. </code></pre>
  9691. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9692. headers = {
  9693. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9694. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9695. }
  9696. r = requests.delete(<span class="hljs-string">'/api/users/{user}'</span>, params={
  9697. }, headers = headers)
  9698. <span class="hljs-keyword">print</span> r.json()
  9699. </code></pre>
  9700. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}"</span>);
  9701. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9702. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  9703. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9704. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9705. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9706. String inputLine;
  9707. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9708. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9709. response.append(inputLine);
  9710. }
  9711. in.close();
  9712. System.out.println(response.toString());
  9713. </code></pre>
  9714. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9715. <span class="hljs-keyword">import</span> (
  9716. <span class="hljs-string">"bytes"</span>
  9717. <span class="hljs-string">"net/http"</span>
  9718. )
  9719. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9720. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9721. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9722. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9723. }
  9724. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9725. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/users/{user}"</span>, data)
  9726. req.Header = headers
  9727. client := &amp;http.Client{}
  9728. resp, err := client.Do(req)
  9729. <span class="hljs-comment">// ...</span>
  9730. }
  9731. </code></pre>
  9732. <p><code>DELETE /api/users/{user}</code></p>
  9733. <p><em>Delete a user</em></p>
  9734. <p>Only the admin user (the first user) can call the REST API.</p>
  9735. <h3 id="delete_user-parameters">Parameters</h3>
  9736. <table>
  9737. <thead>
  9738. <tr>
  9739. <th>Name</th>
  9740. <th>In</th>
  9741. <th>Type</th>
  9742. <th>Required</th>
  9743. <th>Description</th>
  9744. </tr>
  9745. </thead>
  9746. <tbody>
  9747. <tr>
  9748. <td>user</td>
  9749. <td>path</td>
  9750. <td>string</td>
  9751. <td>true</td>
  9752. <td>the ID of the user to delete</td>
  9753. </tr>
  9754. </tbody>
  9755. </table>
  9756. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9757. <p><strong>user</strong>: the ID of the user to delete</p>
  9758. <blockquote>
  9759. <p>Example responses</p>
  9760. </blockquote>
  9761. <blockquote>
  9762. <p>200 Response</p>
  9763. </blockquote>
  9764. <pre class="highlight tab tab-json"><code>{
  9765. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9766. }
  9767. </code></pre>
  9768. <h3 id="delete_user-responses">Responses</h3>
  9769. <table>
  9770. <thead>
  9771. <tr>
  9772. <th>Status</th>
  9773. <th>Meaning</th>
  9774. <th>Description</th>
  9775. <th>Schema</th>
  9776. </tr>
  9777. </thead>
  9778. <tbody>
  9779. <tr>
  9780. <td>200</td>
  9781. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9782. <td>200 response</td>
  9783. <td>Inline</td>
  9784. </tr>
  9785. </tbody>
  9786. </table>
  9787. <h3 id="delete_user-responseschema">Response Schema</h3>
  9788. <p>Status Code <strong>200</strong></p>
  9789. <table>
  9790. <thead>
  9791. <tr>
  9792. <th>Name</th>
  9793. <th>Type</th>
  9794. <th>Required</th>
  9795. <th>Restrictions</th>
  9796. <th>Description</th>
  9797. </tr>
  9798. </thead>
  9799. <tbody>
  9800. <tr>
  9801. <td>» _id</td>
  9802. <td>string</td>
  9803. <td>false</td>
  9804. <td>none</td>
  9805. <td>none</td>
  9806. </tr>
  9807. </tbody>
  9808. </table>
  9809. <aside class="warning">
  9810. To perform this operation, you must be authenticated by means of one of the following methods:
  9811. UserSecurity
  9812. </aside>
  9813. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  9814. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  9815. <p><a id="opIdget_all_swimlanes"></a></p>
  9816. <blockquote>
  9817. <p>Code samples</p>
  9818. </blockquote>
  9819. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9820. curl -X GET /api/boards/{board}/swimlanes \
  9821. -H <span class="hljs-string">'Accept: application/json'</span> \
  9822. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9823. </code></pre>
  9824. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> HTTP/1.1
  9825. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9826. <span class="undefined"></span></span></code></pre>
  9827. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9828. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9829. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9830. };
  9831. $.ajax({
  9832. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  9833. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9834. <span class="hljs-attr">headers</span>: headers,
  9835. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9836. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9837. }
  9838. })
  9839. </code></pre>
  9840. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9841. <span class="hljs-keyword">const</span> headers = {
  9842. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9843. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9844. };
  9845. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  9846. {
  9847. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9848. <span class="hljs-attr">headers</span>: headers
  9849. })
  9850. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9851. <span class="hljs-keyword">return</span> res.json();
  9852. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9853. <span class="hljs-built_in">console</span>.log(body);
  9854. });
  9855. </code></pre>
  9856. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9857. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9858. headers = {
  9859. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9860. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9861. }
  9862. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  9863. <span class="hljs-symbol">params:</span> {
  9864. }, <span class="hljs-symbol">headers:</span> headers
  9865. p JSON.parse(result)
  9866. </code></pre>
  9867. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9868. headers = {
  9869. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9870. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9871. }
  9872. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  9873. }, headers = headers)
  9874. <span class="hljs-keyword">print</span> r.json()
  9875. </code></pre>
  9876. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes"</span>);
  9877. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9878. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9879. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9880. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9881. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9882. String inputLine;
  9883. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9884. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9885. response.append(inputLine);
  9886. }
  9887. in.close();
  9888. System.out.println(response.toString());
  9889. </code></pre>
  9890. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9891. <span class="hljs-keyword">import</span> (
  9892. <span class="hljs-string">"bytes"</span>
  9893. <span class="hljs-string">"net/http"</span>
  9894. )
  9895. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9896. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9897. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9898. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9899. }
  9900. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9901. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  9902. req.Header = headers
  9903. client := &amp;http.Client{}
  9904. resp, err := client.Do(req)
  9905. <span class="hljs-comment">// ...</span>
  9906. }
  9907. </code></pre>
  9908. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  9909. <p><em>Get the list of swimlanes attached to a board</em></p>
  9910. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  9911. <table>
  9912. <thead>
  9913. <tr>
  9914. <th>Name</th>
  9915. <th>In</th>
  9916. <th>Type</th>
  9917. <th>Required</th>
  9918. <th>Description</th>
  9919. </tr>
  9920. </thead>
  9921. <tbody>
  9922. <tr>
  9923. <td>board</td>
  9924. <td>path</td>
  9925. <td>string</td>
  9926. <td>true</td>
  9927. <td>the ID of the board</td>
  9928. </tr>
  9929. </tbody>
  9930. </table>
  9931. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9932. <p><strong>board</strong>: the ID of the board</p>
  9933. <blockquote>
  9934. <p>Example responses</p>
  9935. </blockquote>
  9936. <blockquote>
  9937. <p>200 Response</p>
  9938. </blockquote>
  9939. <pre class="highlight tab tab-json"><code>[
  9940. {
  9941. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  9942. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  9943. }
  9944. ]
  9945. </code></pre>
  9946. <h3 id="get_all_swimlanes-responses">Responses</h3>
  9947. <table>
  9948. <thead>
  9949. <tr>
  9950. <th>Status</th>
  9951. <th>Meaning</th>
  9952. <th>Description</th>
  9953. <th>Schema</th>
  9954. </tr>
  9955. </thead>
  9956. <tbody>
  9957. <tr>
  9958. <td>200</td>
  9959. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9960. <td>200 response</td>
  9961. <td>Inline</td>
  9962. </tr>
  9963. </tbody>
  9964. </table>
  9965. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  9966. <p>Status Code <strong>200</strong></p>
  9967. <table>
  9968. <thead>
  9969. <tr>
  9970. <th>Name</th>
  9971. <th>Type</th>
  9972. <th>Required</th>
  9973. <th>Restrictions</th>
  9974. <th>Description</th>
  9975. </tr>
  9976. </thead>
  9977. <tbody>
  9978. <tr>
  9979. <td>» _id</td>
  9980. <td>string</td>
  9981. <td>false</td>
  9982. <td>none</td>
  9983. <td>none</td>
  9984. </tr>
  9985. <tr>
  9986. <td>» title</td>
  9987. <td>string</td>
  9988. <td>false</td>
  9989. <td>none</td>
  9990. <td>none</td>
  9991. </tr>
  9992. </tbody>
  9993. </table>
  9994. <aside class="warning">
  9995. To perform this operation, you must be authenticated by means of one of the following methods:
  9996. UserSecurity
  9997. </aside>
  9998. <h2 id="new_swimlane">new_swimlane</h2>
  9999. <p><a id="opIdnew_swimlane"></a></p>
  10000. <blockquote>
  10001. <p>Code samples</p>
  10002. </blockquote>
  10003. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10004. curl -X POST /api/boards/{board}/swimlanes \
  10005. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10006. -H <span class="hljs-string">'Accept: application/json'</span> \
  10007. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10008. </code></pre>
  10009. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> HTTP/1.1
  10010. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10011. Accept: application/json
  10012. </span></code></pre>
  10013. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10014. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10015. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10016. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10017. };
  10018. $.ajax({
  10019. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  10020. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10021. <span class="hljs-attr">headers</span>: headers,
  10022. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10023. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10024. }
  10025. })
  10026. </code></pre>
  10027. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10028. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10029. "title": "string"
  10030. }'</span>;
  10031. <span class="hljs-keyword">const</span> headers = {
  10032. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10033. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10034. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10035. };
  10036. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  10037. {
  10038. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10039. <span class="hljs-attr">body</span>: inputBody,
  10040. <span class="hljs-attr">headers</span>: headers
  10041. })
  10042. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10043. <span class="hljs-keyword">return</span> res.json();
  10044. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10045. <span class="hljs-built_in">console</span>.log(body);
  10046. });
  10047. </code></pre>
  10048. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10049. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10050. headers = {
  10051. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10052. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10053. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10054. }
  10055. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  10056. <span class="hljs-symbol">params:</span> {
  10057. }, <span class="hljs-symbol">headers:</span> headers
  10058. p JSON.parse(result)
  10059. </code></pre>
  10060. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10061. headers = {
  10062. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10063. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10064. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10065. }
  10066. r = requests.post(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  10067. }, headers = headers)
  10068. <span class="hljs-keyword">print</span> r.json()
  10069. </code></pre>
  10070. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes"</span>);
  10071. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10072. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10073. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10074. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10075. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10076. String inputLine;
  10077. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10078. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10079. response.append(inputLine);
  10080. }
  10081. in.close();
  10082. System.out.println(response.toString());
  10083. </code></pre>
  10084. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10085. <span class="hljs-keyword">import</span> (
  10086. <span class="hljs-string">"bytes"</span>
  10087. <span class="hljs-string">"net/http"</span>
  10088. )
  10089. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10090. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10091. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10092. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10093. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10094. }
  10095. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10096. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  10097. req.Header = headers
  10098. client := &amp;http.Client{}
  10099. resp, err := client.Do(req)
  10100. <span class="hljs-comment">// ...</span>
  10101. }
  10102. </code></pre>
  10103. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  10104. <p><em>Add a swimlane to a board</em></p>
  10105. <blockquote>
  10106. <p>Body parameter</p>
  10107. </blockquote>
  10108. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  10109. </code></pre>
  10110. <h3 id="new_swimlane-parameters">Parameters</h3>
  10111. <table>
  10112. <thead>
  10113. <tr>
  10114. <th>Name</th>
  10115. <th>In</th>
  10116. <th>Type</th>
  10117. <th>Required</th>
  10118. <th>Description</th>
  10119. </tr>
  10120. </thead>
  10121. <tbody>
  10122. <tr>
  10123. <td>board</td>
  10124. <td>path</td>
  10125. <td>string</td>
  10126. <td>true</td>
  10127. <td>the ID of the board</td>
  10128. </tr>
  10129. <tr>
  10130. <td>body</td>
  10131. <td>body</td>
  10132. <td>object</td>
  10133. <td>false</td>
  10134. <td>none</td>
  10135. </tr>
  10136. <tr>
  10137. <td>» title</td>
  10138. <td>body</td>
  10139. <td>string</td>
  10140. <td>true</td>
  10141. <td>the new title of the swimlane</td>
  10142. </tr>
  10143. </tbody>
  10144. </table>
  10145. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10146. <p><strong>board</strong>: the ID of the board</p>
  10147. <blockquote>
  10148. <p>Example responses</p>
  10149. </blockquote>
  10150. <blockquote>
  10151. <p>200 Response</p>
  10152. </blockquote>
  10153. <pre class="highlight tab tab-json"><code>{
  10154. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10155. }
  10156. </code></pre>
  10157. <h3 id="new_swimlane-responses">Responses</h3>
  10158. <table>
  10159. <thead>
  10160. <tr>
  10161. <th>Status</th>
  10162. <th>Meaning</th>
  10163. <th>Description</th>
  10164. <th>Schema</th>
  10165. </tr>
  10166. </thead>
  10167. <tbody>
  10168. <tr>
  10169. <td>200</td>
  10170. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10171. <td>200 response</td>
  10172. <td>Inline</td>
  10173. </tr>
  10174. </tbody>
  10175. </table>
  10176. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  10177. <p>Status Code <strong>200</strong></p>
  10178. <table>
  10179. <thead>
  10180. <tr>
  10181. <th>Name</th>
  10182. <th>Type</th>
  10183. <th>Required</th>
  10184. <th>Restrictions</th>
  10185. <th>Description</th>
  10186. </tr>
  10187. </thead>
  10188. <tbody>
  10189. <tr>
  10190. <td>» _id</td>
  10191. <td>string</td>
  10192. <td>false</td>
  10193. <td>none</td>
  10194. <td>none</td>
  10195. </tr>
  10196. </tbody>
  10197. </table>
  10198. <aside class="warning">
  10199. To perform this operation, you must be authenticated by means of one of the following methods:
  10200. UserSecurity
  10201. </aside>
  10202. <h2 id="get_swimlane">get_swimlane</h2>
  10203. <p><a id="opIdget_swimlane"></a></p>
  10204. <blockquote>
  10205. <p>Code samples</p>
  10206. </blockquote>
  10207. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10208. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  10209. -H <span class="hljs-string">'Accept: application/json'</span> \
  10210. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10211. </code></pre>
  10212. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  10213. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10214. <span class="undefined"></span></span></code></pre>
  10215. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10216. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10217. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10218. };
  10219. $.ajax({
  10220. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  10221. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10222. <span class="hljs-attr">headers</span>: headers,
  10223. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10224. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10225. }
  10226. })
  10227. </code></pre>
  10228. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10229. <span class="hljs-keyword">const</span> headers = {
  10230. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10231. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10232. };
  10233. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  10234. {
  10235. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10236. <span class="hljs-attr">headers</span>: headers
  10237. })
  10238. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10239. <span class="hljs-keyword">return</span> res.json();
  10240. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10241. <span class="hljs-built_in">console</span>.log(body);
  10242. });
  10243. </code></pre>
  10244. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10245. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10246. headers = {
  10247. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10248. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10249. }
  10250. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  10251. <span class="hljs-symbol">params:</span> {
  10252. }, <span class="hljs-symbol">headers:</span> headers
  10253. p JSON.parse(result)
  10254. </code></pre>
  10255. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10256. headers = {
  10257. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10258. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10259. }
  10260. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  10261. }, headers = headers)
  10262. <span class="hljs-keyword">print</span> r.json()
  10263. </code></pre>
  10264. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>);
  10265. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10266. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10267. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10268. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10269. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10270. String inputLine;
  10271. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10272. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10273. response.append(inputLine);
  10274. }
  10275. in.close();
  10276. System.out.println(response.toString());
  10277. </code></pre>
  10278. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10279. <span class="hljs-keyword">import</span> (
  10280. <span class="hljs-string">"bytes"</span>
  10281. <span class="hljs-string">"net/http"</span>
  10282. )
  10283. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10284. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10285. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10286. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10287. }
  10288. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10289. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  10290. req.Header = headers
  10291. client := &amp;http.Client{}
  10292. resp, err := client.Do(req)
  10293. <span class="hljs-comment">// ...</span>
  10294. }
  10295. </code></pre>
  10296. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  10297. <p><em>Get a swimlane</em></p>
  10298. <h3 id="get_swimlane-parameters">Parameters</h3>
  10299. <table>
  10300. <thead>
  10301. <tr>
  10302. <th>Name</th>
  10303. <th>In</th>
  10304. <th>Type</th>
  10305. <th>Required</th>
  10306. <th>Description</th>
  10307. </tr>
  10308. </thead>
  10309. <tbody>
  10310. <tr>
  10311. <td>board</td>
  10312. <td>path</td>
  10313. <td>string</td>
  10314. <td>true</td>
  10315. <td>the ID of the board</td>
  10316. </tr>
  10317. <tr>
  10318. <td>swimlane</td>
  10319. <td>path</td>
  10320. <td>string</td>
  10321. <td>true</td>
  10322. <td>the ID of the swimlane</td>
  10323. </tr>
  10324. </tbody>
  10325. </table>
  10326. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10327. <p><strong>board</strong>: the ID of the board</p>
  10328. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  10329. <blockquote>
  10330. <p>Example responses</p>
  10331. </blockquote>
  10332. <blockquote>
  10333. <p>200 Response</p>
  10334. </blockquote>
  10335. <pre class="highlight tab tab-json"><code>{
  10336. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10337. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  10338. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10339. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10340. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  10341. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  10342. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  10343. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10344. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  10345. }
  10346. </code></pre>
  10347. <h3 id="get_swimlane-responses">Responses</h3>
  10348. <table>
  10349. <thead>
  10350. <tr>
  10351. <th>Status</th>
  10352. <th>Meaning</th>
  10353. <th>Description</th>
  10354. <th>Schema</th>
  10355. </tr>
  10356. </thead>
  10357. <tbody>
  10358. <tr>
  10359. <td>200</td>
  10360. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10361. <td>200 response</td>
  10362. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  10363. </tr>
  10364. </tbody>
  10365. </table>
  10366. <aside class="warning">
  10367. To perform this operation, you must be authenticated by means of one of the following methods:
  10368. UserSecurity
  10369. </aside>
  10370. <h2 id="delete_board_swimlane">delete_board_swimlane</h2>
  10371. <p><a id="opIddelete_board_swimlane"></a></p>
  10372. <blockquote>
  10373. <p>Code samples</p>
  10374. </blockquote>
  10375. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10376. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  10377. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10378. </code></pre>
  10379. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  10380. <span class="undefined"></span></code></pre>
  10381. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10382. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10383. };
  10384. $.ajax({
  10385. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  10386. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  10387. <span class="hljs-attr">headers</span>: headers,
  10388. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10389. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10390. }
  10391. })
  10392. </code></pre>
  10393. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10394. <span class="hljs-keyword">const</span> headers = {
  10395. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10396. };
  10397. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  10398. {
  10399. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  10400. <span class="hljs-attr">headers</span>: headers
  10401. })
  10402. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10403. <span class="hljs-keyword">return</span> res.json();
  10404. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10405. <span class="hljs-built_in">console</span>.log(body);
  10406. });
  10407. </code></pre>
  10408. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10409. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10410. headers = {
  10411. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10412. }
  10413. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  10414. <span class="hljs-symbol">params:</span> {
  10415. }, <span class="hljs-symbol">headers:</span> headers
  10416. p JSON.parse(result)
  10417. </code></pre>
  10418. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10419. headers = {
  10420. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10421. }
  10422. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  10423. }, headers = headers)
  10424. <span class="hljs-keyword">print</span> r.json()
  10425. </code></pre>
  10426. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>);
  10427. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10428. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  10429. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10430. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10431. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10432. String inputLine;
  10433. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10434. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10435. response.append(inputLine);
  10436. }
  10437. in.close();
  10438. System.out.println(response.toString());
  10439. </code></pre>
  10440. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10441. <span class="hljs-keyword">import</span> (
  10442. <span class="hljs-string">"bytes"</span>
  10443. <span class="hljs-string">"net/http"</span>
  10444. )
  10445. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10446. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10447. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10448. }
  10449. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10450. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  10451. req.Header = headers
  10452. client := &amp;http.Client{}
  10453. resp, err := client.Do(req)
  10454. <span class="hljs-comment">// ...</span>
  10455. }
  10456. </code></pre>
  10457. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  10458. <h3 id="delete_board_swimlane-parameters">Parameters</h3>
  10459. <table>
  10460. <thead>
  10461. <tr>
  10462. <th>Name</th>
  10463. <th>In</th>
  10464. <th>Type</th>
  10465. <th>Required</th>
  10466. <th>Description</th>
  10467. </tr>
  10468. </thead>
  10469. <tbody>
  10470. <tr>
  10471. <td>board</td>
  10472. <td>path</td>
  10473. <td>string</td>
  10474. <td>true</td>
  10475. <td>the board value</td>
  10476. </tr>
  10477. <tr>
  10478. <td>swimlane</td>
  10479. <td>path</td>
  10480. <td>string</td>
  10481. <td>true</td>
  10482. <td>the swimlane value</td>
  10483. </tr>
  10484. </tbody>
  10485. </table>
  10486. <h3 id="delete_board_swimlane-responses">Responses</h3>
  10487. <table>
  10488. <thead>
  10489. <tr>
  10490. <th>Status</th>
  10491. <th>Meaning</th>
  10492. <th>Description</th>
  10493. <th>Schema</th>
  10494. </tr>
  10495. </thead>
  10496. <tbody>
  10497. <tr>
  10498. <td>200</td>
  10499. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10500. <td>200 response</td>
  10501. <td>None</td>
  10502. </tr>
  10503. </tbody>
  10504. </table>
  10505. <aside class="warning">
  10506. To perform this operation, you must be authenticated by means of one of the following methods:
  10507. UserSecurity
  10508. </aside>
  10509. <h1 id="schemas">Schemas</h1>
  10510. <h2 id="tocsboards">Boards</h2>
  10511. <p><a id="schemaboards"></a></p>
  10512. <pre class="highlight tab tab-json"><code>{
  10513. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10514. <span class="hljs-attr">"slug"</span>: <span class="hljs-string">"string"</span>,
  10515. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  10516. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10517. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10518. <span class="hljs-attr">"stars"</span>: <span class="hljs-number">0</span>,
  10519. <span class="hljs-attr">"labels"</span>: [
  10520. {
  10521. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  10522. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  10523. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"green"</span>
  10524. }
  10525. ],
  10526. <span class="hljs-attr">"members"</span>: [
  10527. {
  10528. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  10529. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  10530. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  10531. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  10532. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  10533. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  10534. }
  10535. ],
  10536. <span class="hljs-attr">"permission"</span>: <span class="hljs-string">"public"</span>,
  10537. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"belize"</span>,
  10538. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  10539. <span class="hljs-attr">"subtasksDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  10540. <span class="hljs-attr">"subtasksDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  10541. <span class="hljs-attr">"dateSettingsDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  10542. <span class="hljs-attr">"dateSettingsDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  10543. <span class="hljs-attr">"allowsSubtasks"</span>: <span class="hljs-literal">true</span>,
  10544. <span class="hljs-attr">"allowsAttachments"</span>: <span class="hljs-literal">true</span>,
  10545. <span class="hljs-attr">"allowsChecklists"</span>: <span class="hljs-literal">true</span>,
  10546. <span class="hljs-attr">"allowsComments"</span>: <span class="hljs-literal">true</span>,
  10547. <span class="hljs-attr">"allowsDescriptionTitle"</span>: <span class="hljs-literal">true</span>,
  10548. <span class="hljs-attr">"allowsDescriptionText"</span>: <span class="hljs-literal">true</span>,
  10549. <span class="hljs-attr">"allowsActivities"</span>: <span class="hljs-literal">true</span>,
  10550. <span class="hljs-attr">"allowsLabels"</span>: <span class="hljs-literal">true</span>,
  10551. <span class="hljs-attr">"allowsAssignee"</span>: <span class="hljs-literal">true</span>,
  10552. <span class="hljs-attr">"allowsMembers"</span>: <span class="hljs-literal">true</span>,
  10553. <span class="hljs-attr">"allowsRequestedBy"</span>: <span class="hljs-literal">true</span>,
  10554. <span class="hljs-attr">"allowsAssignedBy"</span>: <span class="hljs-literal">true</span>,
  10555. <span class="hljs-attr">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  10556. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  10557. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  10558. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  10559. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  10560. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  10561. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  10562. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  10563. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  10564. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  10565. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  10566. }
  10567. </code></pre>
  10568. <p><em>This is a Board.</em></p>
  10569. <h3 id="properties">Properties</h3>
  10570. <table>
  10571. <thead>
  10572. <tr>
  10573. <th>Name</th>
  10574. <th>Type</th>
  10575. <th>Required</th>
  10576. <th>Restrictions</th>
  10577. <th>Description</th>
  10578. </tr>
  10579. </thead>
  10580. <tbody>
  10581. <tr>
  10582. <td>title</td>
  10583. <td>string</td>
  10584. <td>true</td>
  10585. <td>none</td>
  10586. <td>The title of the board</td>
  10587. </tr>
  10588. <tr>
  10589. <td>slug</td>
  10590. <td>string</td>
  10591. <td>true</td>
  10592. <td>none</td>
  10593. <td>The title slugified.</td>
  10594. </tr>
  10595. <tr>
  10596. <td>archived</td>
  10597. <td>boolean</td>
  10598. <td>true</td>
  10599. <td>none</td>
  10600. <td>Is the board archived?</td>
  10601. </tr>
  10602. <tr>
  10603. <td>createdAt</td>
  10604. <td>string</td>
  10605. <td>true</td>
  10606. <td>none</td>
  10607. <td>Creation time of the board</td>
  10608. </tr>
  10609. <tr>
  10610. <td>modifiedAt</td>
  10611. <td>string|null</td>
  10612. <td>false</td>
  10613. <td>none</td>
  10614. <td>Last modification time of the board</td>
  10615. </tr>
  10616. <tr>
  10617. <td>stars</td>
  10618. <td>number</td>
  10619. <td>true</td>
  10620. <td>none</td>
  10621. <td>How many stars the board has</td>
  10622. </tr>
  10623. <tr>
  10624. <td>labels</td>
  10625. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]</td>
  10626. <td>true</td>
  10627. <td>none</td>
  10628. <td>List of labels attached to a board</td>
  10629. </tr>
  10630. <tr>
  10631. <td>members</td>
  10632. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  10633. <td>true</td>
  10634. <td>none</td>
  10635. <td>List of members of a board</td>
  10636. </tr>
  10637. <tr>
  10638. <td>permission</td>
  10639. <td>string</td>
  10640. <td>true</td>
  10641. <td>none</td>
  10642. <td>visibility of the board</td>
  10643. </tr>
  10644. <tr>
  10645. <td>color</td>
  10646. <td>string</td>
  10647. <td>true</td>
  10648. <td>none</td>
  10649. <td>The color of the board.</td>
  10650. </tr>
  10651. <tr>
  10652. <td>description</td>
  10653. <td>string|null</td>
  10654. <td>false</td>
  10655. <td>none</td>
  10656. <td>The description of the board</td>
  10657. </tr>
  10658. <tr>
  10659. <td>subtasksDefaultBoardId</td>
  10660. <td>string|null</td>
  10661. <td>false</td>
  10662. <td>none</td>
  10663. <td>The default board ID assigned to subtasks.</td>
  10664. </tr>
  10665. <tr>
  10666. <td>subtasksDefaultListId</td>
  10667. <td>string|null</td>
  10668. <td>false</td>
  10669. <td>none</td>
  10670. <td>The default List ID assigned to subtasks.</td>
  10671. </tr>
  10672. <tr>
  10673. <td>dateSettingsDefaultBoardId</td>
  10674. <td>string|null</td>
  10675. <td>false</td>
  10676. <td>none</td>
  10677. <td>none</td>
  10678. </tr>
  10679. <tr>
  10680. <td>dateSettingsDefaultListId</td>
  10681. <td>string|null</td>
  10682. <td>false</td>
  10683. <td>none</td>
  10684. <td>none</td>
  10685. </tr>
  10686. <tr>
  10687. <td>allowsSubtasks</td>
  10688. <td>boolean</td>
  10689. <td>true</td>
  10690. <td>none</td>
  10691. <td>Does the board allows subtasks?</td>
  10692. </tr>
  10693. <tr>
  10694. <td>allowsAttachments</td>
  10695. <td>boolean</td>
  10696. <td>true</td>
  10697. <td>none</td>
  10698. <td>Does the board allows attachments?</td>
  10699. </tr>
  10700. <tr>
  10701. <td>allowsChecklists</td>
  10702. <td>boolean</td>
  10703. <td>true</td>
  10704. <td>none</td>
  10705. <td>Does the board allows checklists?</td>
  10706. </tr>
  10707. <tr>
  10708. <td>allowsComments</td>
  10709. <td>boolean</td>
  10710. <td>true</td>
  10711. <td>none</td>
  10712. <td>Does the board allows comments?</td>
  10713. </tr>
  10714. <tr>
  10715. <td>allowsDescriptionTitle</td>
  10716. <td>boolean</td>
  10717. <td>true</td>
  10718. <td>none</td>
  10719. <td>Does the board allows description title?</td>
  10720. </tr>
  10721. <tr>
  10722. <td>allowsDescriptionText</td>
  10723. <td>boolean</td>
  10724. <td>true</td>
  10725. <td>none</td>
  10726. <td>Does the board allows description text?</td>
  10727. </tr>
  10728. <tr>
  10729. <td>allowsActivities</td>
  10730. <td>boolean</td>
  10731. <td>true</td>
  10732. <td>none</td>
  10733. <td>Does the board allows comments?</td>
  10734. </tr>
  10735. <tr>
  10736. <td>allowsLabels</td>
  10737. <td>boolean</td>
  10738. <td>true</td>
  10739. <td>none</td>
  10740. <td>Does the board allows labels?</td>
  10741. </tr>
  10742. <tr>
  10743. <td>allowsAssignee</td>
  10744. <td>boolean</td>
  10745. <td>true</td>
  10746. <td>none</td>
  10747. <td>Does the board allows assignee?</td>
  10748. </tr>
  10749. <tr>
  10750. <td>allowsMembers</td>
  10751. <td>boolean</td>
  10752. <td>true</td>
  10753. <td>none</td>
  10754. <td>Does the board allows members?</td>
  10755. </tr>
  10756. <tr>
  10757. <td>allowsRequestedBy</td>
  10758. <td>boolean</td>
  10759. <td>true</td>
  10760. <td>none</td>
  10761. <td>Does the board allows requested by?</td>
  10762. </tr>
  10763. <tr>
  10764. <td>allowsAssignedBy</td>
  10765. <td>boolean</td>
  10766. <td>true</td>
  10767. <td>none</td>
  10768. <td>Does the board allows requested by?</td>
  10769. </tr>
  10770. <tr>
  10771. <td>allowsReceivedDate</td>
  10772. <td>boolean</td>
  10773. <td>true</td>
  10774. <td>none</td>
  10775. <td>Does the board allows received date?</td>
  10776. </tr>
  10777. <tr>
  10778. <td>allowsStartDate</td>
  10779. <td>boolean</td>
  10780. <td>true</td>
  10781. <td>none</td>
  10782. <td>Does the board allows start date?</td>
  10783. </tr>
  10784. <tr>
  10785. <td>allowsEndDate</td>
  10786. <td>boolean</td>
  10787. <td>true</td>
  10788. <td>none</td>
  10789. <td>Does the board allows end date?</td>
  10790. </tr>
  10791. <tr>
  10792. <td>allowsDueDate</td>
  10793. <td>boolean</td>
  10794. <td>true</td>
  10795. <td>none</td>
  10796. <td>Does the board allows due date?</td>
  10797. </tr>
  10798. <tr>
  10799. <td>presentParentTask</td>
  10800. <td>string|null</td>
  10801. <td>false</td>
  10802. <td>none</td>
  10803. <td>Controls how to present the parent task: - <code>prefix-with-full-path</code>: add a prefix with the full path - <code>prefix-with-parent</code>: add a prefisx with the parent name - <code>subtext-with-full-path</code>: add a subtext with the full path - <code>subtext-with-parent</code>: add a subtext with the parent name - <code>no-parent</code>: does not show the parent at all</td>
  10804. </tr>
  10805. <tr>
  10806. <td>startAt</td>
  10807. <td>string|null</td>
  10808. <td>false</td>
  10809. <td>none</td>
  10810. <td>Starting date of the board.</td>
  10811. </tr>
  10812. <tr>
  10813. <td>dueAt</td>
  10814. <td>string|null</td>
  10815. <td>false</td>
  10816. <td>none</td>
  10817. <td>Due date of the board.</td>
  10818. </tr>
  10819. <tr>
  10820. <td>endAt</td>
  10821. <td>string|null</td>
  10822. <td>false</td>
  10823. <td>none</td>
  10824. <td>End date of the board.</td>
  10825. </tr>
  10826. <tr>
  10827. <td>spentTime</td>
  10828. <td>number|null</td>
  10829. <td>false</td>
  10830. <td>none</td>
  10831. <td>Time spent in the board.</td>
  10832. </tr>
  10833. <tr>
  10834. <td>isOvertime</td>
  10835. <td>boolean|null</td>
  10836. <td>false</td>
  10837. <td>none</td>
  10838. <td>Is the board overtimed?</td>
  10839. </tr>
  10840. <tr>
  10841. <td>type</td>
  10842. <td>string</td>
  10843. <td>true</td>
  10844. <td>none</td>
  10845. <td>The type of board</td>
  10846. </tr>
  10847. </tbody>
  10848. </table>
  10849. <h4 id="enumerated-values">Enumerated Values</h4>
  10850. <table>
  10851. <thead>
  10852. <tr>
  10853. <th>Property</th>
  10854. <th>Value</th>
  10855. </tr>
  10856. </thead>
  10857. <tbody>
  10858. <tr>
  10859. <td>permission</td>
  10860. <td>public</td>
  10861. </tr>
  10862. <tr>
  10863. <td>permission</td>
  10864. <td>private</td>
  10865. </tr>
  10866. <tr>
  10867. <td>color</td>
  10868. <td>belize</td>
  10869. </tr>
  10870. <tr>
  10871. <td>color</td>
  10872. <td>nephritis</td>
  10873. </tr>
  10874. <tr>
  10875. <td>color</td>
  10876. <td>pomegranate</td>
  10877. </tr>
  10878. <tr>
  10879. <td>color</td>
  10880. <td>pumpkin</td>
  10881. </tr>
  10882. <tr>
  10883. <td>color</td>
  10884. <td>wisteria</td>
  10885. </tr>
  10886. <tr>
  10887. <td>color</td>
  10888. <td>moderatepink</td>
  10889. </tr>
  10890. <tr>
  10891. <td>color</td>
  10892. <td>strongcyan</td>
  10893. </tr>
  10894. <tr>
  10895. <td>color</td>
  10896. <td>limegreen</td>
  10897. </tr>
  10898. <tr>
  10899. <td>color</td>
  10900. <td>midnight</td>
  10901. </tr>
  10902. <tr>
  10903. <td>color</td>
  10904. <td>dark</td>
  10905. </tr>
  10906. <tr>
  10907. <td>color</td>
  10908. <td>relax</td>
  10909. </tr>
  10910. <tr>
  10911. <td>color</td>
  10912. <td>corteza</td>
  10913. </tr>
  10914. <tr>
  10915. <td>presentParentTask</td>
  10916. <td>prefix-with-full-path</td>
  10917. </tr>
  10918. <tr>
  10919. <td>presentParentTask</td>
  10920. <td>prefix-with-parent</td>
  10921. </tr>
  10922. <tr>
  10923. <td>presentParentTask</td>
  10924. <td>subtext-with-full-path</td>
  10925. </tr>
  10926. <tr>
  10927. <td>presentParentTask</td>
  10928. <td>subtext-with-parent</td>
  10929. </tr>
  10930. <tr>
  10931. <td>presentParentTask</td>
  10932. <td>no-parent</td>
  10933. </tr>
  10934. </tbody>
  10935. </table>
  10936. <h2 id="tocsboardslabels">BoardsLabels</h2>
  10937. <p><a id="schemaboardslabels"></a></p>
  10938. <pre class="highlight tab tab-json"><code>{
  10939. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  10940. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  10941. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"green"</span>
  10942. }
  10943. </code></pre>
  10944. <h3 id="properties">Properties</h3>
  10945. <table>
  10946. <thead>
  10947. <tr>
  10948. <th>Name</th>
  10949. <th>Type</th>
  10950. <th>Required</th>
  10951. <th>Restrictions</th>
  10952. <th>Description</th>
  10953. </tr>
  10954. </thead>
  10955. <tbody>
  10956. <tr>
  10957. <td>_id</td>
  10958. <td>string</td>
  10959. <td>true</td>
  10960. <td>none</td>
  10961. <td>Unique id of a label</td>
  10962. </tr>
  10963. <tr>
  10964. <td>name</td>
  10965. <td>string</td>
  10966. <td>false</td>
  10967. <td>none</td>
  10968. <td>Name of a label</td>
  10969. </tr>
  10970. <tr>
  10971. <td>color</td>
  10972. <td>string</td>
  10973. <td>true</td>
  10974. <td>none</td>
  10975. <td>color of a label. Can be amongst <code>green</code>, <code>yellow</code>, <code>orange</code>, <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>, <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>, <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>, <code>indigo</code></td>
  10976. </tr>
  10977. </tbody>
  10978. </table>
  10979. <h4 id="enumerated-values">Enumerated Values</h4>
  10980. <table>
  10981. <thead>
  10982. <tr>
  10983. <th>Property</th>
  10984. <th>Value</th>
  10985. </tr>
  10986. </thead>
  10987. <tbody>
  10988. <tr>
  10989. <td>color</td>
  10990. <td>green</td>
  10991. </tr>
  10992. <tr>
  10993. <td>color</td>
  10994. <td>yellow</td>
  10995. </tr>
  10996. <tr>
  10997. <td>color</td>
  10998. <td>orange</td>
  10999. </tr>
  11000. <tr>
  11001. <td>color</td>
  11002. <td>red</td>
  11003. </tr>
  11004. <tr>
  11005. <td>color</td>
  11006. <td>purple</td>
  11007. </tr>
  11008. <tr>
  11009. <td>color</td>
  11010. <td>blue</td>
  11011. </tr>
  11012. <tr>
  11013. <td>color</td>
  11014. <td>sky</td>
  11015. </tr>
  11016. <tr>
  11017. <td>color</td>
  11018. <td>lime</td>
  11019. </tr>
  11020. <tr>
  11021. <td>color</td>
  11022. <td>pink</td>
  11023. </tr>
  11024. <tr>
  11025. <td>color</td>
  11026. <td>black</td>
  11027. </tr>
  11028. <tr>
  11029. <td>color</td>
  11030. <td>silver</td>
  11031. </tr>
  11032. <tr>
  11033. <td>color</td>
  11034. <td>peachpuff</td>
  11035. </tr>
  11036. <tr>
  11037. <td>color</td>
  11038. <td>crimson</td>
  11039. </tr>
  11040. <tr>
  11041. <td>color</td>
  11042. <td>plum</td>
  11043. </tr>
  11044. <tr>
  11045. <td>color</td>
  11046. <td>darkgreen</td>
  11047. </tr>
  11048. <tr>
  11049. <td>color</td>
  11050. <td>slateblue</td>
  11051. </tr>
  11052. <tr>
  11053. <td>color</td>
  11054. <td>magenta</td>
  11055. </tr>
  11056. <tr>
  11057. <td>color</td>
  11058. <td>gold</td>
  11059. </tr>
  11060. <tr>
  11061. <td>color</td>
  11062. <td>navy</td>
  11063. </tr>
  11064. <tr>
  11065. <td>color</td>
  11066. <td>gray</td>
  11067. </tr>
  11068. <tr>
  11069. <td>color</td>
  11070. <td>saddlebrown</td>
  11071. </tr>
  11072. <tr>
  11073. <td>color</td>
  11074. <td>paleturquoise</td>
  11075. </tr>
  11076. <tr>
  11077. <td>color</td>
  11078. <td>mistyrose</td>
  11079. </tr>
  11080. <tr>
  11081. <td>color</td>
  11082. <td>indigo</td>
  11083. </tr>
  11084. </tbody>
  11085. </table>
  11086. <h2 id="tocsboardsmembers">BoardsMembers</h2>
  11087. <p><a id="schemaboardsmembers"></a></p>
  11088. <pre class="highlight tab tab-json"><code>{
  11089. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  11090. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  11091. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  11092. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  11093. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  11094. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  11095. }
  11096. </code></pre>
  11097. <h3 id="properties">Properties</h3>
  11098. <table>
  11099. <thead>
  11100. <tr>
  11101. <th>Name</th>
  11102. <th>Type</th>
  11103. <th>Required</th>
  11104. <th>Restrictions</th>
  11105. <th>Description</th>
  11106. </tr>
  11107. </thead>
  11108. <tbody>
  11109. <tr>
  11110. <td>userId</td>
  11111. <td>string</td>
  11112. <td>true</td>
  11113. <td>none</td>
  11114. <td>The uniq ID of the member</td>
  11115. </tr>
  11116. <tr>
  11117. <td>isAdmin</td>
  11118. <td>boolean</td>
  11119. <td>true</td>
  11120. <td>none</td>
  11121. <td>Is the member an admin of the board?</td>
  11122. </tr>
  11123. <tr>
  11124. <td>isActive</td>
  11125. <td>boolean</td>
  11126. <td>true</td>
  11127. <td>none</td>
  11128. <td>Is the member active?</td>
  11129. </tr>
  11130. <tr>
  11131. <td>isNoComments</td>
  11132. <td>boolean</td>
  11133. <td>false</td>
  11134. <td>none</td>
  11135. <td>Is the member not allowed to make comments</td>
  11136. </tr>
  11137. <tr>
  11138. <td>isCommentOnly</td>
  11139. <td>boolean</td>
  11140. <td>false</td>
  11141. <td>none</td>
  11142. <td>Is the member only allowed to comment on the board</td>
  11143. </tr>
  11144. <tr>
  11145. <td>isWorker</td>
  11146. <td>boolean</td>
  11147. <td>false</td>
  11148. <td>none</td>
  11149. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  11150. </tr>
  11151. </tbody>
  11152. </table>
  11153. <h2 id="tocscardcomments">CardComments</h2>
  11154. <p><a id="schemacardcomments"></a></p>
  11155. <pre class="highlight tab tab-json"><code>{
  11156. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11157. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  11158. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  11159. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11160. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11161. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  11162. }
  11163. </code></pre>
  11164. <p><em>A comment on a card</em></p>
  11165. <h3 id="properties">Properties</h3>
  11166. <table>
  11167. <thead>
  11168. <tr>
  11169. <th>Name</th>
  11170. <th>Type</th>
  11171. <th>Required</th>
  11172. <th>Restrictions</th>
  11173. <th>Description</th>
  11174. </tr>
  11175. </thead>
  11176. <tbody>
  11177. <tr>
  11178. <td>boardId</td>
  11179. <td>string</td>
  11180. <td>true</td>
  11181. <td>none</td>
  11182. <td>the board ID</td>
  11183. </tr>
  11184. <tr>
  11185. <td>cardId</td>
  11186. <td>string</td>
  11187. <td>true</td>
  11188. <td>none</td>
  11189. <td>the card ID</td>
  11190. </tr>
  11191. <tr>
  11192. <td>text</td>
  11193. <td>string</td>
  11194. <td>true</td>
  11195. <td>none</td>
  11196. <td>the text of the comment</td>
  11197. </tr>
  11198. <tr>
  11199. <td>createdAt</td>
  11200. <td>string</td>
  11201. <td>true</td>
  11202. <td>none</td>
  11203. <td>when was the comment created</td>
  11204. </tr>
  11205. <tr>
  11206. <td>modifiedAt</td>
  11207. <td>string</td>
  11208. <td>true</td>
  11209. <td>none</td>
  11210. <td>none</td>
  11211. </tr>
  11212. <tr>
  11213. <td>userId</td>
  11214. <td>string</td>
  11215. <td>true</td>
  11216. <td>none</td>
  11217. <td>the author ID of the comment</td>
  11218. </tr>
  11219. </tbody>
  11220. </table>
  11221. <h2 id="tocschecklistitems">ChecklistItems</h2>
  11222. <p><a id="schemachecklistitems"></a></p>
  11223. <pre class="highlight tab tab-json"><code>{
  11224. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11225. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  11226. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  11227. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  11228. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  11229. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11230. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  11231. }
  11232. </code></pre>
  11233. <p><em>An item in a checklist</em></p>
  11234. <h3 id="properties">Properties</h3>
  11235. <table>
  11236. <thead>
  11237. <tr>
  11238. <th>Name</th>
  11239. <th>Type</th>
  11240. <th>Required</th>
  11241. <th>Restrictions</th>
  11242. <th>Description</th>
  11243. </tr>
  11244. </thead>
  11245. <tbody>
  11246. <tr>
  11247. <td>title</td>
  11248. <td>string</td>
  11249. <td>true</td>
  11250. <td>none</td>
  11251. <td>the text of the item</td>
  11252. </tr>
  11253. <tr>
  11254. <td>sort</td>
  11255. <td>number</td>
  11256. <td>true</td>
  11257. <td>none</td>
  11258. <td>the sorting field of the item</td>
  11259. </tr>
  11260. <tr>
  11261. <td>isFinished</td>
  11262. <td>boolean</td>
  11263. <td>true</td>
  11264. <td>none</td>
  11265. <td>Is the item checked?</td>
  11266. </tr>
  11267. <tr>
  11268. <td>checklistId</td>
  11269. <td>string</td>
  11270. <td>true</td>
  11271. <td>none</td>
  11272. <td>the checklist ID the item is attached to</td>
  11273. </tr>
  11274. <tr>
  11275. <td>cardId</td>
  11276. <td>string</td>
  11277. <td>true</td>
  11278. <td>none</td>
  11279. <td>the card ID the item is attached to</td>
  11280. </tr>
  11281. <tr>
  11282. <td>createdAt</td>
  11283. <td>string|null</td>
  11284. <td>false</td>
  11285. <td>none</td>
  11286. <td>none</td>
  11287. </tr>
  11288. <tr>
  11289. <td>modifiedAt</td>
  11290. <td>string</td>
  11291. <td>true</td>
  11292. <td>none</td>
  11293. <td>none</td>
  11294. </tr>
  11295. </tbody>
  11296. </table>
  11297. <h2 id="tocschecklists">Checklists</h2>
  11298. <p><a id="schemachecklists"></a></p>
  11299. <pre class="highlight tab tab-json"><code>{
  11300. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  11301. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11302. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  11303. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11304. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11305. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>
  11306. }
  11307. </code></pre>
  11308. <p><em>A Checklist</em></p>
  11309. <h3 id="properties">Properties</h3>
  11310. <table>
  11311. <thead>
  11312. <tr>
  11313. <th>Name</th>
  11314. <th>Type</th>
  11315. <th>Required</th>
  11316. <th>Restrictions</th>
  11317. <th>Description</th>
  11318. </tr>
  11319. </thead>
  11320. <tbody>
  11321. <tr>
  11322. <td>cardId</td>
  11323. <td>string</td>
  11324. <td>true</td>
  11325. <td>none</td>
  11326. <td>The ID of the card the checklist is in</td>
  11327. </tr>
  11328. <tr>
  11329. <td>title</td>
  11330. <td>string</td>
  11331. <td>true</td>
  11332. <td>none</td>
  11333. <td>the title of the checklist</td>
  11334. </tr>
  11335. <tr>
  11336. <td>finishedAt</td>
  11337. <td>string|null</td>
  11338. <td>false</td>
  11339. <td>none</td>
  11340. <td>When was the checklist finished</td>
  11341. </tr>
  11342. <tr>
  11343. <td>createdAt</td>
  11344. <td>string</td>
  11345. <td>true</td>
  11346. <td>none</td>
  11347. <td>Creation date of the checklist</td>
  11348. </tr>
  11349. <tr>
  11350. <td>modifiedAt</td>
  11351. <td>string</td>
  11352. <td>true</td>
  11353. <td>none</td>
  11354. <td>none</td>
  11355. </tr>
  11356. <tr>
  11357. <td>sort</td>
  11358. <td>number</td>
  11359. <td>true</td>
  11360. <td>none</td>
  11361. <td>sorting value of the checklist</td>
  11362. </tr>
  11363. </tbody>
  11364. </table>
  11365. <h2 id="tocscustomfields">CustomFields</h2>
  11366. <p><a id="schemacustomfields"></a></p>
  11367. <pre class="highlight tab tab-json"><code>{
  11368. <span class="hljs-attr">"boardIds"</span>: [
  11369. <span class="hljs-string">"string"</span>
  11370. ],
  11371. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  11372. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"text"</span>,
  11373. <span class="hljs-attr">"settings"</span>: {
  11374. <span class="hljs-attr">"dropdownItems"</span>: [
  11375. {}
  11376. ]
  11377. },
  11378. <span class="hljs-attr">"showOnCard"</span>: <span class="hljs-literal">true</span>,
  11379. <span class="hljs-attr">"automaticallyOnCard"</span>: <span class="hljs-literal">true</span>,
  11380. <span class="hljs-attr">"showLabelOnMiniCard"</span>: <span class="hljs-literal">true</span>,
  11381. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11382. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  11383. }
  11384. </code></pre>
  11385. <p><em>A custom field on a card in the board</em></p>
  11386. <h3 id="properties">Properties</h3>
  11387. <table>
  11388. <thead>
  11389. <tr>
  11390. <th>Name</th>
  11391. <th>Type</th>
  11392. <th>Required</th>
  11393. <th>Restrictions</th>
  11394. <th>Description</th>
  11395. </tr>
  11396. </thead>
  11397. <tbody>
  11398. <tr>
  11399. <td>boardIds</td>
  11400. <td>[string]</td>
  11401. <td>true</td>
  11402. <td>none</td>
  11403. <td>the ID of the board</td>
  11404. </tr>
  11405. <tr>
  11406. <td>name</td>
  11407. <td>string</td>
  11408. <td>true</td>
  11409. <td>none</td>
  11410. <td>name of the custom field</td>
  11411. </tr>
  11412. <tr>
  11413. <td>type</td>
  11414. <td>string</td>
  11415. <td>true</td>
  11416. <td>none</td>
  11417. <td>type of the custom field</td>
  11418. </tr>
  11419. <tr>
  11420. <td>settings</td>
  11421. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  11422. <td>true</td>
  11423. <td>none</td>
  11424. <td>settings of the custom field</td>
  11425. </tr>
  11426. <tr>
  11427. <td>showOnCard</td>
  11428. <td>boolean</td>
  11429. <td>true</td>
  11430. <td>none</td>
  11431. <td>should we show on the cards this custom field</td>
  11432. </tr>
  11433. <tr>
  11434. <td>automaticallyOnCard</td>
  11435. <td>boolean</td>
  11436. <td>true</td>
  11437. <td>none</td>
  11438. <td>should the custom fields automatically be added on cards?</td>
  11439. </tr>
  11440. <tr>
  11441. <td>showLabelOnMiniCard</td>
  11442. <td>boolean</td>
  11443. <td>true</td>
  11444. <td>none</td>
  11445. <td>should the label of the custom field be shown on minicards?</td>
  11446. </tr>
  11447. <tr>
  11448. <td>createdAt</td>
  11449. <td>string|null</td>
  11450. <td>false</td>
  11451. <td>none</td>
  11452. <td>none</td>
  11453. </tr>
  11454. <tr>
  11455. <td>modifiedAt</td>
  11456. <td>string</td>
  11457. <td>true</td>
  11458. <td>none</td>
  11459. <td>none</td>
  11460. </tr>
  11461. </tbody>
  11462. </table>
  11463. <h4 id="enumerated-values">Enumerated Values</h4>
  11464. <table>
  11465. <thead>
  11466. <tr>
  11467. <th>Property</th>
  11468. <th>Value</th>
  11469. </tr>
  11470. </thead>
  11471. <tbody>
  11472. <tr>
  11473. <td>type</td>
  11474. <td>text</td>
  11475. </tr>
  11476. <tr>
  11477. <td>type</td>
  11478. <td>number</td>
  11479. </tr>
  11480. <tr>
  11481. <td>type</td>
  11482. <td>date</td>
  11483. </tr>
  11484. <tr>
  11485. <td>type</td>
  11486. <td>dropdown</td>
  11487. </tr>
  11488. </tbody>
  11489. </table>
  11490. <h2 id="tocscustomfieldssettings">CustomFieldsSettings</h2>
  11491. <p><a id="schemacustomfieldssettings"></a></p>
  11492. <pre class="highlight tab tab-json"><code>{
  11493. <span class="hljs-attr">"dropdownItems"</span>: [
  11494. {}
  11495. ]
  11496. }
  11497. </code></pre>
  11498. <h3 id="properties">Properties</h3>
  11499. <table>
  11500. <thead>
  11501. <tr>
  11502. <th>Name</th>
  11503. <th>Type</th>
  11504. <th>Required</th>
  11505. <th>Restrictions</th>
  11506. <th>Description</th>
  11507. </tr>
  11508. </thead>
  11509. <tbody>
  11510. <tr>
  11511. <td>dropdownItems</td>
  11512. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  11513. <td>false</td>
  11514. <td>none</td>
  11515. <td>list of drop down items objects</td>
  11516. </tr>
  11517. </tbody>
  11518. </table>
  11519. <h2 id="tocscustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  11520. <p><a id="schemacustomfieldssettingsdropdownitems"></a></p>
  11521. <pre class="highlight tab tab-json"><code>{}
  11522. </code></pre>
  11523. <h3 id="properties">Properties</h3>
  11524. <p><em>None</em></p>
  11525. <h2 id="tocsintegrations">Integrations</h2>
  11526. <p><a id="schemaintegrations"></a></p>
  11527. <pre class="highlight tab tab-json"><code>{
  11528. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  11529. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11530. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  11531. <span class="hljs-attr">"activities"</span>: [
  11532. <span class="hljs-string">"string"</span>
  11533. ],
  11534. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  11535. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  11536. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11537. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11538. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11539. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  11540. }
  11541. </code></pre>
  11542. <p><em>Integration with third-party applications</em></p>
  11543. <h3 id="properties">Properties</h3>
  11544. <table>
  11545. <thead>
  11546. <tr>
  11547. <th>Name</th>
  11548. <th>Type</th>
  11549. <th>Required</th>
  11550. <th>Restrictions</th>
  11551. <th>Description</th>
  11552. </tr>
  11553. </thead>
  11554. <tbody>
  11555. <tr>
  11556. <td>enabled</td>
  11557. <td>boolean</td>
  11558. <td>true</td>
  11559. <td>none</td>
  11560. <td>is the integration enabled?</td>
  11561. </tr>
  11562. <tr>
  11563. <td>title</td>
  11564. <td>string|null</td>
  11565. <td>false</td>
  11566. <td>none</td>
  11567. <td>name of the integration</td>
  11568. </tr>
  11569. <tr>
  11570. <td>type</td>
  11571. <td>string</td>
  11572. <td>true</td>
  11573. <td>none</td>
  11574. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11575. </tr>
  11576. <tr>
  11577. <td>activities</td>
  11578. <td>[string]</td>
  11579. <td>true</td>
  11580. <td>none</td>
  11581. <td>activities the integration gets triggered (list)</td>
  11582. </tr>
  11583. <tr>
  11584. <td>url</td>
  11585. <td>string</td>
  11586. <td>true</td>
  11587. <td>none</td>
  11588. <td>none</td>
  11589. </tr>
  11590. <tr>
  11591. <td>token</td>
  11592. <td>string|null</td>
  11593. <td>false</td>
  11594. <td>none</td>
  11595. <td>token of the integration</td>
  11596. </tr>
  11597. <tr>
  11598. <td>boardId</td>
  11599. <td>string</td>
  11600. <td>true</td>
  11601. <td>none</td>
  11602. <td>Board ID of the integration</td>
  11603. </tr>
  11604. <tr>
  11605. <td>createdAt</td>
  11606. <td>string</td>
  11607. <td>true</td>
  11608. <td>none</td>
  11609. <td>Creation date of the integration</td>
  11610. </tr>
  11611. <tr>
  11612. <td>modifiedAt</td>
  11613. <td>string</td>
  11614. <td>true</td>
  11615. <td>none</td>
  11616. <td>none</td>
  11617. </tr>
  11618. <tr>
  11619. <td>userId</td>
  11620. <td>string</td>
  11621. <td>true</td>
  11622. <td>none</td>
  11623. <td>user ID who created the interation</td>
  11624. </tr>
  11625. </tbody>
  11626. </table>
  11627. <h2 id="tocslists">Lists</h2>
  11628. <p><a id="schemalists"></a></p>
  11629. <pre class="highlight tab tab-json"><code>{
  11630. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11631. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  11632. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  11633. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11634. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  11635. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11636. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  11637. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  11638. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11639. <span class="hljs-attr">"wipLimit"</span>: {
  11640. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  11641. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  11642. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  11643. },
  11644. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  11645. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  11646. }
  11647. </code></pre>
  11648. <p><em>A list (column) in the Wekan board.</em></p>
  11649. <h3 id="properties">Properties</h3>
  11650. <table>
  11651. <thead>
  11652. <tr>
  11653. <th>Name</th>
  11654. <th>Type</th>
  11655. <th>Required</th>
  11656. <th>Restrictions</th>
  11657. <th>Description</th>
  11658. </tr>
  11659. </thead>
  11660. <tbody>
  11661. <tr>
  11662. <td>title</td>
  11663. <td>string</td>
  11664. <td>true</td>
  11665. <td>none</td>
  11666. <td>the title of the list</td>
  11667. </tr>
  11668. <tr>
  11669. <td>starred</td>
  11670. <td>boolean|null</td>
  11671. <td>false</td>
  11672. <td>none</td>
  11673. <td>if a list is stared then we put it on the top</td>
  11674. </tr>
  11675. <tr>
  11676. <td>archived</td>
  11677. <td>boolean</td>
  11678. <td>true</td>
  11679. <td>none</td>
  11680. <td>is the list archived</td>
  11681. </tr>
  11682. <tr>
  11683. <td>boardId</td>
  11684. <td>string</td>
  11685. <td>true</td>
  11686. <td>none</td>
  11687. <td>the board associated to this list</td>
  11688. </tr>
  11689. <tr>
  11690. <td>swimlaneId</td>
  11691. <td>string</td>
  11692. <td>true</td>
  11693. <td>none</td>
  11694. <td>the swimlane associated to this list. Used for templates</td>
  11695. </tr>
  11696. <tr>
  11697. <td>createdAt</td>
  11698. <td>string</td>
  11699. <td>true</td>
  11700. <td>none</td>
  11701. <td>creation date</td>
  11702. </tr>
  11703. <tr>
  11704. <td>sort</td>
  11705. <td>number|null</td>
  11706. <td>false</td>
  11707. <td>none</td>
  11708. <td>is the list sorted</td>
  11709. </tr>
  11710. <tr>
  11711. <td>updatedAt</td>
  11712. <td>string|null</td>
  11713. <td>false</td>
  11714. <td>none</td>
  11715. <td>last update of the list</td>
  11716. </tr>
  11717. <tr>
  11718. <td>modifiedAt</td>
  11719. <td>string</td>
  11720. <td>true</td>
  11721. <td>none</td>
  11722. <td>none</td>
  11723. </tr>
  11724. <tr>
  11725. <td>wipLimit</td>
  11726. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  11727. <td>false</td>
  11728. <td>none</td>
  11729. <td>WIP object, see below</td>
  11730. </tr>
  11731. <tr>
  11732. <td>color</td>
  11733. <td>string|null</td>
  11734. <td>false</td>
  11735. <td>none</td>
  11736. <td>the color of the list</td>
  11737. </tr>
  11738. <tr>
  11739. <td>type</td>
  11740. <td>string</td>
  11741. <td>true</td>
  11742. <td>none</td>
  11743. <td>The type of list</td>
  11744. </tr>
  11745. </tbody>
  11746. </table>
  11747. <h4 id="enumerated-values">Enumerated Values</h4>
  11748. <table>
  11749. <thead>
  11750. <tr>
  11751. <th>Property</th>
  11752. <th>Value</th>
  11753. </tr>
  11754. </thead>
  11755. <tbody>
  11756. <tr>
  11757. <td>color</td>
  11758. <td>white</td>
  11759. </tr>
  11760. <tr>
  11761. <td>color</td>
  11762. <td>green</td>
  11763. </tr>
  11764. <tr>
  11765. <td>color</td>
  11766. <td>yellow</td>
  11767. </tr>
  11768. <tr>
  11769. <td>color</td>
  11770. <td>orange</td>
  11771. </tr>
  11772. <tr>
  11773. <td>color</td>
  11774. <td>red</td>
  11775. </tr>
  11776. <tr>
  11777. <td>color</td>
  11778. <td>purple</td>
  11779. </tr>
  11780. <tr>
  11781. <td>color</td>
  11782. <td>blue</td>
  11783. </tr>
  11784. <tr>
  11785. <td>color</td>
  11786. <td>sky</td>
  11787. </tr>
  11788. <tr>
  11789. <td>color</td>
  11790. <td>lime</td>
  11791. </tr>
  11792. <tr>
  11793. <td>color</td>
  11794. <td>pink</td>
  11795. </tr>
  11796. <tr>
  11797. <td>color</td>
  11798. <td>black</td>
  11799. </tr>
  11800. <tr>
  11801. <td>color</td>
  11802. <td>peachpuff</td>
  11803. </tr>
  11804. <tr>
  11805. <td>color</td>
  11806. <td>crimson</td>
  11807. </tr>
  11808. <tr>
  11809. <td>color</td>
  11810. <td>plum</td>
  11811. </tr>
  11812. <tr>
  11813. <td>color</td>
  11814. <td>darkgreen</td>
  11815. </tr>
  11816. <tr>
  11817. <td>color</td>
  11818. <td>slateblue</td>
  11819. </tr>
  11820. <tr>
  11821. <td>color</td>
  11822. <td>magenta</td>
  11823. </tr>
  11824. <tr>
  11825. <td>color</td>
  11826. <td>gold</td>
  11827. </tr>
  11828. <tr>
  11829. <td>color</td>
  11830. <td>navy</td>
  11831. </tr>
  11832. <tr>
  11833. <td>color</td>
  11834. <td>gray</td>
  11835. </tr>
  11836. <tr>
  11837. <td>color</td>
  11838. <td>saddlebrown</td>
  11839. </tr>
  11840. <tr>
  11841. <td>color</td>
  11842. <td>paleturquoise</td>
  11843. </tr>
  11844. <tr>
  11845. <td>color</td>
  11846. <td>mistyrose</td>
  11847. </tr>
  11848. <tr>
  11849. <td>color</td>
  11850. <td>indigo</td>
  11851. </tr>
  11852. </tbody>
  11853. </table>
  11854. <h2 id="tocslistswiplimit">ListsWiplimit</h2>
  11855. <p><a id="schemalistswiplimit"></a></p>
  11856. <pre class="highlight tab tab-json"><code>{
  11857. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  11858. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  11859. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  11860. }
  11861. </code></pre>
  11862. <h3 id="properties">Properties</h3>
  11863. <table>
  11864. <thead>
  11865. <tr>
  11866. <th>Name</th>
  11867. <th>Type</th>
  11868. <th>Required</th>
  11869. <th>Restrictions</th>
  11870. <th>Description</th>
  11871. </tr>
  11872. </thead>
  11873. <tbody>
  11874. <tr>
  11875. <td>value</td>
  11876. <td>number</td>
  11877. <td>true</td>
  11878. <td>none</td>
  11879. <td>value of the WIP</td>
  11880. </tr>
  11881. <tr>
  11882. <td>enabled</td>
  11883. <td>boolean</td>
  11884. <td>true</td>
  11885. <td>none</td>
  11886. <td>is the WIP enabled</td>
  11887. </tr>
  11888. <tr>
  11889. <td>soft</td>
  11890. <td>boolean</td>
  11891. <td>true</td>
  11892. <td>none</td>
  11893. <td>is the WIP a soft or hard requirement</td>
  11894. </tr>
  11895. </tbody>
  11896. </table>
  11897. <h2 id="tocsswimlanes">Swimlanes</h2>
  11898. <p><a id="schemaswimlanes"></a></p>
  11899. <pre class="highlight tab tab-json"><code>{
  11900. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11901. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  11902. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11903. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11904. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  11905. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  11906. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  11907. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11908. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  11909. }
  11910. </code></pre>
  11911. <p><em>A swimlane is an line in the kaban board.</em></p>
  11912. <h3 id="properties">Properties</h3>
  11913. <table>
  11914. <thead>
  11915. <tr>
  11916. <th>Name</th>
  11917. <th>Type</th>
  11918. <th>Required</th>
  11919. <th>Restrictions</th>
  11920. <th>Description</th>
  11921. </tr>
  11922. </thead>
  11923. <tbody>
  11924. <tr>
  11925. <td>title</td>
  11926. <td>string</td>
  11927. <td>true</td>
  11928. <td>none</td>
  11929. <td>the title of the swimlane</td>
  11930. </tr>
  11931. <tr>
  11932. <td>archived</td>
  11933. <td>boolean</td>
  11934. <td>true</td>
  11935. <td>none</td>
  11936. <td>is the swimlane archived?</td>
  11937. </tr>
  11938. <tr>
  11939. <td>boardId</td>
  11940. <td>string</td>
  11941. <td>true</td>
  11942. <td>none</td>
  11943. <td>the ID of the board the swimlane is attached to</td>
  11944. </tr>
  11945. <tr>
  11946. <td>createdAt</td>
  11947. <td>string</td>
  11948. <td>true</td>
  11949. <td>none</td>
  11950. <td>creation date of the swimlane</td>
  11951. </tr>
  11952. <tr>
  11953. <td>sort</td>
  11954. <td>number|null</td>
  11955. <td>false</td>
  11956. <td>none</td>
  11957. <td>the sort value of the swimlane</td>
  11958. </tr>
  11959. <tr>
  11960. <td>color</td>
  11961. <td>string|null</td>
  11962. <td>false</td>
  11963. <td>none</td>
  11964. <td>the color of the swimlane</td>
  11965. </tr>
  11966. <tr>
  11967. <td>updatedAt</td>
  11968. <td>string|null</td>
  11969. <td>false</td>
  11970. <td>none</td>
  11971. <td>when was the swimlane last edited</td>
  11972. </tr>
  11973. <tr>
  11974. <td>modifiedAt</td>
  11975. <td>string</td>
  11976. <td>true</td>
  11977. <td>none</td>
  11978. <td>none</td>
  11979. </tr>
  11980. <tr>
  11981. <td>type</td>
  11982. <td>string</td>
  11983. <td>true</td>
  11984. <td>none</td>
  11985. <td>The type of swimlane</td>
  11986. </tr>
  11987. </tbody>
  11988. </table>
  11989. <h4 id="enumerated-values">Enumerated Values</h4>
  11990. <table>
  11991. <thead>
  11992. <tr>
  11993. <th>Property</th>
  11994. <th>Value</th>
  11995. </tr>
  11996. </thead>
  11997. <tbody>
  11998. <tr>
  11999. <td>color</td>
  12000. <td>white</td>
  12001. </tr>
  12002. <tr>
  12003. <td>color</td>
  12004. <td>green</td>
  12005. </tr>
  12006. <tr>
  12007. <td>color</td>
  12008. <td>yellow</td>
  12009. </tr>
  12010. <tr>
  12011. <td>color</td>
  12012. <td>orange</td>
  12013. </tr>
  12014. <tr>
  12015. <td>color</td>
  12016. <td>red</td>
  12017. </tr>
  12018. <tr>
  12019. <td>color</td>
  12020. <td>purple</td>
  12021. </tr>
  12022. <tr>
  12023. <td>color</td>
  12024. <td>blue</td>
  12025. </tr>
  12026. <tr>
  12027. <td>color</td>
  12028. <td>sky</td>
  12029. </tr>
  12030. <tr>
  12031. <td>color</td>
  12032. <td>lime</td>
  12033. </tr>
  12034. <tr>
  12035. <td>color</td>
  12036. <td>pink</td>
  12037. </tr>
  12038. <tr>
  12039. <td>color</td>
  12040. <td>black</td>
  12041. </tr>
  12042. <tr>
  12043. <td>color</td>
  12044. <td>peachpuff</td>
  12045. </tr>
  12046. <tr>
  12047. <td>color</td>
  12048. <td>crimson</td>
  12049. </tr>
  12050. <tr>
  12051. <td>color</td>
  12052. <td>plum</td>
  12053. </tr>
  12054. <tr>
  12055. <td>color</td>
  12056. <td>darkgreen</td>
  12057. </tr>
  12058. <tr>
  12059. <td>color</td>
  12060. <td>slateblue</td>
  12061. </tr>
  12062. <tr>
  12063. <td>color</td>
  12064. <td>magenta</td>
  12065. </tr>
  12066. <tr>
  12067. <td>color</td>
  12068. <td>gold</td>
  12069. </tr>
  12070. <tr>
  12071. <td>color</td>
  12072. <td>navy</td>
  12073. </tr>
  12074. <tr>
  12075. <td>color</td>
  12076. <td>gray</td>
  12077. </tr>
  12078. <tr>
  12079. <td>color</td>
  12080. <td>saddlebrown</td>
  12081. </tr>
  12082. <tr>
  12083. <td>color</td>
  12084. <td>paleturquoise</td>
  12085. </tr>
  12086. <tr>
  12087. <td>color</td>
  12088. <td>mistyrose</td>
  12089. </tr>
  12090. <tr>
  12091. <td>color</td>
  12092. <td>indigo</td>
  12093. </tr>
  12094. </tbody>
  12095. </table>
  12096. <h2 id="tocsusers">Users</h2>
  12097. <p><a id="schemausers"></a></p>
  12098. <pre class="highlight tab tab-json"><code>{
  12099. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  12100. <span class="hljs-attr">"emails"</span>: [
  12101. {
  12102. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  12103. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  12104. }
  12105. ],
  12106. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12107. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12108. <span class="hljs-attr">"profile"</span>: {
  12109. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  12110. <span class="hljs-attr">"emailBuffer"</span>: [
  12111. <span class="hljs-string">"string"</span>
  12112. ],
  12113. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  12114. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  12115. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  12116. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  12117. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  12118. <span class="hljs-attr">"invitedBoards"</span>: [
  12119. <span class="hljs-string">"string"</span>
  12120. ],
  12121. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  12122. <span class="hljs-attr">"notifications"</span>: [],
  12123. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  12124. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  12125. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  12126. <span class="hljs-attr">"starredBoards"</span>: [
  12127. <span class="hljs-string">"string"</span>
  12128. ],
  12129. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  12130. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-lists"</span>,
  12131. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  12132. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  12133. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12134. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12135. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  12136. },
  12137. <span class="hljs-attr">"services"</span>: {},
  12138. <span class="hljs-attr">"heartbeat"</span>: <span class="hljs-string">"string"</span>,
  12139. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  12140. <span class="hljs-attr">"createdThroughApi"</span>: <span class="hljs-literal">true</span>,
  12141. <span class="hljs-attr">"loginDisabled"</span>: <span class="hljs-literal">true</span>,
  12142. <span class="hljs-attr">"authenticationMethod"</span>: <span class="hljs-string">"string"</span>
  12143. }
  12144. </code></pre>
  12145. <p><em>A User in wekan</em></p>
  12146. <h3 id="properties">Properties</h3>
  12147. <table>
  12148. <thead>
  12149. <tr>
  12150. <th>Name</th>
  12151. <th>Type</th>
  12152. <th>Required</th>
  12153. <th>Restrictions</th>
  12154. <th>Description</th>
  12155. </tr>
  12156. </thead>
  12157. <tbody>
  12158. <tr>
  12159. <td>username</td>
  12160. <td>string|null</td>
  12161. <td>false</td>
  12162. <td>none</td>
  12163. <td>the username of the user</td>
  12164. </tr>
  12165. <tr>
  12166. <td>emails</td>
  12167. <td>[<a href="#schemausersemails">UsersEmails</a>]|null</td>
  12168. <td>false</td>
  12169. <td>none</td>
  12170. <td>the list of emails attached to a user</td>
  12171. </tr>
  12172. <tr>
  12173. <td>createdAt</td>
  12174. <td>string</td>
  12175. <td>true</td>
  12176. <td>none</td>
  12177. <td>creation date of the user</td>
  12178. </tr>
  12179. <tr>
  12180. <td>modifiedAt</td>
  12181. <td>string</td>
  12182. <td>true</td>
  12183. <td>none</td>
  12184. <td>none</td>
  12185. </tr>
  12186. <tr>
  12187. <td>profile</td>
  12188. <td><a href="#schemausersprofile">UsersProfile</a></td>
  12189. <td>false</td>
  12190. <td>none</td>
  12191. <td>profile settings</td>
  12192. </tr>
  12193. <tr>
  12194. <td>services</td>
  12195. <td>object|null</td>
  12196. <td>false</td>
  12197. <td>none</td>
  12198. <td>services field of the user</td>
  12199. </tr>
  12200. <tr>
  12201. <td>heartbeat</td>
  12202. <td>string|null</td>
  12203. <td>false</td>
  12204. <td>none</td>
  12205. <td>last time the user has been seen</td>
  12206. </tr>
  12207. <tr>
  12208. <td>isAdmin</td>
  12209. <td>boolean|null</td>
  12210. <td>false</td>
  12211. <td>none</td>
  12212. <td>is the user an admin of the board?</td>
  12213. </tr>
  12214. <tr>
  12215. <td>createdThroughApi</td>
  12216. <td>boolean|null</td>
  12217. <td>false</td>
  12218. <td>none</td>
  12219. <td>was the user created through the API?</td>
  12220. </tr>
  12221. <tr>
  12222. <td>loginDisabled</td>
  12223. <td>boolean|null</td>
  12224. <td>false</td>
  12225. <td>none</td>
  12226. <td>loginDisabled field of the user</td>
  12227. </tr>
  12228. <tr>
  12229. <td>authenticationMethod</td>
  12230. <td>string</td>
  12231. <td>true</td>
  12232. <td>none</td>
  12233. <td>authentication method of the user</td>
  12234. </tr>
  12235. </tbody>
  12236. </table>
  12237. <h2 id="tocsusersemails">UsersEmails</h2>
  12238. <p><a id="schemausersemails"></a></p>
  12239. <pre class="highlight tab tab-json"><code>{
  12240. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  12241. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  12242. }
  12243. </code></pre>
  12244. <h3 id="properties">Properties</h3>
  12245. <table>
  12246. <thead>
  12247. <tr>
  12248. <th>Name</th>
  12249. <th>Type</th>
  12250. <th>Required</th>
  12251. <th>Restrictions</th>
  12252. <th>Description</th>
  12253. </tr>
  12254. </thead>
  12255. <tbody>
  12256. <tr>
  12257. <td>address</td>
  12258. <td>string</td>
  12259. <td>true</td>
  12260. <td>none</td>
  12261. <td>The email address</td>
  12262. </tr>
  12263. <tr>
  12264. <td>verified</td>
  12265. <td>boolean</td>
  12266. <td>true</td>
  12267. <td>none</td>
  12268. <td>Has the email been verified</td>
  12269. </tr>
  12270. </tbody>
  12271. </table>
  12272. <h2 id="tocsusersprofile">UsersProfile</h2>
  12273. <p><a id="schemausersprofile"></a></p>
  12274. <pre class="highlight tab tab-json"><code>{
  12275. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  12276. <span class="hljs-attr">"emailBuffer"</span>: [
  12277. <span class="hljs-string">"string"</span>
  12278. ],
  12279. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  12280. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  12281. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  12282. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  12283. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  12284. <span class="hljs-attr">"invitedBoards"</span>: [
  12285. <span class="hljs-string">"string"</span>
  12286. ],
  12287. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  12288. <span class="hljs-attr">"notifications"</span>: [],
  12289. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  12290. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  12291. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  12292. <span class="hljs-attr">"starredBoards"</span>: [
  12293. <span class="hljs-string">"string"</span>
  12294. ],
  12295. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  12296. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-lists"</span>,
  12297. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  12298. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  12299. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12300. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12301. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  12302. }
  12303. </code></pre>
  12304. <h3 id="properties">Properties</h3>
  12305. <table>
  12306. <thead>
  12307. <tr>
  12308. <th>Name</th>
  12309. <th>Type</th>
  12310. <th>Required</th>
  12311. <th>Restrictions</th>
  12312. <th>Description</th>
  12313. </tr>
  12314. </thead>
  12315. <tbody>
  12316. <tr>
  12317. <td>avatarUrl</td>
  12318. <td>string</td>
  12319. <td>false</td>
  12320. <td>none</td>
  12321. <td>URL of the avatar of the user</td>
  12322. </tr>
  12323. <tr>
  12324. <td>emailBuffer</td>
  12325. <td>[string]</td>
  12326. <td>false</td>
  12327. <td>none</td>
  12328. <td>list of email buffers of the user</td>
  12329. </tr>
  12330. <tr>
  12331. <td>fullname</td>
  12332. <td>string</td>
  12333. <td>false</td>
  12334. <td>none</td>
  12335. <td>full name of the user</td>
  12336. </tr>
  12337. <tr>
  12338. <td>showDesktopDragHandles</td>
  12339. <td>boolean</td>
  12340. <td>false</td>
  12341. <td>none</td>
  12342. <td>does the user want to hide system messages?</td>
  12343. </tr>
  12344. <tr>
  12345. <td>hiddenSystemMessages</td>
  12346. <td>boolean</td>
  12347. <td>false</td>
  12348. <td>none</td>
  12349. <td>does the user want to hide system messages?</td>
  12350. </tr>
  12351. <tr>
  12352. <td>hiddenMinicardLabelText</td>
  12353. <td>boolean</td>
  12354. <td>false</td>
  12355. <td>none</td>
  12356. <td>does the user want to hide minicard label texts?</td>
  12357. </tr>
  12358. <tr>
  12359. <td>initials</td>
  12360. <td>string</td>
  12361. <td>false</td>
  12362. <td>none</td>
  12363. <td>initials of the user</td>
  12364. </tr>
  12365. <tr>
  12366. <td>invitedBoards</td>
  12367. <td>[string]</td>
  12368. <td>false</td>
  12369. <td>none</td>
  12370. <td>board IDs the user has been invited to</td>
  12371. </tr>
  12372. <tr>
  12373. <td>language</td>
  12374. <td>string</td>
  12375. <td>false</td>
  12376. <td>none</td>
  12377. <td>language of the user</td>
  12378. </tr>
  12379. <tr>
  12380. <td>notifications</td>
  12381. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  12382. <td>false</td>
  12383. <td>none</td>
  12384. <td>enabled notifications for the user</td>
  12385. </tr>
  12386. <tr>
  12387. <td>activity</td>
  12388. <td>string</td>
  12389. <td>true</td>
  12390. <td>none</td>
  12391. <td>The id of the activity this notification references</td>
  12392. </tr>
  12393. <tr>
  12394. <td>read</td>
  12395. <td>string</td>
  12396. <td>false</td>
  12397. <td>none</td>
  12398. <td>the date on which this notification was read</td>
  12399. </tr>
  12400. <tr>
  12401. <td>showCardsCountAt</td>
  12402. <td>number</td>
  12403. <td>false</td>
  12404. <td>none</td>
  12405. <td>showCardCountAt field of the user</td>
  12406. </tr>
  12407. <tr>
  12408. <td>starredBoards</td>
  12409. <td>[string]</td>
  12410. <td>false</td>
  12411. <td>none</td>
  12412. <td>list of starred board IDs</td>
  12413. </tr>
  12414. <tr>
  12415. <td>icode</td>
  12416. <td>string</td>
  12417. <td>false</td>
  12418. <td>none</td>
  12419. <td>icode</td>
  12420. </tr>
  12421. <tr>
  12422. <td>boardView</td>
  12423. <td>string</td>
  12424. <td>false</td>
  12425. <td>none</td>
  12426. <td>boardView field of the user</td>
  12427. </tr>
  12428. <tr>
  12429. <td>listSortBy</td>
  12430. <td>string</td>
  12431. <td>false</td>
  12432. <td>none</td>
  12433. <td>default sort list for user</td>
  12434. </tr>
  12435. <tr>
  12436. <td>templatesBoardId</td>
  12437. <td>string</td>
  12438. <td>true</td>
  12439. <td>none</td>
  12440. <td>Reference to the templates board</td>
  12441. </tr>
  12442. <tr>
  12443. <td>cardTemplatesSwimlaneId</td>
  12444. <td>string</td>
  12445. <td>true</td>
  12446. <td>none</td>
  12447. <td>Reference to the card templates swimlane Id</td>
  12448. </tr>
  12449. <tr>
  12450. <td>listTemplatesSwimlaneId</td>
  12451. <td>string</td>
  12452. <td>true</td>
  12453. <td>none</td>
  12454. <td>Reference to the list templates swimlane Id</td>
  12455. </tr>
  12456. <tr>
  12457. <td>boardTemplatesSwimlaneId</td>
  12458. <td>string</td>
  12459. <td>true</td>
  12460. <td>none</td>
  12461. <td>Reference to the board templates swimlane Id</td>
  12462. </tr>
  12463. </tbody>
  12464. </table>
  12465. <h4 id="enumerated-values">Enumerated Values</h4>
  12466. <table>
  12467. <thead>
  12468. <tr>
  12469. <th>Property</th>
  12470. <th>Value</th>
  12471. </tr>
  12472. </thead>
  12473. <tbody>
  12474. <tr>
  12475. <td>boardView</td>
  12476. <td>board-view-lists</td>
  12477. </tr>
  12478. <tr>
  12479. <td>boardView</td>
  12480. <td>board-view-swimlanes</td>
  12481. </tr>
  12482. <tr>
  12483. <td>boardView</td>
  12484. <td>board-view-cal</td>
  12485. </tr>
  12486. <tr>
  12487. <td>listSortBy</td>
  12488. <td>-modifiedat</td>
  12489. </tr>
  12490. <tr>
  12491. <td>listSortBy</td>
  12492. <td>modifiedat</td>
  12493. </tr>
  12494. <tr>
  12495. <td>listSortBy</td>
  12496. <td>-title</td>
  12497. </tr>
  12498. <tr>
  12499. <td>listSortBy</td>
  12500. <td>title</td>
  12501. </tr>
  12502. <tr>
  12503. <td>listSortBy</td>
  12504. <td>-sort</td>
  12505. </tr>
  12506. <tr>
  12507. <td>listSortBy</td>
  12508. <td>sort</td>
  12509. </tr>
  12510. </tbody>
  12511. </table>
  12512. </div>
  12513. <div class="dark-box">
  12514. <div class="lang-selector">
  12515. <a href="#" data-language-name="shell">Shell</a>
  12516. <a href="#" data-language-name="http">HTTP</a>
  12517. <a href="#" data-language-name="javascript">JavaScript</a>
  12518. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  12519. <a href="#" data-language-name="ruby">Ruby</a>
  12520. <a href="#" data-language-name="python">Python</a>
  12521. <a href="#" data-language-name="java">Java</a>
  12522. <a href="#" data-language-name="go">Go</a>
  12523. </div>
  12524. </div>
  12525. </div>
  12526. </body>
  12527. </html>