You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v1_json.tmpl 220KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137
  1. {
  2. "consumes": [
  3. "application/json",
  4. "text/plain"
  5. ],
  6. "produces": [
  7. "application/json",
  8. "text/html"
  9. ],
  10. "schemes": [
  11. "http",
  12. "https"
  13. ],
  14. "swagger": "2.0",
  15. "info": {
  16. "description": "This documentation describes the Gitea API.",
  17. "title": "Gitea API.",
  18. "license": {
  19. "name": "MIT",
  20. "url": "http://opensource.org/licenses/MIT"
  21. },
  22. "version": "1.1.1"
  23. },
  24. "basePath": "{{AppSubUrl}}/api/v1",
  25. "paths": {
  26. "/admin/orgs": {
  27. "get": {
  28. "produces": [
  29. "application/json"
  30. ],
  31. "tags": [
  32. "admin"
  33. ],
  34. "summary": "List all organizations",
  35. "operationId": "adminGetAllOrgs",
  36. "responses": {
  37. "200": {
  38. "$ref": "#/responses/OrganizationList"
  39. },
  40. "403": {
  41. "$ref": "#/responses/forbidden"
  42. }
  43. }
  44. }
  45. },
  46. "/admin/users": {
  47. "get": {
  48. "produces": [
  49. "application/json"
  50. ],
  51. "tags": [
  52. "admin"
  53. ],
  54. "summary": "List all users",
  55. "operationId": "adminGetAllUsers",
  56. "responses": {
  57. "200": {
  58. "$ref": "#/responses/UserList"
  59. },
  60. "403": {
  61. "$ref": "#/responses/forbidden"
  62. }
  63. }
  64. },
  65. "post": {
  66. "consumes": [
  67. "application/json"
  68. ],
  69. "produces": [
  70. "application/json"
  71. ],
  72. "tags": [
  73. "admin"
  74. ],
  75. "summary": "Create a user",
  76. "operationId": "adminCreateUser",
  77. "parameters": [
  78. {
  79. "name": "body",
  80. "in": "body",
  81. "schema": {
  82. "$ref": "#/definitions/CreateUserOption"
  83. }
  84. }
  85. ],
  86. "responses": {
  87. "201": {
  88. "$ref": "#/responses/User"
  89. },
  90. "403": {
  91. "$ref": "#/responses/forbidden"
  92. },
  93. "422": {
  94. "$ref": "#/responses/validationError"
  95. }
  96. }
  97. }
  98. },
  99. "/admin/users/{username}": {
  100. "delete": {
  101. "produces": [
  102. "application/json"
  103. ],
  104. "tags": [
  105. "admin"
  106. ],
  107. "summary": "Delete a user",
  108. "operationId": "adminDeleteUser",
  109. "parameters": [
  110. {
  111. "type": "string",
  112. "description": "username of user to delete",
  113. "name": "username",
  114. "in": "path",
  115. "required": true
  116. }
  117. ],
  118. "responses": {
  119. "204": {
  120. "$ref": "#/responses/empty"
  121. },
  122. "403": {
  123. "$ref": "#/responses/forbidden"
  124. },
  125. "422": {
  126. "$ref": "#/responses/validationError"
  127. }
  128. }
  129. },
  130. "patch": {
  131. "consumes": [
  132. "application/json"
  133. ],
  134. "produces": [
  135. "application/json"
  136. ],
  137. "tags": [
  138. "admin"
  139. ],
  140. "summary": "Edit an existing user",
  141. "operationId": "adminEditUser",
  142. "parameters": [
  143. {
  144. "type": "string",
  145. "description": "username of user to edit",
  146. "name": "username",
  147. "in": "path",
  148. "required": true
  149. },
  150. {
  151. "name": "body",
  152. "in": "body",
  153. "schema": {
  154. "$ref": "#/definitions/EditUserOption"
  155. }
  156. }
  157. ],
  158. "responses": {
  159. "200": {
  160. "$ref": "#/responses/User"
  161. },
  162. "403": {
  163. "$ref": "#/responses/forbidden"
  164. },
  165. "422": {
  166. "$ref": "#/responses/validationError"
  167. }
  168. }
  169. }
  170. },
  171. "/admin/users/{username}/keys": {
  172. "post": {
  173. "consumes": [
  174. "application/json"
  175. ],
  176. "produces": [
  177. "application/json"
  178. ],
  179. "tags": [
  180. "admin"
  181. ],
  182. "summary": "Add a public key on behalf of a user",
  183. "operationId": "adminCreatePublicKey",
  184. "parameters": [
  185. {
  186. "type": "string",
  187. "description": "username of the user",
  188. "name": "username",
  189. "in": "path",
  190. "required": true
  191. },
  192. {
  193. "name": "key",
  194. "in": "body",
  195. "schema": {
  196. "$ref": "#/definitions/CreateKeyOption"
  197. }
  198. }
  199. ],
  200. "responses": {
  201. "201": {
  202. "$ref": "#/responses/PublicKey"
  203. },
  204. "403": {
  205. "$ref": "#/responses/forbidden"
  206. },
  207. "422": {
  208. "$ref": "#/responses/validationError"
  209. }
  210. }
  211. }
  212. },
  213. "/admin/users/{username}/keys/{id}": {
  214. "delete": {
  215. "produces": [
  216. "application/json"
  217. ],
  218. "tags": [
  219. "admin"
  220. ],
  221. "summary": "Delete a user's public key",
  222. "operationId": "adminDeleteUserPublicKey",
  223. "parameters": [
  224. {
  225. "type": "string",
  226. "description": "username of user",
  227. "name": "username",
  228. "in": "path",
  229. "required": true
  230. },
  231. {
  232. "type": "integer",
  233. "format": "int64",
  234. "description": "id of the key to delete",
  235. "name": "id",
  236. "in": "path",
  237. "required": true
  238. }
  239. ],
  240. "responses": {
  241. "204": {
  242. "$ref": "#/responses/empty"
  243. },
  244. "403": {
  245. "$ref": "#/responses/forbidden"
  246. },
  247. "404": {
  248. "$ref": "#/responses/notFound"
  249. }
  250. }
  251. }
  252. },
  253. "/admin/users/{username}/orgs": {
  254. "post": {
  255. "consumes": [
  256. "application/json"
  257. ],
  258. "produces": [
  259. "application/json"
  260. ],
  261. "tags": [
  262. "admin"
  263. ],
  264. "summary": "Create an organization",
  265. "operationId": "adminCreateOrg",
  266. "parameters": [
  267. {
  268. "type": "string",
  269. "description": "username of the user that will own the created organization",
  270. "name": "username",
  271. "in": "path",
  272. "required": true
  273. },
  274. {
  275. "name": "organization",
  276. "in": "body",
  277. "required": true,
  278. "schema": {
  279. "$ref": "#/definitions/CreateOrgOption"
  280. }
  281. }
  282. ],
  283. "responses": {
  284. "201": {
  285. "$ref": "#/responses/Organization"
  286. },
  287. "403": {
  288. "$ref": "#/responses/forbidden"
  289. },
  290. "422": {
  291. "$ref": "#/responses/validationError"
  292. }
  293. }
  294. }
  295. },
  296. "/admin/users/{username}/repos": {
  297. "post": {
  298. "consumes": [
  299. "application/json"
  300. ],
  301. "produces": [
  302. "application/json"
  303. ],
  304. "tags": [
  305. "admin"
  306. ],
  307. "summary": "Create a repository on behalf a user",
  308. "operationId": "adminCreateRepo",
  309. "parameters": [
  310. {
  311. "type": "string",
  312. "description": "username of the user. This user will own the created repository",
  313. "name": "username",
  314. "in": "path",
  315. "required": true
  316. },
  317. {
  318. "name": "repository",
  319. "in": "body",
  320. "required": true,
  321. "schema": {
  322. "$ref": "#/definitions/CreateRepoOption"
  323. }
  324. }
  325. ],
  326. "responses": {
  327. "201": {
  328. "$ref": "#/responses/Repository"
  329. },
  330. "403": {
  331. "$ref": "#/responses/forbidden"
  332. },
  333. "422": {
  334. "$ref": "#/responses/validationError"
  335. }
  336. }
  337. }
  338. },
  339. "/markdown": {
  340. "post": {
  341. "consumes": [
  342. "application/json"
  343. ],
  344. "produces": [
  345. "text/html"
  346. ],
  347. "tags": [
  348. "miscellaneous"
  349. ],
  350. "summary": "Render a markdown document as HTML",
  351. "operationId": "renderMarkdown",
  352. "parameters": [
  353. {
  354. "name": "body",
  355. "in": "body",
  356. "schema": {
  357. "$ref": "#/definitions/MarkdownOption"
  358. }
  359. }
  360. ],
  361. "responses": {
  362. "200": {
  363. "$ref": "#/responses/MarkdownRender"
  364. },
  365. "422": {
  366. "$ref": "#/responses/validationError"
  367. }
  368. }
  369. }
  370. },
  371. "/markdown/raw": {
  372. "post": {
  373. "consumes": [
  374. "text/plain"
  375. ],
  376. "produces": [
  377. "text/html"
  378. ],
  379. "tags": [
  380. "miscellaneous"
  381. ],
  382. "summary": "Render raw markdown as HTML",
  383. "operationId": "renderMarkdownRaw",
  384. "parameters": [
  385. {
  386. "description": "Request body to render",
  387. "name": "body",
  388. "in": "body",
  389. "required": true,
  390. "schema": {
  391. "type": "string"
  392. }
  393. }
  394. ],
  395. "responses": {
  396. "200": {
  397. "$ref": "#/responses/MarkdownRender"
  398. },
  399. "422": {
  400. "$ref": "#/responses/validationError"
  401. }
  402. }
  403. }
  404. },
  405. "/org/{org}/repos": {
  406. "post": {
  407. "consumes": [
  408. "application/json"
  409. ],
  410. "produces": [
  411. "application/json"
  412. ],
  413. "tags": [
  414. "organization"
  415. ],
  416. "summary": "Create a repository in an organization",
  417. "operationId": "createOrgRepo",
  418. "parameters": [
  419. {
  420. "type": "string",
  421. "description": "name of organization",
  422. "name": "org",
  423. "in": "path",
  424. "required": true
  425. },
  426. {
  427. "name": "body",
  428. "in": "body",
  429. "schema": {
  430. "$ref": "#/definitions/CreateRepoOption"
  431. }
  432. }
  433. ],
  434. "responses": {
  435. "201": {
  436. "$ref": "#/responses/Repository"
  437. },
  438. "403": {
  439. "$ref": "#/responses/forbidden"
  440. },
  441. "422": {
  442. "$ref": "#/responses/validationError"
  443. }
  444. }
  445. }
  446. },
  447. "/orgs": {
  448. "post": {
  449. "consumes": [
  450. "application/json"
  451. ],
  452. "produces": [
  453. "application/json"
  454. ],
  455. "tags": [
  456. "organization"
  457. ],
  458. "summary": "Create an organization",
  459. "operationId": "orgCreate",
  460. "parameters": [
  461. {
  462. "name": "organization",
  463. "in": "body",
  464. "required": true,
  465. "schema": {
  466. "$ref": "#/definitions/CreateOrgOption"
  467. }
  468. }
  469. ],
  470. "responses": {
  471. "201": {
  472. "$ref": "#/responses/Organization"
  473. },
  474. "403": {
  475. "$ref": "#/responses/forbidden"
  476. },
  477. "422": {
  478. "$ref": "#/responses/validationError"
  479. }
  480. }
  481. }
  482. },
  483. "/orgs/{org}": {
  484. "get": {
  485. "produces": [
  486. "application/json"
  487. ],
  488. "tags": [
  489. "organization"
  490. ],
  491. "summary": "Get an organization",
  492. "operationId": "orgGet",
  493. "parameters": [
  494. {
  495. "type": "string",
  496. "description": "name of the organization to get",
  497. "name": "org",
  498. "in": "path",
  499. "required": true
  500. }
  501. ],
  502. "responses": {
  503. "200": {
  504. "$ref": "#/responses/Organization"
  505. }
  506. }
  507. },
  508. "delete": {
  509. "produces": [
  510. "application/json"
  511. ],
  512. "tags": [
  513. "organization"
  514. ],
  515. "summary": "Delete an organization",
  516. "operationId": "orgDelete",
  517. "parameters": [
  518. {
  519. "type": "string",
  520. "description": "organization that is to be deleted",
  521. "name": "org",
  522. "in": "path",
  523. "required": true
  524. }
  525. ],
  526. "responses": {
  527. "204": {
  528. "$ref": "#/responses/empty"
  529. }
  530. }
  531. },
  532. "patch": {
  533. "consumes": [
  534. "application/json"
  535. ],
  536. "produces": [
  537. "application/json"
  538. ],
  539. "tags": [
  540. "organization"
  541. ],
  542. "summary": "Edit an organization",
  543. "operationId": "orgEdit",
  544. "parameters": [
  545. {
  546. "type": "string",
  547. "description": "name of the organization to edit",
  548. "name": "org",
  549. "in": "path",
  550. "required": true
  551. },
  552. {
  553. "name": "body",
  554. "in": "body",
  555. "schema": {
  556. "$ref": "#/definitions/EditOrgOption"
  557. }
  558. }
  559. ],
  560. "responses": {
  561. "200": {
  562. "$ref": "#/responses/Organization"
  563. }
  564. }
  565. }
  566. },
  567. "/orgs/{org}/hooks": {
  568. "get": {
  569. "produces": [
  570. "application/json"
  571. ],
  572. "tags": [
  573. "organization"
  574. ],
  575. "summary": "List an organization's webhooks",
  576. "operationId": "orgListHooks",
  577. "parameters": [
  578. {
  579. "type": "string",
  580. "description": "name of the organization",
  581. "name": "org",
  582. "in": "path",
  583. "required": true
  584. }
  585. ],
  586. "responses": {
  587. "200": {
  588. "$ref": "#/responses/HookList"
  589. }
  590. }
  591. }
  592. },
  593. "/orgs/{org}/hooks/": {
  594. "post": {
  595. "consumes": [
  596. "application/json"
  597. ],
  598. "produces": [
  599. "application/json"
  600. ],
  601. "tags": [
  602. "organization"
  603. ],
  604. "summary": "Create a hook",
  605. "operationId": "orgCreateHook",
  606. "parameters": [
  607. {
  608. "type": "string",
  609. "description": "name of the organization",
  610. "name": "org",
  611. "in": "path",
  612. "required": true
  613. },
  614. {
  615. "name": "body",
  616. "in": "body",
  617. "required": true,
  618. "schema": {
  619. "$ref": "#/definitions/CreateHookOption"
  620. }
  621. }
  622. ],
  623. "responses": {
  624. "201": {
  625. "$ref": "#/responses/Hook"
  626. }
  627. }
  628. }
  629. },
  630. "/orgs/{org}/hooks/{id}": {
  631. "get": {
  632. "produces": [
  633. "application/json"
  634. ],
  635. "tags": [
  636. "organization"
  637. ],
  638. "summary": "Get a hook",
  639. "operationId": "orgGetHook",
  640. "parameters": [
  641. {
  642. "type": "string",
  643. "description": "name of the organization",
  644. "name": "org",
  645. "in": "path",
  646. "required": true
  647. },
  648. {
  649. "type": "integer",
  650. "format": "int64",
  651. "description": "id of the hook to get",
  652. "name": "id",
  653. "in": "path",
  654. "required": true
  655. }
  656. ],
  657. "responses": {
  658. "200": {
  659. "$ref": "#/responses/Hook"
  660. }
  661. }
  662. },
  663. "delete": {
  664. "produces": [
  665. "application/json"
  666. ],
  667. "tags": [
  668. "organization"
  669. ],
  670. "summary": "Delete a hook",
  671. "operationId": "orgDeleteHook",
  672. "parameters": [
  673. {
  674. "type": "string",
  675. "description": "name of the organization",
  676. "name": "org",
  677. "in": "path",
  678. "required": true
  679. },
  680. {
  681. "type": "integer",
  682. "format": "int64",
  683. "description": "id of the hook to delete",
  684. "name": "id",
  685. "in": "path",
  686. "required": true
  687. }
  688. ],
  689. "responses": {
  690. "204": {
  691. "$ref": "#/responses/empty"
  692. }
  693. }
  694. },
  695. "patch": {
  696. "consumes": [
  697. "application/json"
  698. ],
  699. "produces": [
  700. "application/json"
  701. ],
  702. "tags": [
  703. "organization"
  704. ],
  705. "summary": "Update a hook",
  706. "operationId": "orgEditHook",
  707. "parameters": [
  708. {
  709. "type": "string",
  710. "description": "name of the organization",
  711. "name": "org",
  712. "in": "path",
  713. "required": true
  714. },
  715. {
  716. "type": "integer",
  717. "format": "int64",
  718. "description": "id of the hook to update",
  719. "name": "id",
  720. "in": "path",
  721. "required": true
  722. },
  723. {
  724. "name": "body",
  725. "in": "body",
  726. "schema": {
  727. "$ref": "#/definitions/EditHookOption"
  728. }
  729. }
  730. ],
  731. "responses": {
  732. "200": {
  733. "$ref": "#/responses/Hook"
  734. }
  735. }
  736. }
  737. },
  738. "/orgs/{org}/members": {
  739. "get": {
  740. "produces": [
  741. "application/json"
  742. ],
  743. "tags": [
  744. "organization"
  745. ],
  746. "summary": "List an organization's members",
  747. "operationId": "orgListMembers",
  748. "parameters": [
  749. {
  750. "type": "string",
  751. "description": "name of the organization",
  752. "name": "org",
  753. "in": "path",
  754. "required": true
  755. }
  756. ],
  757. "responses": {
  758. "200": {
  759. "$ref": "#/responses/UserList"
  760. }
  761. }
  762. }
  763. },
  764. "/orgs/{org}/members/{username}": {
  765. "get": {
  766. "tags": [
  767. "organization"
  768. ],
  769. "summary": "Check if a user is a member of an organization",
  770. "operationId": "orgIsMember",
  771. "parameters": [
  772. {
  773. "type": "string",
  774. "description": "name of the organization",
  775. "name": "org",
  776. "in": "path",
  777. "required": true
  778. },
  779. {
  780. "type": "string",
  781. "description": "username of the user",
  782. "name": "username",
  783. "in": "path",
  784. "required": true
  785. }
  786. ],
  787. "responses": {
  788. "204": {
  789. "description": "user is a member"
  790. },
  791. "404": {
  792. "description": "user is not a member"
  793. }
  794. }
  795. },
  796. "delete": {
  797. "produces": [
  798. "application/json"
  799. ],
  800. "tags": [
  801. "organization"
  802. ],
  803. "summary": "Remove a member from an organization",
  804. "operationId": "orgDeleteMember",
  805. "parameters": [
  806. {
  807. "type": "string",
  808. "description": "name of the organization",
  809. "name": "org",
  810. "in": "path",
  811. "required": true
  812. },
  813. {
  814. "type": "string",
  815. "description": "username of the user",
  816. "name": "username",
  817. "in": "path",
  818. "required": true
  819. }
  820. ],
  821. "responses": {
  822. "204": {
  823. "description": "member removed"
  824. }
  825. }
  826. }
  827. },
  828. "/orgs/{org}/public_members": {
  829. "get": {
  830. "produces": [
  831. "application/json"
  832. ],
  833. "tags": [
  834. "organization"
  835. ],
  836. "summary": "List an organization's public members",
  837. "operationId": "orgListPublicMembers",
  838. "parameters": [
  839. {
  840. "type": "string",
  841. "description": "name of the organization",
  842. "name": "org",
  843. "in": "path",
  844. "required": true
  845. }
  846. ],
  847. "responses": {
  848. "200": {
  849. "$ref": "#/responses/UserList"
  850. }
  851. }
  852. }
  853. },
  854. "/orgs/{org}/public_members/{username}": {
  855. "get": {
  856. "tags": [
  857. "organization"
  858. ],
  859. "summary": "Check if a user is a public member of an organization",
  860. "operationId": "orgIsPublicMember",
  861. "parameters": [
  862. {
  863. "type": "string",
  864. "description": "name of the organization",
  865. "name": "org",
  866. "in": "path",
  867. "required": true
  868. },
  869. {
  870. "type": "string",
  871. "description": "username of the user",
  872. "name": "username",
  873. "in": "path",
  874. "required": true
  875. }
  876. ],
  877. "responses": {
  878. "204": {
  879. "description": "user is a public member"
  880. },
  881. "404": {
  882. "description": "user is not a public member"
  883. }
  884. }
  885. },
  886. "put": {
  887. "produces": [
  888. "application/json"
  889. ],
  890. "tags": [
  891. "organization"
  892. ],
  893. "summary": "Publicize a user's membership",
  894. "operationId": "orgPublicizeMember",
  895. "parameters": [
  896. {
  897. "type": "string",
  898. "description": "name of the organization",
  899. "name": "org",
  900. "in": "path",
  901. "required": true
  902. },
  903. {
  904. "type": "string",
  905. "description": "username of the user",
  906. "name": "username",
  907. "in": "path",
  908. "required": true
  909. }
  910. ],
  911. "responses": {
  912. "204": {
  913. "description": "membership publicized"
  914. }
  915. }
  916. },
  917. "delete": {
  918. "produces": [
  919. "application/json"
  920. ],
  921. "tags": [
  922. "organization"
  923. ],
  924. "summary": "Conceal a user's membership",
  925. "operationId": "orgConcealMember",
  926. "parameters": [
  927. {
  928. "type": "string",
  929. "description": "name of the organization",
  930. "name": "org",
  931. "in": "path",
  932. "required": true
  933. },
  934. {
  935. "type": "string",
  936. "description": "username of the user",
  937. "name": "username",
  938. "in": "path",
  939. "required": true
  940. }
  941. ],
  942. "responses": {
  943. "204": {
  944. "$ref": "#/responses/empty"
  945. }
  946. }
  947. }
  948. },
  949. "/orgs/{org}/repos": {
  950. "get": {
  951. "produces": [
  952. "application/json"
  953. ],
  954. "tags": [
  955. "organization"
  956. ],
  957. "summary": "List an organization's repos",
  958. "operationId": "orgListRepos",
  959. "parameters": [
  960. {
  961. "type": "string",
  962. "description": "name of the organization",
  963. "name": "org",
  964. "in": "path",
  965. "required": true
  966. }
  967. ],
  968. "responses": {
  969. "200": {
  970. "$ref": "#/responses/RepositoryList"
  971. }
  972. }
  973. }
  974. },
  975. "/orgs/{org}/teams": {
  976. "get": {
  977. "produces": [
  978. "application/json"
  979. ],
  980. "tags": [
  981. "organization"
  982. ],
  983. "summary": "List an organization's teams",
  984. "operationId": "orgListTeams",
  985. "parameters": [
  986. {
  987. "type": "string",
  988. "description": "name of the organization",
  989. "name": "org",
  990. "in": "path",
  991. "required": true
  992. }
  993. ],
  994. "responses": {
  995. "200": {
  996. "$ref": "#/responses/TeamList"
  997. }
  998. }
  999. },
  1000. "post": {
  1001. "consumes": [
  1002. "application/json"
  1003. ],
  1004. "produces": [
  1005. "application/json"
  1006. ],
  1007. "tags": [
  1008. "organization"
  1009. ],
  1010. "summary": "Create a team",
  1011. "operationId": "orgCreateTeam",
  1012. "parameters": [
  1013. {
  1014. "type": "string",
  1015. "description": "name of the organization",
  1016. "name": "org",
  1017. "in": "path",
  1018. "required": true
  1019. },
  1020. {
  1021. "name": "body",
  1022. "in": "body",
  1023. "schema": {
  1024. "$ref": "#/definitions/CreateTeamOption"
  1025. }
  1026. }
  1027. ],
  1028. "responses": {
  1029. "201": {
  1030. "$ref": "#/responses/Team"
  1031. }
  1032. }
  1033. }
  1034. },
  1035. "/repos/migrate": {
  1036. "post": {
  1037. "consumes": [
  1038. "application/json"
  1039. ],
  1040. "produces": [
  1041. "application/json"
  1042. ],
  1043. "tags": [
  1044. "repository"
  1045. ],
  1046. "summary": "Migrate a remote git repository",
  1047. "operationId": "repoMigrate",
  1048. "parameters": [
  1049. {
  1050. "name": "body",
  1051. "in": "body",
  1052. "schema": {
  1053. "$ref": "#/definitions/MigrateRepoForm"
  1054. }
  1055. }
  1056. ],
  1057. "responses": {
  1058. "201": {
  1059. "$ref": "#/responses/Repository"
  1060. }
  1061. }
  1062. }
  1063. },
  1064. "/repos/search": {
  1065. "get": {
  1066. "produces": [
  1067. "application/json"
  1068. ],
  1069. "tags": [
  1070. "repository"
  1071. ],
  1072. "summary": "Search for repositories",
  1073. "operationId": "repoSearch",
  1074. "parameters": [
  1075. {
  1076. "type": "string",
  1077. "description": "keyword",
  1078. "name": "q",
  1079. "in": "query"
  1080. },
  1081. {
  1082. "type": "integer",
  1083. "format": "int64",
  1084. "description": "search only for repos that the user with the given id owns or contributes to",
  1085. "name": "uid",
  1086. "in": "query"
  1087. },
  1088. {
  1089. "type": "integer",
  1090. "description": "page number of results to return (1-based)",
  1091. "name": "page",
  1092. "in": "query"
  1093. },
  1094. {
  1095. "type": "integer",
  1096. "description": "page size of results, maximum page size is 50",
  1097. "name": "limit",
  1098. "in": "query"
  1099. },
  1100. {
  1101. "type": "string",
  1102. "description": "type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"",
  1103. "name": "mode",
  1104. "in": "query"
  1105. },
  1106. {
  1107. "type": "boolean",
  1108. "description": "if `uid` is given, search only for repos that the user owns",
  1109. "name": "exclusive",
  1110. "in": "query"
  1111. },
  1112. {
  1113. "type": "string",
  1114. "description": "sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\"",
  1115. "name": "sort",
  1116. "in": "query"
  1117. },
  1118. {
  1119. "type": "string",
  1120. "description": "sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified.",
  1121. "name": "order",
  1122. "in": "query"
  1123. }
  1124. ],
  1125. "responses": {
  1126. "200": {
  1127. "$ref": "#/responses/SearchResults"
  1128. },
  1129. "422": {
  1130. "$ref": "#/responses/validationError"
  1131. }
  1132. }
  1133. }
  1134. },
  1135. "/repos/{owner}/{repo}": {
  1136. "get": {
  1137. "produces": [
  1138. "application/json"
  1139. ],
  1140. "tags": [
  1141. "repository"
  1142. ],
  1143. "summary": "Get a repository",
  1144. "operationId": "repoGet",
  1145. "parameters": [
  1146. {
  1147. "type": "string",
  1148. "description": "owner of the repo",
  1149. "name": "owner",
  1150. "in": "path",
  1151. "required": true
  1152. },
  1153. {
  1154. "type": "string",
  1155. "description": "name of the repo",
  1156. "name": "repo",
  1157. "in": "path",
  1158. "required": true
  1159. }
  1160. ],
  1161. "responses": {
  1162. "200": {
  1163. "$ref": "#/responses/Repository"
  1164. }
  1165. }
  1166. },
  1167. "delete": {
  1168. "produces": [
  1169. "application/json"
  1170. ],
  1171. "tags": [
  1172. "repository"
  1173. ],
  1174. "summary": "Delete a repository",
  1175. "operationId": "repoDelete",
  1176. "parameters": [
  1177. {
  1178. "type": "string",
  1179. "description": "owner of the repo to delete",
  1180. "name": "owner",
  1181. "in": "path",
  1182. "required": true
  1183. },
  1184. {
  1185. "type": "string",
  1186. "description": "name of the repo to delete",
  1187. "name": "repo",
  1188. "in": "path",
  1189. "required": true
  1190. }
  1191. ],
  1192. "responses": {
  1193. "204": {
  1194. "$ref": "#/responses/empty"
  1195. },
  1196. "403": {
  1197. "$ref": "#/responses/forbidden"
  1198. }
  1199. }
  1200. }
  1201. },
  1202. "/repos/{owner}/{repo}/archive/{archive}": {
  1203. "get": {
  1204. "produces": [
  1205. "application/json"
  1206. ],
  1207. "tags": [
  1208. "repository"
  1209. ],
  1210. "summary": "Get an archive of a repository",
  1211. "operationId": "repoGetArchive",
  1212. "parameters": [
  1213. {
  1214. "type": "string",
  1215. "description": "owner of the repo",
  1216. "name": "owner",
  1217. "in": "path",
  1218. "required": true
  1219. },
  1220. {
  1221. "type": "string",
  1222. "description": "name of the repo",
  1223. "name": "repo",
  1224. "in": "path",
  1225. "required": true
  1226. },
  1227. {
  1228. "type": "string",
  1229. "description": "archive to download, consisting of a git reference and archive",
  1230. "name": "archive",
  1231. "in": "path",
  1232. "required": true
  1233. }
  1234. ],
  1235. "responses": {
  1236. "200": {
  1237. "description": "success"
  1238. }
  1239. }
  1240. }
  1241. },
  1242. "/repos/{owner}/{repo}/branches": {
  1243. "get": {
  1244. "produces": [
  1245. "application/json"
  1246. ],
  1247. "tags": [
  1248. "repository"
  1249. ],
  1250. "summary": "List a repository's branches",
  1251. "operationId": "repoListBranches",
  1252. "parameters": [
  1253. {
  1254. "type": "string",
  1255. "description": "owner of the repo",
  1256. "name": "owner",
  1257. "in": "path",
  1258. "required": true
  1259. },
  1260. {
  1261. "type": "string",
  1262. "description": "name of the repo",
  1263. "name": "repo",
  1264. "in": "path",
  1265. "required": true
  1266. }
  1267. ],
  1268. "responses": {
  1269. "200": {
  1270. "$ref": "#/responses/BranchList"
  1271. }
  1272. }
  1273. }
  1274. },
  1275. "/repos/{owner}/{repo}/branches/{branch}": {
  1276. "get": {
  1277. "produces": [
  1278. "application/json"
  1279. ],
  1280. "tags": [
  1281. "repository"
  1282. ],
  1283. "summary": "Retrieve a specific branch from a repository",
  1284. "operationId": "repoGetBranch",
  1285. "parameters": [
  1286. {
  1287. "type": "string",
  1288. "description": "owner of the repo",
  1289. "name": "owner",
  1290. "in": "path",
  1291. "required": true
  1292. },
  1293. {
  1294. "type": "string",
  1295. "description": "name of the repo",
  1296. "name": "repo",
  1297. "in": "path",
  1298. "required": true
  1299. },
  1300. {
  1301. "type": "string",
  1302. "description": "branch to get",
  1303. "name": "branch",
  1304. "in": "path",
  1305. "required": true
  1306. }
  1307. ],
  1308. "responses": {
  1309. "200": {
  1310. "$ref": "#/responses/Branch"
  1311. }
  1312. }
  1313. }
  1314. },
  1315. "/repos/{owner}/{repo}/collaborators": {
  1316. "get": {
  1317. "produces": [
  1318. "application/json"
  1319. ],
  1320. "tags": [
  1321. "repository"
  1322. ],
  1323. "summary": "List a repository's collaborators",
  1324. "operationId": "repoListCollaborators",
  1325. "parameters": [
  1326. {
  1327. "type": "string",
  1328. "description": "owner of the repo",
  1329. "name": "owner",
  1330. "in": "path",
  1331. "required": true
  1332. },
  1333. {
  1334. "type": "string",
  1335. "description": "name of the repo",
  1336. "name": "repo",
  1337. "in": "path",
  1338. "required": true
  1339. }
  1340. ],
  1341. "responses": {
  1342. "200": {
  1343. "$ref": "#/responses/UserList"
  1344. }
  1345. }
  1346. }
  1347. },
  1348. "/repos/{owner}/{repo}/collaborators/{collaborator}": {
  1349. "get": {
  1350. "produces": [
  1351. "application/json"
  1352. ],
  1353. "tags": [
  1354. "repository"
  1355. ],
  1356. "summary": "Check if a user is a collaborator of a repository",
  1357. "operationId": "repoCheckCollaborator",
  1358. "parameters": [
  1359. {
  1360. "type": "string",
  1361. "description": "owner of the repo",
  1362. "name": "owner",
  1363. "in": "path",
  1364. "required": true
  1365. },
  1366. {
  1367. "type": "string",
  1368. "description": "name of the repo",
  1369. "name": "repo",
  1370. "in": "path",
  1371. "required": true
  1372. },
  1373. {
  1374. "type": "string",
  1375. "description": "username of the collaborator",
  1376. "name": "collaborator",
  1377. "in": "path",
  1378. "required": true
  1379. }
  1380. ],
  1381. "responses": {
  1382. "204": {
  1383. "$ref": "#/responses/empty"
  1384. },
  1385. "404": {
  1386. "$ref": "#/responses/empty"
  1387. }
  1388. }
  1389. },
  1390. "put": {
  1391. "produces": [
  1392. "application/json"
  1393. ],
  1394. "tags": [
  1395. "repository"
  1396. ],
  1397. "summary": "Add a collaborator to a repository",
  1398. "operationId": "repoAddCollaborator",
  1399. "parameters": [
  1400. {
  1401. "type": "string",
  1402. "description": "owner of the repo",
  1403. "name": "owner",
  1404. "in": "path",
  1405. "required": true
  1406. },
  1407. {
  1408. "type": "string",
  1409. "description": "name of the repo",
  1410. "name": "repo",
  1411. "in": "path",
  1412. "required": true
  1413. },
  1414. {
  1415. "type": "string",
  1416. "description": "username of the collaborator to add",
  1417. "name": "collaborator",
  1418. "in": "path",
  1419. "required": true
  1420. },
  1421. {
  1422. "name": "body",
  1423. "in": "body",
  1424. "schema": {
  1425. "$ref": "#/definitions/AddCollaboratorOption"
  1426. }
  1427. }
  1428. ],
  1429. "responses": {
  1430. "204": {
  1431. "$ref": "#/responses/empty"
  1432. }
  1433. }
  1434. },
  1435. "delete": {
  1436. "produces": [
  1437. "application/json"
  1438. ],
  1439. "tags": [
  1440. "repository"
  1441. ],
  1442. "summary": "Delete a collaborator from a repository",
  1443. "operationId": "repoDeleteCollaborator",
  1444. "parameters": [
  1445. {
  1446. "type": "string",
  1447. "description": "owner of the repo",
  1448. "name": "owner",
  1449. "in": "path",
  1450. "required": true
  1451. },
  1452. {
  1453. "type": "string",
  1454. "description": "name of the repo",
  1455. "name": "repo",
  1456. "in": "path",
  1457. "required": true
  1458. },
  1459. {
  1460. "type": "string",
  1461. "description": "username of the collaborator to delete",
  1462. "name": "collaborator",
  1463. "in": "path",
  1464. "required": true
  1465. }
  1466. ],
  1467. "responses": {
  1468. "204": {
  1469. "$ref": "#/responses/empty"
  1470. }
  1471. }
  1472. }
  1473. },
  1474. "/repos/{owner}/{repo}/commits/{ref}/statuses": {
  1475. "get": {
  1476. "produces": [
  1477. "application/json"
  1478. ],
  1479. "tags": [
  1480. "repository"
  1481. ],
  1482. "summary": "Get a commit's combined status, by branch/tag/commit reference",
  1483. "operationId": "repoGetCombinedStatusByRef",
  1484. "parameters": [
  1485. {
  1486. "type": "string",
  1487. "description": "owner of the repo",
  1488. "name": "owner",
  1489. "in": "path",
  1490. "required": true
  1491. },
  1492. {
  1493. "type": "string",
  1494. "description": "name of the repo",
  1495. "name": "repo",
  1496. "in": "path",
  1497. "required": true
  1498. },
  1499. {
  1500. "type": "string",
  1501. "description": "name of branch/tag/commit",
  1502. "name": "ref",
  1503. "in": "path",
  1504. "required": true
  1505. }
  1506. ],
  1507. "responses": {
  1508. "200": {
  1509. "$ref": "#/responses/Status"
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "/repos/{owner}/{repo}/editorconfig/{filepath}": {
  1515. "get": {
  1516. "produces": [
  1517. "application/json"
  1518. ],
  1519. "tags": [
  1520. "repository"
  1521. ],
  1522. "summary": "Get the EditorConfig definitions of a file in a repository",
  1523. "operationId": "repoGetEditorConfig",
  1524. "parameters": [
  1525. {
  1526. "type": "string",
  1527. "description": "owner of the repo",
  1528. "name": "owner",
  1529. "in": "path",
  1530. "required": true
  1531. },
  1532. {
  1533. "type": "string",
  1534. "description": "name of the repo",
  1535. "name": "repo",
  1536. "in": "path",
  1537. "required": true
  1538. },
  1539. {
  1540. "type": "string",
  1541. "description": "filepath of file to get",
  1542. "name": "filepath",
  1543. "in": "path",
  1544. "required": true
  1545. }
  1546. ],
  1547. "responses": {
  1548. "200": {
  1549. "description": "success"
  1550. }
  1551. }
  1552. }
  1553. },
  1554. "/repos/{owner}/{repo}/forks": {
  1555. "get": {
  1556. "produces": [
  1557. "application/json"
  1558. ],
  1559. "tags": [
  1560. "repository"
  1561. ],
  1562. "summary": "List a repository's forks",
  1563. "operationId": "listForks",
  1564. "parameters": [
  1565. {
  1566. "type": "string",
  1567. "description": "owner of the repo",
  1568. "name": "owner",
  1569. "in": "path",
  1570. "required": true
  1571. },
  1572. {
  1573. "type": "string",
  1574. "description": "name of the repo",
  1575. "name": "repo",
  1576. "in": "path",
  1577. "required": true
  1578. }
  1579. ],
  1580. "responses": {
  1581. "200": {
  1582. "$ref": "#/responses/RepositoryList"
  1583. }
  1584. }
  1585. },
  1586. "post": {
  1587. "produces": [
  1588. "application/json"
  1589. ],
  1590. "tags": [
  1591. "repository"
  1592. ],
  1593. "summary": "Fork a repository",
  1594. "operationId": "createFork",
  1595. "parameters": [
  1596. {
  1597. "type": "string",
  1598. "description": "owner of the repo to fork",
  1599. "name": "owner",
  1600. "in": "path",
  1601. "required": true
  1602. },
  1603. {
  1604. "type": "string",
  1605. "description": "name of the repo to fork",
  1606. "name": "repo",
  1607. "in": "path",
  1608. "required": true
  1609. },
  1610. {
  1611. "name": "body",
  1612. "in": "body",
  1613. "schema": {
  1614. "$ref": "#/definitions/CreateForkOption"
  1615. }
  1616. }
  1617. ],
  1618. "responses": {
  1619. "202": {
  1620. "$ref": "#/responses/Repository"
  1621. }
  1622. }
  1623. }
  1624. },
  1625. "/repos/{owner}/{repo}/git/commits/{sha}": {
  1626. "get": {
  1627. "produces": [
  1628. "application/json"
  1629. ],
  1630. "tags": [
  1631. "repository"
  1632. ],
  1633. "summary": "Get a single commit from a repository",
  1634. "operationId": "repoGetSingleCommit",
  1635. "parameters": [
  1636. {
  1637. "type": "string",
  1638. "description": "owner of the repo",
  1639. "name": "owner",
  1640. "in": "path",
  1641. "required": true
  1642. },
  1643. {
  1644. "type": "string",
  1645. "description": "name of the repo",
  1646. "name": "repo",
  1647. "in": "path",
  1648. "required": true
  1649. },
  1650. {
  1651. "type": "string",
  1652. "description": "the commit hash",
  1653. "name": "sha",
  1654. "in": "path",
  1655. "required": true
  1656. }
  1657. ],
  1658. "responses": {
  1659. "200": {
  1660. "$ref": "#/responses/Commit"
  1661. },
  1662. "404": {
  1663. "$ref": "#/responses/notFound"
  1664. }
  1665. }
  1666. }
  1667. },
  1668. "/repos/{owner}/{repo}/git/refs": {
  1669. "get": {
  1670. "produces": [
  1671. "application/json"
  1672. ],
  1673. "tags": [
  1674. "repository"
  1675. ],
  1676. "summary": "Get specified ref or filtered repository's refs",
  1677. "operationId": "repoListAllGitRefs",
  1678. "parameters": [
  1679. {
  1680. "type": "string",
  1681. "description": "owner of the repo",
  1682. "name": "owner",
  1683. "in": "path",
  1684. "required": true
  1685. },
  1686. {
  1687. "type": "string",
  1688. "description": "name of the repo",
  1689. "name": "repo",
  1690. "in": "path",
  1691. "required": true
  1692. }
  1693. ],
  1694. "responses": {
  1695. "200": {
  1696. "$ref": "#/responses/ReferenceList"
  1697. },
  1698. "404": {
  1699. "$ref": "#/responses/notFound"
  1700. }
  1701. }
  1702. }
  1703. },
  1704. "/repos/{owner}/{repo}/git/refs/{ref}": {
  1705. "get": {
  1706. "produces": [
  1707. "application/json"
  1708. ],
  1709. "tags": [
  1710. "repository"
  1711. ],
  1712. "summary": "Get specified ref or filtered repository's refs",
  1713. "operationId": "repoListGitRefs",
  1714. "parameters": [
  1715. {
  1716. "type": "string",
  1717. "description": "owner of the repo",
  1718. "name": "owner",
  1719. "in": "path",
  1720. "required": true
  1721. },
  1722. {
  1723. "type": "string",
  1724. "description": "name of the repo",
  1725. "name": "repo",
  1726. "in": "path",
  1727. "required": true
  1728. },
  1729. {
  1730. "type": "string",
  1731. "description": "part or full name of the ref",
  1732. "name": "ref",
  1733. "in": "path",
  1734. "required": true
  1735. }
  1736. ],
  1737. "responses": {
  1738. "200": {
  1739. "$ref": "#/responses/ReferenceList"
  1740. },
  1741. "404": {
  1742. "$ref": "#/responses/notFound"
  1743. }
  1744. }
  1745. }
  1746. },
  1747. "/repos/{owner}/{repo}/git/trees/{sha}": {
  1748. "get": {
  1749. "produces": [
  1750. "application/json"
  1751. ],
  1752. "tags": [
  1753. "repository"
  1754. ],
  1755. "summary": "Gets the tree of a repository.",
  1756. "operationId": "GetTree",
  1757. "parameters": [
  1758. {
  1759. "type": "string",
  1760. "description": "owner of the repo",
  1761. "name": "owner",
  1762. "in": "path",
  1763. "required": true
  1764. },
  1765. {
  1766. "type": "string",
  1767. "description": "name of the repo",
  1768. "name": "repo",
  1769. "in": "path",
  1770. "required": true
  1771. },
  1772. {
  1773. "type": "string",
  1774. "description": "sha of the commit",
  1775. "name": "sha",
  1776. "in": "path",
  1777. "required": true
  1778. },
  1779. {
  1780. "type": "boolean",
  1781. "description": "show all directories and files",
  1782. "name": "recursive",
  1783. "in": "query"
  1784. },
  1785. {
  1786. "type": "integer",
  1787. "description": "page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page",
  1788. "name": "page",
  1789. "in": "query"
  1790. },
  1791. {
  1792. "type": "integer",
  1793. "description": "number of items per page; default is 1000 or what is set in app.ini as DEFAULT_GIT_TREES_PER_PAGE",
  1794. "name": "per_page",
  1795. "in": "query"
  1796. }
  1797. ],
  1798. "responses": {
  1799. "200": {
  1800. "$ref": "#/responses/GitTreeResponse"
  1801. }
  1802. }
  1803. }
  1804. },
  1805. "/repos/{owner}/{repo}/hooks": {
  1806. "get": {
  1807. "produces": [
  1808. "application/json"
  1809. ],
  1810. "tags": [
  1811. "repository"
  1812. ],
  1813. "summary": "List the hooks in a repository",
  1814. "operationId": "repoListHooks",
  1815. "parameters": [
  1816. {
  1817. "type": "string",
  1818. "description": "owner of the repo",
  1819. "name": "owner",
  1820. "in": "path",
  1821. "required": true
  1822. },
  1823. {
  1824. "type": "string",
  1825. "description": "name of the repo",
  1826. "name": "repo",
  1827. "in": "path",
  1828. "required": true
  1829. }
  1830. ],
  1831. "responses": {
  1832. "200": {
  1833. "$ref": "#/responses/HookList"
  1834. }
  1835. }
  1836. },
  1837. "post": {
  1838. "consumes": [
  1839. "application/json"
  1840. ],
  1841. "produces": [
  1842. "application/json"
  1843. ],
  1844. "tags": [
  1845. "repository"
  1846. ],
  1847. "summary": "Create a hook",
  1848. "operationId": "repoCreateHook",
  1849. "parameters": [
  1850. {
  1851. "type": "string",
  1852. "description": "owner of the repo",
  1853. "name": "owner",
  1854. "in": "path",
  1855. "required": true
  1856. },
  1857. {
  1858. "type": "string",
  1859. "description": "name of the repo",
  1860. "name": "repo",
  1861. "in": "path",
  1862. "required": true
  1863. },
  1864. {
  1865. "name": "body",
  1866. "in": "body",
  1867. "schema": {
  1868. "$ref": "#/definitions/CreateHookOption"
  1869. }
  1870. }
  1871. ],
  1872. "responses": {
  1873. "201": {
  1874. "$ref": "#/responses/Hook"
  1875. }
  1876. }
  1877. }
  1878. },
  1879. "/repos/{owner}/{repo}/hooks/{id}": {
  1880. "get": {
  1881. "produces": [
  1882. "application/json"
  1883. ],
  1884. "tags": [
  1885. "repository"
  1886. ],
  1887. "summary": "Get a hook",
  1888. "operationId": "repoGetHook",
  1889. "parameters": [
  1890. {
  1891. "type": "string",
  1892. "description": "owner of the repo",
  1893. "name": "owner",
  1894. "in": "path",
  1895. "required": true
  1896. },
  1897. {
  1898. "type": "string",
  1899. "description": "name of the repo",
  1900. "name": "repo",
  1901. "in": "path",
  1902. "required": true
  1903. },
  1904. {
  1905. "type": "integer",
  1906. "format": "int64",
  1907. "description": "id of the hook to get",
  1908. "name": "id",
  1909. "in": "path",
  1910. "required": true
  1911. }
  1912. ],
  1913. "responses": {
  1914. "200": {
  1915. "$ref": "#/responses/Hook"
  1916. }
  1917. }
  1918. },
  1919. "delete": {
  1920. "produces": [
  1921. "application/json"
  1922. ],
  1923. "tags": [
  1924. "repository"
  1925. ],
  1926. "summary": "Delete a hook in a repository",
  1927. "operationId": "repoDeleteHook",
  1928. "parameters": [
  1929. {
  1930. "type": "string",
  1931. "description": "owner of the repo",
  1932. "name": "owner",
  1933. "in": "path",
  1934. "required": true
  1935. },
  1936. {
  1937. "type": "string",
  1938. "description": "name of the repo",
  1939. "name": "repo",
  1940. "in": "path",
  1941. "required": true
  1942. },
  1943. {
  1944. "type": "integer",
  1945. "format": "int64",
  1946. "description": "id of the hook to delete",
  1947. "name": "id",
  1948. "in": "path",
  1949. "required": true
  1950. }
  1951. ],
  1952. "responses": {
  1953. "204": {
  1954. "$ref": "#/responses/empty"
  1955. },
  1956. "404": {
  1957. "$ref": "#/responses/notFound"
  1958. }
  1959. }
  1960. },
  1961. "patch": {
  1962. "produces": [
  1963. "application/json"
  1964. ],
  1965. "tags": [
  1966. "repository"
  1967. ],
  1968. "summary": "Edit a hook in a repository",
  1969. "operationId": "repoEditHook",
  1970. "parameters": [
  1971. {
  1972. "type": "string",
  1973. "description": "owner of the repo",
  1974. "name": "owner",
  1975. "in": "path",
  1976. "required": true
  1977. },
  1978. {
  1979. "type": "string",
  1980. "description": "name of the repo",
  1981. "name": "repo",
  1982. "in": "path",
  1983. "required": true
  1984. },
  1985. {
  1986. "type": "integer",
  1987. "format": "int64",
  1988. "description": "index of the hook",
  1989. "name": "id",
  1990. "in": "path",
  1991. "required": true
  1992. },
  1993. {
  1994. "name": "body",
  1995. "in": "body",
  1996. "schema": {
  1997. "$ref": "#/definitions/EditHookOption"
  1998. }
  1999. }
  2000. ],
  2001. "responses": {
  2002. "200": {
  2003. "$ref": "#/responses/Hook"
  2004. }
  2005. }
  2006. }
  2007. },
  2008. "/repos/{owner}/{repo}/hooks/{id}/tests": {
  2009. "post": {
  2010. "produces": [
  2011. "application/json"
  2012. ],
  2013. "tags": [
  2014. "repository"
  2015. ],
  2016. "summary": "Test a push webhook",
  2017. "operationId": "repoTestHook",
  2018. "parameters": [
  2019. {
  2020. "type": "string",
  2021. "description": "owner of the repo",
  2022. "name": "owner",
  2023. "in": "path",
  2024. "required": true
  2025. },
  2026. {
  2027. "type": "string",
  2028. "description": "name of the repo",
  2029. "name": "repo",
  2030. "in": "path",
  2031. "required": true
  2032. },
  2033. {
  2034. "type": "integer",
  2035. "format": "int64",
  2036. "description": "id of the hook to test",
  2037. "name": "id",
  2038. "in": "path",
  2039. "required": true
  2040. }
  2041. ],
  2042. "responses": {
  2043. "204": {
  2044. "$ref": "#/responses/empty"
  2045. }
  2046. }
  2047. }
  2048. },
  2049. "/repos/{owner}/{repo}/issues": {
  2050. "get": {
  2051. "produces": [
  2052. "application/json"
  2053. ],
  2054. "tags": [
  2055. "issue"
  2056. ],
  2057. "summary": "List a repository's issues",
  2058. "operationId": "issueListIssues",
  2059. "parameters": [
  2060. {
  2061. "type": "string",
  2062. "description": "owner of the repo",
  2063. "name": "owner",
  2064. "in": "path",
  2065. "required": true
  2066. },
  2067. {
  2068. "type": "string",
  2069. "description": "name of the repo",
  2070. "name": "repo",
  2071. "in": "path",
  2072. "required": true
  2073. },
  2074. {
  2075. "type": "string",
  2076. "description": "whether issue is open or closed",
  2077. "name": "state",
  2078. "in": "query"
  2079. },
  2080. {
  2081. "type": "string",
  2082. "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
  2083. "name": "labels",
  2084. "in": "query"
  2085. },
  2086. {
  2087. "type": "integer",
  2088. "description": "page number of requested issues",
  2089. "name": "page",
  2090. "in": "query"
  2091. },
  2092. {
  2093. "type": "string",
  2094. "description": "search string",
  2095. "name": "q",
  2096. "in": "query"
  2097. }
  2098. ],
  2099. "responses": {
  2100. "200": {
  2101. "$ref": "#/responses/IssueList"
  2102. }
  2103. }
  2104. },
  2105. "post": {
  2106. "consumes": [
  2107. "application/json"
  2108. ],
  2109. "produces": [
  2110. "application/json"
  2111. ],
  2112. "tags": [
  2113. "issue"
  2114. ],
  2115. "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.",
  2116. "operationId": "issueCreateIssue",
  2117. "parameters": [
  2118. {
  2119. "type": "string",
  2120. "description": "owner of the repo",
  2121. "name": "owner",
  2122. "in": "path",
  2123. "required": true
  2124. },
  2125. {
  2126. "type": "string",
  2127. "description": "name of the repo",
  2128. "name": "repo",
  2129. "in": "path",
  2130. "required": true
  2131. },
  2132. {
  2133. "name": "body",
  2134. "in": "body",
  2135. "schema": {
  2136. "$ref": "#/definitions/CreateIssueOption"
  2137. }
  2138. }
  2139. ],
  2140. "responses": {
  2141. "201": {
  2142. "$ref": "#/responses/Issue"
  2143. }
  2144. }
  2145. }
  2146. },
  2147. "/repos/{owner}/{repo}/issues/comments": {
  2148. "get": {
  2149. "produces": [
  2150. "application/json"
  2151. ],
  2152. "tags": [
  2153. "issue"
  2154. ],
  2155. "summary": "List all comments in a repository",
  2156. "operationId": "issueGetRepoComments",
  2157. "parameters": [
  2158. {
  2159. "type": "string",
  2160. "description": "owner of the repo",
  2161. "name": "owner",
  2162. "in": "path",
  2163. "required": true
  2164. },
  2165. {
  2166. "type": "string",
  2167. "description": "name of the repo",
  2168. "name": "repo",
  2169. "in": "path",
  2170. "required": true
  2171. },
  2172. {
  2173. "type": "string",
  2174. "description": "if provided, only comments updated since the provided time are returned.",
  2175. "name": "since",
  2176. "in": "query"
  2177. }
  2178. ],
  2179. "responses": {
  2180. "200": {
  2181. "$ref": "#/responses/CommentList"
  2182. }
  2183. }
  2184. }
  2185. },
  2186. "/repos/{owner}/{repo}/issues/comments/{id}": {
  2187. "delete": {
  2188. "tags": [
  2189. "issue"
  2190. ],
  2191. "summary": "Delete a comment",
  2192. "operationId": "issueDeleteComment",
  2193. "parameters": [
  2194. {
  2195. "type": "string",
  2196. "description": "owner of the repo",
  2197. "name": "owner",
  2198. "in": "path",
  2199. "required": true
  2200. },
  2201. {
  2202. "type": "string",
  2203. "description": "name of the repo",
  2204. "name": "repo",
  2205. "in": "path",
  2206. "required": true
  2207. },
  2208. {
  2209. "type": "integer",
  2210. "format": "int64",
  2211. "description": "id of comment to delete",
  2212. "name": "id",
  2213. "in": "path",
  2214. "required": true
  2215. }
  2216. ],
  2217. "responses": {
  2218. "204": {
  2219. "$ref": "#/responses/empty"
  2220. }
  2221. }
  2222. },
  2223. "patch": {
  2224. "consumes": [
  2225. "application/json"
  2226. ],
  2227. "produces": [
  2228. "application/json"
  2229. ],
  2230. "tags": [
  2231. "issue"
  2232. ],
  2233. "summary": "Edit a comment",
  2234. "operationId": "issueEditComment",
  2235. "parameters": [
  2236. {
  2237. "type": "string",
  2238. "description": "owner of the repo",
  2239. "name": "owner",
  2240. "in": "path",
  2241. "required": true
  2242. },
  2243. {
  2244. "type": "string",
  2245. "description": "name of the repo",
  2246. "name": "repo",
  2247. "in": "path",
  2248. "required": true
  2249. },
  2250. {
  2251. "type": "integer",
  2252. "format": "int64",
  2253. "description": "id of the comment to edit",
  2254. "name": "id",
  2255. "in": "path",
  2256. "required": true
  2257. },
  2258. {
  2259. "name": "body",
  2260. "in": "body",
  2261. "schema": {
  2262. "$ref": "#/definitions/EditIssueCommentOption"
  2263. }
  2264. }
  2265. ],
  2266. "responses": {
  2267. "200": {
  2268. "$ref": "#/responses/Comment"
  2269. }
  2270. }
  2271. }
  2272. },
  2273. "/repos/{owner}/{repo}/issues/{id}/times": {
  2274. "get": {
  2275. "produces": [
  2276. "application/json"
  2277. ],
  2278. "tags": [
  2279. "issue"
  2280. ],
  2281. "summary": "List an issue's tracked times",
  2282. "operationId": "issueTrackedTimes",
  2283. "parameters": [
  2284. {
  2285. "type": "string",
  2286. "description": "owner of the repo",
  2287. "name": "owner",
  2288. "in": "path",
  2289. "required": true
  2290. },
  2291. {
  2292. "type": "string",
  2293. "description": "name of the repo",
  2294. "name": "repo",
  2295. "in": "path",
  2296. "required": true
  2297. },
  2298. {
  2299. "type": "integer",
  2300. "format": "int64",
  2301. "description": "index of the issue",
  2302. "name": "id",
  2303. "in": "path",
  2304. "required": true
  2305. }
  2306. ],
  2307. "responses": {
  2308. "200": {
  2309. "$ref": "#/responses/TrackedTimeList"
  2310. }
  2311. }
  2312. },
  2313. "post": {
  2314. "consumes": [
  2315. "application/json"
  2316. ],
  2317. "produces": [
  2318. "application/json"
  2319. ],
  2320. "tags": [
  2321. "issue"
  2322. ],
  2323. "summary": "Add a tracked time to a issue",
  2324. "operationId": "issueAddTime",
  2325. "parameters": [
  2326. {
  2327. "type": "string",
  2328. "description": "owner of the repo",
  2329. "name": "owner",
  2330. "in": "path",
  2331. "required": true
  2332. },
  2333. {
  2334. "type": "string",
  2335. "description": "name of the repo",
  2336. "name": "repo",
  2337. "in": "path",
  2338. "required": true
  2339. },
  2340. {
  2341. "type": "integer",
  2342. "format": "int64",
  2343. "description": "index of the issue to add tracked time to",
  2344. "name": "id",
  2345. "in": "path",
  2346. "required": true
  2347. },
  2348. {
  2349. "name": "body",
  2350. "in": "body",
  2351. "schema": {
  2352. "$ref": "#/definitions/AddTimeOption"
  2353. }
  2354. }
  2355. ],
  2356. "responses": {
  2357. "200": {
  2358. "$ref": "#/responses/TrackedTime"
  2359. },
  2360. "400": {
  2361. "$ref": "#/responses/error"
  2362. },
  2363. "403": {
  2364. "$ref": "#/responses/error"
  2365. }
  2366. }
  2367. }
  2368. },
  2369. "/repos/{owner}/{repo}/issues/{index}": {
  2370. "get": {
  2371. "produces": [
  2372. "application/json"
  2373. ],
  2374. "tags": [
  2375. "issue"
  2376. ],
  2377. "summary": "Get an issue",
  2378. "operationId": "issueGetIssue",
  2379. "parameters": [
  2380. {
  2381. "type": "string",
  2382. "description": "owner of the repo",
  2383. "name": "owner",
  2384. "in": "path",
  2385. "required": true
  2386. },
  2387. {
  2388. "type": "string",
  2389. "description": "name of the repo",
  2390. "name": "repo",
  2391. "in": "path",
  2392. "required": true
  2393. },
  2394. {
  2395. "type": "integer",
  2396. "format": "int64",
  2397. "description": "index of the issue to get",
  2398. "name": "index",
  2399. "in": "path",
  2400. "required": true
  2401. }
  2402. ],
  2403. "responses": {
  2404. "200": {
  2405. "$ref": "#/responses/Issue"
  2406. }
  2407. }
  2408. },
  2409. "patch": {
  2410. "consumes": [
  2411. "application/json"
  2412. ],
  2413. "produces": [
  2414. "application/json"
  2415. ],
  2416. "tags": [
  2417. "issue"
  2418. ],
  2419. "summary": "Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.",
  2420. "operationId": "issueEditIssue",
  2421. "parameters": [
  2422. {
  2423. "type": "string",
  2424. "description": "owner of the repo",
  2425. "name": "owner",
  2426. "in": "path",
  2427. "required": true
  2428. },
  2429. {
  2430. "type": "string",
  2431. "description": "name of the repo",
  2432. "name": "repo",
  2433. "in": "path",
  2434. "required": true
  2435. },
  2436. {
  2437. "type": "integer",
  2438. "format": "int64",
  2439. "description": "index of the issue to edit",
  2440. "name": "index",
  2441. "in": "path",
  2442. "required": true
  2443. },
  2444. {
  2445. "name": "body",
  2446. "in": "body",
  2447. "schema": {
  2448. "$ref": "#/definitions/EditIssueOption"
  2449. }
  2450. }
  2451. ],
  2452. "responses": {
  2453. "201": {
  2454. "$ref": "#/responses/Issue"
  2455. }
  2456. }
  2457. }
  2458. },
  2459. "/repos/{owner}/{repo}/issues/{index}/comments": {
  2460. "get": {
  2461. "produces": [
  2462. "application/json"
  2463. ],
  2464. "tags": [
  2465. "issue"
  2466. ],
  2467. "summary": "List all comments on an issue",
  2468. "operationId": "issueGetComments",
  2469. "parameters": [
  2470. {
  2471. "type": "string",
  2472. "description": "owner of the repo",
  2473. "name": "owner",
  2474. "in": "path",
  2475. "required": true
  2476. },
  2477. {
  2478. "type": "string",
  2479. "description": "name of the repo",
  2480. "name": "repo",
  2481. "in": "path",
  2482. "required": true
  2483. },
  2484. {
  2485. "type": "integer",
  2486. "format": "int64",
  2487. "description": "index of the issue",
  2488. "name": "index",
  2489. "in": "path",
  2490. "required": true
  2491. },
  2492. {
  2493. "type": "string",
  2494. "description": "if provided, only comments updated since the specified time are returned.",
  2495. "name": "since",
  2496. "in": "query"
  2497. }
  2498. ],
  2499. "responses": {
  2500. "200": {
  2501. "$ref": "#/responses/CommentList"
  2502. }
  2503. }
  2504. },
  2505. "post": {
  2506. "consumes": [
  2507. "application/json"
  2508. ],
  2509. "produces": [
  2510. "application/json"
  2511. ],
  2512. "tags": [
  2513. "issue"
  2514. ],
  2515. "summary": "Add a comment to an issue",
  2516. "operationId": "issueCreateComment",
  2517. "parameters": [
  2518. {
  2519. "type": "string",
  2520. "description": "owner of the repo",
  2521. "name": "owner",
  2522. "in": "path",
  2523. "required": true
  2524. },
  2525. {
  2526. "type": "string",
  2527. "description": "name of the repo",
  2528. "name": "repo",
  2529. "in": "path",
  2530. "required": true
  2531. },
  2532. {
  2533. "type": "integer",
  2534. "format": "int64",
  2535. "description": "index of the issue",
  2536. "name": "index",
  2537. "in": "path",
  2538. "required": true
  2539. },
  2540. {
  2541. "name": "body",
  2542. "in": "body",
  2543. "schema": {
  2544. "$ref": "#/definitions/CreateIssueCommentOption"
  2545. }
  2546. }
  2547. ],
  2548. "responses": {
  2549. "201": {
  2550. "$ref": "#/responses/Comment"
  2551. }
  2552. }
  2553. }
  2554. },
  2555. "/repos/{owner}/{repo}/issues/{index}/comments/{id}": {
  2556. "delete": {
  2557. "tags": [
  2558. "issue"
  2559. ],
  2560. "summary": "Delete a comment",
  2561. "operationId": "issueDeleteCommentDeprecated",
  2562. "deprecated": true,
  2563. "parameters": [
  2564. {
  2565. "type": "string",
  2566. "description": "owner of the repo",
  2567. "name": "owner",
  2568. "in": "path",
  2569. "required": true
  2570. },
  2571. {
  2572. "type": "string",
  2573. "description": "name of the repo",
  2574. "name": "repo",
  2575. "in": "path",
  2576. "required": true
  2577. },
  2578. {
  2579. "type": "integer",
  2580. "description": "this parameter is ignored",
  2581. "name": "index",
  2582. "in": "path",
  2583. "required": true
  2584. },
  2585. {
  2586. "type": "integer",
  2587. "format": "int64",
  2588. "description": "id of comment to delete",
  2589. "name": "id",
  2590. "in": "path",
  2591. "required": true
  2592. }
  2593. ],
  2594. "responses": {
  2595. "204": {
  2596. "$ref": "#/responses/empty"
  2597. }
  2598. }
  2599. },
  2600. "patch": {
  2601. "consumes": [
  2602. "application/json"
  2603. ],
  2604. "produces": [
  2605. "application/json"
  2606. ],
  2607. "tags": [
  2608. "issue"
  2609. ],
  2610. "summary": "Edit a comment",
  2611. "operationId": "issueEditCommentDeprecated",
  2612. "deprecated": true,
  2613. "parameters": [
  2614. {
  2615. "type": "string",
  2616. "description": "owner of the repo",
  2617. "name": "owner",
  2618. "in": "path",
  2619. "required": true
  2620. },
  2621. {
  2622. "type": "string",
  2623. "description": "name of the repo",
  2624. "name": "repo",
  2625. "in": "path",
  2626. "required": true
  2627. },
  2628. {
  2629. "type": "integer",
  2630. "description": "this parameter is ignored",
  2631. "name": "index",
  2632. "in": "path",
  2633. "required": true
  2634. },
  2635. {
  2636. "type": "integer",
  2637. "format": "int64",
  2638. "description": "id of the comment to edit",
  2639. "name": "id",
  2640. "in": "path",
  2641. "required": true
  2642. },
  2643. {
  2644. "name": "body",
  2645. "in": "body",
  2646. "schema": {
  2647. "$ref": "#/definitions/EditIssueCommentOption"
  2648. }
  2649. }
  2650. ],
  2651. "responses": {
  2652. "200": {
  2653. "$ref": "#/responses/Comment"
  2654. }
  2655. }
  2656. }
  2657. },
  2658. "/repos/{owner}/{repo}/issues/{index}/deadline": {
  2659. "post": {
  2660. "consumes": [
  2661. "application/json"
  2662. ],
  2663. "produces": [
  2664. "application/json"
  2665. ],
  2666. "tags": [
  2667. "issue"
  2668. ],
  2669. "summary": "Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.",
  2670. "operationId": "issueEditIssueDeadline",
  2671. "parameters": [
  2672. {
  2673. "type": "string",
  2674. "description": "owner of the repo",
  2675. "name": "owner",
  2676. "in": "path",
  2677. "required": true
  2678. },
  2679. {
  2680. "type": "string",
  2681. "description": "name of the repo",
  2682. "name": "repo",
  2683. "in": "path",
  2684. "required": true
  2685. },
  2686. {
  2687. "type": "integer",
  2688. "format": "int64",
  2689. "description": "index of the issue to create or update a deadline on",
  2690. "name": "index",
  2691. "in": "path",
  2692. "required": true
  2693. },
  2694. {
  2695. "name": "body",
  2696. "in": "body",
  2697. "schema": {
  2698. "$ref": "#/definitions/EditDeadlineOption"
  2699. }
  2700. }
  2701. ],
  2702. "responses": {
  2703. "201": {
  2704. "$ref": "#/responses/IssueDeadline"
  2705. },
  2706. "403": {
  2707. "description": "Not repo writer"
  2708. },
  2709. "404": {
  2710. "description": "Issue not found"
  2711. }
  2712. }
  2713. }
  2714. },
  2715. "/repos/{owner}/{repo}/issues/{index}/labels": {
  2716. "get": {
  2717. "produces": [
  2718. "application/json"
  2719. ],
  2720. "tags": [
  2721. "issue"
  2722. ],
  2723. "summary": "Get an issue's labels",
  2724. "operationId": "issueGetLabels",
  2725. "parameters": [
  2726. {
  2727. "type": "string",
  2728. "description": "owner of the repo",
  2729. "name": "owner",
  2730. "in": "path",
  2731. "required": true
  2732. },
  2733. {
  2734. "type": "string",
  2735. "description": "name of the repo",
  2736. "name": "repo",
  2737. "in": "path",
  2738. "required": true
  2739. },
  2740. {
  2741. "type": "integer",
  2742. "format": "int64",
  2743. "description": "index of the issue",
  2744. "name": "index",
  2745. "in": "path",
  2746. "required": true
  2747. }
  2748. ],
  2749. "responses": {
  2750. "200": {
  2751. "$ref": "#/responses/LabelList"
  2752. },
  2753. "404": {
  2754. "$ref": "#/responses/notFound"
  2755. }
  2756. }
  2757. },
  2758. "put": {
  2759. "consumes": [
  2760. "application/json"
  2761. ],
  2762. "produces": [
  2763. "application/json"
  2764. ],
  2765. "tags": [
  2766. "issue"
  2767. ],
  2768. "summary": "Replace an issue's labels",
  2769. "operationId": "issueReplaceLabels",
  2770. "parameters": [
  2771. {
  2772. "type": "string",
  2773. "description": "owner of the repo",
  2774. "name": "owner",
  2775. "in": "path",
  2776. "required": true
  2777. },
  2778. {
  2779. "type": "string",
  2780. "description": "name of the repo",
  2781. "name": "repo",
  2782. "in": "path",
  2783. "required": true
  2784. },
  2785. {
  2786. "type": "integer",
  2787. "format": "int64",
  2788. "description": "index of the issue",
  2789. "name": "index",
  2790. "in": "path",
  2791. "required": true
  2792. },
  2793. {
  2794. "name": "body",
  2795. "in": "body",
  2796. "schema": {
  2797. "$ref": "#/definitions/IssueLabelsOption"
  2798. }
  2799. }
  2800. ],
  2801. "responses": {
  2802. "200": {
  2803. "$ref": "#/responses/LabelList"
  2804. }
  2805. }
  2806. },
  2807. "post": {
  2808. "consumes": [
  2809. "application/json"
  2810. ],
  2811. "produces": [
  2812. "application/json"
  2813. ],
  2814. "tags": [
  2815. "issue"
  2816. ],
  2817. "summary": "Add a label to an issue",
  2818. "operationId": "issueAddLabel",
  2819. "parameters": [
  2820. {
  2821. "type": "string",
  2822. "description": "owner of the repo",
  2823. "name": "owner",
  2824. "in": "path",
  2825. "required": true
  2826. },
  2827. {
  2828. "type": "string",
  2829. "description": "name of the repo",
  2830. "name": "repo",
  2831. "in": "path",
  2832. "required": true
  2833. },
  2834. {
  2835. "type": "integer",
  2836. "format": "int64",
  2837. "description": "index of the issue",
  2838. "name": "index",
  2839. "in": "path",
  2840. "required": true
  2841. },
  2842. {
  2843. "name": "body",
  2844. "in": "body",
  2845. "schema": {
  2846. "$ref": "#/definitions/IssueLabelsOption"
  2847. }
  2848. }
  2849. ],
  2850. "responses": {
  2851. "200": {
  2852. "$ref": "#/responses/LabelList"
  2853. }
  2854. }
  2855. },
  2856. "delete": {
  2857. "produces": [
  2858. "application/json"
  2859. ],
  2860. "tags": [
  2861. "issue"
  2862. ],
  2863. "summary": "Remove all labels from an issue",
  2864. "operationId": "issueClearLabels",
  2865. "parameters": [
  2866. {
  2867. "type": "string",
  2868. "description": "owner of the repo",
  2869. "name": "owner",
  2870. "in": "path",
  2871. "required": true
  2872. },
  2873. {
  2874. "type": "string",
  2875. "description": "name of the repo",
  2876. "name": "repo",
  2877. "in": "path",
  2878. "required": true
  2879. },
  2880. {
  2881. "type": "integer",
  2882. "format": "int64",
  2883. "description": "index of the issue",
  2884. "name": "index",
  2885. "in": "path",
  2886. "required": true
  2887. }
  2888. ],
  2889. "responses": {
  2890. "204": {
  2891. "$ref": "#/responses/empty"
  2892. }
  2893. }
  2894. }
  2895. },
  2896. "/repos/{owner}/{repo}/issues/{index}/labels/{id}": {
  2897. "delete": {
  2898. "produces": [
  2899. "application/json"
  2900. ],
  2901. "tags": [
  2902. "issue"
  2903. ],
  2904. "summary": "Remove a label from an issue",
  2905. "operationId": "issueRemoveLabel",
  2906. "parameters": [
  2907. {
  2908. "type": "string",
  2909. "description": "owner of the repo",
  2910. "name": "owner",
  2911. "in": "path",
  2912. "required": true
  2913. },
  2914. {
  2915. "type": "string",
  2916. "description": "name of the repo",
  2917. "name": "repo",
  2918. "in": "path",
  2919. "required": true
  2920. },
  2921. {
  2922. "type": "integer",
  2923. "format": "int64",
  2924. "description": "index of the issue",
  2925. "name": "index",
  2926. "in": "path",
  2927. "required": true
  2928. },
  2929. {
  2930. "type": "integer",
  2931. "format": "int64",
  2932. "description": "id of the label to remove",
  2933. "name": "id",
  2934. "in": "path",
  2935. "required": true
  2936. }
  2937. ],
  2938. "responses": {
  2939. "204": {
  2940. "$ref": "#/responses/empty"
  2941. }
  2942. }
  2943. }
  2944. },
  2945. "/repos/{owner}/{repo}/issues/{index}/stopwatch/start": {
  2946. "post": {
  2947. "consumes": [
  2948. "application/json"
  2949. ],
  2950. "produces": [
  2951. "application/json"
  2952. ],
  2953. "tags": [
  2954. "issue"
  2955. ],
  2956. "summary": "Start stopwatch on an issue.",
  2957. "operationId": "issueStartStopWatch",
  2958. "parameters": [
  2959. {
  2960. "type": "string",
  2961. "description": "owner of the repo",
  2962. "name": "owner",
  2963. "in": "path",
  2964. "required": true
  2965. },
  2966. {
  2967. "type": "string",
  2968. "description": "name of the repo",
  2969. "name": "repo",
  2970. "in": "path",
  2971. "required": true
  2972. },
  2973. {
  2974. "type": "integer",
  2975. "format": "int64",
  2976. "description": "index of the issue to create the stopwatch on",
  2977. "name": "index",
  2978. "in": "path",
  2979. "required": true
  2980. }
  2981. ],
  2982. "responses": {
  2983. "201": {
  2984. "$ref": "#/responses/empty"
  2985. },
  2986. "403": {
  2987. "description": "Not repo writer, user does not have rights to toggle stopwatch"
  2988. },
  2989. "404": {
  2990. "description": "Issue not found"
  2991. },
  2992. "409": {
  2993. "description": "Cannot start a stopwatch again if it already exists"
  2994. }
  2995. }
  2996. }
  2997. },
  2998. "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop": {
  2999. "post": {
  3000. "consumes": [
  3001. "application/json"
  3002. ],
  3003. "produces": [
  3004. "application/json"
  3005. ],
  3006. "tags": [
  3007. "issue"
  3008. ],
  3009. "summary": "Stop an issue's existing stopwatch.",
  3010. "operationId": "issueStopWatch",
  3011. "parameters": [
  3012. {
  3013. "type": "string",
  3014. "description": "owner of the repo",
  3015. "name": "owner",
  3016. "in": "path",
  3017. "required": true
  3018. },
  3019. {
  3020. "type": "string",
  3021. "description": "name of the repo",
  3022. "name": "repo",
  3023. "in": "path",
  3024. "required": true
  3025. },
  3026. {
  3027. "type": "integer",
  3028. "format": "int64",
  3029. "description": "index of the issue to stop the stopwatch on",
  3030. "name": "index",
  3031. "in": "path",
  3032. "required": true
  3033. }
  3034. ],
  3035. "responses": {
  3036. "201": {
  3037. "$ref": "#/responses/empty"
  3038. },
  3039. "403": {
  3040. "description": "Not repo writer, user does not have rights to toggle stopwatch"
  3041. },
  3042. "404": {
  3043. "description": "Issue not found"
  3044. },
  3045. "409": {
  3046. "description": "Cannot stop a non existent stopwatch"
  3047. }
  3048. }
  3049. }
  3050. },
  3051. "/repos/{owner}/{repo}/keys": {
  3052. "get": {
  3053. "produces": [
  3054. "application/json"
  3055. ],
  3056. "tags": [
  3057. "repository"
  3058. ],
  3059. "summary": "List a repository's keys",
  3060. "operationId": "repoListKeys",
  3061. "parameters": [
  3062. {
  3063. "type": "string",
  3064. "description": "owner of the repo",
  3065. "name": "owner",
  3066. "in": "path",
  3067. "required": true
  3068. },
  3069. {
  3070. "type": "string",
  3071. "description": "name of the repo",
  3072. "name": "repo",
  3073. "in": "path",
  3074. "required": true
  3075. },
  3076. {
  3077. "type": "integer",
  3078. "description": "the key_id to search for",
  3079. "name": "key_id",
  3080. "in": "query"
  3081. },
  3082. {
  3083. "type": "string",
  3084. "description": "fingerprint of the key",
  3085. "name": "fingerprint",
  3086. "in": "query"
  3087. }
  3088. ],
  3089. "responses": {
  3090. "200": {
  3091. "$ref": "#/responses/DeployKeyList"
  3092. }
  3093. }
  3094. },
  3095. "post": {
  3096. "consumes": [
  3097. "application/json"
  3098. ],
  3099. "produces": [
  3100. "application/json"
  3101. ],
  3102. "tags": [
  3103. "repository"
  3104. ],
  3105. "summary": "Add a key to a repository",
  3106. "operationId": "repoCreateKey",
  3107. "parameters": [
  3108. {
  3109. "type": "string",
  3110. "description": "owner of the repo",
  3111. "name": "owner",
  3112. "in": "path",
  3113. "required": true
  3114. },
  3115. {
  3116. "type": "string",
  3117. "description": "name of the repo",
  3118. "name": "repo",
  3119. "in": "path",
  3120. "required": true
  3121. },
  3122. {
  3123. "name": "body",
  3124. "in": "body",
  3125. "schema": {
  3126. "$ref": "#/definitions/CreateKeyOption"
  3127. }
  3128. }
  3129. ],
  3130. "responses": {
  3131. "201": {
  3132. "$ref": "#/responses/DeployKey"
  3133. }
  3134. }
  3135. }
  3136. },
  3137. "/repos/{owner}/{repo}/keys/{id}": {
  3138. "get": {
  3139. "produces": [
  3140. "application/json"
  3141. ],
  3142. "tags": [
  3143. "repository"
  3144. ],
  3145. "summary": "Get a repository's key by id",
  3146. "operationId": "repoGetKey",
  3147. "parameters": [
  3148. {
  3149. "type": "string",
  3150. "description": "owner of the repo",
  3151. "name": "owner",
  3152. "in": "path",
  3153. "required": true
  3154. },
  3155. {
  3156. "type": "string",
  3157. "description": "name of the repo",
  3158. "name": "repo",
  3159. "in": "path",
  3160. "required": true
  3161. },
  3162. {
  3163. "type": "integer",
  3164. "format": "int64",
  3165. "description": "id of the key to get",
  3166. "name": "id",
  3167. "in": "path",
  3168. "required": true
  3169. }
  3170. ],
  3171. "responses": {
  3172. "200": {
  3173. "$ref": "#/responses/DeployKey"
  3174. }
  3175. }
  3176. },
  3177. "delete": {
  3178. "tags": [
  3179. "repository"
  3180. ],
  3181. "summary": "Delete a key from a repository",
  3182. "operationId": "repoDeleteKey",
  3183. "parameters": [
  3184. {
  3185. "type": "string",
  3186. "description": "owner of the repo",
  3187. "name": "owner",
  3188. "in": "path",
  3189. "required": true
  3190. },
  3191. {
  3192. "type": "string",
  3193. "description": "name of the repo",
  3194. "name": "repo",
  3195. "in": "path",
  3196. "required": true
  3197. },
  3198. {
  3199. "type": "integer",
  3200. "format": "int64",
  3201. "description": "id of the key to delete",
  3202. "name": "id",
  3203. "in": "path",
  3204. "required": true
  3205. }
  3206. ],
  3207. "responses": {
  3208. "204": {
  3209. "$ref": "#/responses/empty"
  3210. }
  3211. }
  3212. }
  3213. },
  3214. "/repos/{owner}/{repo}/labels": {
  3215. "get": {
  3216. "produces": [
  3217. "application/json"
  3218. ],
  3219. "tags": [
  3220. "issue"
  3221. ],
  3222. "summary": "Get all of a repository's labels",
  3223. "operationId": "issueListLabels",
  3224. "parameters": [
  3225. {
  3226. "type": "string",
  3227. "description": "owner of the repo",
  3228. "name": "owner",
  3229. "in": "path",
  3230. "required": true
  3231. },
  3232. {
  3233. "type": "string",
  3234. "description": "name of the repo",
  3235. "name": "repo",
  3236. "in": "path",
  3237. "required": true
  3238. }
  3239. ],
  3240. "responses": {
  3241. "200": {
  3242. "$ref": "#/responses/LabelList"
  3243. }
  3244. }
  3245. },
  3246. "post": {
  3247. "consumes": [
  3248. "application/json"
  3249. ],
  3250. "produces": [
  3251. "application/json"
  3252. ],
  3253. "tags": [
  3254. "issue"
  3255. ],
  3256. "summary": "Create a label",
  3257. "operationId": "issueCreateLabel",
  3258. "parameters": [
  3259. {
  3260. "type": "string",
  3261. "description": "owner of the repo",
  3262. "name": "owner",
  3263. "in": "path",
  3264. "required": true
  3265. },
  3266. {
  3267. "type": "string",
  3268. "description": "name of the repo",
  3269. "name": "repo",
  3270. "in": "path",
  3271. "required": true
  3272. },
  3273. {
  3274. "name": "body",
  3275. "in": "body",
  3276. "schema": {
  3277. "$ref": "#/definitions/CreateLabelOption"
  3278. }
  3279. }
  3280. ],
  3281. "responses": {
  3282. "201": {
  3283. "$ref": "#/responses/Label"
  3284. }
  3285. }
  3286. }
  3287. },
  3288. "/repos/{owner}/{repo}/labels/{id}": {
  3289. "get": {
  3290. "produces": [
  3291. "application/json"
  3292. ],
  3293. "tags": [
  3294. "issue"
  3295. ],
  3296. "summary": "Get a single label",
  3297. "operationId": "issueGetLabel",
  3298. "parameters": [
  3299. {
  3300. "type": "string",
  3301. "description": "owner of the repo",
  3302. "name": "owner",
  3303. "in": "path",
  3304. "required": true
  3305. },
  3306. {
  3307. "type": "string",
  3308. "description": "name of the repo",
  3309. "name": "repo",
  3310. "in": "path",
  3311. "required": true
  3312. },
  3313. {
  3314. "type": "integer",
  3315. "format": "int64",
  3316. "description": "id of the label to get",
  3317. "name": "id",
  3318. "in": "path",
  3319. "required": true
  3320. }
  3321. ],
  3322. "responses": {
  3323. "200": {
  3324. "$ref": "#/responses/Label"
  3325. }
  3326. }
  3327. },
  3328. "delete": {
  3329. "tags": [
  3330. "issue"
  3331. ],
  3332. "summary": "Delete a label",
  3333. "operationId": "issueDeleteLabel",
  3334. "parameters": [
  3335. {
  3336. "type": "string",
  3337. "description": "owner of the repo",
  3338. "name": "owner",
  3339. "in": "path",
  3340. "required": true
  3341. },
  3342. {
  3343. "type": "string",
  3344. "description": "name of the repo",
  3345. "name": "repo",
  3346. "in": "path",
  3347. "required": true
  3348. },
  3349. {
  3350. "type": "integer",
  3351. "format": "int64",
  3352. "description": "id of the label to delete",
  3353. "name": "id",
  3354. "in": "path",
  3355. "required": true
  3356. }
  3357. ],
  3358. "responses": {
  3359. "204": {
  3360. "$ref": "#/responses/empty"
  3361. }
  3362. }
  3363. },
  3364. "patch": {
  3365. "consumes": [
  3366. "application/json"
  3367. ],
  3368. "produces": [
  3369. "application/json"
  3370. ],
  3371. "tags": [
  3372. "issue"
  3373. ],
  3374. "summary": "Update a label",
  3375. "operationId": "issueEditLabel",
  3376. "parameters": [
  3377. {
  3378. "type": "string",
  3379. "description": "owner of the repo",
  3380. "name": "owner",
  3381. "in": "path",
  3382. "required": true
  3383. },
  3384. {
  3385. "type": "string",
  3386. "description": "name of the repo",
  3387. "name": "repo",
  3388. "in": "path",
  3389. "required": true
  3390. },
  3391. {
  3392. "type": "integer",
  3393. "format": "int64",
  3394. "description": "id of the label to edit",
  3395. "name": "id",
  3396. "in": "path",
  3397. "required": true
  3398. },
  3399. {
  3400. "name": "body",
  3401. "in": "body",
  3402. "schema": {
  3403. "$ref": "#/definitions/EditLabelOption"
  3404. }
  3405. }
  3406. ],
  3407. "responses": {
  3408. "200": {
  3409. "$ref": "#/responses/Label"
  3410. }
  3411. }
  3412. }
  3413. },
  3414. "/repos/{owner}/{repo}/milestones": {
  3415. "get": {
  3416. "produces": [
  3417. "application/json"
  3418. ],
  3419. "tags": [
  3420. "issue"
  3421. ],
  3422. "summary": "Get all of a repository's opened milestones",
  3423. "operationId": "issueGetMilestonesList",
  3424. "parameters": [
  3425. {
  3426. "type": "string",
  3427. "description": "owner of the repo",
  3428. "name": "owner",
  3429. "in": "path",
  3430. "required": true
  3431. },
  3432. {
  3433. "type": "string",
  3434. "description": "name of the repo",
  3435. "name": "repo",
  3436. "in": "path",
  3437. "required": true
  3438. }
  3439. ],
  3440. "responses": {
  3441. "200": {
  3442. "$ref": "#/responses/MilestoneList"
  3443. }
  3444. }
  3445. },
  3446. "post": {
  3447. "consumes": [
  3448. "application/json"
  3449. ],
  3450. "produces": [
  3451. "application/json"
  3452. ],
  3453. "tags": [
  3454. "issue"
  3455. ],
  3456. "summary": "Create a milestone",
  3457. "operationId": "issueCreateMilestone",
  3458. "parameters": [
  3459. {
  3460. "type": "string",
  3461. "description": "owner of the repo",
  3462. "name": "owner",
  3463. "in": "path",
  3464. "required": true
  3465. },
  3466. {
  3467. "type": "string",
  3468. "description": "name of the repo",
  3469. "name": "repo",
  3470. "in": "path",
  3471. "required": true
  3472. },
  3473. {
  3474. "name": "body",
  3475. "in": "body",
  3476. "schema": {
  3477. "$ref": "#/definitions/CreateMilestoneOption"
  3478. }
  3479. }
  3480. ],
  3481. "responses": {
  3482. "201": {
  3483. "$ref": "#/responses/Milestone"
  3484. }
  3485. }
  3486. }
  3487. },
  3488. "/repos/{owner}/{repo}/milestones/{id}": {
  3489. "get": {
  3490. "produces": [
  3491. "application/json"
  3492. ],
  3493. "tags": [
  3494. "issue"
  3495. ],
  3496. "summary": "Get a milestone",
  3497. "operationId": "issueGetMilestone",
  3498. "parameters": [
  3499. {
  3500. "type": "string",
  3501. "description": "owner of the repo",
  3502. "name": "owner",
  3503. "in": "path",
  3504. "required": true
  3505. },
  3506. {
  3507. "type": "string",
  3508. "description": "name of the repo",
  3509. "name": "repo",
  3510. "in": "path",
  3511. "required": true
  3512. },
  3513. {
  3514. "type": "integer",
  3515. "format": "int64",
  3516. "description": "id of the milestone",
  3517. "name": "id",
  3518. "in": "path",
  3519. "required": true
  3520. }
  3521. ],
  3522. "responses": {
  3523. "200": {
  3524. "$ref": "#/responses/Milestone"
  3525. }
  3526. }
  3527. },
  3528. "delete": {
  3529. "tags": [
  3530. "issue"
  3531. ],
  3532. "summary": "Delete a milestone",
  3533. "operationId": "issueDeleteMilestone",
  3534. "parameters": [
  3535. {
  3536. "type": "string",
  3537. "description": "owner of the repo",
  3538. "name": "owner",
  3539. "in": "path",
  3540. "required": true
  3541. },
  3542. {
  3543. "type": "string",
  3544. "description": "name of the repo",
  3545. "name": "repo",
  3546. "in": "path",
  3547. "required": true
  3548. },
  3549. {
  3550. "type": "integer",
  3551. "format": "int64",
  3552. "description": "id of the milestone to delete",
  3553. "name": "id",
  3554. "in": "path",
  3555. "required": true
  3556. }
  3557. ],
  3558. "responses": {
  3559. "204": {
  3560. "$ref": "#/responses/empty"
  3561. }
  3562. }
  3563. },
  3564. "patch": {
  3565. "consumes": [
  3566. "application/json"
  3567. ],
  3568. "produces": [
  3569. "application/json"
  3570. ],
  3571. "tags": [
  3572. "issue"
  3573. ],
  3574. "summary": "Update a milestone",
  3575. "operationId": "issueEditMilestone",
  3576. "parameters": [
  3577. {
  3578. "type": "string",
  3579. "description": "owner of the repo",
  3580. "name": "owner",
  3581. "in": "path",
  3582. "required": true
  3583. },
  3584. {
  3585. "type": "string",
  3586. "description": "name of the repo",
  3587. "name": "repo",
  3588. "in": "path",
  3589. "required": true
  3590. },
  3591. {
  3592. "type": "integer",
  3593. "format": "int64",
  3594. "description": "id of the milestone",
  3595. "name": "id",
  3596. "in": "path",
  3597. "required": true
  3598. },
  3599. {
  3600. "name": "body",
  3601. "in": "body",
  3602. "schema": {
  3603. "$ref": "#/definitions/EditMilestoneOption"
  3604. }
  3605. }
  3606. ],
  3607. "responses": {
  3608. "200": {
  3609. "$ref": "#/responses/Milestone"
  3610. }
  3611. }
  3612. }
  3613. },
  3614. "/repos/{owner}/{repo}/mirror-sync": {
  3615. "post": {
  3616. "produces": [
  3617. "application/json"
  3618. ],
  3619. "tags": [
  3620. "repository"
  3621. ],
  3622. "summary": "Sync a mirrored repository",
  3623. "operationId": "repoMirrorSync",
  3624. "parameters": [
  3625. {
  3626. "type": "string",
  3627. "description": "owner of the repo to sync",
  3628. "name": "owner",
  3629. "in": "path",
  3630. "required": true
  3631. },
  3632. {
  3633. "type": "string",
  3634. "description": "name of the repo to sync",
  3635. "name": "repo",
  3636. "in": "path",
  3637. "required": true
  3638. }
  3639. ],
  3640. "responses": {
  3641. "200": {
  3642. "$ref": "#/responses/empty"
  3643. }
  3644. }
  3645. }
  3646. },
  3647. "/repos/{owner}/{repo}/pulls": {
  3648. "get": {
  3649. "produces": [
  3650. "application/json"
  3651. ],
  3652. "tags": [
  3653. "repository"
  3654. ],
  3655. "summary": "List a repo's pull requests",
  3656. "operationId": "repoListPullRequests",
  3657. "parameters": [
  3658. {
  3659. "type": "string",
  3660. "description": "owner of the repo",
  3661. "name": "owner",
  3662. "in": "path",
  3663. "required": true
  3664. },
  3665. {
  3666. "type": "string",
  3667. "description": "name of the repo",
  3668. "name": "repo",
  3669. "in": "path",
  3670. "required": true
  3671. },
  3672. {
  3673. "type": "integer",
  3674. "description": "Page number",
  3675. "name": "page",
  3676. "in": "query"
  3677. },
  3678. {
  3679. "enum": [
  3680. "closed",
  3681. "open",
  3682. "all"
  3683. ],
  3684. "type": "string",
  3685. "description": "State of pull request: open or closed (optional)",
  3686. "name": "state",
  3687. "in": "query"
  3688. },
  3689. {
  3690. "enum": [
  3691. "oldest",
  3692. "recentupdate",
  3693. "leastupdate",
  3694. "mostcomment",
  3695. "leastcomment",
  3696. "priority"
  3697. ],
  3698. "type": "string",
  3699. "description": "Type of sort",
  3700. "name": "sort",
  3701. "in": "query"
  3702. },
  3703. {
  3704. "type": "integer",
  3705. "format": "int64",
  3706. "description": "ID of the milestone",
  3707. "name": "milestone",
  3708. "in": "query"
  3709. },
  3710. {
  3711. "type": "array",
  3712. "items": {
  3713. "type": "integer",
  3714. "format": "int64"
  3715. },
  3716. "collectionFormat": "multi",
  3717. "description": "Label IDs",
  3718. "name": "labels",
  3719. "in": "query"
  3720. }
  3721. ],
  3722. "responses": {
  3723. "200": {
  3724. "$ref": "#/responses/PullRequestList"
  3725. }
  3726. }
  3727. },
  3728. "post": {
  3729. "consumes": [
  3730. "application/json"
  3731. ],
  3732. "produces": [
  3733. "application/json"
  3734. ],
  3735. "tags": [
  3736. "repository"
  3737. ],
  3738. "summary": "Create a pull request",
  3739. "operationId": "repoCreatePullRequest",
  3740. "parameters": [
  3741. {
  3742. "type": "string",
  3743. "description": "owner of the repo",
  3744. "name": "owner",
  3745. "in": "path",
  3746. "required": true
  3747. },
  3748. {
  3749. "type": "string",
  3750. "description": "name of the repo",
  3751. "name": "repo",
  3752. "in": "path",
  3753. "required": true
  3754. },
  3755. {
  3756. "name": "body",
  3757. "in": "body",
  3758. "schema": {
  3759. "$ref": "#/definitions/CreatePullRequestOption"
  3760. }
  3761. }
  3762. ],
  3763. "responses": {
  3764. "201": {
  3765. "$ref": "#/responses/PullRequest"
  3766. }
  3767. }
  3768. }
  3769. },
  3770. "/repos/{owner}/{repo}/pulls/{index}": {
  3771. "get": {
  3772. "produces": [
  3773. "application/json"
  3774. ],
  3775. "tags": [
  3776. "repository"
  3777. ],
  3778. "summary": "Get a pull request",
  3779. "operationId": "repoGetPullRequest",
  3780. "parameters": [
  3781. {
  3782. "type": "string",
  3783. "description": "owner of the repo",
  3784. "name": "owner",
  3785. "in": "path",
  3786. "required": true
  3787. },
  3788. {
  3789. "type": "string",
  3790. "description": "name of the repo",
  3791. "name": "repo",
  3792. "in": "path",
  3793. "required": true
  3794. },
  3795. {
  3796. "type": "integer",
  3797. "format": "int64",
  3798. "description": "index of the pull request to get",
  3799. "name": "index",
  3800. "in": "path",
  3801. "required": true
  3802. }
  3803. ],
  3804. "responses": {
  3805. "200": {
  3806. "$ref": "#/responses/PullRequest"
  3807. }
  3808. }
  3809. },
  3810. "patch": {
  3811. "consumes": [
  3812. "application/json"
  3813. ],
  3814. "produces": [
  3815. "application/json"
  3816. ],
  3817. "tags": [
  3818. "repository"
  3819. ],
  3820. "summary": "Update a pull request",
  3821. "operationId": "repoEditPullRequest",
  3822. "parameters": [
  3823. {
  3824. "type": "string",
  3825. "description": "owner of the repo",
  3826. "name": "owner",
  3827. "in": "path",
  3828. "required": true
  3829. },
  3830. {
  3831. "type": "string",
  3832. "description": "name of the repo",
  3833. "name": "repo",
  3834. "in": "path",
  3835. "required": true
  3836. },
  3837. {
  3838. "type": "integer",
  3839. "format": "int64",
  3840. "description": "index of the pull request to edit",
  3841. "name": "index",
  3842. "in": "path",
  3843. "required": true
  3844. },
  3845. {
  3846. "name": "body",
  3847. "in": "body",
  3848. "schema": {
  3849. "$ref": "#/definitions/EditPullRequestOption"
  3850. }
  3851. }
  3852. ],
  3853. "responses": {
  3854. "201": {
  3855. "$ref": "#/responses/PullRequest"
  3856. }
  3857. }
  3858. }
  3859. },
  3860. "/repos/{owner}/{repo}/pulls/{index}/merge": {
  3861. "get": {
  3862. "produces": [
  3863. "application/json"
  3864. ],
  3865. "tags": [
  3866. "repository"
  3867. ],
  3868. "summary": "Check if a pull request has been merged",
  3869. "operationId": "repoPullRequestIsMerged",
  3870. "parameters": [
  3871. {
  3872. "type": "string",
  3873. "description": "owner of the repo",
  3874. "name": "owner",
  3875. "in": "path",
  3876. "required": true
  3877. },
  3878. {
  3879. "type": "string",
  3880. "description": "name of the repo",
  3881. "name": "repo",
  3882. "in": "path",
  3883. "required": true
  3884. },
  3885. {
  3886. "type": "integer",
  3887. "format": "int64",
  3888. "description": "index of the pull request",
  3889. "name": "index",
  3890. "in": "path",
  3891. "required": true
  3892. }
  3893. ],
  3894. "responses": {
  3895. "204": {
  3896. "description": "pull request has been merged"
  3897. },
  3898. "404": {
  3899. "description": "pull request has not been merged"
  3900. }
  3901. }
  3902. },
  3903. "post": {
  3904. "produces": [
  3905. "application/json"
  3906. ],
  3907. "tags": [
  3908. "repository"
  3909. ],
  3910. "summary": "Merge a pull request",
  3911. "operationId": "repoMergePullRequest",
  3912. "parameters": [
  3913. {
  3914. "type": "string",
  3915. "description": "owner of the repo",
  3916. "name": "owner",
  3917. "in": "path",
  3918. "required": true
  3919. },
  3920. {
  3921. "type": "string",
  3922. "description": "name of the repo",
  3923. "name": "repo",
  3924. "in": "path",
  3925. "required": true
  3926. },
  3927. {
  3928. "type": "integer",
  3929. "format": "int64",
  3930. "description": "index of the pull request to merge",
  3931. "name": "index",
  3932. "in": "path",
  3933. "required": true
  3934. }
  3935. ],
  3936. "responses": {
  3937. "200": {
  3938. "$ref": "#/responses/empty"
  3939. },
  3940. "405": {
  3941. "$ref": "#/responses/empty"
  3942. }
  3943. }
  3944. }
  3945. },
  3946. "/repos/{owner}/{repo}/raw/{filepath}": {
  3947. "get": {
  3948. "produces": [
  3949. "application/json"
  3950. ],
  3951. "tags": [
  3952. "repository"
  3953. ],
  3954. "summary": "Get a file from a repository",
  3955. "operationId": "repoGetRawFile",
  3956. "parameters": [
  3957. {
  3958. "type": "string",
  3959. "description": "owner of the repo",
  3960. "name": "owner",
  3961. "in": "path",
  3962. "required": true
  3963. },
  3964. {
  3965. "type": "string",
  3966. "description": "name of the repo",
  3967. "name": "repo",
  3968. "in": "path",
  3969. "required": true
  3970. },
  3971. {
  3972. "type": "string",
  3973. "description": "filepath of the file to get",
  3974. "name": "filepath",
  3975. "in": "path",
  3976. "required": true
  3977. }
  3978. ],
  3979. "responses": {
  3980. "200": {
  3981. "description": "success"
  3982. }
  3983. }
  3984. }
  3985. },
  3986. "/repos/{owner}/{repo}/releases": {
  3987. "get": {
  3988. "produces": [
  3989. "application/json"
  3990. ],
  3991. "tags": [
  3992. "repository"
  3993. ],
  3994. "summary": "List a repo's releases",
  3995. "operationId": "repoListReleases",
  3996. "parameters": [
  3997. {
  3998. "type": "string",
  3999. "description": "owner of the repo",
  4000. "name": "owner",
  4001. "in": "path",
  4002. "required": true
  4003. },
  4004. {
  4005. "type": "string",
  4006. "description": "name of the repo",
  4007. "name": "repo",
  4008. "in": "path",
  4009. "required": true
  4010. },
  4011. {
  4012. "type": "integer",
  4013. "description": "page wants to load",
  4014. "name": "page",
  4015. "in": "query"
  4016. },
  4017. {
  4018. "type": "integer",
  4019. "description": "items count every page wants to load",
  4020. "name": "per_page",
  4021. "in": "query"
  4022. }
  4023. ],
  4024. "responses": {
  4025. "200": {
  4026. "$ref": "#/responses/ReleaseList"
  4027. }
  4028. }
  4029. },
  4030. "post": {
  4031. "consumes": [
  4032. "application/json"
  4033. ],
  4034. "produces": [
  4035. "application/json"
  4036. ],
  4037. "tags": [
  4038. "repository"
  4039. ],
  4040. "summary": "Create a release",
  4041. "operationId": "repoCreateRelease",
  4042. "parameters": [
  4043. {
  4044. "type": "string",
  4045. "description": "owner of the repo",
  4046. "name": "owner",
  4047. "in": "path",
  4048. "required": true
  4049. },
  4050. {
  4051. "type": "string",
  4052. "description": "name of the repo",
  4053. "name": "repo",
  4054. "in": "path",
  4055. "required": true
  4056. },
  4057. {
  4058. "name": "body",
  4059. "in": "body",
  4060. "schema": {
  4061. "$ref": "#/definitions/CreateReleaseOption"
  4062. }
  4063. }
  4064. ],
  4065. "responses": {
  4066. "201": {
  4067. "$ref": "#/responses/Release"
  4068. }
  4069. }
  4070. }
  4071. },
  4072. "/repos/{owner}/{repo}/releases/{id}": {
  4073. "get": {
  4074. "produces": [
  4075. "application/json"
  4076. ],
  4077. "tags": [
  4078. "repository"
  4079. ],
  4080. "summary": "Get a release",
  4081. "operationId": "repoGetRelease",
  4082. "parameters": [
  4083. {
  4084. "type": "string",
  4085. "description": "owner of the repo",
  4086. "name": "owner",
  4087. "in": "path",
  4088. "required": true
  4089. },
  4090. {
  4091. "type": "string",
  4092. "description": "name of the repo",
  4093. "name": "repo",
  4094. "in": "path",
  4095. "required": true
  4096. },
  4097. {
  4098. "type": "integer",
  4099. "format": "int64",
  4100. "description": "id of the release to get",
  4101. "name": "id",
  4102. "in": "path",
  4103. "required": true
  4104. }
  4105. ],
  4106. "responses": {
  4107. "200": {
  4108. "$ref": "#/responses/Release"
  4109. }
  4110. }
  4111. },
  4112. "delete": {
  4113. "tags": [
  4114. "repository"
  4115. ],
  4116. "summary": "Delete a release",
  4117. "operationId": "repoDeleteRelease",
  4118. "parameters": [
  4119. {
  4120. "type": "string",
  4121. "description": "owner of the repo",
  4122. "name": "owner",
  4123. "in": "path",
  4124. "required": true
  4125. },
  4126. {
  4127. "type": "string",
  4128. "description": "name of the repo",
  4129. "name": "repo",
  4130. "in": "path",
  4131. "required": true
  4132. },
  4133. {
  4134. "type": "integer",
  4135. "format": "int64",
  4136. "description": "id of the release to delete",
  4137. "name": "id",
  4138. "in": "path",
  4139. "required": true
  4140. }
  4141. ],
  4142. "responses": {
  4143. "204": {
  4144. "$ref": "#/responses/empty"
  4145. }
  4146. }
  4147. },
  4148. "patch": {
  4149. "consumes": [
  4150. "application/json"
  4151. ],
  4152. "produces": [
  4153. "application/json"
  4154. ],
  4155. "tags": [
  4156. "repository"
  4157. ],
  4158. "summary": "Update a release",
  4159. "operationId": "repoEditRelease",
  4160. "parameters": [
  4161. {
  4162. "type": "string",
  4163. "description": "owner of the repo",
  4164. "name": "owner",
  4165. "in": "path",
  4166. "required": true
  4167. },
  4168. {
  4169. "type": "string",
  4170. "description": "name of the repo",
  4171. "name": "repo",
  4172. "in": "path",
  4173. "required": true
  4174. },
  4175. {
  4176. "type": "integer",
  4177. "format": "int64",
  4178. "description": "id of the release to edit",
  4179. "name": "id",
  4180. "in": "path",
  4181. "required": true
  4182. },
  4183. {
  4184. "name": "body",
  4185. "in": "body",
  4186. "schema": {
  4187. "$ref": "#/definitions/EditReleaseOption"
  4188. }
  4189. }
  4190. ],
  4191. "responses": {
  4192. "200": {
  4193. "$ref": "#/responses/Release"
  4194. }
  4195. }
  4196. }
  4197. },
  4198. "/repos/{owner}/{repo}/releases/{id}/assets": {
  4199. "get": {
  4200. "produces": [
  4201. "application/json"
  4202. ],
  4203. "tags": [
  4204. "repository"
  4205. ],
  4206. "summary": "List release's attachments",
  4207. "operationId": "repoListReleaseAttachments",
  4208. "parameters": [
  4209. {
  4210. "type": "string",
  4211. "description": "owner of the repo",
  4212. "name": "owner",
  4213. "in": "path",
  4214. "required": true
  4215. },
  4216. {
  4217. "type": "string",
  4218. "description": "name of the repo",
  4219. "name": "repo",
  4220. "in": "path",
  4221. "required": true
  4222. },
  4223. {
  4224. "type": "integer",
  4225. "format": "int64",
  4226. "description": "id of the release",
  4227. "name": "id",
  4228. "in": "path",
  4229. "required": true
  4230. }
  4231. ],
  4232. "responses": {
  4233. "200": {
  4234. "$ref": "#/responses/AttachmentList"
  4235. }
  4236. }
  4237. },
  4238. "post": {
  4239. "consumes": [
  4240. "multipart/form-data"
  4241. ],
  4242. "produces": [
  4243. "application/json"
  4244. ],
  4245. "tags": [
  4246. "repository"
  4247. ],
  4248. "summary": "Create a release attachment",
  4249. "operationId": "repoCreateReleaseAttachment",
  4250. "parameters": [
  4251. {
  4252. "type": "string",
  4253. "description": "owner of the repo",
  4254. "name": "owner",
  4255. "in": "path",
  4256. "required": true
  4257. },
  4258. {
  4259. "type": "string",
  4260. "description": "name of the repo",
  4261. "name": "repo",
  4262. "in": "path",
  4263. "required": true
  4264. },
  4265. {
  4266. "type": "integer",
  4267. "format": "int64",
  4268. "description": "id of the release",
  4269. "name": "id",
  4270. "in": "path",
  4271. "required": true
  4272. },
  4273. {
  4274. "type": "string",
  4275. "description": "name of the attachment",
  4276. "name": "name",
  4277. "in": "query"
  4278. },
  4279. {
  4280. "type": "file",
  4281. "description": "attachment to upload",
  4282. "name": "attachment",
  4283. "in": "formData",
  4284. "required": true
  4285. }
  4286. ],
  4287. "responses": {
  4288. "201": {
  4289. "$ref": "#/responses/Attachment"
  4290. }
  4291. }
  4292. }
  4293. },
  4294. "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": {
  4295. "get": {
  4296. "produces": [
  4297. "application/json"
  4298. ],
  4299. "tags": [
  4300. "repository"
  4301. ],
  4302. "summary": "Get a release attachment",
  4303. "operationId": "repoGetReleaseAttachment",
  4304. "parameters": [
  4305. {
  4306. "type": "string",
  4307. "description": "owner of the repo",
  4308. "name": "owner",
  4309. "in": "path",
  4310. "required": true
  4311. },
  4312. {
  4313. "type": "string",
  4314. "description": "name of the repo",
  4315. "name": "repo",
  4316. "in": "path",
  4317. "required": true
  4318. },
  4319. {
  4320. "type": "integer",
  4321. "format": "int64",
  4322. "description": "id of the release",
  4323. "name": "id",
  4324. "in": "path",
  4325. "required": true
  4326. },
  4327. {
  4328. "type": "integer",
  4329. "format": "int64",
  4330. "description": "id of the attachment to get",
  4331. "name": "attachment_id",
  4332. "in": "path",
  4333. "required": true
  4334. }
  4335. ],
  4336. "responses": {
  4337. "200": {
  4338. "$ref": "#/responses/Attachment"
  4339. }
  4340. }
  4341. },
  4342. "delete": {
  4343. "produces": [
  4344. "application/json"
  4345. ],
  4346. "tags": [
  4347. "repository"
  4348. ],
  4349. "summary": "Delete a release attachment",
  4350. "operationId": "repoDeleteReleaseAttachment",
  4351. "parameters": [
  4352. {
  4353. "type": "string",
  4354. "description": "owner of the repo",
  4355. "name": "owner",
  4356. "in": "path",
  4357. "required": true
  4358. },
  4359. {
  4360. "type": "string",
  4361. "description": "name of the repo",
  4362. "name": "repo",
  4363. "in": "path",
  4364. "required": true
  4365. },
  4366. {
  4367. "type": "integer",
  4368. "format": "int64",
  4369. "description": "id of the release",
  4370. "name": "id",
  4371. "in": "path",
  4372. "required": true
  4373. },
  4374. {
  4375. "type": "integer",
  4376. "format": "int64",
  4377. "description": "id of the attachment to delete",
  4378. "name": "attachment_id",
  4379. "in": "path",
  4380. "required": true
  4381. }
  4382. ],
  4383. "responses": {
  4384. "204": {
  4385. "$ref": "#/responses/empty"
  4386. }
  4387. }
  4388. },
  4389. "patch": {
  4390. "consumes": [
  4391. "application/json"
  4392. ],
  4393. "produces": [
  4394. "application/json"
  4395. ],
  4396. "tags": [
  4397. "repository"
  4398. ],
  4399. "summary": "Edit a release attachment",
  4400. "operationId": "repoEditReleaseAttachment",
  4401. "parameters": [
  4402. {
  4403. "type": "string",
  4404. "description": "owner of the repo",
  4405. "name": "owner",
  4406. "in": "path",
  4407. "required": true
  4408. },
  4409. {
  4410. "type": "string",
  4411. "description": "name of the repo",
  4412. "name": "repo",
  4413. "in": "path",
  4414. "required": true
  4415. },
  4416. {
  4417. "type": "integer",
  4418. "format": "int64",
  4419. "description": "id of the release",
  4420. "name": "id",
  4421. "in": "path",
  4422. "required": true
  4423. },
  4424. {
  4425. "type": "integer",
  4426. "format": "int64",
  4427. "description": "id of the attachment to edit",
  4428. "name": "attachment_id",
  4429. "in": "path",
  4430. "required": true
  4431. },
  4432. {
  4433. "name": "body",
  4434. "in": "body",
  4435. "schema": {
  4436. "$ref": "#/definitions/EditAttachmentOptions"
  4437. }
  4438. }
  4439. ],
  4440. "responses": {
  4441. "201": {
  4442. "$ref": "#/responses/Attachment"
  4443. }
  4444. }
  4445. }
  4446. },
  4447. "/repos/{owner}/{repo}/stargazers": {
  4448. "get": {
  4449. "produces": [
  4450. "application/json"
  4451. ],
  4452. "tags": [
  4453. "repository"
  4454. ],
  4455. "summary": "List a repo's stargazers",
  4456. "operationId": "repoListStargazers",
  4457. "parameters": [
  4458. {
  4459. "type": "string",
  4460. "description": "owner of the repo",
  4461. "name": "owner",
  4462. "in": "path",
  4463. "required": true
  4464. },
  4465. {
  4466. "type": "string",
  4467. "description": "name of the repo",
  4468. "name": "repo",
  4469. "in": "path",
  4470. "required": true
  4471. }
  4472. ],
  4473. "responses": {
  4474. "200": {
  4475. "$ref": "#/responses/UserList"
  4476. }
  4477. }
  4478. }
  4479. },
  4480. "/repos/{owner}/{repo}/statuses/{sha}": {
  4481. "get": {
  4482. "produces": [
  4483. "application/json"
  4484. ],
  4485. "tags": [
  4486. "repository"
  4487. ],
  4488. "summary": "Get a commit's statuses",
  4489. "operationId": "repoListStatuses",
  4490. "parameters": [
  4491. {
  4492. "type": "string",
  4493. "description": "owner of the repo",
  4494. "name": "owner",
  4495. "in": "path",
  4496. "required": true
  4497. },
  4498. {
  4499. "type": "string",
  4500. "description": "name of the repo",
  4501. "name": "repo",
  4502. "in": "path",
  4503. "required": true
  4504. },
  4505. {
  4506. "type": "string",
  4507. "description": "sha of the commit",
  4508. "name": "sha",
  4509. "in": "path",
  4510. "required": true
  4511. }
  4512. ],
  4513. "responses": {
  4514. "200": {
  4515. "$ref": "#/responses/StatusList"
  4516. }
  4517. }
  4518. },
  4519. "post": {
  4520. "produces": [
  4521. "application/json"
  4522. ],
  4523. "tags": [
  4524. "repository"
  4525. ],
  4526. "summary": "Create a commit status",
  4527. "operationId": "repoCreateStatus",
  4528. "parameters": [
  4529. {
  4530. "type": "string",
  4531. "description": "owner of the repo",
  4532. "name": "owner",
  4533. "in": "path",
  4534. "required": true
  4535. },
  4536. {
  4537. "type": "string",
  4538. "description": "name of the repo",
  4539. "name": "repo",
  4540. "in": "path",
  4541. "required": true
  4542. },
  4543. {
  4544. "type": "string",
  4545. "description": "sha of the commit",
  4546. "name": "sha",
  4547. "in": "path",
  4548. "required": true
  4549. },
  4550. {
  4551. "name": "body",
  4552. "in": "body",
  4553. "schema": {
  4554. "$ref": "#/definitions/CreateStatusOption"
  4555. }
  4556. }
  4557. ],
  4558. "responses": {
  4559. "200": {
  4560. "$ref": "#/responses/StatusList"
  4561. }
  4562. }
  4563. }
  4564. },
  4565. "/repos/{owner}/{repo}/subscribers": {
  4566. "get": {
  4567. "produces": [
  4568. "application/json"
  4569. ],
  4570. "tags": [
  4571. "repository"
  4572. ],
  4573. "summary": "List a repo's watchers",
  4574. "operationId": "repoListSubscribers",
  4575. "parameters": [
  4576. {
  4577. "type": "string",
  4578. "description": "owner of the repo",
  4579. "name": "owner",
  4580. "in": "path",
  4581. "required": true
  4582. },
  4583. {
  4584. "type": "string",
  4585. "description": "name of the repo",
  4586. "name": "repo",
  4587. "in": "path",
  4588. "required": true
  4589. }
  4590. ],
  4591. "responses": {
  4592. "200": {
  4593. "$ref": "#/responses/UserList"
  4594. }
  4595. }
  4596. }
  4597. },
  4598. "/repos/{owner}/{repo}/subscription": {
  4599. "get": {
  4600. "tags": [
  4601. "repository"
  4602. ],
  4603. "summary": "Check if the current user is watching a repo",
  4604. "operationId": "userCurrentCheckSubscription",
  4605. "parameters": [
  4606. {
  4607. "type": "string",
  4608. "description": "owner of the repo",
  4609. "name": "owner",
  4610. "in": "path",
  4611. "required": true
  4612. },
  4613. {
  4614. "type": "string",
  4615. "description": "name of the repo",
  4616. "name": "repo",
  4617. "in": "path",
  4618. "required": true
  4619. }
  4620. ],
  4621. "responses": {
  4622. "200": {
  4623. "$ref": "#/responses/WatchInfo"
  4624. }
  4625. }
  4626. },
  4627. "put": {
  4628. "tags": [
  4629. "repository"
  4630. ],
  4631. "summary": "Watch a repo",
  4632. "operationId": "userCurrentPutSubscription",
  4633. "parameters": [
  4634. {
  4635. "type": "string",
  4636. "description": "owner of the repo",
  4637. "name": "owner",
  4638. "in": "path",
  4639. "required": true
  4640. },
  4641. {
  4642. "type": "string",
  4643. "description": "name of the repo",
  4644. "name": "repo",
  4645. "in": "path",
  4646. "required": true
  4647. }
  4648. ],
  4649. "responses": {
  4650. "200": {
  4651. "$ref": "#/responses/WatchInfo"
  4652. }
  4653. }
  4654. },
  4655. "delete": {
  4656. "tags": [
  4657. "repository"
  4658. ],
  4659. "summary": "Unwatch a repo",
  4660. "operationId": "userCurrentDeleteSubscription",
  4661. "parameters": [
  4662. {
  4663. "type": "string",
  4664. "description": "owner of the repo",
  4665. "name": "owner",
  4666. "in": "path",
  4667. "required": true
  4668. },
  4669. {
  4670. "type": "string",
  4671. "description": "name of the repo",
  4672. "name": "repo",
  4673. "in": "path",
  4674. "required": true
  4675. }
  4676. ],
  4677. "responses": {
  4678. "204": {
  4679. "$ref": "#/responses/empty"
  4680. }
  4681. }
  4682. }
  4683. },
  4684. "/repos/{owner}/{repo}/tags": {
  4685. "get": {
  4686. "produces": [
  4687. "application/json"
  4688. ],
  4689. "tags": [
  4690. "repository"
  4691. ],
  4692. "summary": "List a repository's tags",
  4693. "operationId": "repoListTags",
  4694. "parameters": [
  4695. {
  4696. "type": "string",
  4697. "description": "owner of the repo",
  4698. "name": "owner",
  4699. "in": "path",
  4700. "required": true
  4701. },
  4702. {
  4703. "type": "string",
  4704. "description": "name of the repo",
  4705. "name": "repo",
  4706. "in": "path",
  4707. "required": true
  4708. }
  4709. ],
  4710. "responses": {
  4711. "200": {
  4712. "$ref": "#/responses/TagList"
  4713. }
  4714. }
  4715. }
  4716. },
  4717. "/repos/{owner}/{repo}/times": {
  4718. "get": {
  4719. "produces": [
  4720. "application/json"
  4721. ],
  4722. "tags": [
  4723. "repository"
  4724. ],
  4725. "summary": "List a repo's tracked times",
  4726. "operationId": "repoTrackedTimes",
  4727. "parameters": [
  4728. {
  4729. "type": "string",
  4730. "description": "owner of the repo",
  4731. "name": "owner",
  4732. "in": "path",
  4733. "required": true
  4734. },
  4735. {
  4736. "type": "string",
  4737. "description": "name of the repo",
  4738. "name": "repo",
  4739. "in": "path",
  4740. "required": true
  4741. }
  4742. ],
  4743. "responses": {
  4744. "200": {
  4745. "$ref": "#/responses/TrackedTimeList"
  4746. }
  4747. }
  4748. }
  4749. },
  4750. "/repos/{owner}/{repo}/times/{user}": {
  4751. "get": {
  4752. "produces": [
  4753. "application/json"
  4754. ],
  4755. "tags": [
  4756. "user"
  4757. ],
  4758. "summary": "List a user's tracked times in a repo",
  4759. "operationId": "userTrackedTimes",
  4760. "parameters": [
  4761. {
  4762. "type": "string",
  4763. "description": "owner of the repo",
  4764. "name": "owner",
  4765. "in": "path",
  4766. "required": true
  4767. },
  4768. {
  4769. "type": "string",
  4770. "description": "name of the repo",
  4771. "name": "repo",
  4772. "in": "path",
  4773. "required": true
  4774. },
  4775. {
  4776. "type": "string",
  4777. "description": "username of user",
  4778. "name": "user",
  4779. "in": "path",
  4780. "required": true
  4781. }
  4782. ],
  4783. "responses": {
  4784. "200": {
  4785. "$ref": "#/responses/TrackedTimeList"
  4786. }
  4787. }
  4788. }
  4789. },
  4790. "/repositories/{id}": {
  4791. "get": {
  4792. "produces": [
  4793. "application/json"
  4794. ],
  4795. "tags": [
  4796. "repository"
  4797. ],
  4798. "summary": "Get a repository by id",
  4799. "operationId": "repoGetByID",
  4800. "parameters": [
  4801. {
  4802. "type": "integer",
  4803. "format": "int64",
  4804. "description": "id of the repo to get",
  4805. "name": "id",
  4806. "in": "path",
  4807. "required": true
  4808. }
  4809. ],
  4810. "responses": {
  4811. "200": {
  4812. "$ref": "#/responses/Repository"
  4813. }
  4814. }
  4815. }
  4816. },
  4817. "/teams/{id}": {
  4818. "get": {
  4819. "produces": [
  4820. "application/json"
  4821. ],
  4822. "tags": [
  4823. "organization"
  4824. ],
  4825. "summary": "Get a team",
  4826. "operationId": "orgGetTeam",
  4827. "parameters": [
  4828. {
  4829. "type": "integer",
  4830. "format": "int64",
  4831. "description": "id of the team to get",
  4832. "name": "id",
  4833. "in": "path",
  4834. "required": true
  4835. }
  4836. ],
  4837. "responses": {
  4838. "200": {
  4839. "$ref": "#/responses/Team"
  4840. }
  4841. }
  4842. },
  4843. "delete": {
  4844. "tags": [
  4845. "organization"
  4846. ],
  4847. "summary": "Delete a team",
  4848. "operationId": "orgDeleteTeam",
  4849. "parameters": [
  4850. {
  4851. "type": "integer",
  4852. "format": "int64",
  4853. "description": "id of the team to delete",
  4854. "name": "id",
  4855. "in": "path",
  4856. "required": true
  4857. }
  4858. ],
  4859. "responses": {
  4860. "204": {
  4861. "description": "team deleted"
  4862. }
  4863. }
  4864. },
  4865. "patch": {
  4866. "consumes": [
  4867. "application/json"
  4868. ],
  4869. "produces": [
  4870. "application/json"
  4871. ],
  4872. "tags": [
  4873. "organization"
  4874. ],
  4875. "summary": "Edit a team",
  4876. "operationId": "orgEditTeam",
  4877. "parameters": [
  4878. {
  4879. "type": "integer",
  4880. "description": "id of the team to edit",
  4881. "name": "id",
  4882. "in": "path",
  4883. "required": true
  4884. },
  4885. {
  4886. "name": "body",
  4887. "in": "body",
  4888. "schema": {
  4889. "$ref": "#/definitions/EditTeamOption"
  4890. }
  4891. }
  4892. ],
  4893. "responses": {
  4894. "200": {
  4895. "$ref": "#/responses/Team"
  4896. }
  4897. }
  4898. }
  4899. },
  4900. "/teams/{id}/members": {
  4901. "get": {
  4902. "produces": [
  4903. "application/json"
  4904. ],
  4905. "tags": [
  4906. "organization"
  4907. ],
  4908. "summary": "List a team's members",
  4909. "operationId": "orgListTeamMembers",
  4910. "parameters": [
  4911. {
  4912. "type": "integer",
  4913. "format": "int64",
  4914. "description": "id of the team",
  4915. "name": "id",
  4916. "in": "path",
  4917. "required": true
  4918. }
  4919. ],
  4920. "responses": {
  4921. "200": {
  4922. "$ref": "#/responses/UserList"
  4923. }
  4924. }
  4925. }
  4926. },
  4927. "/teams/{id}/members/{username}": {
  4928. "get": {
  4929. "produces": [
  4930. "application/json"
  4931. ],
  4932. "tags": [
  4933. "organization"
  4934. ],
  4935. "summary": "List a particular member of team",
  4936. "operationId": "orgListTeamMember",
  4937. "parameters": [
  4938. {
  4939. "type": "integer",
  4940. "format": "int64",
  4941. "description": "id of the team",
  4942. "name": "id",
  4943. "in": "path",
  4944. "required": true
  4945. },
  4946. {
  4947. "type": "string",
  4948. "description": "username of the member to list",
  4949. "name": "username",
  4950. "in": "path",
  4951. "required": true
  4952. }
  4953. ],
  4954. "responses": {
  4955. "200": {
  4956. "$ref": "#/responses/User"
  4957. }
  4958. }
  4959. },
  4960. "put": {
  4961. "produces": [
  4962. "application/json"
  4963. ],
  4964. "tags": [
  4965. "organization"
  4966. ],
  4967. "summary": "Add a team member",
  4968. "operationId": "orgAddTeamMember",
  4969. "parameters": [
  4970. {
  4971. "type": "integer",
  4972. "format": "int64",
  4973. "description": "id of the team",
  4974. "name": "id",
  4975. "in": "path",
  4976. "required": true
  4977. },
  4978. {
  4979. "type": "string",
  4980. "description": "username of the user to add",
  4981. "name": "username",
  4982. "in": "path",
  4983. "required": true
  4984. }
  4985. ],
  4986. "responses": {
  4987. "204": {
  4988. "$ref": "#/responses/empty"
  4989. }
  4990. }
  4991. },
  4992. "delete": {
  4993. "produces": [
  4994. "application/json"
  4995. ],
  4996. "tags": [
  4997. "organization"
  4998. ],
  4999. "summary": "Remove a team member",
  5000. "operationId": "orgRemoveTeamMember",
  5001. "parameters": [
  5002. {
  5003. "type": "integer",
  5004. "format": "int64",
  5005. "description": "id of the team",
  5006. "name": "id",
  5007. "in": "path",
  5008. "required": true
  5009. },
  5010. {
  5011. "type": "string",
  5012. "description": "username of the user to remove",
  5013. "name": "username",
  5014. "in": "path",
  5015. "required": true
  5016. }
  5017. ],
  5018. "responses": {
  5019. "204": {
  5020. "$ref": "#/responses/empty"
  5021. }
  5022. }
  5023. }
  5024. },
  5025. "/teams/{id}/repos": {
  5026. "get": {
  5027. "produces": [
  5028. "application/json"
  5029. ],
  5030. "tags": [
  5031. "organization"
  5032. ],
  5033. "summary": "List a team's repos",
  5034. "operationId": "orgListTeamRepos",
  5035. "parameters": [
  5036. {
  5037. "type": "integer",
  5038. "format": "int64",
  5039. "description": "id of the team",
  5040. "name": "id",
  5041. "in": "path",
  5042. "required": true
  5043. }
  5044. ],
  5045. "responses": {
  5046. "200": {
  5047. "$ref": "#/responses/RepositoryList"
  5048. }
  5049. }
  5050. }
  5051. },
  5052. "/teams/{id}/repos/{org}/{repo}": {
  5053. "put": {
  5054. "produces": [
  5055. "application/json"
  5056. ],
  5057. "tags": [
  5058. "organization"
  5059. ],
  5060. "summary": "Add a repository to a team",
  5061. "operationId": "orgAddTeamRepository",
  5062. "parameters": [
  5063. {
  5064. "type": "integer",
  5065. "format": "int64",
  5066. "description": "id of the team",
  5067. "name": "id",
  5068. "in": "path",
  5069. "required": true
  5070. },
  5071. {
  5072. "type": "string",
  5073. "description": "organization that owns the repo to add",
  5074. "name": "org",
  5075. "in": "path",
  5076. "required": true
  5077. },
  5078. {
  5079. "type": "string",
  5080. "description": "name of the repo to add",
  5081. "name": "repo",
  5082. "in": "path",
  5083. "required": true
  5084. }
  5085. ],
  5086. "responses": {
  5087. "204": {
  5088. "$ref": "#/responses/empty"
  5089. }
  5090. }
  5091. },
  5092. "delete": {
  5093. "description": "This does not delete the repository, it only removes the repository from the team.",
  5094. "produces": [
  5095. "application/json"
  5096. ],
  5097. "tags": [
  5098. "organization"
  5099. ],
  5100. "summary": "Remove a repository from a team",
  5101. "operationId": "orgRemoveTeamRepository",
  5102. "parameters": [
  5103. {
  5104. "type": "integer",
  5105. "format": "int64",
  5106. "description": "id of the team",
  5107. "name": "id",
  5108. "in": "path",
  5109. "required": true
  5110. },
  5111. {
  5112. "type": "string",
  5113. "description": "organization that owns the repo to remove",
  5114. "name": "org",
  5115. "in": "path",
  5116. "required": true
  5117. },
  5118. {
  5119. "type": "string",
  5120. "description": "name of the repo to remove",
  5121. "name": "repo",
  5122. "in": "path",
  5123. "required": true
  5124. }
  5125. ],
  5126. "responses": {
  5127. "204": {
  5128. "$ref": "#/responses/empty"
  5129. }
  5130. }
  5131. }
  5132. },
  5133. "/topics/search": {
  5134. "get": {
  5135. "produces": [
  5136. "application/json"
  5137. ],
  5138. "tags": [
  5139. "repository"
  5140. ],
  5141. "summary": "search topics via keyword",
  5142. "operationId": "topicSearch",
  5143. "parameters": [
  5144. {
  5145. "type": "string",
  5146. "description": "keywords to search",
  5147. "name": "q",
  5148. "in": "query",
  5149. "required": true
  5150. }
  5151. ],
  5152. "responses": {
  5153. "200": {
  5154. "$ref": "#/responses/Repository"
  5155. }
  5156. }
  5157. }
  5158. },
  5159. "/user": {
  5160. "get": {
  5161. "produces": [
  5162. "application/json"
  5163. ],
  5164. "tags": [
  5165. "user"
  5166. ],
  5167. "summary": "Get the authenticated user",
  5168. "operationId": "userGetCurrent",
  5169. "responses": {
  5170. "200": {
  5171. "$ref": "#/responses/User"
  5172. }
  5173. }
  5174. }
  5175. },
  5176. "/user/emails": {
  5177. "get": {
  5178. "produces": [
  5179. "application/json"
  5180. ],
  5181. "tags": [
  5182. "user"
  5183. ],
  5184. "summary": "List the authenticated user's email addresses",
  5185. "operationId": "userListEmails",
  5186. "responses": {
  5187. "200": {
  5188. "$ref": "#/responses/EmailList"
  5189. }
  5190. }
  5191. },
  5192. "post": {
  5193. "produces": [
  5194. "application/json"
  5195. ],
  5196. "tags": [
  5197. "user"
  5198. ],
  5199. "summary": "Add email addresses",
  5200. "operationId": "userAddEmail",
  5201. "parameters": [
  5202. {
  5203. "name": "body",
  5204. "in": "body",
  5205. "schema": {
  5206. "$ref": "#/definitions/CreateEmailOption"
  5207. }
  5208. }
  5209. ],
  5210. "responses": {
  5211. "201": {
  5212. "$ref": "#/responses/EmailList"
  5213. }
  5214. }
  5215. },
  5216. "delete": {
  5217. "produces": [
  5218. "application/json"
  5219. ],
  5220. "tags": [
  5221. "user"
  5222. ],
  5223. "summary": "Delete email addresses",
  5224. "operationId": "userDeleteEmail",
  5225. "parameters": [
  5226. {
  5227. "name": "body",
  5228. "in": "body",
  5229. "schema": {
  5230. "$ref": "#/definitions/DeleteEmailOption"
  5231. }
  5232. }
  5233. ],
  5234. "responses": {
  5235. "204": {
  5236. "$ref": "#/responses/empty"
  5237. }
  5238. }
  5239. }
  5240. },
  5241. "/user/followers": {
  5242. "get": {
  5243. "produces": [
  5244. "application/json"
  5245. ],
  5246. "tags": [
  5247. "user"
  5248. ],
  5249. "summary": "List the authenticated user's followers",
  5250. "operationId": "userCurrentListFollowers",
  5251. "responses": {
  5252. "200": {
  5253. "$ref": "#/responses/UserList"
  5254. }
  5255. }
  5256. }
  5257. },
  5258. "/user/following": {
  5259. "get": {
  5260. "produces": [
  5261. "application/json"
  5262. ],
  5263. "tags": [
  5264. "user"
  5265. ],
  5266. "summary": "List the users that the authenticated user is following",
  5267. "operationId": "userCurrentListFollowing",
  5268. "responses": {
  5269. "200": {
  5270. "$ref": "#/responses/UserList"
  5271. }
  5272. }
  5273. }
  5274. },
  5275. "/user/following/{username}": {
  5276. "get": {
  5277. "tags": [
  5278. "user"
  5279. ],
  5280. "summary": "Check whether a user is followed by the authenticated user",
  5281. "operationId": "userCurrentCheckFollowing",
  5282. "parameters": [
  5283. {
  5284. "type": "string",
  5285. "description": "username of followed user",
  5286. "name": "username",
  5287. "in": "path",
  5288. "required": true
  5289. }
  5290. ],
  5291. "responses": {
  5292. "204": {
  5293. "$ref": "#/responses/empty"
  5294. },
  5295. "404": {
  5296. "$ref": "#/responses/notFound"
  5297. }
  5298. }
  5299. },
  5300. "put": {
  5301. "tags": [
  5302. "user"
  5303. ],
  5304. "summary": "Follow a user",
  5305. "operationId": "userCurrentPutFollow",
  5306. "parameters": [
  5307. {
  5308. "type": "string",
  5309. "description": "username of user to follow",
  5310. "name": "username",
  5311. "in": "path",
  5312. "required": true
  5313. }
  5314. ],
  5315. "responses": {
  5316. "204": {
  5317. "$ref": "#/responses/empty"
  5318. }
  5319. }
  5320. },
  5321. "delete": {
  5322. "tags": [
  5323. "user"
  5324. ],
  5325. "summary": "Unfollow a user",
  5326. "operationId": "userCurrentDeleteFollow",
  5327. "parameters": [
  5328. {
  5329. "type": "string",
  5330. "description": "username of user to unfollow",
  5331. "name": "username",
  5332. "in": "path",
  5333. "required": true
  5334. }
  5335. ],
  5336. "responses": {
  5337. "204": {
  5338. "$ref": "#/responses/empty"
  5339. }
  5340. }
  5341. }
  5342. },
  5343. "/user/gpg_keys": {
  5344. "get": {
  5345. "produces": [
  5346. "application/json"
  5347. ],
  5348. "tags": [
  5349. "user"
  5350. ],
  5351. "summary": "List the authenticated user's GPG keys",
  5352. "operationId": "userCurrentListGPGKeys",
  5353. "responses": {
  5354. "200": {
  5355. "$ref": "#/responses/GPGKeyList"
  5356. }
  5357. }
  5358. },
  5359. "post": {
  5360. "consumes": [
  5361. "application/json"
  5362. ],
  5363. "produces": [
  5364. "application/json"
  5365. ],
  5366. "tags": [
  5367. "user"
  5368. ],
  5369. "summary": "Create a GPG key",
  5370. "operationId": "userCurrentPostGPGKey",
  5371. "parameters": [
  5372. {
  5373. "name": "Form",
  5374. "in": "body",
  5375. "schema": {
  5376. "$ref": "#/definitions/CreateGPGKeyOption"
  5377. }
  5378. }
  5379. ],
  5380. "responses": {
  5381. "201": {
  5382. "$ref": "#/responses/GPGKey"
  5383. },
  5384. "422": {
  5385. "$ref": "#/responses/validationError"
  5386. }
  5387. }
  5388. }
  5389. },
  5390. "/user/gpg_keys/{id}": {
  5391. "get": {
  5392. "produces": [
  5393. "application/json"
  5394. ],
  5395. "tags": [
  5396. "user"
  5397. ],
  5398. "summary": "Get a GPG key",
  5399. "operationId": "userCurrentGetGPGKey",
  5400. "parameters": [
  5401. {
  5402. "type": "integer",
  5403. "format": "int64",
  5404. "description": "id of key to get",
  5405. "name": "id",
  5406. "in": "path",
  5407. "required": true
  5408. }
  5409. ],
  5410. "responses": {
  5411. "200": {
  5412. "$ref": "#/responses/GPGKey"
  5413. },
  5414. "404": {
  5415. "$ref": "#/responses/notFound"
  5416. }
  5417. }
  5418. },
  5419. "delete": {
  5420. "produces": [
  5421. "application/json"
  5422. ],
  5423. "tags": [
  5424. "user"
  5425. ],
  5426. "summary": "Remove a GPG key",
  5427. "operationId": "userCurrentDeleteGPGKey",
  5428. "parameters": [
  5429. {
  5430. "type": "integer",
  5431. "format": "int64",
  5432. "description": "id of key to delete",
  5433. "name": "id",
  5434. "in": "path",
  5435. "required": true
  5436. }
  5437. ],
  5438. "responses": {
  5439. "204": {
  5440. "$ref": "#/responses/empty"
  5441. },
  5442. "403": {
  5443. "$ref": "#/responses/forbidden"
  5444. }
  5445. }
  5446. }
  5447. },
  5448. "/user/keys": {
  5449. "get": {
  5450. "produces": [
  5451. "application/json"
  5452. ],
  5453. "tags": [
  5454. "user"
  5455. ],
  5456. "summary": "List the authenticated user's public keys",
  5457. "operationId": "userCurrentListKeys",
  5458. "parameters": [
  5459. {
  5460. "type": "string",
  5461. "description": "fingerprint of the key",
  5462. "name": "fingerprint",
  5463. "in": "query"
  5464. }
  5465. ],
  5466. "responses": {
  5467. "200": {
  5468. "$ref": "#/responses/PublicKeyList"
  5469. }
  5470. }
  5471. },
  5472. "post": {
  5473. "consumes": [
  5474. "application/json"
  5475. ],
  5476. "produces": [
  5477. "application/json"
  5478. ],
  5479. "tags": [
  5480. "user"
  5481. ],
  5482. "summary": "Create a public key",
  5483. "operationId": "userCurrentPostKey",
  5484. "parameters": [
  5485. {
  5486. "name": "body",
  5487. "in": "body",
  5488. "schema": {
  5489. "$ref": "#/definitions/CreateKeyOption"
  5490. }
  5491. }
  5492. ],
  5493. "responses": {
  5494. "201": {
  5495. "$ref": "#/responses/PublicKey"
  5496. },
  5497. "422": {
  5498. "$ref": "#/responses/validationError"
  5499. }
  5500. }
  5501. }
  5502. },
  5503. "/user/keys/{id}": {
  5504. "get": {
  5505. "produces": [
  5506. "application/json"
  5507. ],
  5508. "tags": [
  5509. "user"
  5510. ],
  5511. "summary": "Get a public key",
  5512. "operationId": "userCurrentGetKey",
  5513. "parameters": [
  5514. {
  5515. "type": "integer",
  5516. "format": "int64",
  5517. "description": "id of key to get",
  5518. "name": "id",
  5519. "in": "path",
  5520. "required": true
  5521. }
  5522. ],
  5523. "responses": {
  5524. "200": {
  5525. "$ref": "#/responses/PublicKey"
  5526. },
  5527. "404": {
  5528. "$ref": "#/responses/notFound"
  5529. }
  5530. }
  5531. },
  5532. "delete": {
  5533. "produces": [
  5534. "application/json"
  5535. ],
  5536. "tags": [
  5537. "user"
  5538. ],
  5539. "summary": "Delete a public key",
  5540. "operationId": "userCurrentDeleteKey",
  5541. "parameters": [
  5542. {
  5543. "type": "integer",
  5544. "format": "int64",
  5545. "description": "id of key to delete",
  5546. "name": "id",
  5547. "in": "path",
  5548. "required": true
  5549. }
  5550. ],
  5551. "responses": {
  5552. "204": {
  5553. "$ref": "#/responses/empty"
  5554. },
  5555. "403": {
  5556. "$ref": "#/responses/forbidden"
  5557. },
  5558. "404": {
  5559. "$ref": "#/responses/notFound"
  5560. }
  5561. }
  5562. }
  5563. },
  5564. "/user/orgs": {
  5565. "get": {
  5566. "produces": [
  5567. "application/json"
  5568. ],
  5569. "tags": [
  5570. "organization"
  5571. ],
  5572. "summary": "List the current user's organizations",
  5573. "operationId": "orgListCurrentUserOrgs",
  5574. "responses": {
  5575. "200": {
  5576. "$ref": "#/responses/OrganizationList"
  5577. }
  5578. }
  5579. }
  5580. },
  5581. "/user/repos": {
  5582. "get": {
  5583. "produces": [
  5584. "application/json"
  5585. ],
  5586. "tags": [
  5587. "user"
  5588. ],
  5589. "summary": "List the repos that the authenticated user owns or has access to",
  5590. "operationId": "userCurrentListRepos",
  5591. "responses": {
  5592. "200": {
  5593. "$ref": "#/responses/RepositoryList"
  5594. }
  5595. }
  5596. },
  5597. "post": {
  5598. "consumes": [
  5599. "application/json"
  5600. ],
  5601. "produces": [
  5602. "application/json"
  5603. ],
  5604. "tags": [
  5605. "repository",
  5606. "user"
  5607. ],
  5608. "summary": "Create a repository",
  5609. "operationId": "createCurrentUserRepo",
  5610. "parameters": [
  5611. {
  5612. "name": "body",
  5613. "in": "body",
  5614. "schema": {
  5615. "$ref": "#/definitions/CreateRepoOption"
  5616. }
  5617. }
  5618. ],
  5619. "responses": {
  5620. "201": {
  5621. "$ref": "#/responses/Repository"
  5622. }
  5623. }
  5624. }
  5625. },
  5626. "/user/starred": {
  5627. "get": {
  5628. "produces": [
  5629. "application/json"
  5630. ],
  5631. "tags": [
  5632. "user"
  5633. ],
  5634. "summary": "The repos that the authenticated user has starred",
  5635. "operationId": "userCurrentListStarred",
  5636. "responses": {
  5637. "200": {
  5638. "$ref": "#/responses/RepositoryList"
  5639. }
  5640. }
  5641. }
  5642. },
  5643. "/user/starred/{owner}/{repo}": {
  5644. "get": {
  5645. "tags": [
  5646. "user"
  5647. ],
  5648. "summary": "Whether the authenticated is starring the repo",
  5649. "operationId": "userCurrentCheckStarring",
  5650. "parameters": [
  5651. {
  5652. "type": "string",
  5653. "description": "owner of the repo",
  5654. "name": "owner",
  5655. "in": "path",
  5656. "required": true
  5657. },
  5658. {
  5659. "type": "string",
  5660. "description": "name of the repo",
  5661. "name": "repo",
  5662. "in": "path",
  5663. "required": true
  5664. }
  5665. ],
  5666. "responses": {
  5667. "204": {
  5668. "$ref": "#/responses/empty"
  5669. },
  5670. "404": {
  5671. "$ref": "#/responses/notFound"
  5672. }
  5673. }
  5674. },
  5675. "put": {
  5676. "tags": [
  5677. "user"
  5678. ],
  5679. "summary": "Star the given repo",
  5680. "operationId": "userCurrentPutStar",
  5681. "parameters": [
  5682. {
  5683. "type": "string",
  5684. "description": "owner of the repo to star",
  5685. "name": "owner",
  5686. "in": "path",
  5687. "required": true
  5688. },
  5689. {
  5690. "type": "string",
  5691. "description": "name of the repo to star",
  5692. "name": "repo",
  5693. "in": "path",
  5694. "required": true
  5695. }
  5696. ],
  5697. "responses": {
  5698. "204": {
  5699. "$ref": "#/responses/empty"
  5700. }
  5701. }
  5702. },
  5703. "delete": {
  5704. "tags": [
  5705. "user"
  5706. ],
  5707. "summary": "Unstar the given repo",
  5708. "operationId": "userCurrentDeleteStar",
  5709. "parameters": [
  5710. {
  5711. "type": "string",
  5712. "description": "owner of the repo to unstar",
  5713. "name": "owner",
  5714. "in": "path",
  5715. "required": true
  5716. },
  5717. {
  5718. "type": "string",
  5719. "description": "name of the repo to unstar",
  5720. "name": "repo",
  5721. "in": "path",
  5722. "required": true
  5723. }
  5724. ],
  5725. "responses": {
  5726. "204": {
  5727. "$ref": "#/responses/empty"
  5728. }
  5729. }
  5730. }
  5731. },
  5732. "/user/subscriptions": {
  5733. "get": {
  5734. "produces": [
  5735. "application/json"
  5736. ],
  5737. "tags": [
  5738. "user"
  5739. ],
  5740. "summary": "List repositories watched by the authenticated user",
  5741. "operationId": "userCurrentListSubscriptions",
  5742. "responses": {
  5743. "200": {
  5744. "$ref": "#/responses/RepositoryList"
  5745. }
  5746. }
  5747. }
  5748. },
  5749. "/user/teams": {
  5750. "get": {
  5751. "produces": [
  5752. "application/json"
  5753. ],
  5754. "tags": [
  5755. "user"
  5756. ],
  5757. "summary": "List all the teams a user belongs to",
  5758. "operationId": "userListTeams",
  5759. "responses": {
  5760. "200": {
  5761. "$ref": "#/responses/TeamList"
  5762. }
  5763. }
  5764. }
  5765. },
  5766. "/user/times": {
  5767. "get": {
  5768. "produces": [
  5769. "application/json"
  5770. ],
  5771. "tags": [
  5772. "user"
  5773. ],
  5774. "summary": "List the current user's tracked times",
  5775. "operationId": "userCurrentTrackedTimes",
  5776. "responses": {
  5777. "200": {
  5778. "$ref": "#/responses/TrackedTimeList"
  5779. }
  5780. }
  5781. }
  5782. },
  5783. "/users/search": {
  5784. "get": {
  5785. "produces": [
  5786. "application/json"
  5787. ],
  5788. "tags": [
  5789. "user"
  5790. ],
  5791. "summary": "Search for users",
  5792. "operationId": "userSearch",
  5793. "parameters": [
  5794. {
  5795. "type": "string",
  5796. "description": "keyword",
  5797. "name": "q",
  5798. "in": "query"
  5799. },
  5800. {
  5801. "type": "integer",
  5802. "format": "int64",
  5803. "description": "ID of the user to search for",
  5804. "name": "uid",
  5805. "in": "query"
  5806. },
  5807. {
  5808. "type": "integer",
  5809. "description": "maximum number of users to return",
  5810. "name": "limit",
  5811. "in": "query"
  5812. }
  5813. ],
  5814. "responses": {
  5815. "200": {
  5816. "description": "SearchResults of a successful search",
  5817. "schema": {
  5818. "type": "object",
  5819. "properties": {
  5820. "data": {
  5821. "type": "array",
  5822. "items": {
  5823. "$ref": "#/definitions/User"
  5824. }
  5825. },
  5826. "ok": {
  5827. "type": "boolean"
  5828. }
  5829. }
  5830. }
  5831. }
  5832. }
  5833. }
  5834. },
  5835. "/users/{follower}/following/{followee}": {
  5836. "get": {
  5837. "tags": [
  5838. "user"
  5839. ],
  5840. "summary": "Check if one user is following another user",
  5841. "operationId": "userCheckFollowing",
  5842. "parameters": [
  5843. {
  5844. "type": "string",
  5845. "description": "username of following user",
  5846. "name": "follower",
  5847. "in": "path",
  5848. "required": true
  5849. },
  5850. {
  5851. "type": "string",
  5852. "description": "username of followed user",
  5853. "name": "followee",
  5854. "in": "path",
  5855. "required": true
  5856. }
  5857. ],
  5858. "responses": {
  5859. "204": {
  5860. "$ref": "#/responses/empty"
  5861. },
  5862. "404": {
  5863. "$ref": "#/responses/notFound"
  5864. }
  5865. }
  5866. }
  5867. },
  5868. "/users/{username}": {
  5869. "get": {
  5870. "produces": [
  5871. "application/json"
  5872. ],
  5873. "tags": [
  5874. "user"
  5875. ],
  5876. "summary": "Get a user",
  5877. "operationId": "userGet",
  5878. "parameters": [
  5879. {
  5880. "type": "string",
  5881. "description": "username of user to get",
  5882. "name": "username",
  5883. "in": "path",
  5884. "required": true
  5885. }
  5886. ],
  5887. "responses": {
  5888. "200": {
  5889. "$ref": "#/responses/User"
  5890. },
  5891. "404": {
  5892. "$ref": "#/responses/notFound"
  5893. }
  5894. }
  5895. }
  5896. },
  5897. "/users/{username}/followers": {
  5898. "get": {
  5899. "produces": [
  5900. "application/json"
  5901. ],
  5902. "tags": [
  5903. "user"
  5904. ],
  5905. "summary": "List the given user's followers",
  5906. "operationId": "userListFollowers",
  5907. "parameters": [
  5908. {
  5909. "type": "string",
  5910. "description": "username of user",
  5911. "name": "username",
  5912. "in": "path",
  5913. "required": true
  5914. }
  5915. ],
  5916. "responses": {
  5917. "200": {
  5918. "$ref": "#/responses/UserList"
  5919. }
  5920. }
  5921. }
  5922. },
  5923. "/users/{username}/following": {
  5924. "get": {
  5925. "produces": [
  5926. "application/json"
  5927. ],
  5928. "tags": [
  5929. "user"
  5930. ],
  5931. "summary": "List the users that the given user is following",
  5932. "operationId": "userListFollowing",
  5933. "parameters": [
  5934. {
  5935. "type": "string",
  5936. "description": "username of user",
  5937. "name": "username",
  5938. "in": "path",
  5939. "required": true
  5940. }
  5941. ],
  5942. "responses": {
  5943. "200": {
  5944. "$ref": "#/responses/UserList"
  5945. }
  5946. }
  5947. }
  5948. },
  5949. "/users/{username}/gpg_keys": {
  5950. "get": {
  5951. "produces": [
  5952. "application/json"
  5953. ],
  5954. "tags": [
  5955. "user"
  5956. ],
  5957. "summary": "List the given user's GPG keys",
  5958. "operationId": "userListGPGKeys",
  5959. "parameters": [
  5960. {
  5961. "type": "string",
  5962. "description": "username of user",
  5963. "name": "username",
  5964. "in": "path",
  5965. "required": true
  5966. }
  5967. ],
  5968. "responses": {
  5969. "200": {
  5970. "$ref": "#/responses/GPGKeyList"
  5971. }
  5972. }
  5973. }
  5974. },
  5975. "/users/{username}/heatmap": {
  5976. "get": {
  5977. "produces": [
  5978. "application/json"
  5979. ],
  5980. "tags": [
  5981. "user"
  5982. ],
  5983. "summary": "Get a user's heatmap",
  5984. "operationId": "userGetHeatmapData",
  5985. "parameters": [
  5986. {
  5987. "type": "string",
  5988. "description": "username of user to get",
  5989. "name": "username",
  5990. "in": "path",
  5991. "required": true
  5992. }
  5993. ],
  5994. "responses": {
  5995. "200": {
  5996. "$ref": "#/responses/UserHeatmapData"
  5997. },
  5998. "404": {
  5999. "$ref": "#/responses/notFound"
  6000. }
  6001. }
  6002. }
  6003. },
  6004. "/users/{username}/keys": {
  6005. "get": {
  6006. "produces": [
  6007. "application/json"
  6008. ],
  6009. "tags": [
  6010. "user"
  6011. ],
  6012. "summary": "List the given user's public keys",
  6013. "operationId": "userListKeys",
  6014. "parameters": [
  6015. {
  6016. "type": "string",
  6017. "description": "username of user",
  6018. "name": "username",
  6019. "in": "path",
  6020. "required": true
  6021. },
  6022. {
  6023. "type": "string",
  6024. "description": "fingerprint of the key",
  6025. "name": "fingerprint",
  6026. "in": "query"
  6027. }
  6028. ],
  6029. "responses": {
  6030. "200": {
  6031. "$ref": "#/responses/PublicKeyList"
  6032. }
  6033. }
  6034. }
  6035. },
  6036. "/users/{username}/orgs": {
  6037. "get": {
  6038. "produces": [
  6039. "application/json"
  6040. ],
  6041. "tags": [
  6042. "organization"
  6043. ],
  6044. "summary": "List a user's organizations",
  6045. "operationId": "orgListUserOrgs",
  6046. "parameters": [
  6047. {
  6048. "type": "string",
  6049. "description": "username of user",
  6050. "name": "username",
  6051. "in": "path",
  6052. "required": true
  6053. }
  6054. ],
  6055. "responses": {
  6056. "200": {
  6057. "$ref": "#/responses/OrganizationList"
  6058. }
  6059. }
  6060. }
  6061. },
  6062. "/users/{username}/repos": {
  6063. "get": {
  6064. "produces": [
  6065. "application/json"
  6066. ],
  6067. "tags": [
  6068. "user"
  6069. ],
  6070. "summary": "List the repos owned by the given user",
  6071. "operationId": "userListRepos",
  6072. "parameters": [
  6073. {
  6074. "type": "string",
  6075. "description": "username of user",
  6076. "name": "username",
  6077. "in": "path",
  6078. "required": true
  6079. }
  6080. ],
  6081. "responses": {
  6082. "200": {
  6083. "$ref": "#/responses/RepositoryList"
  6084. }
  6085. }
  6086. }
  6087. },
  6088. "/users/{username}/starred": {
  6089. "get": {
  6090. "produces": [
  6091. "application/json"
  6092. ],
  6093. "tags": [
  6094. "user"
  6095. ],
  6096. "summary": "The repos that the given user has starred",
  6097. "operationId": "userListStarred",
  6098. "parameters": [
  6099. {
  6100. "type": "string",
  6101. "description": "username of user",
  6102. "name": "username",
  6103. "in": "path",
  6104. "required": true
  6105. }
  6106. ],
  6107. "responses": {
  6108. "200": {
  6109. "$ref": "#/responses/RepositoryList"
  6110. }
  6111. }
  6112. }
  6113. },
  6114. "/users/{username}/subscriptions": {
  6115. "get": {
  6116. "produces": [
  6117. "application/json"
  6118. ],
  6119. "tags": [
  6120. "user"
  6121. ],
  6122. "summary": "List the repositories watched by a user",
  6123. "operationId": "userListSubscriptions",
  6124. "parameters": [
  6125. {
  6126. "type": "string",
  6127. "description": "username of the user",
  6128. "name": "username",
  6129. "in": "path",
  6130. "required": true
  6131. }
  6132. ],
  6133. "responses": {
  6134. "200": {
  6135. "$ref": "#/responses/RepositoryList"
  6136. }
  6137. }
  6138. }
  6139. },
  6140. "/users/{username}/tokens": {
  6141. "get": {
  6142. "produces": [
  6143. "application/json"
  6144. ],
  6145. "tags": [
  6146. "user"
  6147. ],
  6148. "summary": "List the authenticated user's access tokens",
  6149. "operationId": "userGetTokens",
  6150. "parameters": [
  6151. {
  6152. "type": "string",
  6153. "description": "username of user",
  6154. "name": "username",
  6155. "in": "path",
  6156. "required": true
  6157. }
  6158. ],
  6159. "responses": {
  6160. "200": {
  6161. "$ref": "#/responses/AccessTokenList"
  6162. }
  6163. }
  6164. },
  6165. "post": {
  6166. "consumes": [
  6167. "application/json"
  6168. ],
  6169. "produces": [
  6170. "application/json"
  6171. ],
  6172. "tags": [
  6173. "user"
  6174. ],
  6175. "summary": "Create an access token",
  6176. "operationId": "userCreateToken",
  6177. "parameters": [
  6178. {
  6179. "type": "string",
  6180. "x-go-name": "Name",
  6181. "description": "username of user",
  6182. "name": "username",
  6183. "in": "path",
  6184. "required": true
  6185. },
  6186. {
  6187. "name": "accessToken",
  6188. "in": "body",
  6189. "schema": {
  6190. "type": "object",
  6191. "required": [
  6192. "name"
  6193. ],
  6194. "properties": {
  6195. "name": {
  6196. "type": "string"
  6197. }
  6198. }
  6199. }
  6200. }
  6201. ],
  6202. "responses": {
  6203. "200": {
  6204. "$ref": "#/responses/AccessToken"
  6205. }
  6206. }
  6207. }
  6208. },
  6209. "/users/{username}/tokens/{token}": {
  6210. "delete": {
  6211. "produces": [
  6212. "application/json"
  6213. ],
  6214. "tags": [
  6215. "user"
  6216. ],
  6217. "summary": "delete an access token",
  6218. "operationId": "userDeleteAccessToken",
  6219. "parameters": [
  6220. {
  6221. "type": "string",
  6222. "description": "username of user",
  6223. "name": "username",
  6224. "in": "path",
  6225. "required": true
  6226. },
  6227. {
  6228. "type": "integer",
  6229. "format": "int64",
  6230. "description": "token to be deleted",
  6231. "name": "token",
  6232. "in": "path",
  6233. "required": true
  6234. }
  6235. ],
  6236. "responses": {
  6237. "204": {
  6238. "$ref": "#/responses/empty"
  6239. }
  6240. }
  6241. }
  6242. },
  6243. "/version": {
  6244. "get": {
  6245. "produces": [
  6246. "application/json"
  6247. ],
  6248. "tags": [
  6249. "miscellaneous"
  6250. ],
  6251. "summary": "Returns the version of the Gitea application",
  6252. "operationId": "getVersion",
  6253. "responses": {
  6254. "200": {
  6255. "$ref": "#/responses/ServerVersion"
  6256. }
  6257. }
  6258. }
  6259. }
  6260. },
  6261. "definitions": {
  6262. "AddCollaboratorOption": {
  6263. "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
  6264. "type": "object",
  6265. "properties": {
  6266. "permission": {
  6267. "type": "string",
  6268. "x-go-name": "Permission"
  6269. }
  6270. },
  6271. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6272. },
  6273. "AddTimeOption": {
  6274. "description": "AddTimeOption options for adding time to an issue",
  6275. "type": "object",
  6276. "required": [
  6277. "time"
  6278. ],
  6279. "properties": {
  6280. "time": {
  6281. "description": "time in seconds",
  6282. "type": "integer",
  6283. "format": "int64",
  6284. "x-go-name": "Time"
  6285. }
  6286. },
  6287. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6288. },
  6289. "Attachment": {
  6290. "description": "Attachment a generic attachment",
  6291. "type": "object",
  6292. "properties": {
  6293. "browser_download_url": {
  6294. "type": "string",
  6295. "x-go-name": "DownloadURL"
  6296. },
  6297. "created_at": {
  6298. "type": "string",
  6299. "format": "date-time",
  6300. "x-go-name": "Created"
  6301. },
  6302. "download_count": {
  6303. "type": "integer",
  6304. "format": "int64",
  6305. "x-go-name": "DownloadCount"
  6306. },
  6307. "id": {
  6308. "type": "integer",
  6309. "format": "int64",
  6310. "x-go-name": "ID"
  6311. },
  6312. "name": {
  6313. "type": "string",
  6314. "x-go-name": "Name"
  6315. },
  6316. "size": {
  6317. "type": "integer",
  6318. "format": "int64",
  6319. "x-go-name": "Size"
  6320. },
  6321. "uuid": {
  6322. "type": "string",
  6323. "x-go-name": "UUID"
  6324. }
  6325. },
  6326. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6327. },
  6328. "Branch": {
  6329. "description": "Branch represents a repository branch",
  6330. "type": "object",
  6331. "properties": {
  6332. "commit": {
  6333. "$ref": "#/definitions/PayloadCommit"
  6334. },
  6335. "name": {
  6336. "type": "string",
  6337. "x-go-name": "Name"
  6338. }
  6339. },
  6340. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6341. },
  6342. "Comment": {
  6343. "description": "Comment represents a comment on a commit or issue",
  6344. "type": "object",
  6345. "properties": {
  6346. "body": {
  6347. "type": "string",
  6348. "x-go-name": "Body"
  6349. },
  6350. "created_at": {
  6351. "type": "string",
  6352. "format": "date-time",
  6353. "x-go-name": "Created"
  6354. },
  6355. "html_url": {
  6356. "type": "string",
  6357. "x-go-name": "HTMLURL"
  6358. },
  6359. "id": {
  6360. "type": "integer",
  6361. "format": "int64",
  6362. "x-go-name": "ID"
  6363. },
  6364. "issue_url": {
  6365. "type": "string",
  6366. "x-go-name": "IssueURL"
  6367. },
  6368. "pull_request_url": {
  6369. "type": "string",
  6370. "x-go-name": "PRURL"
  6371. },
  6372. "updated_at": {
  6373. "type": "string",
  6374. "format": "date-time",
  6375. "x-go-name": "Updated"
  6376. },
  6377. "user": {
  6378. "$ref": "#/definitions/User"
  6379. }
  6380. },
  6381. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6382. },
  6383. "Commit": {
  6384. "type": "object",
  6385. "title": "Commit contains information generated from a Git commit.",
  6386. "properties": {
  6387. "author": {
  6388. "$ref": "#/definitions/User"
  6389. },
  6390. "commit": {
  6391. "$ref": "#/definitions/RepoCommit"
  6392. },
  6393. "committer": {
  6394. "$ref": "#/definitions/User"
  6395. },
  6396. "html_url": {
  6397. "type": "string",
  6398. "x-go-name": "HTMLURL"
  6399. },
  6400. "parents": {
  6401. "type": "array",
  6402. "items": {
  6403. "$ref": "#/definitions/CommitMeta"
  6404. },
  6405. "x-go-name": "Parents"
  6406. },
  6407. "sha": {
  6408. "type": "string",
  6409. "x-go-name": "SHA"
  6410. },
  6411. "url": {
  6412. "type": "string",
  6413. "x-go-name": "URL"
  6414. }
  6415. },
  6416. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6417. },
  6418. "CommitMeta": {
  6419. "type": "object",
  6420. "title": "CommitMeta contains meta information of a commit in terms of API.",
  6421. "properties": {
  6422. "sha": {
  6423. "type": "string",
  6424. "x-go-name": "SHA"
  6425. },
  6426. "url": {
  6427. "type": "string",
  6428. "x-go-name": "URL"
  6429. }
  6430. },
  6431. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6432. },
  6433. "CommitUser": {
  6434. "type": "object",
  6435. "title": "CommitUser contains information of a user in the context of a commit.",
  6436. "properties": {
  6437. "date": {
  6438. "type": "string",
  6439. "x-go-name": "Date"
  6440. },
  6441. "email": {
  6442. "type": "string",
  6443. "x-go-name": "Email"
  6444. },
  6445. "name": {
  6446. "type": "string",
  6447. "x-go-name": "Name"
  6448. }
  6449. },
  6450. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6451. },
  6452. "CreateEmailOption": {
  6453. "description": "CreateEmailOption options when creating email addresses",
  6454. "type": "object",
  6455. "properties": {
  6456. "emails": {
  6457. "description": "email addresses to add",
  6458. "type": "array",
  6459. "items": {
  6460. "type": "string"
  6461. },
  6462. "x-go-name": "Emails"
  6463. }
  6464. },
  6465. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6466. },
  6467. "CreateForkOption": {
  6468. "description": "CreateForkOption options for creating a fork",
  6469. "type": "object",
  6470. "properties": {
  6471. "organization": {
  6472. "description": "organization name, if forking into an organization",
  6473. "type": "string",
  6474. "x-go-name": "Organization"
  6475. }
  6476. },
  6477. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6478. },
  6479. "CreateGPGKeyOption": {
  6480. "description": "CreateGPGKeyOption options create user GPG key",
  6481. "type": "object",
  6482. "required": [
  6483. "armored_public_key"
  6484. ],
  6485. "properties": {
  6486. "armored_public_key": {
  6487. "description": "An armored GPG key to add",
  6488. "type": "string",
  6489. "uniqueItems": true,
  6490. "x-go-name": "ArmoredKey"
  6491. }
  6492. },
  6493. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6494. },
  6495. "CreateHookOption": {
  6496. "description": "CreateHookOption options when create a hook",
  6497. "type": "object",
  6498. "required": [
  6499. "type",
  6500. "config"
  6501. ],
  6502. "properties": {
  6503. "active": {
  6504. "type": "boolean",
  6505. "default": false,
  6506. "x-go-name": "Active"
  6507. },
  6508. "config": {
  6509. "type": "object",
  6510. "additionalProperties": {
  6511. "type": "string"
  6512. },
  6513. "x-go-name": "Config"
  6514. },
  6515. "events": {
  6516. "type": "array",
  6517. "items": {
  6518. "type": "string"
  6519. },
  6520. "x-go-name": "Events"
  6521. },
  6522. "type": {
  6523. "type": "string",
  6524. "enum": [
  6525. "gitea",
  6526. "gogs",
  6527. "slack",
  6528. "discord"
  6529. ],
  6530. "x-go-name": "Type"
  6531. }
  6532. },
  6533. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6534. },
  6535. "CreateIssueCommentOption": {
  6536. "description": "CreateIssueCommentOption options for creating a comment on an issue",
  6537. "type": "object",
  6538. "required": [
  6539. "body"
  6540. ],
  6541. "properties": {
  6542. "body": {
  6543. "type": "string",
  6544. "x-go-name": "Body"
  6545. }
  6546. },
  6547. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6548. },
  6549. "CreateIssueOption": {
  6550. "description": "CreateIssueOption options to create one issue",
  6551. "type": "object",
  6552. "required": [
  6553. "title"
  6554. ],
  6555. "properties": {
  6556. "assignee": {
  6557. "description": "username of assignee",
  6558. "type": "string",
  6559. "x-go-name": "Assignee"
  6560. },
  6561. "assignees": {
  6562. "type": "array",
  6563. "items": {
  6564. "type": "string"
  6565. },
  6566. "x-go-name": "Assignees"
  6567. },
  6568. "body": {
  6569. "type": "string",
  6570. "x-go-name": "Body"
  6571. },
  6572. "closed": {
  6573. "type": "boolean",
  6574. "x-go-name": "Closed"
  6575. },
  6576. "due_date": {
  6577. "type": "string",
  6578. "format": "date-time",
  6579. "x-go-name": "Deadline"
  6580. },
  6581. "labels": {
  6582. "description": "list of label ids",
  6583. "type": "array",
  6584. "items": {
  6585. "type": "integer",
  6586. "format": "int64"
  6587. },
  6588. "x-go-name": "Labels"
  6589. },
  6590. "milestone": {
  6591. "description": "milestone id",
  6592. "type": "integer",
  6593. "format": "int64",
  6594. "x-go-name": "Milestone"
  6595. },
  6596. "title": {
  6597. "type": "string",
  6598. "x-go-name": "Title"
  6599. }
  6600. },
  6601. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6602. },
  6603. "CreateKeyOption": {
  6604. "description": "CreateKeyOption options when creating a key",
  6605. "type": "object",
  6606. "required": [
  6607. "title",
  6608. "key"
  6609. ],
  6610. "properties": {
  6611. "key": {
  6612. "description": "An armored SSH key to add",
  6613. "type": "string",
  6614. "uniqueItems": true,
  6615. "x-go-name": "Key"
  6616. },
  6617. "read_only": {
  6618. "description": "Describe if the key has only read access or read/write",
  6619. "type": "boolean",
  6620. "x-go-name": "ReadOnly"
  6621. },
  6622. "title": {
  6623. "description": "Title of the key to add",
  6624. "type": "string",
  6625. "uniqueItems": true,
  6626. "x-go-name": "Title"
  6627. }
  6628. },
  6629. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6630. },
  6631. "CreateLabelOption": {
  6632. "description": "CreateLabelOption options for creating a label",
  6633. "type": "object",
  6634. "required": [
  6635. "name",
  6636. "color"
  6637. ],
  6638. "properties": {
  6639. "color": {
  6640. "type": "string",
  6641. "x-go-name": "Color",
  6642. "example": "#00aabb"
  6643. },
  6644. "name": {
  6645. "type": "string",
  6646. "x-go-name": "Name"
  6647. }
  6648. },
  6649. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6650. },
  6651. "CreateMilestoneOption": {
  6652. "description": "CreateMilestoneOption options for creating a milestone",
  6653. "type": "object",
  6654. "properties": {
  6655. "description": {
  6656. "type": "string",
  6657. "x-go-name": "Description"
  6658. },
  6659. "due_on": {
  6660. "type": "string",
  6661. "format": "date-time",
  6662. "x-go-name": "Deadline"
  6663. },
  6664. "title": {
  6665. "type": "string",
  6666. "x-go-name": "Title"
  6667. }
  6668. },
  6669. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6670. },
  6671. "CreateOrgOption": {
  6672. "description": "CreateOrgOption options for creating an organization",
  6673. "type": "object",
  6674. "required": [
  6675. "username"
  6676. ],
  6677. "properties": {
  6678. "description": {
  6679. "type": "string",
  6680. "x-go-name": "Description"
  6681. },
  6682. "full_name": {
  6683. "type": "string",
  6684. "x-go-name": "FullName"
  6685. },
  6686. "location": {
  6687. "type": "string",
  6688. "x-go-name": "Location"
  6689. },
  6690. "username": {
  6691. "type": "string",
  6692. "x-go-name": "UserName"
  6693. },
  6694. "website": {
  6695. "type": "string",
  6696. "x-go-name": "Website"
  6697. }
  6698. },
  6699. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6700. },
  6701. "CreatePullRequestOption": {
  6702. "description": "CreatePullRequestOption options when creating a pull request",
  6703. "type": "object",
  6704. "properties": {
  6705. "assignee": {
  6706. "type": "string",
  6707. "x-go-name": "Assignee"
  6708. },
  6709. "assignees": {
  6710. "type": "array",
  6711. "items": {
  6712. "type": "string"
  6713. },
  6714. "x-go-name": "Assignees"
  6715. },
  6716. "base": {
  6717. "type": "string",
  6718. "x-go-name": "Base"
  6719. },
  6720. "body": {
  6721. "type": "string",
  6722. "x-go-name": "Body"
  6723. },
  6724. "due_date": {
  6725. "type": "string",
  6726. "format": "date-time",
  6727. "x-go-name": "Deadline"
  6728. },
  6729. "head": {
  6730. "type": "string",
  6731. "x-go-name": "Head"
  6732. },
  6733. "labels": {
  6734. "type": "array",
  6735. "items": {
  6736. "type": "integer",
  6737. "format": "int64"
  6738. },
  6739. "x-go-name": "Labels"
  6740. },
  6741. "milestone": {
  6742. "type": "integer",
  6743. "format": "int64",
  6744. "x-go-name": "Milestone"
  6745. },
  6746. "title": {
  6747. "type": "string",
  6748. "x-go-name": "Title"
  6749. }
  6750. },
  6751. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6752. },
  6753. "CreateReleaseOption": {
  6754. "description": "CreateReleaseOption options when creating a release",
  6755. "type": "object",
  6756. "required": [
  6757. "tag_name"
  6758. ],
  6759. "properties": {
  6760. "body": {
  6761. "type": "string",
  6762. "x-go-name": "Note"
  6763. },
  6764. "draft": {
  6765. "type": "boolean",
  6766. "x-go-name": "IsDraft"
  6767. },
  6768. "name": {
  6769. "type": "string",
  6770. "x-go-name": "Title"
  6771. },
  6772. "prerelease": {
  6773. "type": "boolean",
  6774. "x-go-name": "IsPrerelease"
  6775. },
  6776. "tag_name": {
  6777. "type": "string",
  6778. "x-go-name": "TagName"
  6779. },
  6780. "target_commitish": {
  6781. "type": "string",
  6782. "x-go-name": "Target"
  6783. }
  6784. },
  6785. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6786. },
  6787. "CreateRepoOption": {
  6788. "description": "CreateRepoOption options when creating repository",
  6789. "type": "object",
  6790. "required": [
  6791. "name"
  6792. ],
  6793. "properties": {
  6794. "auto_init": {
  6795. "description": "Whether the repository should be auto-intialized?",
  6796. "type": "boolean",
  6797. "x-go-name": "AutoInit"
  6798. },
  6799. "description": {
  6800. "description": "Description of the repository to create",
  6801. "type": "string",
  6802. "x-go-name": "Description"
  6803. },
  6804. "gitignores": {
  6805. "description": "Gitignores to use",
  6806. "type": "string",
  6807. "x-go-name": "Gitignores"
  6808. },
  6809. "license": {
  6810. "description": "License to use",
  6811. "type": "string",
  6812. "x-go-name": "License"
  6813. },
  6814. "name": {
  6815. "description": "Name of the repository to create",
  6816. "type": "string",
  6817. "uniqueItems": true,
  6818. "x-go-name": "Name"
  6819. },
  6820. "private": {
  6821. "description": "Whether the repository is private",
  6822. "type": "boolean",
  6823. "x-go-name": "Private"
  6824. },
  6825. "readme": {
  6826. "description": "Readme of the repository to create",
  6827. "type": "string",
  6828. "x-go-name": "Readme"
  6829. }
  6830. },
  6831. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6832. },
  6833. "CreateStatusOption": {
  6834. "description": "CreateStatusOption holds the information needed to create a new Status for a Commit",
  6835. "type": "object",
  6836. "properties": {
  6837. "context": {
  6838. "type": "string",
  6839. "x-go-name": "Context"
  6840. },
  6841. "description": {
  6842. "type": "string",
  6843. "x-go-name": "Description"
  6844. },
  6845. "state": {
  6846. "$ref": "#/definitions/StatusState"
  6847. },
  6848. "target_url": {
  6849. "type": "string",
  6850. "x-go-name": "TargetURL"
  6851. }
  6852. },
  6853. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6854. },
  6855. "CreateTeamOption": {
  6856. "description": "CreateTeamOption options for creating a team",
  6857. "type": "object",
  6858. "required": [
  6859. "name"
  6860. ],
  6861. "properties": {
  6862. "description": {
  6863. "type": "string",
  6864. "x-go-name": "Description"
  6865. },
  6866. "name": {
  6867. "type": "string",
  6868. "x-go-name": "Name"
  6869. },
  6870. "permission": {
  6871. "type": "string",
  6872. "enum": [
  6873. "read",
  6874. "write",
  6875. "admin"
  6876. ],
  6877. "x-go-name": "Permission"
  6878. },
  6879. "units": {
  6880. "type": "array",
  6881. "enum": [
  6882. "repo.code",
  6883. "repo.issues",
  6884. "repo.ext_issues",
  6885. "repo.wiki",
  6886. "repo.pulls",
  6887. "repo.releases",
  6888. "repo.ext_wiki"
  6889. ],
  6890. "items": {
  6891. "type": "string"
  6892. },
  6893. "x-go-name": "Units"
  6894. }
  6895. },
  6896. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6897. },
  6898. "CreateUserOption": {
  6899. "description": "CreateUserOption create user options",
  6900. "type": "object",
  6901. "required": [
  6902. "username",
  6903. "email",
  6904. "password"
  6905. ],
  6906. "properties": {
  6907. "email": {
  6908. "type": "string",
  6909. "format": "email",
  6910. "x-go-name": "Email"
  6911. },
  6912. "full_name": {
  6913. "type": "string",
  6914. "x-go-name": "FullName"
  6915. },
  6916. "login_name": {
  6917. "type": "string",
  6918. "x-go-name": "LoginName"
  6919. },
  6920. "password": {
  6921. "type": "string",
  6922. "x-go-name": "Password"
  6923. },
  6924. "send_notify": {
  6925. "type": "boolean",
  6926. "x-go-name": "SendNotify"
  6927. },
  6928. "source_id": {
  6929. "type": "integer",
  6930. "format": "int64",
  6931. "x-go-name": "SourceID"
  6932. },
  6933. "username": {
  6934. "type": "string",
  6935. "x-go-name": "Username"
  6936. }
  6937. },
  6938. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6939. },
  6940. "DeleteEmailOption": {
  6941. "description": "DeleteEmailOption options when deleting email addresses",
  6942. "type": "object",
  6943. "properties": {
  6944. "emails": {
  6945. "description": "email addresses to delete",
  6946. "type": "array",
  6947. "items": {
  6948. "type": "string"
  6949. },
  6950. "x-go-name": "Emails"
  6951. }
  6952. },
  6953. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6954. },
  6955. "DeployKey": {
  6956. "description": "DeployKey a deploy key",
  6957. "type": "object",
  6958. "properties": {
  6959. "created_at": {
  6960. "type": "string",
  6961. "format": "date-time",
  6962. "x-go-name": "Created"
  6963. },
  6964. "fingerprint": {
  6965. "type": "string",
  6966. "x-go-name": "Fingerprint"
  6967. },
  6968. "id": {
  6969. "type": "integer",
  6970. "format": "int64",
  6971. "x-go-name": "ID"
  6972. },
  6973. "key": {
  6974. "type": "string",
  6975. "x-go-name": "Key"
  6976. },
  6977. "key_id": {
  6978. "type": "integer",
  6979. "format": "int64",
  6980. "x-go-name": "KeyID"
  6981. },
  6982. "read_only": {
  6983. "type": "boolean",
  6984. "x-go-name": "ReadOnly"
  6985. },
  6986. "repository": {
  6987. "$ref": "#/definitions/Repository"
  6988. },
  6989. "title": {
  6990. "type": "string",
  6991. "x-go-name": "Title"
  6992. },
  6993. "url": {
  6994. "type": "string",
  6995. "x-go-name": "URL"
  6996. }
  6997. },
  6998. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6999. },
  7000. "EditAttachmentOptions": {
  7001. "description": "EditAttachmentOptions options for editing attachments",
  7002. "type": "object",
  7003. "properties": {
  7004. "name": {
  7005. "type": "string",
  7006. "x-go-name": "Name"
  7007. }
  7008. },
  7009. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7010. },
  7011. "EditDeadlineOption": {
  7012. "description": "EditDeadlineOption options for creating a deadline",
  7013. "type": "object",
  7014. "required": [
  7015. "due_date"
  7016. ],
  7017. "properties": {
  7018. "due_date": {
  7019. "type": "string",
  7020. "format": "date-time",
  7021. "x-go-name": "Deadline"
  7022. }
  7023. },
  7024. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7025. },
  7026. "EditHookOption": {
  7027. "description": "EditHookOption options when modify one hook",
  7028. "type": "object",
  7029. "properties": {
  7030. "active": {
  7031. "type": "boolean",
  7032. "x-go-name": "Active"
  7033. },
  7034. "config": {
  7035. "type": "object",
  7036. "additionalProperties": {
  7037. "type": "string"
  7038. },
  7039. "x-go-name": "Config"
  7040. },
  7041. "events": {
  7042. "type": "array",
  7043. "items": {
  7044. "type": "string"
  7045. },
  7046. "x-go-name": "Events"
  7047. }
  7048. },
  7049. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7050. },
  7051. "EditIssueCommentOption": {
  7052. "description": "EditIssueCommentOption options for editing a comment",
  7053. "type": "object",
  7054. "required": [
  7055. "body"
  7056. ],
  7057. "properties": {
  7058. "body": {
  7059. "type": "string",
  7060. "x-go-name": "Body"
  7061. }
  7062. },
  7063. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7064. },
  7065. "EditIssueOption": {
  7066. "description": "EditIssueOption options for editing an issue",
  7067. "type": "object",
  7068. "properties": {
  7069. "assignee": {
  7070. "type": "string",
  7071. "x-go-name": "Assignee"
  7072. },
  7073. "assignees": {
  7074. "type": "array",
  7075. "items": {
  7076. "type": "string"
  7077. },
  7078. "x-go-name": "Assignees"
  7079. },
  7080. "body": {
  7081. "type": "string",
  7082. "x-go-name": "Body"
  7083. },
  7084. "due_date": {
  7085. "type": "string",
  7086. "format": "date-time",
  7087. "x-go-name": "Deadline"
  7088. },
  7089. "milestone": {
  7090. "type": "integer",
  7091. "format": "int64",
  7092. "x-go-name": "Milestone"
  7093. },
  7094. "state": {
  7095. "type": "string",
  7096. "x-go-name": "State"
  7097. },
  7098. "title": {
  7099. "type": "string",
  7100. "x-go-name": "Title"
  7101. }
  7102. },
  7103. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7104. },
  7105. "EditLabelOption": {
  7106. "description": "EditLabelOption options for editing a label",
  7107. "type": "object",
  7108. "properties": {
  7109. "color": {
  7110. "type": "string",
  7111. "x-go-name": "Color"
  7112. },
  7113. "name": {
  7114. "type": "string",
  7115. "x-go-name": "Name"
  7116. }
  7117. },
  7118. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7119. },
  7120. "EditMilestoneOption": {
  7121. "description": "EditMilestoneOption options for editing a milestone",
  7122. "type": "object",
  7123. "properties": {
  7124. "description": {
  7125. "type": "string",
  7126. "x-go-name": "Description"
  7127. },
  7128. "due_on": {
  7129. "type": "string",
  7130. "format": "date-time",
  7131. "x-go-name": "Deadline"
  7132. },
  7133. "state": {
  7134. "type": "string",
  7135. "x-go-name": "State"
  7136. },
  7137. "title": {
  7138. "type": "string",
  7139. "x-go-name": "Title"
  7140. }
  7141. },
  7142. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7143. },
  7144. "EditOrgOption": {
  7145. "description": "EditOrgOption options for editing an organization",
  7146. "type": "object",
  7147. "properties": {
  7148. "description": {
  7149. "type": "string",
  7150. "x-go-name": "Description"
  7151. },
  7152. "full_name": {
  7153. "type": "string",
  7154. "x-go-name": "FullName"
  7155. },
  7156. "location": {
  7157. "type": "string",
  7158. "x-go-name": "Location"
  7159. },
  7160. "website": {
  7161. "type": "string",
  7162. "x-go-name": "Website"
  7163. }
  7164. },
  7165. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7166. },
  7167. "EditPullRequestOption": {
  7168. "description": "EditPullRequestOption options when modify pull request",
  7169. "type": "object",
  7170. "properties": {
  7171. "assignee": {
  7172. "type": "string",
  7173. "x-go-name": "Assignee"
  7174. },
  7175. "assignees": {
  7176. "type": "array",
  7177. "items": {
  7178. "type": "string"
  7179. },
  7180. "x-go-name": "Assignees"
  7181. },
  7182. "body": {
  7183. "type": "string",
  7184. "x-go-name": "Body"
  7185. },
  7186. "due_date": {
  7187. "type": "string",
  7188. "format": "date-time",
  7189. "x-go-name": "Deadline"
  7190. },
  7191. "labels": {
  7192. "type": "array",
  7193. "items": {
  7194. "type": "integer",
  7195. "format": "int64"
  7196. },
  7197. "x-go-name": "Labels"
  7198. },
  7199. "milestone": {
  7200. "type": "integer",
  7201. "format": "int64",
  7202. "x-go-name": "Milestone"
  7203. },
  7204. "state": {
  7205. "type": "string",
  7206. "x-go-name": "State"
  7207. },
  7208. "title": {
  7209. "type": "string",
  7210. "x-go-name": "Title"
  7211. }
  7212. },
  7213. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7214. },
  7215. "EditReleaseOption": {
  7216. "description": "EditReleaseOption options when editing a release",
  7217. "type": "object",
  7218. "properties": {
  7219. "body": {
  7220. "type": "string",
  7221. "x-go-name": "Note"
  7222. },
  7223. "draft": {
  7224. "type": "boolean",
  7225. "x-go-name": "IsDraft"
  7226. },
  7227. "name": {
  7228. "type": "string",
  7229. "x-go-name": "Title"
  7230. },
  7231. "prerelease": {
  7232. "type": "boolean",
  7233. "x-go-name": "IsPrerelease"
  7234. },
  7235. "tag_name": {
  7236. "type": "string",
  7237. "x-go-name": "TagName"
  7238. },
  7239. "target_commitish": {
  7240. "type": "string",
  7241. "x-go-name": "Target"
  7242. }
  7243. },
  7244. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7245. },
  7246. "EditTeamOption": {
  7247. "description": "EditTeamOption options for editing a team",
  7248. "type": "object",
  7249. "required": [
  7250. "name"
  7251. ],
  7252. "properties": {
  7253. "description": {
  7254. "type": "string",
  7255. "x-go-name": "Description"
  7256. },
  7257. "name": {
  7258. "type": "string",
  7259. "x-go-name": "Name"
  7260. },
  7261. "permission": {
  7262. "type": "string",
  7263. "enum": [
  7264. "read",
  7265. "write",
  7266. "admin"
  7267. ],
  7268. "x-go-name": "Permission"
  7269. },
  7270. "units": {
  7271. "type": "array",
  7272. "enum": [
  7273. "repo.code",
  7274. "repo.issues",
  7275. "repo.ext_issues",
  7276. "repo.wiki",
  7277. "repo.pulls",
  7278. "repo.releases",
  7279. "repo.ext_wiki"
  7280. ],
  7281. "items": {
  7282. "type": "string"
  7283. },
  7284. "x-go-name": "Units"
  7285. }
  7286. },
  7287. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7288. },
  7289. "EditUserOption": {
  7290. "description": "EditUserOption edit user options",
  7291. "type": "object",
  7292. "required": [
  7293. "email"
  7294. ],
  7295. "properties": {
  7296. "active": {
  7297. "type": "boolean",
  7298. "x-go-name": "Active"
  7299. },
  7300. "admin": {
  7301. "type": "boolean",
  7302. "x-go-name": "Admin"
  7303. },
  7304. "allow_create_organization": {
  7305. "type": "boolean",
  7306. "x-go-name": "AllowCreateOrganization"
  7307. },
  7308. "allow_git_hook": {
  7309. "type": "boolean",
  7310. "x-go-name": "AllowGitHook"
  7311. },
  7312. "allow_import_local": {
  7313. "type": "boolean",
  7314. "x-go-name": "AllowImportLocal"
  7315. },
  7316. "email": {
  7317. "type": "string",
  7318. "format": "email",
  7319. "x-go-name": "Email"
  7320. },
  7321. "full_name": {
  7322. "type": "string",
  7323. "x-go-name": "FullName"
  7324. },
  7325. "location": {
  7326. "type": "string",
  7327. "x-go-name": "Location"
  7328. },
  7329. "login_name": {
  7330. "type": "string",
  7331. "x-go-name": "LoginName"
  7332. },
  7333. "max_repo_creation": {
  7334. "type": "integer",
  7335. "format": "int64",
  7336. "x-go-name": "MaxRepoCreation"
  7337. },
  7338. "password": {
  7339. "type": "string",
  7340. "x-go-name": "Password"
  7341. },
  7342. "prohibit_login": {
  7343. "type": "boolean",
  7344. "x-go-name": "ProhibitLogin"
  7345. },
  7346. "source_id": {
  7347. "type": "integer",
  7348. "format": "int64",
  7349. "x-go-name": "SourceID"
  7350. },
  7351. "website": {
  7352. "type": "string",
  7353. "x-go-name": "Website"
  7354. }
  7355. },
  7356. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7357. },
  7358. "Email": {
  7359. "description": "Email an email address belonging to a user",
  7360. "type": "object",
  7361. "properties": {
  7362. "email": {
  7363. "type": "string",
  7364. "format": "email",
  7365. "x-go-name": "Email"
  7366. },
  7367. "primary": {
  7368. "type": "boolean",
  7369. "x-go-name": "Primary"
  7370. },
  7371. "verified": {
  7372. "type": "boolean",
  7373. "x-go-name": "Verified"
  7374. }
  7375. },
  7376. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7377. },
  7378. "GPGKey": {
  7379. "description": "GPGKey a user GPG key to sign commit and tag in repository",
  7380. "type": "object",
  7381. "properties": {
  7382. "can_certify": {
  7383. "type": "boolean",
  7384. "x-go-name": "CanCertify"
  7385. },
  7386. "can_encrypt_comms": {
  7387. "type": "boolean",
  7388. "x-go-name": "CanEncryptComms"
  7389. },
  7390. "can_encrypt_storage": {
  7391. "type": "boolean",
  7392. "x-go-name": "CanEncryptStorage"
  7393. },
  7394. "can_sign": {
  7395. "type": "boolean",
  7396. "x-go-name": "CanSign"
  7397. },
  7398. "created_at": {
  7399. "type": "string",
  7400. "format": "date-time",
  7401. "x-go-name": "Created"
  7402. },
  7403. "emails": {
  7404. "type": "array",
  7405. "items": {
  7406. "$ref": "#/definitions/GPGKeyEmail"
  7407. },
  7408. "x-go-name": "Emails"
  7409. },
  7410. "expires_at": {
  7411. "type": "string",
  7412. "format": "date-time",
  7413. "x-go-name": "Expires"
  7414. },
  7415. "id": {
  7416. "type": "integer",
  7417. "format": "int64",
  7418. "x-go-name": "ID"
  7419. },
  7420. "key_id": {
  7421. "type": "string",
  7422. "x-go-name": "KeyID"
  7423. },
  7424. "primary_key_id": {
  7425. "type": "string",
  7426. "x-go-name": "PrimaryKeyID"
  7427. },
  7428. "public_key": {
  7429. "type": "string",
  7430. "x-go-name": "PublicKey"
  7431. },
  7432. "subkeys": {
  7433. "type": "array",
  7434. "items": {
  7435. "$ref": "#/definitions/GPGKey"
  7436. },
  7437. "x-go-name": "SubsKey"
  7438. }
  7439. },
  7440. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7441. },
  7442. "GPGKeyEmail": {
  7443. "description": "GPGKeyEmail an email attached to a GPGKey",
  7444. "type": "object",
  7445. "properties": {
  7446. "email": {
  7447. "type": "string",
  7448. "x-go-name": "Email"
  7449. },
  7450. "verified": {
  7451. "type": "boolean",
  7452. "x-go-name": "Verified"
  7453. }
  7454. },
  7455. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7456. },
  7457. "GitEntry": {
  7458. "description": "GitEntry represents a git tree",
  7459. "type": "object",
  7460. "properties": {
  7461. "mode": {
  7462. "type": "string",
  7463. "x-go-name": "Mode"
  7464. },
  7465. "path": {
  7466. "type": "string",
  7467. "x-go-name": "Path"
  7468. },
  7469. "sha": {
  7470. "type": "string",
  7471. "x-go-name": "SHA"
  7472. },
  7473. "size": {
  7474. "type": "integer",
  7475. "format": "int64",
  7476. "x-go-name": "Size"
  7477. },
  7478. "type": {
  7479. "type": "string",
  7480. "x-go-name": "Type"
  7481. },
  7482. "url": {
  7483. "type": "string",
  7484. "x-go-name": "URL"
  7485. }
  7486. },
  7487. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7488. },
  7489. "GitObject": {
  7490. "type": "object",
  7491. "title": "GitObject represents a Git object.",
  7492. "properties": {
  7493. "sha": {
  7494. "type": "string",
  7495. "x-go-name": "SHA"
  7496. },
  7497. "type": {
  7498. "type": "string",
  7499. "x-go-name": "Type"
  7500. },
  7501. "url": {
  7502. "type": "string",
  7503. "x-go-name": "URL"
  7504. }
  7505. },
  7506. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7507. },
  7508. "GitTreeResponse": {
  7509. "description": "GitTreeResponse returns a git tree",
  7510. "type": "object",
  7511. "properties": {
  7512. "page": {
  7513. "type": "integer",
  7514. "format": "int64",
  7515. "x-go-name": "Page"
  7516. },
  7517. "sha": {
  7518. "type": "string",
  7519. "x-go-name": "SHA"
  7520. },
  7521. "total_count": {
  7522. "type": "integer",
  7523. "format": "int64",
  7524. "x-go-name": "TotalCount"
  7525. },
  7526. "tree": {
  7527. "type": "array",
  7528. "items": {
  7529. "$ref": "#/definitions/GitEntry"
  7530. },
  7531. "x-go-name": "Entries"
  7532. },
  7533. "truncated": {
  7534. "type": "boolean",
  7535. "x-go-name": "Truncated"
  7536. },
  7537. "url": {
  7538. "type": "string",
  7539. "x-go-name": "URL"
  7540. }
  7541. },
  7542. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7543. },
  7544. "Issue": {
  7545. "description": "Issue represents an issue in a repository",
  7546. "type": "object",
  7547. "properties": {
  7548. "assignee": {
  7549. "$ref": "#/definitions/User"
  7550. },
  7551. "assignees": {
  7552. "type": "array",
  7553. "items": {
  7554. "$ref": "#/definitions/User"
  7555. },
  7556. "x-go-name": "Assignees"
  7557. },
  7558. "body": {
  7559. "type": "string",
  7560. "x-go-name": "Body"
  7561. },
  7562. "closed_at": {
  7563. "type": "string",
  7564. "format": "date-time",
  7565. "x-go-name": "Closed"
  7566. },
  7567. "comments": {
  7568. "type": "integer",
  7569. "format": "int64",
  7570. "x-go-name": "Comments"
  7571. },
  7572. "created_at": {
  7573. "type": "string",
  7574. "format": "date-time",
  7575. "x-go-name": "Created"
  7576. },
  7577. "due_date": {
  7578. "type": "string",
  7579. "format": "date-time",
  7580. "x-go-name": "Deadline"
  7581. },
  7582. "id": {
  7583. "type": "integer",
  7584. "format": "int64",
  7585. "x-go-name": "ID"
  7586. },
  7587. "labels": {
  7588. "type": "array",
  7589. "items": {
  7590. "$ref": "#/definitions/Label"
  7591. },
  7592. "x-go-name": "Labels"
  7593. },
  7594. "milestone": {
  7595. "$ref": "#/definitions/Milestone"
  7596. },
  7597. "number": {
  7598. "type": "integer",
  7599. "format": "int64",
  7600. "x-go-name": "Index"
  7601. },
  7602. "pull_request": {
  7603. "$ref": "#/definitions/PullRequestMeta"
  7604. },
  7605. "state": {
  7606. "$ref": "#/definitions/StateType"
  7607. },
  7608. "title": {
  7609. "type": "string",
  7610. "x-go-name": "Title"
  7611. },
  7612. "updated_at": {
  7613. "type": "string",
  7614. "format": "date-time",
  7615. "x-go-name": "Updated"
  7616. },
  7617. "url": {
  7618. "type": "string",
  7619. "x-go-name": "URL"
  7620. },
  7621. "user": {
  7622. "$ref": "#/definitions/User"
  7623. }
  7624. },
  7625. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7626. },
  7627. "IssueDeadline": {
  7628. "description": "IssueDeadline represents an issue deadline",
  7629. "type": "object",
  7630. "properties": {
  7631. "due_date": {
  7632. "type": "string",
  7633. "format": "date-time",
  7634. "x-go-name": "Deadline"
  7635. }
  7636. },
  7637. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7638. },
  7639. "IssueLabelsOption": {
  7640. "description": "IssueLabelsOption a collection of labels",
  7641. "type": "object",
  7642. "properties": {
  7643. "labels": {
  7644. "description": "list of label IDs",
  7645. "type": "array",
  7646. "items": {
  7647. "type": "integer",
  7648. "format": "int64"
  7649. },
  7650. "x-go-name": "Labels"
  7651. }
  7652. },
  7653. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7654. },
  7655. "Label": {
  7656. "description": "Label a label to an issue or a pr",
  7657. "type": "object",
  7658. "properties": {
  7659. "color": {
  7660. "type": "string",
  7661. "x-go-name": "Color",
  7662. "example": "00aabb"
  7663. },
  7664. "id": {
  7665. "type": "integer",
  7666. "format": "int64",
  7667. "x-go-name": "ID"
  7668. },
  7669. "name": {
  7670. "type": "string",
  7671. "x-go-name": "Name"
  7672. },
  7673. "url": {
  7674. "type": "string",
  7675. "x-go-name": "URL"
  7676. }
  7677. },
  7678. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7679. },
  7680. "MarkdownOption": {
  7681. "description": "MarkdownOption markdown options",
  7682. "type": "object",
  7683. "properties": {
  7684. "Context": {
  7685. "description": "Context to render\n\nin: body",
  7686. "type": "string"
  7687. },
  7688. "Mode": {
  7689. "description": "Mode to render\n\nin: body",
  7690. "type": "string"
  7691. },
  7692. "Text": {
  7693. "description": "Text markdown to render\n\nin: body",
  7694. "type": "string"
  7695. },
  7696. "Wiki": {
  7697. "description": "Is it a wiki page ?\n\nin: body",
  7698. "type": "boolean"
  7699. }
  7700. },
  7701. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7702. },
  7703. "MigrateRepoForm": {
  7704. "description": "MigrateRepoForm form for migrating repository",
  7705. "type": "object",
  7706. "required": [
  7707. "clone_addr",
  7708. "uid",
  7709. "repo_name"
  7710. ],
  7711. "properties": {
  7712. "auth_password": {
  7713. "type": "string",
  7714. "x-go-name": "AuthPassword"
  7715. },
  7716. "auth_username": {
  7717. "type": "string",
  7718. "x-go-name": "AuthUsername"
  7719. },
  7720. "clone_addr": {
  7721. "type": "string",
  7722. "x-go-name": "CloneAddr"
  7723. },
  7724. "description": {
  7725. "type": "string",
  7726. "x-go-name": "Description"
  7727. },
  7728. "mirror": {
  7729. "type": "boolean",
  7730. "x-go-name": "Mirror"
  7731. },
  7732. "private": {
  7733. "type": "boolean",
  7734. "x-go-name": "Private"
  7735. },
  7736. "repo_name": {
  7737. "type": "string",
  7738. "x-go-name": "RepoName"
  7739. },
  7740. "uid": {
  7741. "type": "integer",
  7742. "format": "int64",
  7743. "x-go-name": "UID"
  7744. }
  7745. },
  7746. "x-go-package": "code.gitea.io/gitea/modules/auth"
  7747. },
  7748. "Milestone": {
  7749. "description": "Milestone milestone is a collection of issues on one repository",
  7750. "type": "object",
  7751. "properties": {
  7752. "closed_at": {
  7753. "type": "string",
  7754. "format": "date-time",
  7755. "x-go-name": "Closed"
  7756. },
  7757. "closed_issues": {
  7758. "type": "integer",
  7759. "format": "int64",
  7760. "x-go-name": "ClosedIssues"
  7761. },
  7762. "description": {
  7763. "type": "string",
  7764. "x-go-name": "Description"
  7765. },
  7766. "due_on": {
  7767. "type": "string",
  7768. "format": "date-time",
  7769. "x-go-name": "Deadline"
  7770. },
  7771. "id": {
  7772. "type": "integer",
  7773. "format": "int64",
  7774. "x-go-name": "ID"
  7775. },
  7776. "open_issues": {
  7777. "type": "integer",
  7778. "format": "int64",
  7779. "x-go-name": "OpenIssues"
  7780. },
  7781. "state": {
  7782. "$ref": "#/definitions/StateType"
  7783. },
  7784. "title": {
  7785. "type": "string",
  7786. "x-go-name": "Title"
  7787. }
  7788. },
  7789. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7790. },
  7791. "Organization": {
  7792. "description": "Organization represents an organization",
  7793. "type": "object",
  7794. "properties": {
  7795. "avatar_url": {
  7796. "type": "string",
  7797. "x-go-name": "AvatarURL"
  7798. },
  7799. "description": {
  7800. "type": "string",
  7801. "x-go-name": "Description"
  7802. },
  7803. "full_name": {
  7804. "type": "string",
  7805. "x-go-name": "FullName"
  7806. },
  7807. "id": {
  7808. "type": "integer",
  7809. "format": "int64",
  7810. "x-go-name": "ID"
  7811. },
  7812. "location": {
  7813. "type": "string",
  7814. "x-go-name": "Location"
  7815. },
  7816. "username": {
  7817. "type": "string",
  7818. "x-go-name": "UserName"
  7819. },
  7820. "website": {
  7821. "type": "string",
  7822. "x-go-name": "Website"
  7823. }
  7824. },
  7825. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7826. },
  7827. "PRBranchInfo": {
  7828. "description": "PRBranchInfo information about a branch",
  7829. "type": "object",
  7830. "properties": {
  7831. "label": {
  7832. "type": "string",
  7833. "x-go-name": "Name"
  7834. },
  7835. "ref": {
  7836. "type": "string",
  7837. "x-go-name": "Ref"
  7838. },
  7839. "repo": {
  7840. "$ref": "#/definitions/Repository"
  7841. },
  7842. "repo_id": {
  7843. "type": "integer",
  7844. "format": "int64",
  7845. "x-go-name": "RepoID"
  7846. },
  7847. "sha": {
  7848. "type": "string",
  7849. "x-go-name": "Sha"
  7850. }
  7851. },
  7852. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7853. },
  7854. "PayloadCommit": {
  7855. "description": "PayloadCommit represents a commit",
  7856. "type": "object",
  7857. "properties": {
  7858. "added": {
  7859. "type": "array",
  7860. "items": {
  7861. "type": "string"
  7862. },
  7863. "x-go-name": "Added"
  7864. },
  7865. "author": {
  7866. "$ref": "#/definitions/PayloadUser"
  7867. },
  7868. "committer": {
  7869. "$ref": "#/definitions/PayloadUser"
  7870. },
  7871. "id": {
  7872. "description": "sha1 hash of the commit",
  7873. "type": "string",
  7874. "x-go-name": "ID"
  7875. },
  7876. "message": {
  7877. "type": "string",
  7878. "x-go-name": "Message"
  7879. },
  7880. "modified": {
  7881. "type": "array",
  7882. "items": {
  7883. "type": "string"
  7884. },
  7885. "x-go-name": "Modified"
  7886. },
  7887. "removed": {
  7888. "type": "array",
  7889. "items": {
  7890. "type": "string"
  7891. },
  7892. "x-go-name": "Removed"
  7893. },
  7894. "timestamp": {
  7895. "type": "string",
  7896. "format": "date-time",
  7897. "x-go-name": "Timestamp"
  7898. },
  7899. "url": {
  7900. "type": "string",
  7901. "x-go-name": "URL"
  7902. },
  7903. "verification": {
  7904. "$ref": "#/definitions/PayloadCommitVerification"
  7905. }
  7906. },
  7907. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7908. },
  7909. "PayloadCommitVerification": {
  7910. "description": "PayloadCommitVerification represents the GPG verification of a commit",
  7911. "type": "object",
  7912. "properties": {
  7913. "payload": {
  7914. "type": "string",
  7915. "x-go-name": "Payload"
  7916. },
  7917. "reason": {
  7918. "type": "string",
  7919. "x-go-name": "Reason"
  7920. },
  7921. "signature": {
  7922. "type": "string",
  7923. "x-go-name": "Signature"
  7924. },
  7925. "verified": {
  7926. "type": "boolean",
  7927. "x-go-name": "Verified"
  7928. }
  7929. },
  7930. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7931. },
  7932. "PayloadUser": {
  7933. "description": "PayloadUser represents the author or committer of a commit",
  7934. "type": "object",
  7935. "properties": {
  7936. "email": {
  7937. "type": "string",
  7938. "format": "email",
  7939. "x-go-name": "Email"
  7940. },
  7941. "name": {
  7942. "description": "Full name of the commit author",
  7943. "type": "string",
  7944. "x-go-name": "Name"
  7945. },
  7946. "username": {
  7947. "type": "string",
  7948. "x-go-name": "UserName"
  7949. }
  7950. },
  7951. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7952. },
  7953. "Permission": {
  7954. "description": "Permission represents a set of permissions",
  7955. "type": "object",
  7956. "properties": {
  7957. "admin": {
  7958. "type": "boolean",
  7959. "x-go-name": "Admin"
  7960. },
  7961. "pull": {
  7962. "type": "boolean",
  7963. "x-go-name": "Pull"
  7964. },
  7965. "push": {
  7966. "type": "boolean",
  7967. "x-go-name": "Push"
  7968. }
  7969. },
  7970. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7971. },
  7972. "PublicKey": {
  7973. "description": "PublicKey publickey is a user key to push code to repository",
  7974. "type": "object",
  7975. "properties": {
  7976. "created_at": {
  7977. "type": "string",
  7978. "format": "date-time",
  7979. "x-go-name": "Created"
  7980. },
  7981. "fingerprint": {
  7982. "type": "string",
  7983. "x-go-name": "Fingerprint"
  7984. },
  7985. "id": {
  7986. "type": "integer",
  7987. "format": "int64",
  7988. "x-go-name": "ID"
  7989. },
  7990. "key": {
  7991. "type": "string",
  7992. "x-go-name": "Key"
  7993. },
  7994. "key_type": {
  7995. "type": "string",
  7996. "x-go-name": "KeyType"
  7997. },
  7998. "read_only": {
  7999. "type": "boolean",
  8000. "x-go-name": "ReadOnly"
  8001. },
  8002. "title": {
  8003. "type": "string",
  8004. "x-go-name": "Title"
  8005. },
  8006. "url": {
  8007. "type": "string",
  8008. "x-go-name": "URL"
  8009. },
  8010. "user": {
  8011. "$ref": "#/definitions/User"
  8012. }
  8013. },
  8014. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8015. },
  8016. "PullRequest": {
  8017. "description": "PullRequest represents a pull request",
  8018. "type": "object",
  8019. "properties": {
  8020. "assignee": {
  8021. "$ref": "#/definitions/User"
  8022. },
  8023. "assignees": {
  8024. "type": "array",
  8025. "items": {
  8026. "$ref": "#/definitions/User"
  8027. },
  8028. "x-go-name": "Assignees"
  8029. },
  8030. "base": {
  8031. "$ref": "#/definitions/PRBranchInfo"
  8032. },
  8033. "body": {
  8034. "type": "string",
  8035. "x-go-name": "Body"
  8036. },
  8037. "closed_at": {
  8038. "type": "string",
  8039. "format": "date-time",
  8040. "x-go-name": "Closed"
  8041. },
  8042. "comments": {
  8043. "type": "integer",
  8044. "format": "int64",
  8045. "x-go-name": "Comments"
  8046. },
  8047. "created_at": {
  8048. "type": "string",
  8049. "format": "date-time",
  8050. "x-go-name": "Created"
  8051. },
  8052. "diff_url": {
  8053. "type": "string",
  8054. "x-go-name": "DiffURL"
  8055. },
  8056. "due_date": {
  8057. "type": "string",
  8058. "format": "date-time",
  8059. "x-go-name": "Deadline"
  8060. },
  8061. "head": {
  8062. "$ref": "#/definitions/PRBranchInfo"
  8063. },
  8064. "html_url": {
  8065. "type": "string",
  8066. "x-go-name": "HTMLURL"
  8067. },
  8068. "id": {
  8069. "type": "integer",
  8070. "format": "int64",
  8071. "x-go-name": "ID"
  8072. },
  8073. "labels": {
  8074. "type": "array",
  8075. "items": {
  8076. "$ref": "#/definitions/Label"
  8077. },
  8078. "x-go-name": "Labels"
  8079. },
  8080. "merge_base": {
  8081. "type": "string",
  8082. "x-go-name": "MergeBase"
  8083. },
  8084. "merge_commit_sha": {
  8085. "type": "string",
  8086. "x-go-name": "MergedCommitID"
  8087. },
  8088. "mergeable": {
  8089. "type": "boolean",
  8090. "x-go-name": "Mergeable"
  8091. },
  8092. "merged": {
  8093. "type": "boolean",
  8094. "x-go-name": "HasMerged"
  8095. },
  8096. "merged_at": {
  8097. "type": "string",
  8098. "format": "date-time",
  8099. "x-go-name": "Merged"
  8100. },
  8101. "merged_by": {
  8102. "$ref": "#/definitions/User"
  8103. },
  8104. "milestone": {
  8105. "$ref": "#/definitions/Milestone"
  8106. },
  8107. "number": {
  8108. "type": "integer",
  8109. "format": "int64",
  8110. "x-go-name": "Index"
  8111. },
  8112. "patch_url": {
  8113. "type": "string",
  8114. "x-go-name": "PatchURL"
  8115. },
  8116. "state": {
  8117. "$ref": "#/definitions/StateType"
  8118. },
  8119. "title": {
  8120. "type": "string",
  8121. "x-go-name": "Title"
  8122. },
  8123. "updated_at": {
  8124. "type": "string",
  8125. "format": "date-time",
  8126. "x-go-name": "Updated"
  8127. },
  8128. "url": {
  8129. "type": "string",
  8130. "x-go-name": "URL"
  8131. },
  8132. "user": {
  8133. "$ref": "#/definitions/User"
  8134. }
  8135. },
  8136. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8137. },
  8138. "PullRequestMeta": {
  8139. "description": "PullRequestMeta PR info if an issue is a PR",
  8140. "type": "object",
  8141. "properties": {
  8142. "merged": {
  8143. "type": "boolean",
  8144. "x-go-name": "HasMerged"
  8145. },
  8146. "merged_at": {
  8147. "type": "string",
  8148. "format": "date-time",
  8149. "x-go-name": "Merged"
  8150. }
  8151. },
  8152. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8153. },
  8154. "Reference": {
  8155. "type": "object",
  8156. "title": "Reference represents a Git reference.",
  8157. "properties": {
  8158. "object": {
  8159. "$ref": "#/definitions/GitObject"
  8160. },
  8161. "ref": {
  8162. "type": "string",
  8163. "x-go-name": "Ref"
  8164. },
  8165. "url": {
  8166. "type": "string",
  8167. "x-go-name": "URL"
  8168. }
  8169. },
  8170. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8171. },
  8172. "Release": {
  8173. "description": "Release represents a repository release",
  8174. "type": "object",
  8175. "properties": {
  8176. "assets": {
  8177. "type": "array",
  8178. "items": {
  8179. "$ref": "#/definitions/Attachment"
  8180. },
  8181. "x-go-name": "Attachments"
  8182. },
  8183. "author": {
  8184. "$ref": "#/definitions/User"
  8185. },
  8186. "body": {
  8187. "type": "string",
  8188. "x-go-name": "Note"
  8189. },
  8190. "created_at": {
  8191. "type": "string",
  8192. "format": "date-time",
  8193. "x-go-name": "CreatedAt"
  8194. },
  8195. "draft": {
  8196. "type": "boolean",
  8197. "x-go-name": "IsDraft"
  8198. },
  8199. "id": {
  8200. "type": "integer",
  8201. "format": "int64",
  8202. "x-go-name": "ID"
  8203. },
  8204. "name": {
  8205. "type": "string",
  8206. "x-go-name": "Title"
  8207. },
  8208. "prerelease": {
  8209. "type": "boolean",
  8210. "x-go-name": "IsPrerelease"
  8211. },
  8212. "published_at": {
  8213. "type": "string",
  8214. "format": "date-time",
  8215. "x-go-name": "PublishedAt"
  8216. },
  8217. "tag_name": {
  8218. "type": "string",
  8219. "x-go-name": "TagName"
  8220. },
  8221. "tarball_url": {
  8222. "type": "string",
  8223. "x-go-name": "TarURL"
  8224. },
  8225. "target_commitish": {
  8226. "type": "string",
  8227. "x-go-name": "Target"
  8228. },
  8229. "url": {
  8230. "type": "string",
  8231. "x-go-name": "URL"
  8232. },
  8233. "zipball_url": {
  8234. "type": "string",
  8235. "x-go-name": "ZipURL"
  8236. }
  8237. },
  8238. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8239. },
  8240. "RepoCommit": {
  8241. "type": "object",
  8242. "title": "RepoCommit contains information of a commit in the context of a repository.",
  8243. "properties": {
  8244. "author": {
  8245. "$ref": "#/definitions/CommitUser"
  8246. },
  8247. "committer": {
  8248. "$ref": "#/definitions/CommitUser"
  8249. },
  8250. "message": {
  8251. "type": "string",
  8252. "x-go-name": "Message"
  8253. },
  8254. "tree": {
  8255. "$ref": "#/definitions/CommitMeta"
  8256. },
  8257. "url": {
  8258. "type": "string",
  8259. "x-go-name": "URL"
  8260. }
  8261. },
  8262. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8263. },
  8264. "Repository": {
  8265. "description": "Repository represents a repository",
  8266. "type": "object",
  8267. "properties": {
  8268. "archived": {
  8269. "type": "boolean",
  8270. "x-go-name": "Archived"
  8271. },
  8272. "clone_url": {
  8273. "type": "string",
  8274. "x-go-name": "CloneURL"
  8275. },
  8276. "created_at": {
  8277. "type": "string",
  8278. "format": "date-time",
  8279. "x-go-name": "Created"
  8280. },
  8281. "default_branch": {
  8282. "type": "string",
  8283. "x-go-name": "DefaultBranch"
  8284. },
  8285. "description": {
  8286. "type": "string",
  8287. "x-go-name": "Description"
  8288. },
  8289. "empty": {
  8290. "type": "boolean",
  8291. "x-go-name": "Empty"
  8292. },
  8293. "fork": {
  8294. "type": "boolean",
  8295. "x-go-name": "Fork"
  8296. },
  8297. "forks_count": {
  8298. "type": "integer",
  8299. "format": "int64",
  8300. "x-go-name": "Forks"
  8301. },
  8302. "full_name": {
  8303. "type": "string",
  8304. "x-go-name": "FullName"
  8305. },
  8306. "html_url": {
  8307. "type": "string",
  8308. "x-go-name": "HTMLURL"
  8309. },
  8310. "id": {
  8311. "type": "integer",
  8312. "format": "int64",
  8313. "x-go-name": "ID"
  8314. },
  8315. "mirror": {
  8316. "type": "boolean",
  8317. "x-go-name": "Mirror"
  8318. },
  8319. "name": {
  8320. "type": "string",
  8321. "x-go-name": "Name"
  8322. },
  8323. "open_issues_count": {
  8324. "type": "integer",
  8325. "format": "int64",
  8326. "x-go-name": "OpenIssues"
  8327. },
  8328. "owner": {
  8329. "$ref": "#/definitions/User"
  8330. },
  8331. "parent": {
  8332. "$ref": "#/definitions/Repository"
  8333. },
  8334. "permissions": {
  8335. "$ref": "#/definitions/Permission"
  8336. },
  8337. "private": {
  8338. "type": "boolean",
  8339. "x-go-name": "Private"
  8340. },
  8341. "size": {
  8342. "type": "integer",
  8343. "format": "int64",
  8344. "x-go-name": "Size"
  8345. },
  8346. "ssh_url": {
  8347. "type": "string",
  8348. "x-go-name": "SSHURL"
  8349. },
  8350. "stars_count": {
  8351. "type": "integer",
  8352. "format": "int64",
  8353. "x-go-name": "Stars"
  8354. },
  8355. "updated_at": {
  8356. "type": "string",
  8357. "format": "date-time",
  8358. "x-go-name": "Updated"
  8359. },
  8360. "watchers_count": {
  8361. "type": "integer",
  8362. "format": "int64",
  8363. "x-go-name": "Watchers"
  8364. },
  8365. "website": {
  8366. "type": "string",
  8367. "x-go-name": "Website"
  8368. }
  8369. },
  8370. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8371. },
  8372. "SearchResults": {
  8373. "description": "SearchResults results of a successful search",
  8374. "type": "object",
  8375. "properties": {
  8376. "data": {
  8377. "type": "array",
  8378. "items": {
  8379. "$ref": "#/definitions/Repository"
  8380. },
  8381. "x-go-name": "Data"
  8382. },
  8383. "ok": {
  8384. "type": "boolean",
  8385. "x-go-name": "OK"
  8386. }
  8387. },
  8388. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8389. },
  8390. "ServerVersion": {
  8391. "description": "ServerVersion wraps the version of the server",
  8392. "type": "object",
  8393. "properties": {
  8394. "version": {
  8395. "type": "string",
  8396. "x-go-name": "Version"
  8397. }
  8398. },
  8399. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8400. },
  8401. "StateType": {
  8402. "description": "StateType issue state type",
  8403. "type": "string",
  8404. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8405. },
  8406. "Status": {
  8407. "description": "Status holds a single Status of a single Commit",
  8408. "type": "object",
  8409. "properties": {
  8410. "context": {
  8411. "type": "string",
  8412. "x-go-name": "Context"
  8413. },
  8414. "created_at": {
  8415. "type": "string",
  8416. "format": "date-time",
  8417. "x-go-name": "Created"
  8418. },
  8419. "creator": {
  8420. "$ref": "#/definitions/User"
  8421. },
  8422. "description": {
  8423. "type": "string",
  8424. "x-go-name": "Description"
  8425. },
  8426. "id": {
  8427. "type": "integer",
  8428. "format": "int64",
  8429. "x-go-name": "ID"
  8430. },
  8431. "status": {
  8432. "$ref": "#/definitions/StatusState"
  8433. },
  8434. "target_url": {
  8435. "type": "string",
  8436. "x-go-name": "TargetURL"
  8437. },
  8438. "updated_at": {
  8439. "type": "string",
  8440. "format": "date-time",
  8441. "x-go-name": "Updated"
  8442. },
  8443. "url": {
  8444. "type": "string",
  8445. "x-go-name": "URL"
  8446. }
  8447. },
  8448. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8449. },
  8450. "StatusState": {
  8451. "description": "StatusState holds the state of a Status\nIt can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"",
  8452. "type": "string",
  8453. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8454. },
  8455. "Tag": {
  8456. "description": "Tag represents a repository tag",
  8457. "type": "object",
  8458. "properties": {
  8459. "commit": {
  8460. "type": "object",
  8461. "properties": {
  8462. "sha": {
  8463. "type": "string",
  8464. "x-go-name": "SHA"
  8465. },
  8466. "url": {
  8467. "type": "string",
  8468. "x-go-name": "URL"
  8469. }
  8470. },
  8471. "x-go-name": "Commit"
  8472. },
  8473. "name": {
  8474. "type": "string",
  8475. "x-go-name": "Name"
  8476. },
  8477. "tarball_url": {
  8478. "type": "string",
  8479. "x-go-name": "TarballURL"
  8480. },
  8481. "zipball_url": {
  8482. "type": "string",
  8483. "x-go-name": "ZipballURL"
  8484. }
  8485. },
  8486. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8487. },
  8488. "Team": {
  8489. "description": "Team represents a team in an organization",
  8490. "type": "object",
  8491. "properties": {
  8492. "description": {
  8493. "type": "string",
  8494. "x-go-name": "Description"
  8495. },
  8496. "id": {
  8497. "type": "integer",
  8498. "format": "int64",
  8499. "x-go-name": "ID"
  8500. },
  8501. "name": {
  8502. "type": "string",
  8503. "x-go-name": "Name"
  8504. },
  8505. "organization": {
  8506. "$ref": "#/definitions/Organization"
  8507. },
  8508. "permission": {
  8509. "type": "string",
  8510. "enum": [
  8511. "none",
  8512. "read",
  8513. "write",
  8514. "admin",
  8515. "owner"
  8516. ],
  8517. "x-go-name": "Permission"
  8518. },
  8519. "units": {
  8520. "type": "array",
  8521. "enum": [
  8522. "repo.code",
  8523. "repo.issues",
  8524. "repo.ext_issues",
  8525. "repo.wiki",
  8526. "repo.pulls",
  8527. "repo.releases",
  8528. "repo.ext_wiki"
  8529. ],
  8530. "items": {
  8531. "type": "string"
  8532. },
  8533. "x-go-name": "Units"
  8534. }
  8535. },
  8536. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8537. },
  8538. "TimeStamp": {
  8539. "description": "TimeStamp defines a timestamp",
  8540. "type": "integer",
  8541. "format": "int64",
  8542. "x-go-package": "code.gitea.io/gitea/modules/util"
  8543. },
  8544. "TrackedTime": {
  8545. "description": "TrackedTime worked time for an issue / pr",
  8546. "type": "object",
  8547. "properties": {
  8548. "created": {
  8549. "type": "string",
  8550. "format": "date-time",
  8551. "x-go-name": "Created"
  8552. },
  8553. "id": {
  8554. "type": "integer",
  8555. "format": "int64",
  8556. "x-go-name": "ID"
  8557. },
  8558. "issue_id": {
  8559. "type": "integer",
  8560. "format": "int64",
  8561. "x-go-name": "IssueID"
  8562. },
  8563. "time": {
  8564. "description": "Time in seconds",
  8565. "type": "integer",
  8566. "format": "int64",
  8567. "x-go-name": "Time"
  8568. },
  8569. "user_id": {
  8570. "type": "integer",
  8571. "format": "int64",
  8572. "x-go-name": "UserID"
  8573. }
  8574. },
  8575. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8576. },
  8577. "User": {
  8578. "description": "User represents a user",
  8579. "type": "object",
  8580. "properties": {
  8581. "avatar_url": {
  8582. "description": "URL to the user's avatar",
  8583. "type": "string",
  8584. "x-go-name": "AvatarURL"
  8585. },
  8586. "email": {
  8587. "type": "string",
  8588. "format": "email",
  8589. "x-go-name": "Email"
  8590. },
  8591. "full_name": {
  8592. "description": "the user's full name",
  8593. "type": "string",
  8594. "x-go-name": "FullName"
  8595. },
  8596. "id": {
  8597. "description": "the user's id",
  8598. "type": "integer",
  8599. "format": "int64",
  8600. "x-go-name": "ID"
  8601. },
  8602. "language": {
  8603. "description": "User locale",
  8604. "type": "string",
  8605. "x-go-name": "Language"
  8606. },
  8607. "login": {
  8608. "description": "the user's username",
  8609. "type": "string",
  8610. "x-go-name": "UserName"
  8611. }
  8612. },
  8613. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8614. },
  8615. "UserHeatmapData": {
  8616. "description": "UserHeatmapData represents the data needed to create a heatmap",
  8617. "type": "object",
  8618. "properties": {
  8619. "contributions": {
  8620. "type": "integer",
  8621. "format": "int64",
  8622. "x-go-name": "Contributions"
  8623. },
  8624. "timestamp": {
  8625. "$ref": "#/definitions/TimeStamp"
  8626. }
  8627. },
  8628. "x-go-package": "code.gitea.io/gitea/models"
  8629. },
  8630. "WatchInfo": {
  8631. "description": "WatchInfo represents an API watch status of one repository",
  8632. "type": "object",
  8633. "properties": {
  8634. "created_at": {
  8635. "type": "string",
  8636. "format": "date-time",
  8637. "x-go-name": "CreatedAt"
  8638. },
  8639. "ignored": {
  8640. "type": "boolean",
  8641. "x-go-name": "Ignored"
  8642. },
  8643. "reason": {
  8644. "type": "object",
  8645. "x-go-name": "Reason"
  8646. },
  8647. "repository_url": {
  8648. "type": "string",
  8649. "x-go-name": "RepositoryURL"
  8650. },
  8651. "subscribed": {
  8652. "type": "boolean",
  8653. "x-go-name": "Subscribed"
  8654. },
  8655. "url": {
  8656. "type": "string",
  8657. "x-go-name": "URL"
  8658. }
  8659. },
  8660. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8661. }
  8662. },
  8663. "responses": {
  8664. "AccessToken": {
  8665. "description": "AccessToken represents a API access token.",
  8666. "headers": {
  8667. "id": {
  8668. "type": "integer",
  8669. "format": "int64"
  8670. },
  8671. "name": {
  8672. "type": "string"
  8673. },
  8674. "sha1": {
  8675. "type": "string"
  8676. }
  8677. }
  8678. },
  8679. "AccessTokenList": {
  8680. "description": "AccessTokenList represents a list of API access token."
  8681. },
  8682. "Attachment": {
  8683. "description": "Attachment",
  8684. "schema": {
  8685. "$ref": "#/definitions/Attachment"
  8686. }
  8687. },
  8688. "AttachmentList": {
  8689. "description": "AttachmentList",
  8690. "schema": {
  8691. "type": "array",
  8692. "items": {
  8693. "$ref": "#/definitions/Attachment"
  8694. }
  8695. }
  8696. },
  8697. "Branch": {
  8698. "description": "Branch",
  8699. "schema": {
  8700. "$ref": "#/definitions/Branch"
  8701. }
  8702. },
  8703. "BranchList": {
  8704. "description": "BranchList",
  8705. "schema": {
  8706. "type": "array",
  8707. "items": {
  8708. "$ref": "#/definitions/Branch"
  8709. }
  8710. }
  8711. },
  8712. "Comment": {
  8713. "description": "Comment",
  8714. "schema": {
  8715. "$ref": "#/definitions/Comment"
  8716. }
  8717. },
  8718. "CommentList": {
  8719. "description": "CommentList",
  8720. "schema": {
  8721. "type": "array",
  8722. "items": {
  8723. "$ref": "#/definitions/Comment"
  8724. }
  8725. }
  8726. },
  8727. "Commit": {
  8728. "description": "Commit",
  8729. "schema": {
  8730. "$ref": "#/definitions/Commit"
  8731. }
  8732. },
  8733. "DeployKey": {
  8734. "description": "DeployKey",
  8735. "schema": {
  8736. "$ref": "#/definitions/DeployKey"
  8737. }
  8738. },
  8739. "DeployKeyList": {
  8740. "description": "DeployKeyList",
  8741. "schema": {
  8742. "type": "array",
  8743. "items": {
  8744. "$ref": "#/definitions/DeployKey"
  8745. }
  8746. }
  8747. },
  8748. "EmailList": {
  8749. "description": "EmailList",
  8750. "schema": {
  8751. "type": "array",
  8752. "items": {
  8753. "$ref": "#/definitions/Email"
  8754. }
  8755. }
  8756. },
  8757. "GPGKey": {
  8758. "description": "GPGKey",
  8759. "schema": {
  8760. "$ref": "#/definitions/GPGKey"
  8761. }
  8762. },
  8763. "GPGKeyList": {
  8764. "description": "GPGKeyList",
  8765. "schema": {
  8766. "type": "array",
  8767. "items": {
  8768. "$ref": "#/definitions/GPGKey"
  8769. }
  8770. }
  8771. },
  8772. "GitTreeResponse": {
  8773. "description": "GitTreeResponse",
  8774. "schema": {
  8775. "$ref": "#/definitions/GitTreeResponse"
  8776. }
  8777. },
  8778. "Hook": {
  8779. "description": "Hook",
  8780. "schema": {
  8781. "type": "array",
  8782. "items": {
  8783. "$ref": "#/definitions/Branch"
  8784. }
  8785. }
  8786. },
  8787. "HookList": {
  8788. "description": "HookList",
  8789. "schema": {
  8790. "type": "array",
  8791. "items": {
  8792. "$ref": "#/definitions/Branch"
  8793. }
  8794. }
  8795. },
  8796. "Issue": {
  8797. "description": "Issue",
  8798. "schema": {
  8799. "$ref": "#/definitions/Issue"
  8800. }
  8801. },
  8802. "IssueDeadline": {
  8803. "description": "IssueDeadline",
  8804. "schema": {
  8805. "$ref": "#/definitions/IssueDeadline"
  8806. }
  8807. },
  8808. "IssueList": {
  8809. "description": "IssueList",
  8810. "schema": {
  8811. "type": "array",
  8812. "items": {
  8813. "$ref": "#/definitions/Issue"
  8814. }
  8815. }
  8816. },
  8817. "Label": {
  8818. "description": "Label",
  8819. "schema": {
  8820. "$ref": "#/definitions/Label"
  8821. }
  8822. },
  8823. "LabelList": {
  8824. "description": "LabelList",
  8825. "schema": {
  8826. "type": "array",
  8827. "items": {
  8828. "$ref": "#/definitions/Label"
  8829. }
  8830. }
  8831. },
  8832. "MarkdownRender": {
  8833. "description": "MarkdownRender is a rendered markdown document"
  8834. },
  8835. "Milestone": {
  8836. "description": "Milestone",
  8837. "schema": {
  8838. "$ref": "#/definitions/Milestone"
  8839. }
  8840. },
  8841. "MilestoneList": {
  8842. "description": "MilestoneList",
  8843. "schema": {
  8844. "type": "array",
  8845. "items": {
  8846. "$ref": "#/definitions/Milestone"
  8847. }
  8848. }
  8849. },
  8850. "Organization": {
  8851. "description": "Organization",
  8852. "schema": {
  8853. "$ref": "#/definitions/Organization"
  8854. }
  8855. },
  8856. "OrganizationList": {
  8857. "description": "OrganizationList",
  8858. "schema": {
  8859. "type": "array",
  8860. "items": {
  8861. "$ref": "#/definitions/Organization"
  8862. }
  8863. }
  8864. },
  8865. "PublicKey": {
  8866. "description": "PublicKey",
  8867. "schema": {
  8868. "$ref": "#/definitions/PublicKey"
  8869. }
  8870. },
  8871. "PublicKeyList": {
  8872. "description": "PublicKeyList",
  8873. "schema": {
  8874. "type": "array",
  8875. "items": {
  8876. "$ref": "#/definitions/PublicKey"
  8877. }
  8878. }
  8879. },
  8880. "PullRequest": {
  8881. "description": "PullRequest",
  8882. "schema": {
  8883. "$ref": "#/definitions/PullRequest"
  8884. }
  8885. },
  8886. "PullRequestList": {
  8887. "description": "PullRequestList",
  8888. "schema": {
  8889. "type": "array",
  8890. "items": {
  8891. "$ref": "#/definitions/PullRequest"
  8892. }
  8893. }
  8894. },
  8895. "Reference": {
  8896. "description": "Reference",
  8897. "schema": {
  8898. "$ref": "#/definitions/Reference"
  8899. }
  8900. },
  8901. "ReferenceList": {
  8902. "description": "ReferenceList",
  8903. "schema": {
  8904. "type": "array",
  8905. "items": {
  8906. "$ref": "#/definitions/Reference"
  8907. }
  8908. }
  8909. },
  8910. "Release": {
  8911. "description": "Release",
  8912. "schema": {
  8913. "$ref": "#/definitions/Release"
  8914. }
  8915. },
  8916. "ReleaseList": {
  8917. "description": "ReleaseList",
  8918. "schema": {
  8919. "type": "array",
  8920. "items": {
  8921. "$ref": "#/definitions/Release"
  8922. }
  8923. }
  8924. },
  8925. "Repository": {
  8926. "description": "Repository",
  8927. "schema": {
  8928. "$ref": "#/definitions/Repository"
  8929. }
  8930. },
  8931. "RepositoryList": {
  8932. "description": "RepositoryList",
  8933. "schema": {
  8934. "type": "array",
  8935. "items": {
  8936. "$ref": "#/definitions/Repository"
  8937. }
  8938. }
  8939. },
  8940. "SearchResults": {
  8941. "description": "SearchResults",
  8942. "schema": {
  8943. "$ref": "#/definitions/SearchResults"
  8944. }
  8945. },
  8946. "ServerVersion": {
  8947. "description": "ServerVersion",
  8948. "schema": {
  8949. "$ref": "#/definitions/ServerVersion"
  8950. }
  8951. },
  8952. "Status": {
  8953. "description": "Status",
  8954. "schema": {
  8955. "$ref": "#/definitions/Status"
  8956. }
  8957. },
  8958. "StatusList": {
  8959. "description": "StatusList",
  8960. "schema": {
  8961. "type": "array",
  8962. "items": {
  8963. "$ref": "#/definitions/Status"
  8964. }
  8965. }
  8966. },
  8967. "TagList": {
  8968. "description": "TagList",
  8969. "schema": {
  8970. "type": "array",
  8971. "items": {
  8972. "$ref": "#/definitions/Tag"
  8973. }
  8974. }
  8975. },
  8976. "Team": {
  8977. "description": "Team",
  8978. "schema": {
  8979. "$ref": "#/definitions/Team"
  8980. }
  8981. },
  8982. "TeamList": {
  8983. "description": "TeamList",
  8984. "schema": {
  8985. "type": "array",
  8986. "items": {
  8987. "$ref": "#/definitions/Team"
  8988. }
  8989. }
  8990. },
  8991. "TrackedTime": {
  8992. "description": "TrackedTime",
  8993. "schema": {
  8994. "$ref": "#/definitions/TrackedTime"
  8995. }
  8996. },
  8997. "TrackedTimeList": {
  8998. "description": "TrackedTimeList",
  8999. "schema": {
  9000. "type": "array",
  9001. "items": {
  9002. "$ref": "#/definitions/TrackedTime"
  9003. }
  9004. }
  9005. },
  9006. "User": {
  9007. "description": "User",
  9008. "schema": {
  9009. "$ref": "#/definitions/User"
  9010. }
  9011. },
  9012. "UserHeatmapData": {
  9013. "description": "UserHeatmapData",
  9014. "schema": {
  9015. "type": "array",
  9016. "items": {
  9017. "$ref": "#/definitions/UserHeatmapData"
  9018. }
  9019. }
  9020. },
  9021. "UserList": {
  9022. "description": "UserList",
  9023. "schema": {
  9024. "type": "array",
  9025. "items": {
  9026. "$ref": "#/definitions/User"
  9027. }
  9028. }
  9029. },
  9030. "WatchInfo": {
  9031. "description": "WatchInfo",
  9032. "schema": {
  9033. "$ref": "#/definitions/WatchInfo"
  9034. }
  9035. },
  9036. "empty": {
  9037. "description": "APIEmpty is an empty response"
  9038. },
  9039. "error": {
  9040. "description": "APIError is error format response",
  9041. "headers": {
  9042. "message": {
  9043. "type": "string"
  9044. },
  9045. "url": {
  9046. "type": "string"
  9047. }
  9048. }
  9049. },
  9050. "forbidden": {
  9051. "description": "APIForbiddenError is a forbidden error response",
  9052. "headers": {
  9053. "message": {
  9054. "type": "string"
  9055. },
  9056. "url": {
  9057. "type": "string"
  9058. }
  9059. }
  9060. },
  9061. "notFound": {
  9062. "description": "APINotFound is a not found empty response"
  9063. },
  9064. "parameterBodies": {
  9065. "description": "parameterBodies",
  9066. "schema": {
  9067. "$ref": "#/definitions/EditAttachmentOptions"
  9068. }
  9069. },
  9070. "redirect": {
  9071. "description": "APIRedirect is a redirect response"
  9072. },
  9073. "validationError": {
  9074. "description": "APIValidationError is error format response related to input validation",
  9075. "headers": {
  9076. "message": {
  9077. "type": "string"
  9078. },
  9079. "url": {
  9080. "type": "string"
  9081. }
  9082. }
  9083. }
  9084. },
  9085. "securityDefinitions": {
  9086. "AccessToken": {
  9087. "type": "apiKey",
  9088. "name": "access_token",
  9089. "in": "query"
  9090. },
  9091. "AuthorizationHeaderToken": {
  9092. "type": "apiKey",
  9093. "name": "Authorization",
  9094. "in": "header"
  9095. },
  9096. "BasicAuth": {
  9097. "type": "basic"
  9098. },
  9099. "SudoHeader": {
  9100. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  9101. "type": "apiKey",
  9102. "name": "Sudo",
  9103. "in": "header"
  9104. },
  9105. "SudoParam": {
  9106. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  9107. "type": "apiKey",
  9108. "name": "sudo",
  9109. "in": "query"
  9110. },
  9111. "Token": {
  9112. "type": "apiKey",
  9113. "name": "token",
  9114. "in": "query"
  9115. }
  9116. },
  9117. "security": [
  9118. {
  9119. "BasicAuth": []
  9120. },
  9121. {
  9122. "Token": []
  9123. },
  9124. {
  9125. "AccessToken": []
  9126. },
  9127. {
  9128. "AuthorizationHeaderToken": []
  9129. },
  9130. {
  9131. "SudoParam": []
  9132. },
  9133. {
  9134. "SudoHeader": []
  9135. }
  9136. ]
  9137. }