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 228KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435
  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/git": {
  1880. "get": {
  1881. "produces": [
  1882. "application/json"
  1883. ],
  1884. "tags": [
  1885. "repository"
  1886. ],
  1887. "summary": "List the Git hooks in a repository",
  1888. "operationId": "repoListGitHooks",
  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. "responses": {
  1906. "200": {
  1907. "$ref": "#/responses/GitHookList"
  1908. }
  1909. }
  1910. }
  1911. },
  1912. "/repos/{owner}/{repo}/hooks/git/{id}": {
  1913. "get": {
  1914. "produces": [
  1915. "application/json"
  1916. ],
  1917. "tags": [
  1918. "repository"
  1919. ],
  1920. "summary": "Get a Git hook",
  1921. "operationId": "repoGetGitHook",
  1922. "parameters": [
  1923. {
  1924. "type": "string",
  1925. "description": "owner of the repo",
  1926. "name": "owner",
  1927. "in": "path",
  1928. "required": true
  1929. },
  1930. {
  1931. "type": "string",
  1932. "description": "name of the repo",
  1933. "name": "repo",
  1934. "in": "path",
  1935. "required": true
  1936. },
  1937. {
  1938. "type": "string",
  1939. "description": "id of the hook to get",
  1940. "name": "id",
  1941. "in": "path",
  1942. "required": true
  1943. }
  1944. ],
  1945. "responses": {
  1946. "200": {
  1947. "$ref": "#/responses/GitHook"
  1948. },
  1949. "404": {
  1950. "$ref": "#/responses/notFound"
  1951. }
  1952. }
  1953. },
  1954. "delete": {
  1955. "produces": [
  1956. "application/json"
  1957. ],
  1958. "tags": [
  1959. "repository"
  1960. ],
  1961. "summary": "Delete a Git hook in a repository",
  1962. "operationId": "repoDeleteGitHook",
  1963. "parameters": [
  1964. {
  1965. "type": "string",
  1966. "description": "owner of the repo",
  1967. "name": "owner",
  1968. "in": "path",
  1969. "required": true
  1970. },
  1971. {
  1972. "type": "string",
  1973. "description": "name of the repo",
  1974. "name": "repo",
  1975. "in": "path",
  1976. "required": true
  1977. },
  1978. {
  1979. "type": "string",
  1980. "description": "id of the hook to get",
  1981. "name": "id",
  1982. "in": "path",
  1983. "required": true
  1984. }
  1985. ],
  1986. "responses": {
  1987. "204": {
  1988. "$ref": "#/responses/empty"
  1989. },
  1990. "404": {
  1991. "$ref": "#/responses/notFound"
  1992. }
  1993. }
  1994. },
  1995. "patch": {
  1996. "produces": [
  1997. "application/json"
  1998. ],
  1999. "tags": [
  2000. "repository"
  2001. ],
  2002. "summary": "Edit a Git hook in a repository",
  2003. "operationId": "repoEditGitHook",
  2004. "parameters": [
  2005. {
  2006. "type": "string",
  2007. "description": "owner of the repo",
  2008. "name": "owner",
  2009. "in": "path",
  2010. "required": true
  2011. },
  2012. {
  2013. "type": "string",
  2014. "description": "name of the repo",
  2015. "name": "repo",
  2016. "in": "path",
  2017. "required": true
  2018. },
  2019. {
  2020. "type": "string",
  2021. "description": "id of the hook to get",
  2022. "name": "id",
  2023. "in": "path",
  2024. "required": true
  2025. },
  2026. {
  2027. "name": "body",
  2028. "in": "body",
  2029. "schema": {
  2030. "$ref": "#/definitions/EditGitHookOption"
  2031. }
  2032. }
  2033. ],
  2034. "responses": {
  2035. "200": {
  2036. "$ref": "#/responses/GitHook"
  2037. },
  2038. "404": {
  2039. "$ref": "#/responses/notFound"
  2040. }
  2041. }
  2042. }
  2043. },
  2044. "/repos/{owner}/{repo}/hooks/{id}": {
  2045. "get": {
  2046. "produces": [
  2047. "application/json"
  2048. ],
  2049. "tags": [
  2050. "repository"
  2051. ],
  2052. "summary": "Get a hook",
  2053. "operationId": "repoGetHook",
  2054. "parameters": [
  2055. {
  2056. "type": "string",
  2057. "description": "owner of the repo",
  2058. "name": "owner",
  2059. "in": "path",
  2060. "required": true
  2061. },
  2062. {
  2063. "type": "string",
  2064. "description": "name of the repo",
  2065. "name": "repo",
  2066. "in": "path",
  2067. "required": true
  2068. },
  2069. {
  2070. "type": "integer",
  2071. "format": "int64",
  2072. "description": "id of the hook to get",
  2073. "name": "id",
  2074. "in": "path",
  2075. "required": true
  2076. }
  2077. ],
  2078. "responses": {
  2079. "200": {
  2080. "$ref": "#/responses/Hook"
  2081. }
  2082. }
  2083. },
  2084. "delete": {
  2085. "produces": [
  2086. "application/json"
  2087. ],
  2088. "tags": [
  2089. "repository"
  2090. ],
  2091. "summary": "Delete a hook in a repository",
  2092. "operationId": "repoDeleteHook",
  2093. "parameters": [
  2094. {
  2095. "type": "string",
  2096. "description": "owner of the repo",
  2097. "name": "owner",
  2098. "in": "path",
  2099. "required": true
  2100. },
  2101. {
  2102. "type": "string",
  2103. "description": "name of the repo",
  2104. "name": "repo",
  2105. "in": "path",
  2106. "required": true
  2107. },
  2108. {
  2109. "type": "integer",
  2110. "format": "int64",
  2111. "description": "id of the hook to delete",
  2112. "name": "id",
  2113. "in": "path",
  2114. "required": true
  2115. }
  2116. ],
  2117. "responses": {
  2118. "204": {
  2119. "$ref": "#/responses/empty"
  2120. },
  2121. "404": {
  2122. "$ref": "#/responses/notFound"
  2123. }
  2124. }
  2125. },
  2126. "patch": {
  2127. "produces": [
  2128. "application/json"
  2129. ],
  2130. "tags": [
  2131. "repository"
  2132. ],
  2133. "summary": "Edit a hook in a repository",
  2134. "operationId": "repoEditHook",
  2135. "parameters": [
  2136. {
  2137. "type": "string",
  2138. "description": "owner of the repo",
  2139. "name": "owner",
  2140. "in": "path",
  2141. "required": true
  2142. },
  2143. {
  2144. "type": "string",
  2145. "description": "name of the repo",
  2146. "name": "repo",
  2147. "in": "path",
  2148. "required": true
  2149. },
  2150. {
  2151. "type": "integer",
  2152. "format": "int64",
  2153. "description": "index of the hook",
  2154. "name": "id",
  2155. "in": "path",
  2156. "required": true
  2157. },
  2158. {
  2159. "name": "body",
  2160. "in": "body",
  2161. "schema": {
  2162. "$ref": "#/definitions/EditHookOption"
  2163. }
  2164. }
  2165. ],
  2166. "responses": {
  2167. "200": {
  2168. "$ref": "#/responses/Hook"
  2169. }
  2170. }
  2171. }
  2172. },
  2173. "/repos/{owner}/{repo}/hooks/{id}/tests": {
  2174. "post": {
  2175. "produces": [
  2176. "application/json"
  2177. ],
  2178. "tags": [
  2179. "repository"
  2180. ],
  2181. "summary": "Test a push webhook",
  2182. "operationId": "repoTestHook",
  2183. "parameters": [
  2184. {
  2185. "type": "string",
  2186. "description": "owner of the repo",
  2187. "name": "owner",
  2188. "in": "path",
  2189. "required": true
  2190. },
  2191. {
  2192. "type": "string",
  2193. "description": "name of the repo",
  2194. "name": "repo",
  2195. "in": "path",
  2196. "required": true
  2197. },
  2198. {
  2199. "type": "integer",
  2200. "format": "int64",
  2201. "description": "id of the hook to test",
  2202. "name": "id",
  2203. "in": "path",
  2204. "required": true
  2205. }
  2206. ],
  2207. "responses": {
  2208. "204": {
  2209. "$ref": "#/responses/empty"
  2210. }
  2211. }
  2212. }
  2213. },
  2214. "/repos/{owner}/{repo}/issues": {
  2215. "get": {
  2216. "produces": [
  2217. "application/json"
  2218. ],
  2219. "tags": [
  2220. "issue"
  2221. ],
  2222. "summary": "List a repository's issues",
  2223. "operationId": "issueListIssues",
  2224. "parameters": [
  2225. {
  2226. "type": "string",
  2227. "description": "owner of the repo",
  2228. "name": "owner",
  2229. "in": "path",
  2230. "required": true
  2231. },
  2232. {
  2233. "type": "string",
  2234. "description": "name of the repo",
  2235. "name": "repo",
  2236. "in": "path",
  2237. "required": true
  2238. },
  2239. {
  2240. "type": "string",
  2241. "description": "whether issue is open or closed",
  2242. "name": "state",
  2243. "in": "query"
  2244. },
  2245. {
  2246. "type": "string",
  2247. "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
  2248. "name": "labels",
  2249. "in": "query"
  2250. },
  2251. {
  2252. "type": "integer",
  2253. "description": "page number of requested issues",
  2254. "name": "page",
  2255. "in": "query"
  2256. },
  2257. {
  2258. "type": "string",
  2259. "description": "search string",
  2260. "name": "q",
  2261. "in": "query"
  2262. }
  2263. ],
  2264. "responses": {
  2265. "200": {
  2266. "$ref": "#/responses/IssueList"
  2267. }
  2268. }
  2269. },
  2270. "post": {
  2271. "consumes": [
  2272. "application/json"
  2273. ],
  2274. "produces": [
  2275. "application/json"
  2276. ],
  2277. "tags": [
  2278. "issue"
  2279. ],
  2280. "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.",
  2281. "operationId": "issueCreateIssue",
  2282. "parameters": [
  2283. {
  2284. "type": "string",
  2285. "description": "owner of the repo",
  2286. "name": "owner",
  2287. "in": "path",
  2288. "required": true
  2289. },
  2290. {
  2291. "type": "string",
  2292. "description": "name of the repo",
  2293. "name": "repo",
  2294. "in": "path",
  2295. "required": true
  2296. },
  2297. {
  2298. "name": "body",
  2299. "in": "body",
  2300. "schema": {
  2301. "$ref": "#/definitions/CreateIssueOption"
  2302. }
  2303. }
  2304. ],
  2305. "responses": {
  2306. "201": {
  2307. "$ref": "#/responses/Issue"
  2308. }
  2309. }
  2310. }
  2311. },
  2312. "/repos/{owner}/{repo}/issues/comments": {
  2313. "get": {
  2314. "produces": [
  2315. "application/json"
  2316. ],
  2317. "tags": [
  2318. "issue"
  2319. ],
  2320. "summary": "List all comments in a repository",
  2321. "operationId": "issueGetRepoComments",
  2322. "parameters": [
  2323. {
  2324. "type": "string",
  2325. "description": "owner of the repo",
  2326. "name": "owner",
  2327. "in": "path",
  2328. "required": true
  2329. },
  2330. {
  2331. "type": "string",
  2332. "description": "name of the repo",
  2333. "name": "repo",
  2334. "in": "path",
  2335. "required": true
  2336. },
  2337. {
  2338. "type": "string",
  2339. "description": "if provided, only comments updated since the provided time are returned.",
  2340. "name": "since",
  2341. "in": "query"
  2342. }
  2343. ],
  2344. "responses": {
  2345. "200": {
  2346. "$ref": "#/responses/CommentList"
  2347. }
  2348. }
  2349. }
  2350. },
  2351. "/repos/{owner}/{repo}/issues/comments/{id}": {
  2352. "delete": {
  2353. "tags": [
  2354. "issue"
  2355. ],
  2356. "summary": "Delete a comment",
  2357. "operationId": "issueDeleteComment",
  2358. "parameters": [
  2359. {
  2360. "type": "string",
  2361. "description": "owner of the repo",
  2362. "name": "owner",
  2363. "in": "path",
  2364. "required": true
  2365. },
  2366. {
  2367. "type": "string",
  2368. "description": "name of the repo",
  2369. "name": "repo",
  2370. "in": "path",
  2371. "required": true
  2372. },
  2373. {
  2374. "type": "integer",
  2375. "format": "int64",
  2376. "description": "id of comment to delete",
  2377. "name": "id",
  2378. "in": "path",
  2379. "required": true
  2380. }
  2381. ],
  2382. "responses": {
  2383. "204": {
  2384. "$ref": "#/responses/empty"
  2385. }
  2386. }
  2387. },
  2388. "patch": {
  2389. "consumes": [
  2390. "application/json"
  2391. ],
  2392. "produces": [
  2393. "application/json"
  2394. ],
  2395. "tags": [
  2396. "issue"
  2397. ],
  2398. "summary": "Edit a comment",
  2399. "operationId": "issueEditComment",
  2400. "parameters": [
  2401. {
  2402. "type": "string",
  2403. "description": "owner of the repo",
  2404. "name": "owner",
  2405. "in": "path",
  2406. "required": true
  2407. },
  2408. {
  2409. "type": "string",
  2410. "description": "name of the repo",
  2411. "name": "repo",
  2412. "in": "path",
  2413. "required": true
  2414. },
  2415. {
  2416. "type": "integer",
  2417. "format": "int64",
  2418. "description": "id of the comment to edit",
  2419. "name": "id",
  2420. "in": "path",
  2421. "required": true
  2422. },
  2423. {
  2424. "name": "body",
  2425. "in": "body",
  2426. "schema": {
  2427. "$ref": "#/definitions/EditIssueCommentOption"
  2428. }
  2429. }
  2430. ],
  2431. "responses": {
  2432. "200": {
  2433. "$ref": "#/responses/Comment"
  2434. }
  2435. }
  2436. }
  2437. },
  2438. "/repos/{owner}/{repo}/issues/{id}/times": {
  2439. "get": {
  2440. "produces": [
  2441. "application/json"
  2442. ],
  2443. "tags": [
  2444. "issue"
  2445. ],
  2446. "summary": "List an issue's tracked times",
  2447. "operationId": "issueTrackedTimes",
  2448. "parameters": [
  2449. {
  2450. "type": "string",
  2451. "description": "owner of the repo",
  2452. "name": "owner",
  2453. "in": "path",
  2454. "required": true
  2455. },
  2456. {
  2457. "type": "string",
  2458. "description": "name of the repo",
  2459. "name": "repo",
  2460. "in": "path",
  2461. "required": true
  2462. },
  2463. {
  2464. "type": "integer",
  2465. "format": "int64",
  2466. "description": "index of the issue",
  2467. "name": "id",
  2468. "in": "path",
  2469. "required": true
  2470. }
  2471. ],
  2472. "responses": {
  2473. "200": {
  2474. "$ref": "#/responses/TrackedTimeList"
  2475. }
  2476. }
  2477. },
  2478. "post": {
  2479. "consumes": [
  2480. "application/json"
  2481. ],
  2482. "produces": [
  2483. "application/json"
  2484. ],
  2485. "tags": [
  2486. "issue"
  2487. ],
  2488. "summary": "Add a tracked time to a issue",
  2489. "operationId": "issueAddTime",
  2490. "parameters": [
  2491. {
  2492. "type": "string",
  2493. "description": "owner of the repo",
  2494. "name": "owner",
  2495. "in": "path",
  2496. "required": true
  2497. },
  2498. {
  2499. "type": "string",
  2500. "description": "name of the repo",
  2501. "name": "repo",
  2502. "in": "path",
  2503. "required": true
  2504. },
  2505. {
  2506. "type": "integer",
  2507. "format": "int64",
  2508. "description": "index of the issue to add tracked time to",
  2509. "name": "id",
  2510. "in": "path",
  2511. "required": true
  2512. },
  2513. {
  2514. "name": "body",
  2515. "in": "body",
  2516. "schema": {
  2517. "$ref": "#/definitions/AddTimeOption"
  2518. }
  2519. }
  2520. ],
  2521. "responses": {
  2522. "200": {
  2523. "$ref": "#/responses/TrackedTime"
  2524. },
  2525. "400": {
  2526. "$ref": "#/responses/error"
  2527. },
  2528. "403": {
  2529. "$ref": "#/responses/error"
  2530. }
  2531. }
  2532. }
  2533. },
  2534. "/repos/{owner}/{repo}/issues/{index}": {
  2535. "get": {
  2536. "produces": [
  2537. "application/json"
  2538. ],
  2539. "tags": [
  2540. "issue"
  2541. ],
  2542. "summary": "Get an issue",
  2543. "operationId": "issueGetIssue",
  2544. "parameters": [
  2545. {
  2546. "type": "string",
  2547. "description": "owner of the repo",
  2548. "name": "owner",
  2549. "in": "path",
  2550. "required": true
  2551. },
  2552. {
  2553. "type": "string",
  2554. "description": "name of the repo",
  2555. "name": "repo",
  2556. "in": "path",
  2557. "required": true
  2558. },
  2559. {
  2560. "type": "integer",
  2561. "format": "int64",
  2562. "description": "index of the issue to get",
  2563. "name": "index",
  2564. "in": "path",
  2565. "required": true
  2566. }
  2567. ],
  2568. "responses": {
  2569. "200": {
  2570. "$ref": "#/responses/Issue"
  2571. }
  2572. }
  2573. },
  2574. "patch": {
  2575. "consumes": [
  2576. "application/json"
  2577. ],
  2578. "produces": [
  2579. "application/json"
  2580. ],
  2581. "tags": [
  2582. "issue"
  2583. ],
  2584. "summary": "Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.",
  2585. "operationId": "issueEditIssue",
  2586. "parameters": [
  2587. {
  2588. "type": "string",
  2589. "description": "owner of the repo",
  2590. "name": "owner",
  2591. "in": "path",
  2592. "required": true
  2593. },
  2594. {
  2595. "type": "string",
  2596. "description": "name of the repo",
  2597. "name": "repo",
  2598. "in": "path",
  2599. "required": true
  2600. },
  2601. {
  2602. "type": "integer",
  2603. "format": "int64",
  2604. "description": "index of the issue to edit",
  2605. "name": "index",
  2606. "in": "path",
  2607. "required": true
  2608. },
  2609. {
  2610. "name": "body",
  2611. "in": "body",
  2612. "schema": {
  2613. "$ref": "#/definitions/EditIssueOption"
  2614. }
  2615. }
  2616. ],
  2617. "responses": {
  2618. "201": {
  2619. "$ref": "#/responses/Issue"
  2620. }
  2621. }
  2622. }
  2623. },
  2624. "/repos/{owner}/{repo}/issues/{index}/comments": {
  2625. "get": {
  2626. "produces": [
  2627. "application/json"
  2628. ],
  2629. "tags": [
  2630. "issue"
  2631. ],
  2632. "summary": "List all comments on an issue",
  2633. "operationId": "issueGetComments",
  2634. "parameters": [
  2635. {
  2636. "type": "string",
  2637. "description": "owner of the repo",
  2638. "name": "owner",
  2639. "in": "path",
  2640. "required": true
  2641. },
  2642. {
  2643. "type": "string",
  2644. "description": "name of the repo",
  2645. "name": "repo",
  2646. "in": "path",
  2647. "required": true
  2648. },
  2649. {
  2650. "type": "integer",
  2651. "format": "int64",
  2652. "description": "index of the issue",
  2653. "name": "index",
  2654. "in": "path",
  2655. "required": true
  2656. },
  2657. {
  2658. "type": "string",
  2659. "description": "if provided, only comments updated since the specified time are returned.",
  2660. "name": "since",
  2661. "in": "query"
  2662. }
  2663. ],
  2664. "responses": {
  2665. "200": {
  2666. "$ref": "#/responses/CommentList"
  2667. }
  2668. }
  2669. },
  2670. "post": {
  2671. "consumes": [
  2672. "application/json"
  2673. ],
  2674. "produces": [
  2675. "application/json"
  2676. ],
  2677. "tags": [
  2678. "issue"
  2679. ],
  2680. "summary": "Add a comment to an issue",
  2681. "operationId": "issueCreateComment",
  2682. "parameters": [
  2683. {
  2684. "type": "string",
  2685. "description": "owner of the repo",
  2686. "name": "owner",
  2687. "in": "path",
  2688. "required": true
  2689. },
  2690. {
  2691. "type": "string",
  2692. "description": "name of the repo",
  2693. "name": "repo",
  2694. "in": "path",
  2695. "required": true
  2696. },
  2697. {
  2698. "type": "integer",
  2699. "format": "int64",
  2700. "description": "index of the issue",
  2701. "name": "index",
  2702. "in": "path",
  2703. "required": true
  2704. },
  2705. {
  2706. "name": "body",
  2707. "in": "body",
  2708. "schema": {
  2709. "$ref": "#/definitions/CreateIssueCommentOption"
  2710. }
  2711. }
  2712. ],
  2713. "responses": {
  2714. "201": {
  2715. "$ref": "#/responses/Comment"
  2716. }
  2717. }
  2718. }
  2719. },
  2720. "/repos/{owner}/{repo}/issues/{index}/comments/{id}": {
  2721. "delete": {
  2722. "tags": [
  2723. "issue"
  2724. ],
  2725. "summary": "Delete a comment",
  2726. "operationId": "issueDeleteCommentDeprecated",
  2727. "deprecated": true,
  2728. "parameters": [
  2729. {
  2730. "type": "string",
  2731. "description": "owner of the repo",
  2732. "name": "owner",
  2733. "in": "path",
  2734. "required": true
  2735. },
  2736. {
  2737. "type": "string",
  2738. "description": "name of the repo",
  2739. "name": "repo",
  2740. "in": "path",
  2741. "required": true
  2742. },
  2743. {
  2744. "type": "integer",
  2745. "description": "this parameter is ignored",
  2746. "name": "index",
  2747. "in": "path",
  2748. "required": true
  2749. },
  2750. {
  2751. "type": "integer",
  2752. "format": "int64",
  2753. "description": "id of comment to delete",
  2754. "name": "id",
  2755. "in": "path",
  2756. "required": true
  2757. }
  2758. ],
  2759. "responses": {
  2760. "204": {
  2761. "$ref": "#/responses/empty"
  2762. }
  2763. }
  2764. },
  2765. "patch": {
  2766. "consumes": [
  2767. "application/json"
  2768. ],
  2769. "produces": [
  2770. "application/json"
  2771. ],
  2772. "tags": [
  2773. "issue"
  2774. ],
  2775. "summary": "Edit a comment",
  2776. "operationId": "issueEditCommentDeprecated",
  2777. "deprecated": true,
  2778. "parameters": [
  2779. {
  2780. "type": "string",
  2781. "description": "owner of the repo",
  2782. "name": "owner",
  2783. "in": "path",
  2784. "required": true
  2785. },
  2786. {
  2787. "type": "string",
  2788. "description": "name of the repo",
  2789. "name": "repo",
  2790. "in": "path",
  2791. "required": true
  2792. },
  2793. {
  2794. "type": "integer",
  2795. "description": "this parameter is ignored",
  2796. "name": "index",
  2797. "in": "path",
  2798. "required": true
  2799. },
  2800. {
  2801. "type": "integer",
  2802. "format": "int64",
  2803. "description": "id of the comment to edit",
  2804. "name": "id",
  2805. "in": "path",
  2806. "required": true
  2807. },
  2808. {
  2809. "name": "body",
  2810. "in": "body",
  2811. "schema": {
  2812. "$ref": "#/definitions/EditIssueCommentOption"
  2813. }
  2814. }
  2815. ],
  2816. "responses": {
  2817. "200": {
  2818. "$ref": "#/responses/Comment"
  2819. }
  2820. }
  2821. }
  2822. },
  2823. "/repos/{owner}/{repo}/issues/{index}/deadline": {
  2824. "post": {
  2825. "consumes": [
  2826. "application/json"
  2827. ],
  2828. "produces": [
  2829. "application/json"
  2830. ],
  2831. "tags": [
  2832. "issue"
  2833. ],
  2834. "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.",
  2835. "operationId": "issueEditIssueDeadline",
  2836. "parameters": [
  2837. {
  2838. "type": "string",
  2839. "description": "owner of the repo",
  2840. "name": "owner",
  2841. "in": "path",
  2842. "required": true
  2843. },
  2844. {
  2845. "type": "string",
  2846. "description": "name of the repo",
  2847. "name": "repo",
  2848. "in": "path",
  2849. "required": true
  2850. },
  2851. {
  2852. "type": "integer",
  2853. "format": "int64",
  2854. "description": "index of the issue to create or update a deadline on",
  2855. "name": "index",
  2856. "in": "path",
  2857. "required": true
  2858. },
  2859. {
  2860. "name": "body",
  2861. "in": "body",
  2862. "schema": {
  2863. "$ref": "#/definitions/EditDeadlineOption"
  2864. }
  2865. }
  2866. ],
  2867. "responses": {
  2868. "201": {
  2869. "$ref": "#/responses/IssueDeadline"
  2870. },
  2871. "403": {
  2872. "description": "Not repo writer"
  2873. },
  2874. "404": {
  2875. "description": "Issue not found"
  2876. }
  2877. }
  2878. }
  2879. },
  2880. "/repos/{owner}/{repo}/issues/{index}/labels": {
  2881. "get": {
  2882. "produces": [
  2883. "application/json"
  2884. ],
  2885. "tags": [
  2886. "issue"
  2887. ],
  2888. "summary": "Get an issue's labels",
  2889. "operationId": "issueGetLabels",
  2890. "parameters": [
  2891. {
  2892. "type": "string",
  2893. "description": "owner of the repo",
  2894. "name": "owner",
  2895. "in": "path",
  2896. "required": true
  2897. },
  2898. {
  2899. "type": "string",
  2900. "description": "name of the repo",
  2901. "name": "repo",
  2902. "in": "path",
  2903. "required": true
  2904. },
  2905. {
  2906. "type": "integer",
  2907. "format": "int64",
  2908. "description": "index of the issue",
  2909. "name": "index",
  2910. "in": "path",
  2911. "required": true
  2912. }
  2913. ],
  2914. "responses": {
  2915. "200": {
  2916. "$ref": "#/responses/LabelList"
  2917. },
  2918. "404": {
  2919. "$ref": "#/responses/notFound"
  2920. }
  2921. }
  2922. },
  2923. "put": {
  2924. "consumes": [
  2925. "application/json"
  2926. ],
  2927. "produces": [
  2928. "application/json"
  2929. ],
  2930. "tags": [
  2931. "issue"
  2932. ],
  2933. "summary": "Replace an issue's labels",
  2934. "operationId": "issueReplaceLabels",
  2935. "parameters": [
  2936. {
  2937. "type": "string",
  2938. "description": "owner of the repo",
  2939. "name": "owner",
  2940. "in": "path",
  2941. "required": true
  2942. },
  2943. {
  2944. "type": "string",
  2945. "description": "name of the repo",
  2946. "name": "repo",
  2947. "in": "path",
  2948. "required": true
  2949. },
  2950. {
  2951. "type": "integer",
  2952. "format": "int64",
  2953. "description": "index of the issue",
  2954. "name": "index",
  2955. "in": "path",
  2956. "required": true
  2957. },
  2958. {
  2959. "name": "body",
  2960. "in": "body",
  2961. "schema": {
  2962. "$ref": "#/definitions/IssueLabelsOption"
  2963. }
  2964. }
  2965. ],
  2966. "responses": {
  2967. "200": {
  2968. "$ref": "#/responses/LabelList"
  2969. }
  2970. }
  2971. },
  2972. "post": {
  2973. "consumes": [
  2974. "application/json"
  2975. ],
  2976. "produces": [
  2977. "application/json"
  2978. ],
  2979. "tags": [
  2980. "issue"
  2981. ],
  2982. "summary": "Add a label to an issue",
  2983. "operationId": "issueAddLabel",
  2984. "parameters": [
  2985. {
  2986. "type": "string",
  2987. "description": "owner of the repo",
  2988. "name": "owner",
  2989. "in": "path",
  2990. "required": true
  2991. },
  2992. {
  2993. "type": "string",
  2994. "description": "name of the repo",
  2995. "name": "repo",
  2996. "in": "path",
  2997. "required": true
  2998. },
  2999. {
  3000. "type": "integer",
  3001. "format": "int64",
  3002. "description": "index of the issue",
  3003. "name": "index",
  3004. "in": "path",
  3005. "required": true
  3006. },
  3007. {
  3008. "name": "body",
  3009. "in": "body",
  3010. "schema": {
  3011. "$ref": "#/definitions/IssueLabelsOption"
  3012. }
  3013. }
  3014. ],
  3015. "responses": {
  3016. "200": {
  3017. "$ref": "#/responses/LabelList"
  3018. }
  3019. }
  3020. },
  3021. "delete": {
  3022. "produces": [
  3023. "application/json"
  3024. ],
  3025. "tags": [
  3026. "issue"
  3027. ],
  3028. "summary": "Remove all labels from an issue",
  3029. "operationId": "issueClearLabels",
  3030. "parameters": [
  3031. {
  3032. "type": "string",
  3033. "description": "owner of the repo",
  3034. "name": "owner",
  3035. "in": "path",
  3036. "required": true
  3037. },
  3038. {
  3039. "type": "string",
  3040. "description": "name of the repo",
  3041. "name": "repo",
  3042. "in": "path",
  3043. "required": true
  3044. },
  3045. {
  3046. "type": "integer",
  3047. "format": "int64",
  3048. "description": "index of the issue",
  3049. "name": "index",
  3050. "in": "path",
  3051. "required": true
  3052. }
  3053. ],
  3054. "responses": {
  3055. "204": {
  3056. "$ref": "#/responses/empty"
  3057. }
  3058. }
  3059. }
  3060. },
  3061. "/repos/{owner}/{repo}/issues/{index}/labels/{id}": {
  3062. "delete": {
  3063. "produces": [
  3064. "application/json"
  3065. ],
  3066. "tags": [
  3067. "issue"
  3068. ],
  3069. "summary": "Remove a label from an issue",
  3070. "operationId": "issueRemoveLabel",
  3071. "parameters": [
  3072. {
  3073. "type": "string",
  3074. "description": "owner of the repo",
  3075. "name": "owner",
  3076. "in": "path",
  3077. "required": true
  3078. },
  3079. {
  3080. "type": "string",
  3081. "description": "name of the repo",
  3082. "name": "repo",
  3083. "in": "path",
  3084. "required": true
  3085. },
  3086. {
  3087. "type": "integer",
  3088. "format": "int64",
  3089. "description": "index of the issue",
  3090. "name": "index",
  3091. "in": "path",
  3092. "required": true
  3093. },
  3094. {
  3095. "type": "integer",
  3096. "format": "int64",
  3097. "description": "id of the label to remove",
  3098. "name": "id",
  3099. "in": "path",
  3100. "required": true
  3101. }
  3102. ],
  3103. "responses": {
  3104. "204": {
  3105. "$ref": "#/responses/empty"
  3106. }
  3107. }
  3108. }
  3109. },
  3110. "/repos/{owner}/{repo}/issues/{index}/stopwatch/start": {
  3111. "post": {
  3112. "consumes": [
  3113. "application/json"
  3114. ],
  3115. "produces": [
  3116. "application/json"
  3117. ],
  3118. "tags": [
  3119. "issue"
  3120. ],
  3121. "summary": "Start stopwatch on an issue.",
  3122. "operationId": "issueStartStopWatch",
  3123. "parameters": [
  3124. {
  3125. "type": "string",
  3126. "description": "owner of the repo",
  3127. "name": "owner",
  3128. "in": "path",
  3129. "required": true
  3130. },
  3131. {
  3132. "type": "string",
  3133. "description": "name of the repo",
  3134. "name": "repo",
  3135. "in": "path",
  3136. "required": true
  3137. },
  3138. {
  3139. "type": "integer",
  3140. "format": "int64",
  3141. "description": "index of the issue to create the stopwatch on",
  3142. "name": "index",
  3143. "in": "path",
  3144. "required": true
  3145. }
  3146. ],
  3147. "responses": {
  3148. "201": {
  3149. "$ref": "#/responses/empty"
  3150. },
  3151. "403": {
  3152. "description": "Not repo writer, user does not have rights to toggle stopwatch"
  3153. },
  3154. "404": {
  3155. "description": "Issue not found"
  3156. },
  3157. "409": {
  3158. "description": "Cannot start a stopwatch again if it already exists"
  3159. }
  3160. }
  3161. }
  3162. },
  3163. "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop": {
  3164. "post": {
  3165. "consumes": [
  3166. "application/json"
  3167. ],
  3168. "produces": [
  3169. "application/json"
  3170. ],
  3171. "tags": [
  3172. "issue"
  3173. ],
  3174. "summary": "Stop an issue's existing stopwatch.",
  3175. "operationId": "issueStopWatch",
  3176. "parameters": [
  3177. {
  3178. "type": "string",
  3179. "description": "owner of the repo",
  3180. "name": "owner",
  3181. "in": "path",
  3182. "required": true
  3183. },
  3184. {
  3185. "type": "string",
  3186. "description": "name of the repo",
  3187. "name": "repo",
  3188. "in": "path",
  3189. "required": true
  3190. },
  3191. {
  3192. "type": "integer",
  3193. "format": "int64",
  3194. "description": "index of the issue to stop the stopwatch on",
  3195. "name": "index",
  3196. "in": "path",
  3197. "required": true
  3198. }
  3199. ],
  3200. "responses": {
  3201. "201": {
  3202. "$ref": "#/responses/empty"
  3203. },
  3204. "403": {
  3205. "description": "Not repo writer, user does not have rights to toggle stopwatch"
  3206. },
  3207. "404": {
  3208. "description": "Issue not found"
  3209. },
  3210. "409": {
  3211. "description": "Cannot stop a non existent stopwatch"
  3212. }
  3213. }
  3214. }
  3215. },
  3216. "/repos/{owner}/{repo}/keys": {
  3217. "get": {
  3218. "produces": [
  3219. "application/json"
  3220. ],
  3221. "tags": [
  3222. "repository"
  3223. ],
  3224. "summary": "List a repository's keys",
  3225. "operationId": "repoListKeys",
  3226. "parameters": [
  3227. {
  3228. "type": "string",
  3229. "description": "owner of the repo",
  3230. "name": "owner",
  3231. "in": "path",
  3232. "required": true
  3233. },
  3234. {
  3235. "type": "string",
  3236. "description": "name of the repo",
  3237. "name": "repo",
  3238. "in": "path",
  3239. "required": true
  3240. },
  3241. {
  3242. "type": "integer",
  3243. "description": "the key_id to search for",
  3244. "name": "key_id",
  3245. "in": "query"
  3246. },
  3247. {
  3248. "type": "string",
  3249. "description": "fingerprint of the key",
  3250. "name": "fingerprint",
  3251. "in": "query"
  3252. }
  3253. ],
  3254. "responses": {
  3255. "200": {
  3256. "$ref": "#/responses/DeployKeyList"
  3257. }
  3258. }
  3259. },
  3260. "post": {
  3261. "consumes": [
  3262. "application/json"
  3263. ],
  3264. "produces": [
  3265. "application/json"
  3266. ],
  3267. "tags": [
  3268. "repository"
  3269. ],
  3270. "summary": "Add a key to a repository",
  3271. "operationId": "repoCreateKey",
  3272. "parameters": [
  3273. {
  3274. "type": "string",
  3275. "description": "owner of the repo",
  3276. "name": "owner",
  3277. "in": "path",
  3278. "required": true
  3279. },
  3280. {
  3281. "type": "string",
  3282. "description": "name of the repo",
  3283. "name": "repo",
  3284. "in": "path",
  3285. "required": true
  3286. },
  3287. {
  3288. "name": "body",
  3289. "in": "body",
  3290. "schema": {
  3291. "$ref": "#/definitions/CreateKeyOption"
  3292. }
  3293. }
  3294. ],
  3295. "responses": {
  3296. "201": {
  3297. "$ref": "#/responses/DeployKey"
  3298. }
  3299. }
  3300. }
  3301. },
  3302. "/repos/{owner}/{repo}/keys/{id}": {
  3303. "get": {
  3304. "produces": [
  3305. "application/json"
  3306. ],
  3307. "tags": [
  3308. "repository"
  3309. ],
  3310. "summary": "Get a repository's key by id",
  3311. "operationId": "repoGetKey",
  3312. "parameters": [
  3313. {
  3314. "type": "string",
  3315. "description": "owner of the repo",
  3316. "name": "owner",
  3317. "in": "path",
  3318. "required": true
  3319. },
  3320. {
  3321. "type": "string",
  3322. "description": "name of the repo",
  3323. "name": "repo",
  3324. "in": "path",
  3325. "required": true
  3326. },
  3327. {
  3328. "type": "integer",
  3329. "format": "int64",
  3330. "description": "id of the key to get",
  3331. "name": "id",
  3332. "in": "path",
  3333. "required": true
  3334. }
  3335. ],
  3336. "responses": {
  3337. "200": {
  3338. "$ref": "#/responses/DeployKey"
  3339. }
  3340. }
  3341. },
  3342. "delete": {
  3343. "tags": [
  3344. "repository"
  3345. ],
  3346. "summary": "Delete a key from a repository",
  3347. "operationId": "repoDeleteKey",
  3348. "parameters": [
  3349. {
  3350. "type": "string",
  3351. "description": "owner of the repo",
  3352. "name": "owner",
  3353. "in": "path",
  3354. "required": true
  3355. },
  3356. {
  3357. "type": "string",
  3358. "description": "name of the repo",
  3359. "name": "repo",
  3360. "in": "path",
  3361. "required": true
  3362. },
  3363. {
  3364. "type": "integer",
  3365. "format": "int64",
  3366. "description": "id of the key to delete",
  3367. "name": "id",
  3368. "in": "path",
  3369. "required": true
  3370. }
  3371. ],
  3372. "responses": {
  3373. "204": {
  3374. "$ref": "#/responses/empty"
  3375. }
  3376. }
  3377. }
  3378. },
  3379. "/repos/{owner}/{repo}/labels": {
  3380. "get": {
  3381. "produces": [
  3382. "application/json"
  3383. ],
  3384. "tags": [
  3385. "issue"
  3386. ],
  3387. "summary": "Get all of a repository's labels",
  3388. "operationId": "issueListLabels",
  3389. "parameters": [
  3390. {
  3391. "type": "string",
  3392. "description": "owner of the repo",
  3393. "name": "owner",
  3394. "in": "path",
  3395. "required": true
  3396. },
  3397. {
  3398. "type": "string",
  3399. "description": "name of the repo",
  3400. "name": "repo",
  3401. "in": "path",
  3402. "required": true
  3403. }
  3404. ],
  3405. "responses": {
  3406. "200": {
  3407. "$ref": "#/responses/LabelList"
  3408. }
  3409. }
  3410. },
  3411. "post": {
  3412. "consumes": [
  3413. "application/json"
  3414. ],
  3415. "produces": [
  3416. "application/json"
  3417. ],
  3418. "tags": [
  3419. "issue"
  3420. ],
  3421. "summary": "Create a label",
  3422. "operationId": "issueCreateLabel",
  3423. "parameters": [
  3424. {
  3425. "type": "string",
  3426. "description": "owner of the repo",
  3427. "name": "owner",
  3428. "in": "path",
  3429. "required": true
  3430. },
  3431. {
  3432. "type": "string",
  3433. "description": "name of the repo",
  3434. "name": "repo",
  3435. "in": "path",
  3436. "required": true
  3437. },
  3438. {
  3439. "name": "body",
  3440. "in": "body",
  3441. "schema": {
  3442. "$ref": "#/definitions/CreateLabelOption"
  3443. }
  3444. }
  3445. ],
  3446. "responses": {
  3447. "201": {
  3448. "$ref": "#/responses/Label"
  3449. }
  3450. }
  3451. }
  3452. },
  3453. "/repos/{owner}/{repo}/labels/{id}": {
  3454. "get": {
  3455. "produces": [
  3456. "application/json"
  3457. ],
  3458. "tags": [
  3459. "issue"
  3460. ],
  3461. "summary": "Get a single label",
  3462. "operationId": "issueGetLabel",
  3463. "parameters": [
  3464. {
  3465. "type": "string",
  3466. "description": "owner of the repo",
  3467. "name": "owner",
  3468. "in": "path",
  3469. "required": true
  3470. },
  3471. {
  3472. "type": "string",
  3473. "description": "name of the repo",
  3474. "name": "repo",
  3475. "in": "path",
  3476. "required": true
  3477. },
  3478. {
  3479. "type": "integer",
  3480. "format": "int64",
  3481. "description": "id of the label to get",
  3482. "name": "id",
  3483. "in": "path",
  3484. "required": true
  3485. }
  3486. ],
  3487. "responses": {
  3488. "200": {
  3489. "$ref": "#/responses/Label"
  3490. }
  3491. }
  3492. },
  3493. "delete": {
  3494. "tags": [
  3495. "issue"
  3496. ],
  3497. "summary": "Delete a label",
  3498. "operationId": "issueDeleteLabel",
  3499. "parameters": [
  3500. {
  3501. "type": "string",
  3502. "description": "owner of the repo",
  3503. "name": "owner",
  3504. "in": "path",
  3505. "required": true
  3506. },
  3507. {
  3508. "type": "string",
  3509. "description": "name of the repo",
  3510. "name": "repo",
  3511. "in": "path",
  3512. "required": true
  3513. },
  3514. {
  3515. "type": "integer",
  3516. "format": "int64",
  3517. "description": "id of the label to delete",
  3518. "name": "id",
  3519. "in": "path",
  3520. "required": true
  3521. }
  3522. ],
  3523. "responses": {
  3524. "204": {
  3525. "$ref": "#/responses/empty"
  3526. }
  3527. }
  3528. },
  3529. "patch": {
  3530. "consumes": [
  3531. "application/json"
  3532. ],
  3533. "produces": [
  3534. "application/json"
  3535. ],
  3536. "tags": [
  3537. "issue"
  3538. ],
  3539. "summary": "Update a label",
  3540. "operationId": "issueEditLabel",
  3541. "parameters": [
  3542. {
  3543. "type": "string",
  3544. "description": "owner of the repo",
  3545. "name": "owner",
  3546. "in": "path",
  3547. "required": true
  3548. },
  3549. {
  3550. "type": "string",
  3551. "description": "name of the repo",
  3552. "name": "repo",
  3553. "in": "path",
  3554. "required": true
  3555. },
  3556. {
  3557. "type": "integer",
  3558. "format": "int64",
  3559. "description": "id of the label to edit",
  3560. "name": "id",
  3561. "in": "path",
  3562. "required": true
  3563. },
  3564. {
  3565. "name": "body",
  3566. "in": "body",
  3567. "schema": {
  3568. "$ref": "#/definitions/EditLabelOption"
  3569. }
  3570. }
  3571. ],
  3572. "responses": {
  3573. "200": {
  3574. "$ref": "#/responses/Label"
  3575. }
  3576. }
  3577. }
  3578. },
  3579. "/repos/{owner}/{repo}/milestones": {
  3580. "get": {
  3581. "produces": [
  3582. "application/json"
  3583. ],
  3584. "tags": [
  3585. "issue"
  3586. ],
  3587. "summary": "Get all of a repository's opened milestones",
  3588. "operationId": "issueGetMilestonesList",
  3589. "parameters": [
  3590. {
  3591. "type": "string",
  3592. "description": "owner of the repo",
  3593. "name": "owner",
  3594. "in": "path",
  3595. "required": true
  3596. },
  3597. {
  3598. "type": "string",
  3599. "description": "name of the repo",
  3600. "name": "repo",
  3601. "in": "path",
  3602. "required": true
  3603. }
  3604. ],
  3605. "responses": {
  3606. "200": {
  3607. "$ref": "#/responses/MilestoneList"
  3608. }
  3609. }
  3610. },
  3611. "post": {
  3612. "consumes": [
  3613. "application/json"
  3614. ],
  3615. "produces": [
  3616. "application/json"
  3617. ],
  3618. "tags": [
  3619. "issue"
  3620. ],
  3621. "summary": "Create a milestone",
  3622. "operationId": "issueCreateMilestone",
  3623. "parameters": [
  3624. {
  3625. "type": "string",
  3626. "description": "owner of the repo",
  3627. "name": "owner",
  3628. "in": "path",
  3629. "required": true
  3630. },
  3631. {
  3632. "type": "string",
  3633. "description": "name of the repo",
  3634. "name": "repo",
  3635. "in": "path",
  3636. "required": true
  3637. },
  3638. {
  3639. "name": "body",
  3640. "in": "body",
  3641. "schema": {
  3642. "$ref": "#/definitions/CreateMilestoneOption"
  3643. }
  3644. }
  3645. ],
  3646. "responses": {
  3647. "201": {
  3648. "$ref": "#/responses/Milestone"
  3649. }
  3650. }
  3651. }
  3652. },
  3653. "/repos/{owner}/{repo}/milestones/{id}": {
  3654. "get": {
  3655. "produces": [
  3656. "application/json"
  3657. ],
  3658. "tags": [
  3659. "issue"
  3660. ],
  3661. "summary": "Get a milestone",
  3662. "operationId": "issueGetMilestone",
  3663. "parameters": [
  3664. {
  3665. "type": "string",
  3666. "description": "owner of the repo",
  3667. "name": "owner",
  3668. "in": "path",
  3669. "required": true
  3670. },
  3671. {
  3672. "type": "string",
  3673. "description": "name of the repo",
  3674. "name": "repo",
  3675. "in": "path",
  3676. "required": true
  3677. },
  3678. {
  3679. "type": "integer",
  3680. "format": "int64",
  3681. "description": "id of the milestone",
  3682. "name": "id",
  3683. "in": "path",
  3684. "required": true
  3685. }
  3686. ],
  3687. "responses": {
  3688. "200": {
  3689. "$ref": "#/responses/Milestone"
  3690. }
  3691. }
  3692. },
  3693. "delete": {
  3694. "tags": [
  3695. "issue"
  3696. ],
  3697. "summary": "Delete a milestone",
  3698. "operationId": "issueDeleteMilestone",
  3699. "parameters": [
  3700. {
  3701. "type": "string",
  3702. "description": "owner of the repo",
  3703. "name": "owner",
  3704. "in": "path",
  3705. "required": true
  3706. },
  3707. {
  3708. "type": "string",
  3709. "description": "name of the repo",
  3710. "name": "repo",
  3711. "in": "path",
  3712. "required": true
  3713. },
  3714. {
  3715. "type": "integer",
  3716. "format": "int64",
  3717. "description": "id of the milestone to delete",
  3718. "name": "id",
  3719. "in": "path",
  3720. "required": true
  3721. }
  3722. ],
  3723. "responses": {
  3724. "204": {
  3725. "$ref": "#/responses/empty"
  3726. }
  3727. }
  3728. },
  3729. "patch": {
  3730. "consumes": [
  3731. "application/json"
  3732. ],
  3733. "produces": [
  3734. "application/json"
  3735. ],
  3736. "tags": [
  3737. "issue"
  3738. ],
  3739. "summary": "Update a milestone",
  3740. "operationId": "issueEditMilestone",
  3741. "parameters": [
  3742. {
  3743. "type": "string",
  3744. "description": "owner of the repo",
  3745. "name": "owner",
  3746. "in": "path",
  3747. "required": true
  3748. },
  3749. {
  3750. "type": "string",
  3751. "description": "name of the repo",
  3752. "name": "repo",
  3753. "in": "path",
  3754. "required": true
  3755. },
  3756. {
  3757. "type": "integer",
  3758. "format": "int64",
  3759. "description": "id of the milestone",
  3760. "name": "id",
  3761. "in": "path",
  3762. "required": true
  3763. },
  3764. {
  3765. "name": "body",
  3766. "in": "body",
  3767. "schema": {
  3768. "$ref": "#/definitions/EditMilestoneOption"
  3769. }
  3770. }
  3771. ],
  3772. "responses": {
  3773. "200": {
  3774. "$ref": "#/responses/Milestone"
  3775. }
  3776. }
  3777. }
  3778. },
  3779. "/repos/{owner}/{repo}/mirror-sync": {
  3780. "post": {
  3781. "produces": [
  3782. "application/json"
  3783. ],
  3784. "tags": [
  3785. "repository"
  3786. ],
  3787. "summary": "Sync a mirrored repository",
  3788. "operationId": "repoMirrorSync",
  3789. "parameters": [
  3790. {
  3791. "type": "string",
  3792. "description": "owner of the repo to sync",
  3793. "name": "owner",
  3794. "in": "path",
  3795. "required": true
  3796. },
  3797. {
  3798. "type": "string",
  3799. "description": "name of the repo to sync",
  3800. "name": "repo",
  3801. "in": "path",
  3802. "required": true
  3803. }
  3804. ],
  3805. "responses": {
  3806. "200": {
  3807. "$ref": "#/responses/empty"
  3808. }
  3809. }
  3810. }
  3811. },
  3812. "/repos/{owner}/{repo}/pulls": {
  3813. "get": {
  3814. "produces": [
  3815. "application/json"
  3816. ],
  3817. "tags": [
  3818. "repository"
  3819. ],
  3820. "summary": "List a repo's pull requests",
  3821. "operationId": "repoListPullRequests",
  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. "description": "Page number",
  3840. "name": "page",
  3841. "in": "query"
  3842. },
  3843. {
  3844. "enum": [
  3845. "closed",
  3846. "open",
  3847. "all"
  3848. ],
  3849. "type": "string",
  3850. "description": "State of pull request: open or closed (optional)",
  3851. "name": "state",
  3852. "in": "query"
  3853. },
  3854. {
  3855. "enum": [
  3856. "oldest",
  3857. "recentupdate",
  3858. "leastupdate",
  3859. "mostcomment",
  3860. "leastcomment",
  3861. "priority"
  3862. ],
  3863. "type": "string",
  3864. "description": "Type of sort",
  3865. "name": "sort",
  3866. "in": "query"
  3867. },
  3868. {
  3869. "type": "integer",
  3870. "format": "int64",
  3871. "description": "ID of the milestone",
  3872. "name": "milestone",
  3873. "in": "query"
  3874. },
  3875. {
  3876. "type": "array",
  3877. "items": {
  3878. "type": "integer",
  3879. "format": "int64"
  3880. },
  3881. "collectionFormat": "multi",
  3882. "description": "Label IDs",
  3883. "name": "labels",
  3884. "in": "query"
  3885. }
  3886. ],
  3887. "responses": {
  3888. "200": {
  3889. "$ref": "#/responses/PullRequestList"
  3890. }
  3891. }
  3892. },
  3893. "post": {
  3894. "consumes": [
  3895. "application/json"
  3896. ],
  3897. "produces": [
  3898. "application/json"
  3899. ],
  3900. "tags": [
  3901. "repository"
  3902. ],
  3903. "summary": "Create a pull request",
  3904. "operationId": "repoCreatePullRequest",
  3905. "parameters": [
  3906. {
  3907. "type": "string",
  3908. "description": "owner of the repo",
  3909. "name": "owner",
  3910. "in": "path",
  3911. "required": true
  3912. },
  3913. {
  3914. "type": "string",
  3915. "description": "name of the repo",
  3916. "name": "repo",
  3917. "in": "path",
  3918. "required": true
  3919. },
  3920. {
  3921. "name": "body",
  3922. "in": "body",
  3923. "schema": {
  3924. "$ref": "#/definitions/CreatePullRequestOption"
  3925. }
  3926. }
  3927. ],
  3928. "responses": {
  3929. "201": {
  3930. "$ref": "#/responses/PullRequest"
  3931. }
  3932. }
  3933. }
  3934. },
  3935. "/repos/{owner}/{repo}/pulls/{index}": {
  3936. "get": {
  3937. "produces": [
  3938. "application/json"
  3939. ],
  3940. "tags": [
  3941. "repository"
  3942. ],
  3943. "summary": "Get a pull request",
  3944. "operationId": "repoGetPullRequest",
  3945. "parameters": [
  3946. {
  3947. "type": "string",
  3948. "description": "owner of the repo",
  3949. "name": "owner",
  3950. "in": "path",
  3951. "required": true
  3952. },
  3953. {
  3954. "type": "string",
  3955. "description": "name of the repo",
  3956. "name": "repo",
  3957. "in": "path",
  3958. "required": true
  3959. },
  3960. {
  3961. "type": "integer",
  3962. "format": "int64",
  3963. "description": "index of the pull request to get",
  3964. "name": "index",
  3965. "in": "path",
  3966. "required": true
  3967. }
  3968. ],
  3969. "responses": {
  3970. "200": {
  3971. "$ref": "#/responses/PullRequest"
  3972. }
  3973. }
  3974. },
  3975. "patch": {
  3976. "consumes": [
  3977. "application/json"
  3978. ],
  3979. "produces": [
  3980. "application/json"
  3981. ],
  3982. "tags": [
  3983. "repository"
  3984. ],
  3985. "summary": "Update a pull request",
  3986. "operationId": "repoEditPullRequest",
  3987. "parameters": [
  3988. {
  3989. "type": "string",
  3990. "description": "owner of the repo",
  3991. "name": "owner",
  3992. "in": "path",
  3993. "required": true
  3994. },
  3995. {
  3996. "type": "string",
  3997. "description": "name of the repo",
  3998. "name": "repo",
  3999. "in": "path",
  4000. "required": true
  4001. },
  4002. {
  4003. "type": "integer",
  4004. "format": "int64",
  4005. "description": "index of the pull request to edit",
  4006. "name": "index",
  4007. "in": "path",
  4008. "required": true
  4009. },
  4010. {
  4011. "name": "body",
  4012. "in": "body",
  4013. "schema": {
  4014. "$ref": "#/definitions/EditPullRequestOption"
  4015. }
  4016. }
  4017. ],
  4018. "responses": {
  4019. "201": {
  4020. "$ref": "#/responses/PullRequest"
  4021. }
  4022. }
  4023. }
  4024. },
  4025. "/repos/{owner}/{repo}/pulls/{index}/merge": {
  4026. "get": {
  4027. "produces": [
  4028. "application/json"
  4029. ],
  4030. "tags": [
  4031. "repository"
  4032. ],
  4033. "summary": "Check if a pull request has been merged",
  4034. "operationId": "repoPullRequestIsMerged",
  4035. "parameters": [
  4036. {
  4037. "type": "string",
  4038. "description": "owner of the repo",
  4039. "name": "owner",
  4040. "in": "path",
  4041. "required": true
  4042. },
  4043. {
  4044. "type": "string",
  4045. "description": "name of the repo",
  4046. "name": "repo",
  4047. "in": "path",
  4048. "required": true
  4049. },
  4050. {
  4051. "type": "integer",
  4052. "format": "int64",
  4053. "description": "index of the pull request",
  4054. "name": "index",
  4055. "in": "path",
  4056. "required": true
  4057. }
  4058. ],
  4059. "responses": {
  4060. "204": {
  4061. "description": "pull request has been merged"
  4062. },
  4063. "404": {
  4064. "description": "pull request has not been merged"
  4065. }
  4066. }
  4067. },
  4068. "post": {
  4069. "produces": [
  4070. "application/json"
  4071. ],
  4072. "tags": [
  4073. "repository"
  4074. ],
  4075. "summary": "Merge a pull request",
  4076. "operationId": "repoMergePullRequest",
  4077. "parameters": [
  4078. {
  4079. "type": "string",
  4080. "description": "owner of the repo",
  4081. "name": "owner",
  4082. "in": "path",
  4083. "required": true
  4084. },
  4085. {
  4086. "type": "string",
  4087. "description": "name of the repo",
  4088. "name": "repo",
  4089. "in": "path",
  4090. "required": true
  4091. },
  4092. {
  4093. "type": "integer",
  4094. "format": "int64",
  4095. "description": "index of the pull request to merge",
  4096. "name": "index",
  4097. "in": "path",
  4098. "required": true
  4099. },
  4100. {
  4101. "name": "body",
  4102. "in": "body",
  4103. "schema": {
  4104. "$ref": "#/definitions/MergePullRequestOption"
  4105. }
  4106. }
  4107. ],
  4108. "responses": {
  4109. "200": {
  4110. "$ref": "#/responses/empty"
  4111. },
  4112. "405": {
  4113. "$ref": "#/responses/empty"
  4114. }
  4115. }
  4116. }
  4117. },
  4118. "/repos/{owner}/{repo}/raw/{filepath}": {
  4119. "get": {
  4120. "produces": [
  4121. "application/json"
  4122. ],
  4123. "tags": [
  4124. "repository"
  4125. ],
  4126. "summary": "Get a file from a repository",
  4127. "operationId": "repoGetRawFile",
  4128. "parameters": [
  4129. {
  4130. "type": "string",
  4131. "description": "owner of the repo",
  4132. "name": "owner",
  4133. "in": "path",
  4134. "required": true
  4135. },
  4136. {
  4137. "type": "string",
  4138. "description": "name of the repo",
  4139. "name": "repo",
  4140. "in": "path",
  4141. "required": true
  4142. },
  4143. {
  4144. "type": "string",
  4145. "description": "filepath of the file to get",
  4146. "name": "filepath",
  4147. "in": "path",
  4148. "required": true
  4149. }
  4150. ],
  4151. "responses": {
  4152. "200": {
  4153. "description": "success"
  4154. }
  4155. }
  4156. }
  4157. },
  4158. "/repos/{owner}/{repo}/releases": {
  4159. "get": {
  4160. "produces": [
  4161. "application/json"
  4162. ],
  4163. "tags": [
  4164. "repository"
  4165. ],
  4166. "summary": "List a repo's releases",
  4167. "operationId": "repoListReleases",
  4168. "parameters": [
  4169. {
  4170. "type": "string",
  4171. "description": "owner of the repo",
  4172. "name": "owner",
  4173. "in": "path",
  4174. "required": true
  4175. },
  4176. {
  4177. "type": "string",
  4178. "description": "name of the repo",
  4179. "name": "repo",
  4180. "in": "path",
  4181. "required": true
  4182. },
  4183. {
  4184. "type": "integer",
  4185. "description": "page wants to load",
  4186. "name": "page",
  4187. "in": "query"
  4188. },
  4189. {
  4190. "type": "integer",
  4191. "description": "items count every page wants to load",
  4192. "name": "per_page",
  4193. "in": "query"
  4194. }
  4195. ],
  4196. "responses": {
  4197. "200": {
  4198. "$ref": "#/responses/ReleaseList"
  4199. }
  4200. }
  4201. },
  4202. "post": {
  4203. "consumes": [
  4204. "application/json"
  4205. ],
  4206. "produces": [
  4207. "application/json"
  4208. ],
  4209. "tags": [
  4210. "repository"
  4211. ],
  4212. "summary": "Create a release",
  4213. "operationId": "repoCreateRelease",
  4214. "parameters": [
  4215. {
  4216. "type": "string",
  4217. "description": "owner of the repo",
  4218. "name": "owner",
  4219. "in": "path",
  4220. "required": true
  4221. },
  4222. {
  4223. "type": "string",
  4224. "description": "name of the repo",
  4225. "name": "repo",
  4226. "in": "path",
  4227. "required": true
  4228. },
  4229. {
  4230. "name": "body",
  4231. "in": "body",
  4232. "schema": {
  4233. "$ref": "#/definitions/CreateReleaseOption"
  4234. }
  4235. }
  4236. ],
  4237. "responses": {
  4238. "201": {
  4239. "$ref": "#/responses/Release"
  4240. }
  4241. }
  4242. }
  4243. },
  4244. "/repos/{owner}/{repo}/releases/{id}": {
  4245. "get": {
  4246. "produces": [
  4247. "application/json"
  4248. ],
  4249. "tags": [
  4250. "repository"
  4251. ],
  4252. "summary": "Get a release",
  4253. "operationId": "repoGetRelease",
  4254. "parameters": [
  4255. {
  4256. "type": "string",
  4257. "description": "owner of the repo",
  4258. "name": "owner",
  4259. "in": "path",
  4260. "required": true
  4261. },
  4262. {
  4263. "type": "string",
  4264. "description": "name of the repo",
  4265. "name": "repo",
  4266. "in": "path",
  4267. "required": true
  4268. },
  4269. {
  4270. "type": "integer",
  4271. "format": "int64",
  4272. "description": "id of the release to get",
  4273. "name": "id",
  4274. "in": "path",
  4275. "required": true
  4276. }
  4277. ],
  4278. "responses": {
  4279. "200": {
  4280. "$ref": "#/responses/Release"
  4281. }
  4282. }
  4283. },
  4284. "delete": {
  4285. "tags": [
  4286. "repository"
  4287. ],
  4288. "summary": "Delete a release",
  4289. "operationId": "repoDeleteRelease",
  4290. "parameters": [
  4291. {
  4292. "type": "string",
  4293. "description": "owner of the repo",
  4294. "name": "owner",
  4295. "in": "path",
  4296. "required": true
  4297. },
  4298. {
  4299. "type": "string",
  4300. "description": "name of the repo",
  4301. "name": "repo",
  4302. "in": "path",
  4303. "required": true
  4304. },
  4305. {
  4306. "type": "integer",
  4307. "format": "int64",
  4308. "description": "id of the release to delete",
  4309. "name": "id",
  4310. "in": "path",
  4311. "required": true
  4312. }
  4313. ],
  4314. "responses": {
  4315. "204": {
  4316. "$ref": "#/responses/empty"
  4317. }
  4318. }
  4319. },
  4320. "patch": {
  4321. "consumes": [
  4322. "application/json"
  4323. ],
  4324. "produces": [
  4325. "application/json"
  4326. ],
  4327. "tags": [
  4328. "repository"
  4329. ],
  4330. "summary": "Update a release",
  4331. "operationId": "repoEditRelease",
  4332. "parameters": [
  4333. {
  4334. "type": "string",
  4335. "description": "owner of the repo",
  4336. "name": "owner",
  4337. "in": "path",
  4338. "required": true
  4339. },
  4340. {
  4341. "type": "string",
  4342. "description": "name of the repo",
  4343. "name": "repo",
  4344. "in": "path",
  4345. "required": true
  4346. },
  4347. {
  4348. "type": "integer",
  4349. "format": "int64",
  4350. "description": "id of the release to edit",
  4351. "name": "id",
  4352. "in": "path",
  4353. "required": true
  4354. },
  4355. {
  4356. "name": "body",
  4357. "in": "body",
  4358. "schema": {
  4359. "$ref": "#/definitions/EditReleaseOption"
  4360. }
  4361. }
  4362. ],
  4363. "responses": {
  4364. "200": {
  4365. "$ref": "#/responses/Release"
  4366. }
  4367. }
  4368. }
  4369. },
  4370. "/repos/{owner}/{repo}/releases/{id}/assets": {
  4371. "get": {
  4372. "produces": [
  4373. "application/json"
  4374. ],
  4375. "tags": [
  4376. "repository"
  4377. ],
  4378. "summary": "List release's attachments",
  4379. "operationId": "repoListReleaseAttachments",
  4380. "parameters": [
  4381. {
  4382. "type": "string",
  4383. "description": "owner of the repo",
  4384. "name": "owner",
  4385. "in": "path",
  4386. "required": true
  4387. },
  4388. {
  4389. "type": "string",
  4390. "description": "name of the repo",
  4391. "name": "repo",
  4392. "in": "path",
  4393. "required": true
  4394. },
  4395. {
  4396. "type": "integer",
  4397. "format": "int64",
  4398. "description": "id of the release",
  4399. "name": "id",
  4400. "in": "path",
  4401. "required": true
  4402. }
  4403. ],
  4404. "responses": {
  4405. "200": {
  4406. "$ref": "#/responses/AttachmentList"
  4407. }
  4408. }
  4409. },
  4410. "post": {
  4411. "consumes": [
  4412. "multipart/form-data"
  4413. ],
  4414. "produces": [
  4415. "application/json"
  4416. ],
  4417. "tags": [
  4418. "repository"
  4419. ],
  4420. "summary": "Create a release attachment",
  4421. "operationId": "repoCreateReleaseAttachment",
  4422. "parameters": [
  4423. {
  4424. "type": "string",
  4425. "description": "owner of the repo",
  4426. "name": "owner",
  4427. "in": "path",
  4428. "required": true
  4429. },
  4430. {
  4431. "type": "string",
  4432. "description": "name of the repo",
  4433. "name": "repo",
  4434. "in": "path",
  4435. "required": true
  4436. },
  4437. {
  4438. "type": "integer",
  4439. "format": "int64",
  4440. "description": "id of the release",
  4441. "name": "id",
  4442. "in": "path",
  4443. "required": true
  4444. },
  4445. {
  4446. "type": "string",
  4447. "description": "name of the attachment",
  4448. "name": "name",
  4449. "in": "query"
  4450. },
  4451. {
  4452. "type": "file",
  4453. "description": "attachment to upload",
  4454. "name": "attachment",
  4455. "in": "formData",
  4456. "required": true
  4457. }
  4458. ],
  4459. "responses": {
  4460. "201": {
  4461. "$ref": "#/responses/Attachment"
  4462. }
  4463. }
  4464. }
  4465. },
  4466. "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": {
  4467. "get": {
  4468. "produces": [
  4469. "application/json"
  4470. ],
  4471. "tags": [
  4472. "repository"
  4473. ],
  4474. "summary": "Get a release attachment",
  4475. "operationId": "repoGetReleaseAttachment",
  4476. "parameters": [
  4477. {
  4478. "type": "string",
  4479. "description": "owner of the repo",
  4480. "name": "owner",
  4481. "in": "path",
  4482. "required": true
  4483. },
  4484. {
  4485. "type": "string",
  4486. "description": "name of the repo",
  4487. "name": "repo",
  4488. "in": "path",
  4489. "required": true
  4490. },
  4491. {
  4492. "type": "integer",
  4493. "format": "int64",
  4494. "description": "id of the release",
  4495. "name": "id",
  4496. "in": "path",
  4497. "required": true
  4498. },
  4499. {
  4500. "type": "integer",
  4501. "format": "int64",
  4502. "description": "id of the attachment to get",
  4503. "name": "attachment_id",
  4504. "in": "path",
  4505. "required": true
  4506. }
  4507. ],
  4508. "responses": {
  4509. "200": {
  4510. "$ref": "#/responses/Attachment"
  4511. }
  4512. }
  4513. },
  4514. "delete": {
  4515. "produces": [
  4516. "application/json"
  4517. ],
  4518. "tags": [
  4519. "repository"
  4520. ],
  4521. "summary": "Delete a release attachment",
  4522. "operationId": "repoDeleteReleaseAttachment",
  4523. "parameters": [
  4524. {
  4525. "type": "string",
  4526. "description": "owner of the repo",
  4527. "name": "owner",
  4528. "in": "path",
  4529. "required": true
  4530. },
  4531. {
  4532. "type": "string",
  4533. "description": "name of the repo",
  4534. "name": "repo",
  4535. "in": "path",
  4536. "required": true
  4537. },
  4538. {
  4539. "type": "integer",
  4540. "format": "int64",
  4541. "description": "id of the release",
  4542. "name": "id",
  4543. "in": "path",
  4544. "required": true
  4545. },
  4546. {
  4547. "type": "integer",
  4548. "format": "int64",
  4549. "description": "id of the attachment to delete",
  4550. "name": "attachment_id",
  4551. "in": "path",
  4552. "required": true
  4553. }
  4554. ],
  4555. "responses": {
  4556. "204": {
  4557. "$ref": "#/responses/empty"
  4558. }
  4559. }
  4560. },
  4561. "patch": {
  4562. "consumes": [
  4563. "application/json"
  4564. ],
  4565. "produces": [
  4566. "application/json"
  4567. ],
  4568. "tags": [
  4569. "repository"
  4570. ],
  4571. "summary": "Edit a release attachment",
  4572. "operationId": "repoEditReleaseAttachment",
  4573. "parameters": [
  4574. {
  4575. "type": "string",
  4576. "description": "owner of the repo",
  4577. "name": "owner",
  4578. "in": "path",
  4579. "required": true
  4580. },
  4581. {
  4582. "type": "string",
  4583. "description": "name of the repo",
  4584. "name": "repo",
  4585. "in": "path",
  4586. "required": true
  4587. },
  4588. {
  4589. "type": "integer",
  4590. "format": "int64",
  4591. "description": "id of the release",
  4592. "name": "id",
  4593. "in": "path",
  4594. "required": true
  4595. },
  4596. {
  4597. "type": "integer",
  4598. "format": "int64",
  4599. "description": "id of the attachment to edit",
  4600. "name": "attachment_id",
  4601. "in": "path",
  4602. "required": true
  4603. },
  4604. {
  4605. "name": "body",
  4606. "in": "body",
  4607. "schema": {
  4608. "$ref": "#/definitions/EditAttachmentOptions"
  4609. }
  4610. }
  4611. ],
  4612. "responses": {
  4613. "201": {
  4614. "$ref": "#/responses/Attachment"
  4615. }
  4616. }
  4617. }
  4618. },
  4619. "/repos/{owner}/{repo}/stargazers": {
  4620. "get": {
  4621. "produces": [
  4622. "application/json"
  4623. ],
  4624. "tags": [
  4625. "repository"
  4626. ],
  4627. "summary": "List a repo's stargazers",
  4628. "operationId": "repoListStargazers",
  4629. "parameters": [
  4630. {
  4631. "type": "string",
  4632. "description": "owner of the repo",
  4633. "name": "owner",
  4634. "in": "path",
  4635. "required": true
  4636. },
  4637. {
  4638. "type": "string",
  4639. "description": "name of the repo",
  4640. "name": "repo",
  4641. "in": "path",
  4642. "required": true
  4643. }
  4644. ],
  4645. "responses": {
  4646. "200": {
  4647. "$ref": "#/responses/UserList"
  4648. }
  4649. }
  4650. }
  4651. },
  4652. "/repos/{owner}/{repo}/statuses/{sha}": {
  4653. "get": {
  4654. "produces": [
  4655. "application/json"
  4656. ],
  4657. "tags": [
  4658. "repository"
  4659. ],
  4660. "summary": "Get a commit's statuses",
  4661. "operationId": "repoListStatuses",
  4662. "parameters": [
  4663. {
  4664. "type": "string",
  4665. "description": "owner of the repo",
  4666. "name": "owner",
  4667. "in": "path",
  4668. "required": true
  4669. },
  4670. {
  4671. "type": "string",
  4672. "description": "name of the repo",
  4673. "name": "repo",
  4674. "in": "path",
  4675. "required": true
  4676. },
  4677. {
  4678. "type": "string",
  4679. "description": "sha of the commit",
  4680. "name": "sha",
  4681. "in": "path",
  4682. "required": true
  4683. }
  4684. ],
  4685. "responses": {
  4686. "200": {
  4687. "$ref": "#/responses/StatusList"
  4688. }
  4689. }
  4690. },
  4691. "post": {
  4692. "produces": [
  4693. "application/json"
  4694. ],
  4695. "tags": [
  4696. "repository"
  4697. ],
  4698. "summary": "Create a commit status",
  4699. "operationId": "repoCreateStatus",
  4700. "parameters": [
  4701. {
  4702. "type": "string",
  4703. "description": "owner of the repo",
  4704. "name": "owner",
  4705. "in": "path",
  4706. "required": true
  4707. },
  4708. {
  4709. "type": "string",
  4710. "description": "name of the repo",
  4711. "name": "repo",
  4712. "in": "path",
  4713. "required": true
  4714. },
  4715. {
  4716. "type": "string",
  4717. "description": "sha of the commit",
  4718. "name": "sha",
  4719. "in": "path",
  4720. "required": true
  4721. },
  4722. {
  4723. "name": "body",
  4724. "in": "body",
  4725. "schema": {
  4726. "$ref": "#/definitions/CreateStatusOption"
  4727. }
  4728. }
  4729. ],
  4730. "responses": {
  4731. "200": {
  4732. "$ref": "#/responses/StatusList"
  4733. }
  4734. }
  4735. }
  4736. },
  4737. "/repos/{owner}/{repo}/subscribers": {
  4738. "get": {
  4739. "produces": [
  4740. "application/json"
  4741. ],
  4742. "tags": [
  4743. "repository"
  4744. ],
  4745. "summary": "List a repo's watchers",
  4746. "operationId": "repoListSubscribers",
  4747. "parameters": [
  4748. {
  4749. "type": "string",
  4750. "description": "owner of the repo",
  4751. "name": "owner",
  4752. "in": "path",
  4753. "required": true
  4754. },
  4755. {
  4756. "type": "string",
  4757. "description": "name of the repo",
  4758. "name": "repo",
  4759. "in": "path",
  4760. "required": true
  4761. }
  4762. ],
  4763. "responses": {
  4764. "200": {
  4765. "$ref": "#/responses/UserList"
  4766. }
  4767. }
  4768. }
  4769. },
  4770. "/repos/{owner}/{repo}/subscription": {
  4771. "get": {
  4772. "tags": [
  4773. "repository"
  4774. ],
  4775. "summary": "Check if the current user is watching a repo",
  4776. "operationId": "userCurrentCheckSubscription",
  4777. "parameters": [
  4778. {
  4779. "type": "string",
  4780. "description": "owner of the repo",
  4781. "name": "owner",
  4782. "in": "path",
  4783. "required": true
  4784. },
  4785. {
  4786. "type": "string",
  4787. "description": "name of the repo",
  4788. "name": "repo",
  4789. "in": "path",
  4790. "required": true
  4791. }
  4792. ],
  4793. "responses": {
  4794. "200": {
  4795. "$ref": "#/responses/WatchInfo"
  4796. }
  4797. }
  4798. },
  4799. "put": {
  4800. "tags": [
  4801. "repository"
  4802. ],
  4803. "summary": "Watch a repo",
  4804. "operationId": "userCurrentPutSubscription",
  4805. "parameters": [
  4806. {
  4807. "type": "string",
  4808. "description": "owner of the repo",
  4809. "name": "owner",
  4810. "in": "path",
  4811. "required": true
  4812. },
  4813. {
  4814. "type": "string",
  4815. "description": "name of the repo",
  4816. "name": "repo",
  4817. "in": "path",
  4818. "required": true
  4819. }
  4820. ],
  4821. "responses": {
  4822. "200": {
  4823. "$ref": "#/responses/WatchInfo"
  4824. }
  4825. }
  4826. },
  4827. "delete": {
  4828. "tags": [
  4829. "repository"
  4830. ],
  4831. "summary": "Unwatch a repo",
  4832. "operationId": "userCurrentDeleteSubscription",
  4833. "parameters": [
  4834. {
  4835. "type": "string",
  4836. "description": "owner of the repo",
  4837. "name": "owner",
  4838. "in": "path",
  4839. "required": true
  4840. },
  4841. {
  4842. "type": "string",
  4843. "description": "name of the repo",
  4844. "name": "repo",
  4845. "in": "path",
  4846. "required": true
  4847. }
  4848. ],
  4849. "responses": {
  4850. "204": {
  4851. "$ref": "#/responses/empty"
  4852. }
  4853. }
  4854. }
  4855. },
  4856. "/repos/{owner}/{repo}/tags": {
  4857. "get": {
  4858. "produces": [
  4859. "application/json"
  4860. ],
  4861. "tags": [
  4862. "repository"
  4863. ],
  4864. "summary": "List a repository's tags",
  4865. "operationId": "repoListTags",
  4866. "parameters": [
  4867. {
  4868. "type": "string",
  4869. "description": "owner of the repo",
  4870. "name": "owner",
  4871. "in": "path",
  4872. "required": true
  4873. },
  4874. {
  4875. "type": "string",
  4876. "description": "name of the repo",
  4877. "name": "repo",
  4878. "in": "path",
  4879. "required": true
  4880. }
  4881. ],
  4882. "responses": {
  4883. "200": {
  4884. "$ref": "#/responses/TagList"
  4885. }
  4886. }
  4887. }
  4888. },
  4889. "/repos/{owner}/{repo}/times": {
  4890. "get": {
  4891. "produces": [
  4892. "application/json"
  4893. ],
  4894. "tags": [
  4895. "repository"
  4896. ],
  4897. "summary": "List a repo's tracked times",
  4898. "operationId": "repoTrackedTimes",
  4899. "parameters": [
  4900. {
  4901. "type": "string",
  4902. "description": "owner of the repo",
  4903. "name": "owner",
  4904. "in": "path",
  4905. "required": true
  4906. },
  4907. {
  4908. "type": "string",
  4909. "description": "name of the repo",
  4910. "name": "repo",
  4911. "in": "path",
  4912. "required": true
  4913. }
  4914. ],
  4915. "responses": {
  4916. "200": {
  4917. "$ref": "#/responses/TrackedTimeList"
  4918. }
  4919. }
  4920. }
  4921. },
  4922. "/repos/{owner}/{repo}/times/{user}": {
  4923. "get": {
  4924. "produces": [
  4925. "application/json"
  4926. ],
  4927. "tags": [
  4928. "user"
  4929. ],
  4930. "summary": "List a user's tracked times in a repo",
  4931. "operationId": "userTrackedTimes",
  4932. "parameters": [
  4933. {
  4934. "type": "string",
  4935. "description": "owner of the repo",
  4936. "name": "owner",
  4937. "in": "path",
  4938. "required": true
  4939. },
  4940. {
  4941. "type": "string",
  4942. "description": "name of the repo",
  4943. "name": "repo",
  4944. "in": "path",
  4945. "required": true
  4946. },
  4947. {
  4948. "type": "string",
  4949. "description": "username of user",
  4950. "name": "user",
  4951. "in": "path",
  4952. "required": true
  4953. }
  4954. ],
  4955. "responses": {
  4956. "200": {
  4957. "$ref": "#/responses/TrackedTimeList"
  4958. }
  4959. }
  4960. }
  4961. },
  4962. "/repositories/{id}": {
  4963. "get": {
  4964. "produces": [
  4965. "application/json"
  4966. ],
  4967. "tags": [
  4968. "repository"
  4969. ],
  4970. "summary": "Get a repository by id",
  4971. "operationId": "repoGetByID",
  4972. "parameters": [
  4973. {
  4974. "type": "integer",
  4975. "format": "int64",
  4976. "description": "id of the repo to get",
  4977. "name": "id",
  4978. "in": "path",
  4979. "required": true
  4980. }
  4981. ],
  4982. "responses": {
  4983. "200": {
  4984. "$ref": "#/responses/Repository"
  4985. }
  4986. }
  4987. }
  4988. },
  4989. "/teams/{id}": {
  4990. "get": {
  4991. "produces": [
  4992. "application/json"
  4993. ],
  4994. "tags": [
  4995. "organization"
  4996. ],
  4997. "summary": "Get a team",
  4998. "operationId": "orgGetTeam",
  4999. "parameters": [
  5000. {
  5001. "type": "integer",
  5002. "format": "int64",
  5003. "description": "id of the team to get",
  5004. "name": "id",
  5005. "in": "path",
  5006. "required": true
  5007. }
  5008. ],
  5009. "responses": {
  5010. "200": {
  5011. "$ref": "#/responses/Team"
  5012. }
  5013. }
  5014. },
  5015. "delete": {
  5016. "tags": [
  5017. "organization"
  5018. ],
  5019. "summary": "Delete a team",
  5020. "operationId": "orgDeleteTeam",
  5021. "parameters": [
  5022. {
  5023. "type": "integer",
  5024. "format": "int64",
  5025. "description": "id of the team to delete",
  5026. "name": "id",
  5027. "in": "path",
  5028. "required": true
  5029. }
  5030. ],
  5031. "responses": {
  5032. "204": {
  5033. "description": "team deleted"
  5034. }
  5035. }
  5036. },
  5037. "patch": {
  5038. "consumes": [
  5039. "application/json"
  5040. ],
  5041. "produces": [
  5042. "application/json"
  5043. ],
  5044. "tags": [
  5045. "organization"
  5046. ],
  5047. "summary": "Edit a team",
  5048. "operationId": "orgEditTeam",
  5049. "parameters": [
  5050. {
  5051. "type": "integer",
  5052. "description": "id of the team to edit",
  5053. "name": "id",
  5054. "in": "path",
  5055. "required": true
  5056. },
  5057. {
  5058. "name": "body",
  5059. "in": "body",
  5060. "schema": {
  5061. "$ref": "#/definitions/EditTeamOption"
  5062. }
  5063. }
  5064. ],
  5065. "responses": {
  5066. "200": {
  5067. "$ref": "#/responses/Team"
  5068. }
  5069. }
  5070. }
  5071. },
  5072. "/teams/{id}/members": {
  5073. "get": {
  5074. "produces": [
  5075. "application/json"
  5076. ],
  5077. "tags": [
  5078. "organization"
  5079. ],
  5080. "summary": "List a team's members",
  5081. "operationId": "orgListTeamMembers",
  5082. "parameters": [
  5083. {
  5084. "type": "integer",
  5085. "format": "int64",
  5086. "description": "id of the team",
  5087. "name": "id",
  5088. "in": "path",
  5089. "required": true
  5090. }
  5091. ],
  5092. "responses": {
  5093. "200": {
  5094. "$ref": "#/responses/UserList"
  5095. }
  5096. }
  5097. }
  5098. },
  5099. "/teams/{id}/members/{username}": {
  5100. "get": {
  5101. "produces": [
  5102. "application/json"
  5103. ],
  5104. "tags": [
  5105. "organization"
  5106. ],
  5107. "summary": "List a particular member of team",
  5108. "operationId": "orgListTeamMember",
  5109. "parameters": [
  5110. {
  5111. "type": "integer",
  5112. "format": "int64",
  5113. "description": "id of the team",
  5114. "name": "id",
  5115. "in": "path",
  5116. "required": true
  5117. },
  5118. {
  5119. "type": "string",
  5120. "description": "username of the member to list",
  5121. "name": "username",
  5122. "in": "path",
  5123. "required": true
  5124. }
  5125. ],
  5126. "responses": {
  5127. "200": {
  5128. "$ref": "#/responses/User"
  5129. }
  5130. }
  5131. },
  5132. "put": {
  5133. "produces": [
  5134. "application/json"
  5135. ],
  5136. "tags": [
  5137. "organization"
  5138. ],
  5139. "summary": "Add a team member",
  5140. "operationId": "orgAddTeamMember",
  5141. "parameters": [
  5142. {
  5143. "type": "integer",
  5144. "format": "int64",
  5145. "description": "id of the team",
  5146. "name": "id",
  5147. "in": "path",
  5148. "required": true
  5149. },
  5150. {
  5151. "type": "string",
  5152. "description": "username of the user to add",
  5153. "name": "username",
  5154. "in": "path",
  5155. "required": true
  5156. }
  5157. ],
  5158. "responses": {
  5159. "204": {
  5160. "$ref": "#/responses/empty"
  5161. }
  5162. }
  5163. },
  5164. "delete": {
  5165. "produces": [
  5166. "application/json"
  5167. ],
  5168. "tags": [
  5169. "organization"
  5170. ],
  5171. "summary": "Remove a team member",
  5172. "operationId": "orgRemoveTeamMember",
  5173. "parameters": [
  5174. {
  5175. "type": "integer",
  5176. "format": "int64",
  5177. "description": "id of the team",
  5178. "name": "id",
  5179. "in": "path",
  5180. "required": true
  5181. },
  5182. {
  5183. "type": "string",
  5184. "description": "username of the user to remove",
  5185. "name": "username",
  5186. "in": "path",
  5187. "required": true
  5188. }
  5189. ],
  5190. "responses": {
  5191. "204": {
  5192. "$ref": "#/responses/empty"
  5193. }
  5194. }
  5195. }
  5196. },
  5197. "/teams/{id}/repos": {
  5198. "get": {
  5199. "produces": [
  5200. "application/json"
  5201. ],
  5202. "tags": [
  5203. "organization"
  5204. ],
  5205. "summary": "List a team's repos",
  5206. "operationId": "orgListTeamRepos",
  5207. "parameters": [
  5208. {
  5209. "type": "integer",
  5210. "format": "int64",
  5211. "description": "id of the team",
  5212. "name": "id",
  5213. "in": "path",
  5214. "required": true
  5215. }
  5216. ],
  5217. "responses": {
  5218. "200": {
  5219. "$ref": "#/responses/RepositoryList"
  5220. }
  5221. }
  5222. }
  5223. },
  5224. "/teams/{id}/repos/{org}/{repo}": {
  5225. "put": {
  5226. "produces": [
  5227. "application/json"
  5228. ],
  5229. "tags": [
  5230. "organization"
  5231. ],
  5232. "summary": "Add a repository to a team",
  5233. "operationId": "orgAddTeamRepository",
  5234. "parameters": [
  5235. {
  5236. "type": "integer",
  5237. "format": "int64",
  5238. "description": "id of the team",
  5239. "name": "id",
  5240. "in": "path",
  5241. "required": true
  5242. },
  5243. {
  5244. "type": "string",
  5245. "description": "organization that owns the repo to add",
  5246. "name": "org",
  5247. "in": "path",
  5248. "required": true
  5249. },
  5250. {
  5251. "type": "string",
  5252. "description": "name of the repo to add",
  5253. "name": "repo",
  5254. "in": "path",
  5255. "required": true
  5256. }
  5257. ],
  5258. "responses": {
  5259. "204": {
  5260. "$ref": "#/responses/empty"
  5261. }
  5262. }
  5263. },
  5264. "delete": {
  5265. "description": "This does not delete the repository, it only removes the repository from the team.",
  5266. "produces": [
  5267. "application/json"
  5268. ],
  5269. "tags": [
  5270. "organization"
  5271. ],
  5272. "summary": "Remove a repository from a team",
  5273. "operationId": "orgRemoveTeamRepository",
  5274. "parameters": [
  5275. {
  5276. "type": "integer",
  5277. "format": "int64",
  5278. "description": "id of the team",
  5279. "name": "id",
  5280. "in": "path",
  5281. "required": true
  5282. },
  5283. {
  5284. "type": "string",
  5285. "description": "organization that owns the repo to remove",
  5286. "name": "org",
  5287. "in": "path",
  5288. "required": true
  5289. },
  5290. {
  5291. "type": "string",
  5292. "description": "name of the repo to remove",
  5293. "name": "repo",
  5294. "in": "path",
  5295. "required": true
  5296. }
  5297. ],
  5298. "responses": {
  5299. "204": {
  5300. "$ref": "#/responses/empty"
  5301. }
  5302. }
  5303. }
  5304. },
  5305. "/topics/search": {
  5306. "get": {
  5307. "produces": [
  5308. "application/json"
  5309. ],
  5310. "tags": [
  5311. "repository"
  5312. ],
  5313. "summary": "search topics via keyword",
  5314. "operationId": "topicSearch",
  5315. "parameters": [
  5316. {
  5317. "type": "string",
  5318. "description": "keywords to search",
  5319. "name": "q",
  5320. "in": "query",
  5321. "required": true
  5322. }
  5323. ],
  5324. "responses": {
  5325. "200": {
  5326. "$ref": "#/responses/Repository"
  5327. }
  5328. }
  5329. }
  5330. },
  5331. "/user": {
  5332. "get": {
  5333. "produces": [
  5334. "application/json"
  5335. ],
  5336. "tags": [
  5337. "user"
  5338. ],
  5339. "summary": "Get the authenticated user",
  5340. "operationId": "userGetCurrent",
  5341. "responses": {
  5342. "200": {
  5343. "$ref": "#/responses/User"
  5344. }
  5345. }
  5346. }
  5347. },
  5348. "/user/emails": {
  5349. "get": {
  5350. "produces": [
  5351. "application/json"
  5352. ],
  5353. "tags": [
  5354. "user"
  5355. ],
  5356. "summary": "List the authenticated user's email addresses",
  5357. "operationId": "userListEmails",
  5358. "responses": {
  5359. "200": {
  5360. "$ref": "#/responses/EmailList"
  5361. }
  5362. }
  5363. },
  5364. "post": {
  5365. "produces": [
  5366. "application/json"
  5367. ],
  5368. "tags": [
  5369. "user"
  5370. ],
  5371. "summary": "Add email addresses",
  5372. "operationId": "userAddEmail",
  5373. "parameters": [
  5374. {
  5375. "name": "body",
  5376. "in": "body",
  5377. "schema": {
  5378. "$ref": "#/definitions/CreateEmailOption"
  5379. }
  5380. }
  5381. ],
  5382. "responses": {
  5383. "201": {
  5384. "$ref": "#/responses/EmailList"
  5385. }
  5386. }
  5387. },
  5388. "delete": {
  5389. "produces": [
  5390. "application/json"
  5391. ],
  5392. "tags": [
  5393. "user"
  5394. ],
  5395. "summary": "Delete email addresses",
  5396. "operationId": "userDeleteEmail",
  5397. "parameters": [
  5398. {
  5399. "name": "body",
  5400. "in": "body",
  5401. "schema": {
  5402. "$ref": "#/definitions/DeleteEmailOption"
  5403. }
  5404. }
  5405. ],
  5406. "responses": {
  5407. "204": {
  5408. "$ref": "#/responses/empty"
  5409. }
  5410. }
  5411. }
  5412. },
  5413. "/user/followers": {
  5414. "get": {
  5415. "produces": [
  5416. "application/json"
  5417. ],
  5418. "tags": [
  5419. "user"
  5420. ],
  5421. "summary": "List the authenticated user's followers",
  5422. "operationId": "userCurrentListFollowers",
  5423. "responses": {
  5424. "200": {
  5425. "$ref": "#/responses/UserList"
  5426. }
  5427. }
  5428. }
  5429. },
  5430. "/user/following": {
  5431. "get": {
  5432. "produces": [
  5433. "application/json"
  5434. ],
  5435. "tags": [
  5436. "user"
  5437. ],
  5438. "summary": "List the users that the authenticated user is following",
  5439. "operationId": "userCurrentListFollowing",
  5440. "responses": {
  5441. "200": {
  5442. "$ref": "#/responses/UserList"
  5443. }
  5444. }
  5445. }
  5446. },
  5447. "/user/following/{username}": {
  5448. "get": {
  5449. "tags": [
  5450. "user"
  5451. ],
  5452. "summary": "Check whether a user is followed by the authenticated user",
  5453. "operationId": "userCurrentCheckFollowing",
  5454. "parameters": [
  5455. {
  5456. "type": "string",
  5457. "description": "username of followed user",
  5458. "name": "username",
  5459. "in": "path",
  5460. "required": true
  5461. }
  5462. ],
  5463. "responses": {
  5464. "204": {
  5465. "$ref": "#/responses/empty"
  5466. },
  5467. "404": {
  5468. "$ref": "#/responses/notFound"
  5469. }
  5470. }
  5471. },
  5472. "put": {
  5473. "tags": [
  5474. "user"
  5475. ],
  5476. "summary": "Follow a user",
  5477. "operationId": "userCurrentPutFollow",
  5478. "parameters": [
  5479. {
  5480. "type": "string",
  5481. "description": "username of user to follow",
  5482. "name": "username",
  5483. "in": "path",
  5484. "required": true
  5485. }
  5486. ],
  5487. "responses": {
  5488. "204": {
  5489. "$ref": "#/responses/empty"
  5490. }
  5491. }
  5492. },
  5493. "delete": {
  5494. "tags": [
  5495. "user"
  5496. ],
  5497. "summary": "Unfollow a user",
  5498. "operationId": "userCurrentDeleteFollow",
  5499. "parameters": [
  5500. {
  5501. "type": "string",
  5502. "description": "username of user to unfollow",
  5503. "name": "username",
  5504. "in": "path",
  5505. "required": true
  5506. }
  5507. ],
  5508. "responses": {
  5509. "204": {
  5510. "$ref": "#/responses/empty"
  5511. }
  5512. }
  5513. }
  5514. },
  5515. "/user/gpg_keys": {
  5516. "get": {
  5517. "produces": [
  5518. "application/json"
  5519. ],
  5520. "tags": [
  5521. "user"
  5522. ],
  5523. "summary": "List the authenticated user's GPG keys",
  5524. "operationId": "userCurrentListGPGKeys",
  5525. "responses": {
  5526. "200": {
  5527. "$ref": "#/responses/GPGKeyList"
  5528. }
  5529. }
  5530. },
  5531. "post": {
  5532. "consumes": [
  5533. "application/json"
  5534. ],
  5535. "produces": [
  5536. "application/json"
  5537. ],
  5538. "tags": [
  5539. "user"
  5540. ],
  5541. "summary": "Create a GPG key",
  5542. "operationId": "userCurrentPostGPGKey",
  5543. "parameters": [
  5544. {
  5545. "name": "Form",
  5546. "in": "body",
  5547. "schema": {
  5548. "$ref": "#/definitions/CreateGPGKeyOption"
  5549. }
  5550. }
  5551. ],
  5552. "responses": {
  5553. "201": {
  5554. "$ref": "#/responses/GPGKey"
  5555. },
  5556. "422": {
  5557. "$ref": "#/responses/validationError"
  5558. }
  5559. }
  5560. }
  5561. },
  5562. "/user/gpg_keys/{id}": {
  5563. "get": {
  5564. "produces": [
  5565. "application/json"
  5566. ],
  5567. "tags": [
  5568. "user"
  5569. ],
  5570. "summary": "Get a GPG key",
  5571. "operationId": "userCurrentGetGPGKey",
  5572. "parameters": [
  5573. {
  5574. "type": "integer",
  5575. "format": "int64",
  5576. "description": "id of key to get",
  5577. "name": "id",
  5578. "in": "path",
  5579. "required": true
  5580. }
  5581. ],
  5582. "responses": {
  5583. "200": {
  5584. "$ref": "#/responses/GPGKey"
  5585. },
  5586. "404": {
  5587. "$ref": "#/responses/notFound"
  5588. }
  5589. }
  5590. },
  5591. "delete": {
  5592. "produces": [
  5593. "application/json"
  5594. ],
  5595. "tags": [
  5596. "user"
  5597. ],
  5598. "summary": "Remove a GPG key",
  5599. "operationId": "userCurrentDeleteGPGKey",
  5600. "parameters": [
  5601. {
  5602. "type": "integer",
  5603. "format": "int64",
  5604. "description": "id of key to delete",
  5605. "name": "id",
  5606. "in": "path",
  5607. "required": true
  5608. }
  5609. ],
  5610. "responses": {
  5611. "204": {
  5612. "$ref": "#/responses/empty"
  5613. },
  5614. "403": {
  5615. "$ref": "#/responses/forbidden"
  5616. }
  5617. }
  5618. }
  5619. },
  5620. "/user/keys": {
  5621. "get": {
  5622. "produces": [
  5623. "application/json"
  5624. ],
  5625. "tags": [
  5626. "user"
  5627. ],
  5628. "summary": "List the authenticated user's public keys",
  5629. "operationId": "userCurrentListKeys",
  5630. "parameters": [
  5631. {
  5632. "type": "string",
  5633. "description": "fingerprint of the key",
  5634. "name": "fingerprint",
  5635. "in": "query"
  5636. }
  5637. ],
  5638. "responses": {
  5639. "200": {
  5640. "$ref": "#/responses/PublicKeyList"
  5641. }
  5642. }
  5643. },
  5644. "post": {
  5645. "consumes": [
  5646. "application/json"
  5647. ],
  5648. "produces": [
  5649. "application/json"
  5650. ],
  5651. "tags": [
  5652. "user"
  5653. ],
  5654. "summary": "Create a public key",
  5655. "operationId": "userCurrentPostKey",
  5656. "parameters": [
  5657. {
  5658. "name": "body",
  5659. "in": "body",
  5660. "schema": {
  5661. "$ref": "#/definitions/CreateKeyOption"
  5662. }
  5663. }
  5664. ],
  5665. "responses": {
  5666. "201": {
  5667. "$ref": "#/responses/PublicKey"
  5668. },
  5669. "422": {
  5670. "$ref": "#/responses/validationError"
  5671. }
  5672. }
  5673. }
  5674. },
  5675. "/user/keys/{id}": {
  5676. "get": {
  5677. "produces": [
  5678. "application/json"
  5679. ],
  5680. "tags": [
  5681. "user"
  5682. ],
  5683. "summary": "Get a public key",
  5684. "operationId": "userCurrentGetKey",
  5685. "parameters": [
  5686. {
  5687. "type": "integer",
  5688. "format": "int64",
  5689. "description": "id of key to get",
  5690. "name": "id",
  5691. "in": "path",
  5692. "required": true
  5693. }
  5694. ],
  5695. "responses": {
  5696. "200": {
  5697. "$ref": "#/responses/PublicKey"
  5698. },
  5699. "404": {
  5700. "$ref": "#/responses/notFound"
  5701. }
  5702. }
  5703. },
  5704. "delete": {
  5705. "produces": [
  5706. "application/json"
  5707. ],
  5708. "tags": [
  5709. "user"
  5710. ],
  5711. "summary": "Delete a public key",
  5712. "operationId": "userCurrentDeleteKey",
  5713. "parameters": [
  5714. {
  5715. "type": "integer",
  5716. "format": "int64",
  5717. "description": "id of key to delete",
  5718. "name": "id",
  5719. "in": "path",
  5720. "required": true
  5721. }
  5722. ],
  5723. "responses": {
  5724. "204": {
  5725. "$ref": "#/responses/empty"
  5726. },
  5727. "403": {
  5728. "$ref": "#/responses/forbidden"
  5729. },
  5730. "404": {
  5731. "$ref": "#/responses/notFound"
  5732. }
  5733. }
  5734. }
  5735. },
  5736. "/user/orgs": {
  5737. "get": {
  5738. "produces": [
  5739. "application/json"
  5740. ],
  5741. "tags": [
  5742. "organization"
  5743. ],
  5744. "summary": "List the current user's organizations",
  5745. "operationId": "orgListCurrentUserOrgs",
  5746. "responses": {
  5747. "200": {
  5748. "$ref": "#/responses/OrganizationList"
  5749. }
  5750. }
  5751. }
  5752. },
  5753. "/user/repos": {
  5754. "get": {
  5755. "produces": [
  5756. "application/json"
  5757. ],
  5758. "tags": [
  5759. "user"
  5760. ],
  5761. "summary": "List the repos that the authenticated user owns or has access to",
  5762. "operationId": "userCurrentListRepos",
  5763. "responses": {
  5764. "200": {
  5765. "$ref": "#/responses/RepositoryList"
  5766. }
  5767. }
  5768. },
  5769. "post": {
  5770. "consumes": [
  5771. "application/json"
  5772. ],
  5773. "produces": [
  5774. "application/json"
  5775. ],
  5776. "tags": [
  5777. "repository",
  5778. "user"
  5779. ],
  5780. "summary": "Create a repository",
  5781. "operationId": "createCurrentUserRepo",
  5782. "parameters": [
  5783. {
  5784. "name": "body",
  5785. "in": "body",
  5786. "schema": {
  5787. "$ref": "#/definitions/CreateRepoOption"
  5788. }
  5789. }
  5790. ],
  5791. "responses": {
  5792. "201": {
  5793. "$ref": "#/responses/Repository"
  5794. }
  5795. }
  5796. }
  5797. },
  5798. "/user/starred": {
  5799. "get": {
  5800. "produces": [
  5801. "application/json"
  5802. ],
  5803. "tags": [
  5804. "user"
  5805. ],
  5806. "summary": "The repos that the authenticated user has starred",
  5807. "operationId": "userCurrentListStarred",
  5808. "responses": {
  5809. "200": {
  5810. "$ref": "#/responses/RepositoryList"
  5811. }
  5812. }
  5813. }
  5814. },
  5815. "/user/starred/{owner}/{repo}": {
  5816. "get": {
  5817. "tags": [
  5818. "user"
  5819. ],
  5820. "summary": "Whether the authenticated is starring the repo",
  5821. "operationId": "userCurrentCheckStarring",
  5822. "parameters": [
  5823. {
  5824. "type": "string",
  5825. "description": "owner of the repo",
  5826. "name": "owner",
  5827. "in": "path",
  5828. "required": true
  5829. },
  5830. {
  5831. "type": "string",
  5832. "description": "name of the repo",
  5833. "name": "repo",
  5834. "in": "path",
  5835. "required": true
  5836. }
  5837. ],
  5838. "responses": {
  5839. "204": {
  5840. "$ref": "#/responses/empty"
  5841. },
  5842. "404": {
  5843. "$ref": "#/responses/notFound"
  5844. }
  5845. }
  5846. },
  5847. "put": {
  5848. "tags": [
  5849. "user"
  5850. ],
  5851. "summary": "Star the given repo",
  5852. "operationId": "userCurrentPutStar",
  5853. "parameters": [
  5854. {
  5855. "type": "string",
  5856. "description": "owner of the repo to star",
  5857. "name": "owner",
  5858. "in": "path",
  5859. "required": true
  5860. },
  5861. {
  5862. "type": "string",
  5863. "description": "name of the repo to star",
  5864. "name": "repo",
  5865. "in": "path",
  5866. "required": true
  5867. }
  5868. ],
  5869. "responses": {
  5870. "204": {
  5871. "$ref": "#/responses/empty"
  5872. }
  5873. }
  5874. },
  5875. "delete": {
  5876. "tags": [
  5877. "user"
  5878. ],
  5879. "summary": "Unstar the given repo",
  5880. "operationId": "userCurrentDeleteStar",
  5881. "parameters": [
  5882. {
  5883. "type": "string",
  5884. "description": "owner of the repo to unstar",
  5885. "name": "owner",
  5886. "in": "path",
  5887. "required": true
  5888. },
  5889. {
  5890. "type": "string",
  5891. "description": "name of the repo to unstar",
  5892. "name": "repo",
  5893. "in": "path",
  5894. "required": true
  5895. }
  5896. ],
  5897. "responses": {
  5898. "204": {
  5899. "$ref": "#/responses/empty"
  5900. }
  5901. }
  5902. }
  5903. },
  5904. "/user/subscriptions": {
  5905. "get": {
  5906. "produces": [
  5907. "application/json"
  5908. ],
  5909. "tags": [
  5910. "user"
  5911. ],
  5912. "summary": "List repositories watched by the authenticated user",
  5913. "operationId": "userCurrentListSubscriptions",
  5914. "responses": {
  5915. "200": {
  5916. "$ref": "#/responses/RepositoryList"
  5917. }
  5918. }
  5919. }
  5920. },
  5921. "/user/teams": {
  5922. "get": {
  5923. "produces": [
  5924. "application/json"
  5925. ],
  5926. "tags": [
  5927. "user"
  5928. ],
  5929. "summary": "List all the teams a user belongs to",
  5930. "operationId": "userListTeams",
  5931. "responses": {
  5932. "200": {
  5933. "$ref": "#/responses/TeamList"
  5934. }
  5935. }
  5936. }
  5937. },
  5938. "/user/times": {
  5939. "get": {
  5940. "produces": [
  5941. "application/json"
  5942. ],
  5943. "tags": [
  5944. "user"
  5945. ],
  5946. "summary": "List the current user's tracked times",
  5947. "operationId": "userCurrentTrackedTimes",
  5948. "responses": {
  5949. "200": {
  5950. "$ref": "#/responses/TrackedTimeList"
  5951. }
  5952. }
  5953. }
  5954. },
  5955. "/users/search": {
  5956. "get": {
  5957. "produces": [
  5958. "application/json"
  5959. ],
  5960. "tags": [
  5961. "user"
  5962. ],
  5963. "summary": "Search for users",
  5964. "operationId": "userSearch",
  5965. "parameters": [
  5966. {
  5967. "type": "string",
  5968. "description": "keyword",
  5969. "name": "q",
  5970. "in": "query"
  5971. },
  5972. {
  5973. "type": "integer",
  5974. "format": "int64",
  5975. "description": "ID of the user to search for",
  5976. "name": "uid",
  5977. "in": "query"
  5978. },
  5979. {
  5980. "type": "integer",
  5981. "description": "maximum number of users to return",
  5982. "name": "limit",
  5983. "in": "query"
  5984. }
  5985. ],
  5986. "responses": {
  5987. "200": {
  5988. "description": "SearchResults of a successful search",
  5989. "schema": {
  5990. "type": "object",
  5991. "properties": {
  5992. "data": {
  5993. "type": "array",
  5994. "items": {
  5995. "$ref": "#/definitions/User"
  5996. }
  5997. },
  5998. "ok": {
  5999. "type": "boolean"
  6000. }
  6001. }
  6002. }
  6003. }
  6004. }
  6005. }
  6006. },
  6007. "/users/{follower}/following/{followee}": {
  6008. "get": {
  6009. "tags": [
  6010. "user"
  6011. ],
  6012. "summary": "Check if one user is following another user",
  6013. "operationId": "userCheckFollowing",
  6014. "parameters": [
  6015. {
  6016. "type": "string",
  6017. "description": "username of following user",
  6018. "name": "follower",
  6019. "in": "path",
  6020. "required": true
  6021. },
  6022. {
  6023. "type": "string",
  6024. "description": "username of followed user",
  6025. "name": "followee",
  6026. "in": "path",
  6027. "required": true
  6028. }
  6029. ],
  6030. "responses": {
  6031. "204": {
  6032. "$ref": "#/responses/empty"
  6033. },
  6034. "404": {
  6035. "$ref": "#/responses/notFound"
  6036. }
  6037. }
  6038. }
  6039. },
  6040. "/users/{username}": {
  6041. "get": {
  6042. "produces": [
  6043. "application/json"
  6044. ],
  6045. "tags": [
  6046. "user"
  6047. ],
  6048. "summary": "Get a user",
  6049. "operationId": "userGet",
  6050. "parameters": [
  6051. {
  6052. "type": "string",
  6053. "description": "username of user to get",
  6054. "name": "username",
  6055. "in": "path",
  6056. "required": true
  6057. }
  6058. ],
  6059. "responses": {
  6060. "200": {
  6061. "$ref": "#/responses/User"
  6062. },
  6063. "404": {
  6064. "$ref": "#/responses/notFound"
  6065. }
  6066. }
  6067. }
  6068. },
  6069. "/users/{username}/followers": {
  6070. "get": {
  6071. "produces": [
  6072. "application/json"
  6073. ],
  6074. "tags": [
  6075. "user"
  6076. ],
  6077. "summary": "List the given user's followers",
  6078. "operationId": "userListFollowers",
  6079. "parameters": [
  6080. {
  6081. "type": "string",
  6082. "description": "username of user",
  6083. "name": "username",
  6084. "in": "path",
  6085. "required": true
  6086. }
  6087. ],
  6088. "responses": {
  6089. "200": {
  6090. "$ref": "#/responses/UserList"
  6091. }
  6092. }
  6093. }
  6094. },
  6095. "/users/{username}/following": {
  6096. "get": {
  6097. "produces": [
  6098. "application/json"
  6099. ],
  6100. "tags": [
  6101. "user"
  6102. ],
  6103. "summary": "List the users that the given user is following",
  6104. "operationId": "userListFollowing",
  6105. "parameters": [
  6106. {
  6107. "type": "string",
  6108. "description": "username of user",
  6109. "name": "username",
  6110. "in": "path",
  6111. "required": true
  6112. }
  6113. ],
  6114. "responses": {
  6115. "200": {
  6116. "$ref": "#/responses/UserList"
  6117. }
  6118. }
  6119. }
  6120. },
  6121. "/users/{username}/gpg_keys": {
  6122. "get": {
  6123. "produces": [
  6124. "application/json"
  6125. ],
  6126. "tags": [
  6127. "user"
  6128. ],
  6129. "summary": "List the given user's GPG keys",
  6130. "operationId": "userListGPGKeys",
  6131. "parameters": [
  6132. {
  6133. "type": "string",
  6134. "description": "username of user",
  6135. "name": "username",
  6136. "in": "path",
  6137. "required": true
  6138. }
  6139. ],
  6140. "responses": {
  6141. "200": {
  6142. "$ref": "#/responses/GPGKeyList"
  6143. }
  6144. }
  6145. }
  6146. },
  6147. "/users/{username}/heatmap": {
  6148. "get": {
  6149. "produces": [
  6150. "application/json"
  6151. ],
  6152. "tags": [
  6153. "user"
  6154. ],
  6155. "summary": "Get a user's heatmap",
  6156. "operationId": "userGetHeatmapData",
  6157. "parameters": [
  6158. {
  6159. "type": "string",
  6160. "description": "username of user to get",
  6161. "name": "username",
  6162. "in": "path",
  6163. "required": true
  6164. }
  6165. ],
  6166. "responses": {
  6167. "200": {
  6168. "$ref": "#/responses/UserHeatmapData"
  6169. },
  6170. "404": {
  6171. "$ref": "#/responses/notFound"
  6172. }
  6173. }
  6174. }
  6175. },
  6176. "/users/{username}/keys": {
  6177. "get": {
  6178. "produces": [
  6179. "application/json"
  6180. ],
  6181. "tags": [
  6182. "user"
  6183. ],
  6184. "summary": "List the given user's public keys",
  6185. "operationId": "userListKeys",
  6186. "parameters": [
  6187. {
  6188. "type": "string",
  6189. "description": "username of user",
  6190. "name": "username",
  6191. "in": "path",
  6192. "required": true
  6193. },
  6194. {
  6195. "type": "string",
  6196. "description": "fingerprint of the key",
  6197. "name": "fingerprint",
  6198. "in": "query"
  6199. }
  6200. ],
  6201. "responses": {
  6202. "200": {
  6203. "$ref": "#/responses/PublicKeyList"
  6204. }
  6205. }
  6206. }
  6207. },
  6208. "/users/{username}/orgs": {
  6209. "get": {
  6210. "produces": [
  6211. "application/json"
  6212. ],
  6213. "tags": [
  6214. "organization"
  6215. ],
  6216. "summary": "List a user's organizations",
  6217. "operationId": "orgListUserOrgs",
  6218. "parameters": [
  6219. {
  6220. "type": "string",
  6221. "description": "username of user",
  6222. "name": "username",
  6223. "in": "path",
  6224. "required": true
  6225. }
  6226. ],
  6227. "responses": {
  6228. "200": {
  6229. "$ref": "#/responses/OrganizationList"
  6230. }
  6231. }
  6232. }
  6233. },
  6234. "/users/{username}/repos": {
  6235. "get": {
  6236. "produces": [
  6237. "application/json"
  6238. ],
  6239. "tags": [
  6240. "user"
  6241. ],
  6242. "summary": "List the repos owned by the given user",
  6243. "operationId": "userListRepos",
  6244. "parameters": [
  6245. {
  6246. "type": "string",
  6247. "description": "username of user",
  6248. "name": "username",
  6249. "in": "path",
  6250. "required": true
  6251. }
  6252. ],
  6253. "responses": {
  6254. "200": {
  6255. "$ref": "#/responses/RepositoryList"
  6256. }
  6257. }
  6258. }
  6259. },
  6260. "/users/{username}/starred": {
  6261. "get": {
  6262. "produces": [
  6263. "application/json"
  6264. ],
  6265. "tags": [
  6266. "user"
  6267. ],
  6268. "summary": "The repos that the given user has starred",
  6269. "operationId": "userListStarred",
  6270. "parameters": [
  6271. {
  6272. "type": "string",
  6273. "description": "username of user",
  6274. "name": "username",
  6275. "in": "path",
  6276. "required": true
  6277. }
  6278. ],
  6279. "responses": {
  6280. "200": {
  6281. "$ref": "#/responses/RepositoryList"
  6282. }
  6283. }
  6284. }
  6285. },
  6286. "/users/{username}/subscriptions": {
  6287. "get": {
  6288. "produces": [
  6289. "application/json"
  6290. ],
  6291. "tags": [
  6292. "user"
  6293. ],
  6294. "summary": "List the repositories watched by a user",
  6295. "operationId": "userListSubscriptions",
  6296. "parameters": [
  6297. {
  6298. "type": "string",
  6299. "description": "username of the user",
  6300. "name": "username",
  6301. "in": "path",
  6302. "required": true
  6303. }
  6304. ],
  6305. "responses": {
  6306. "200": {
  6307. "$ref": "#/responses/RepositoryList"
  6308. }
  6309. }
  6310. }
  6311. },
  6312. "/users/{username}/tokens": {
  6313. "get": {
  6314. "produces": [
  6315. "application/json"
  6316. ],
  6317. "tags": [
  6318. "user"
  6319. ],
  6320. "summary": "List the authenticated user's access tokens",
  6321. "operationId": "userGetTokens",
  6322. "parameters": [
  6323. {
  6324. "type": "string",
  6325. "description": "username of user",
  6326. "name": "username",
  6327. "in": "path",
  6328. "required": true
  6329. }
  6330. ],
  6331. "responses": {
  6332. "200": {
  6333. "$ref": "#/responses/AccessTokenList"
  6334. }
  6335. }
  6336. },
  6337. "post": {
  6338. "consumes": [
  6339. "application/json"
  6340. ],
  6341. "produces": [
  6342. "application/json"
  6343. ],
  6344. "tags": [
  6345. "user"
  6346. ],
  6347. "summary": "Create an access token",
  6348. "operationId": "userCreateToken",
  6349. "parameters": [
  6350. {
  6351. "type": "string",
  6352. "x-go-name": "Name",
  6353. "description": "username of user",
  6354. "name": "username",
  6355. "in": "path",
  6356. "required": true
  6357. },
  6358. {
  6359. "name": "accessToken",
  6360. "in": "body",
  6361. "schema": {
  6362. "type": "object",
  6363. "required": [
  6364. "name"
  6365. ],
  6366. "properties": {
  6367. "name": {
  6368. "type": "string"
  6369. }
  6370. }
  6371. }
  6372. }
  6373. ],
  6374. "responses": {
  6375. "200": {
  6376. "$ref": "#/responses/AccessToken"
  6377. }
  6378. }
  6379. }
  6380. },
  6381. "/users/{username}/tokens/{token}": {
  6382. "delete": {
  6383. "produces": [
  6384. "application/json"
  6385. ],
  6386. "tags": [
  6387. "user"
  6388. ],
  6389. "summary": "delete an access token",
  6390. "operationId": "userDeleteAccessToken",
  6391. "parameters": [
  6392. {
  6393. "type": "string",
  6394. "description": "username of user",
  6395. "name": "username",
  6396. "in": "path",
  6397. "required": true
  6398. },
  6399. {
  6400. "type": "integer",
  6401. "format": "int64",
  6402. "description": "token to be deleted",
  6403. "name": "token",
  6404. "in": "path",
  6405. "required": true
  6406. }
  6407. ],
  6408. "responses": {
  6409. "204": {
  6410. "$ref": "#/responses/empty"
  6411. }
  6412. }
  6413. }
  6414. },
  6415. "/version": {
  6416. "get": {
  6417. "produces": [
  6418. "application/json"
  6419. ],
  6420. "tags": [
  6421. "miscellaneous"
  6422. ],
  6423. "summary": "Returns the version of the Gitea application",
  6424. "operationId": "getVersion",
  6425. "responses": {
  6426. "200": {
  6427. "$ref": "#/responses/ServerVersion"
  6428. }
  6429. }
  6430. }
  6431. }
  6432. },
  6433. "definitions": {
  6434. "AddCollaboratorOption": {
  6435. "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
  6436. "type": "object",
  6437. "properties": {
  6438. "permission": {
  6439. "type": "string",
  6440. "x-go-name": "Permission"
  6441. }
  6442. },
  6443. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6444. },
  6445. "AddTimeOption": {
  6446. "description": "AddTimeOption options for adding time to an issue",
  6447. "type": "object",
  6448. "required": [
  6449. "time"
  6450. ],
  6451. "properties": {
  6452. "time": {
  6453. "description": "time in seconds",
  6454. "type": "integer",
  6455. "format": "int64",
  6456. "x-go-name": "Time"
  6457. }
  6458. },
  6459. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6460. },
  6461. "Attachment": {
  6462. "description": "Attachment a generic attachment",
  6463. "type": "object",
  6464. "properties": {
  6465. "browser_download_url": {
  6466. "type": "string",
  6467. "x-go-name": "DownloadURL"
  6468. },
  6469. "created_at": {
  6470. "type": "string",
  6471. "format": "date-time",
  6472. "x-go-name": "Created"
  6473. },
  6474. "download_count": {
  6475. "type": "integer",
  6476. "format": "int64",
  6477. "x-go-name": "DownloadCount"
  6478. },
  6479. "id": {
  6480. "type": "integer",
  6481. "format": "int64",
  6482. "x-go-name": "ID"
  6483. },
  6484. "name": {
  6485. "type": "string",
  6486. "x-go-name": "Name"
  6487. },
  6488. "size": {
  6489. "type": "integer",
  6490. "format": "int64",
  6491. "x-go-name": "Size"
  6492. },
  6493. "uuid": {
  6494. "type": "string",
  6495. "x-go-name": "UUID"
  6496. }
  6497. },
  6498. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6499. },
  6500. "Branch": {
  6501. "description": "Branch represents a repository branch",
  6502. "type": "object",
  6503. "properties": {
  6504. "commit": {
  6505. "$ref": "#/definitions/PayloadCommit"
  6506. },
  6507. "name": {
  6508. "type": "string",
  6509. "x-go-name": "Name"
  6510. }
  6511. },
  6512. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6513. },
  6514. "Comment": {
  6515. "description": "Comment represents a comment on a commit or issue",
  6516. "type": "object",
  6517. "properties": {
  6518. "body": {
  6519. "type": "string",
  6520. "x-go-name": "Body"
  6521. },
  6522. "created_at": {
  6523. "type": "string",
  6524. "format": "date-time",
  6525. "x-go-name": "Created"
  6526. },
  6527. "html_url": {
  6528. "type": "string",
  6529. "x-go-name": "HTMLURL"
  6530. },
  6531. "id": {
  6532. "type": "integer",
  6533. "format": "int64",
  6534. "x-go-name": "ID"
  6535. },
  6536. "issue_url": {
  6537. "type": "string",
  6538. "x-go-name": "IssueURL"
  6539. },
  6540. "pull_request_url": {
  6541. "type": "string",
  6542. "x-go-name": "PRURL"
  6543. },
  6544. "updated_at": {
  6545. "type": "string",
  6546. "format": "date-time",
  6547. "x-go-name": "Updated"
  6548. },
  6549. "user": {
  6550. "$ref": "#/definitions/User"
  6551. }
  6552. },
  6553. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6554. },
  6555. "Commit": {
  6556. "type": "object",
  6557. "title": "Commit contains information generated from a Git commit.",
  6558. "properties": {
  6559. "author": {
  6560. "$ref": "#/definitions/User"
  6561. },
  6562. "commit": {
  6563. "$ref": "#/definitions/RepoCommit"
  6564. },
  6565. "committer": {
  6566. "$ref": "#/definitions/User"
  6567. },
  6568. "html_url": {
  6569. "type": "string",
  6570. "x-go-name": "HTMLURL"
  6571. },
  6572. "parents": {
  6573. "type": "array",
  6574. "items": {
  6575. "$ref": "#/definitions/CommitMeta"
  6576. },
  6577. "x-go-name": "Parents"
  6578. },
  6579. "sha": {
  6580. "type": "string",
  6581. "x-go-name": "SHA"
  6582. },
  6583. "url": {
  6584. "type": "string",
  6585. "x-go-name": "URL"
  6586. }
  6587. },
  6588. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6589. },
  6590. "CommitMeta": {
  6591. "type": "object",
  6592. "title": "CommitMeta contains meta information of a commit in terms of API.",
  6593. "properties": {
  6594. "sha": {
  6595. "type": "string",
  6596. "x-go-name": "SHA"
  6597. },
  6598. "url": {
  6599. "type": "string",
  6600. "x-go-name": "URL"
  6601. }
  6602. },
  6603. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6604. },
  6605. "CommitUser": {
  6606. "type": "object",
  6607. "title": "CommitUser contains information of a user in the context of a commit.",
  6608. "properties": {
  6609. "date": {
  6610. "type": "string",
  6611. "x-go-name": "Date"
  6612. },
  6613. "email": {
  6614. "type": "string",
  6615. "format": "email",
  6616. "x-go-name": "Email"
  6617. },
  6618. "name": {
  6619. "type": "string",
  6620. "x-go-name": "Name"
  6621. }
  6622. },
  6623. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6624. },
  6625. "CreateEmailOption": {
  6626. "description": "CreateEmailOption options when creating email addresses",
  6627. "type": "object",
  6628. "properties": {
  6629. "emails": {
  6630. "description": "email addresses to add",
  6631. "type": "array",
  6632. "items": {
  6633. "type": "string"
  6634. },
  6635. "x-go-name": "Emails"
  6636. }
  6637. },
  6638. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6639. },
  6640. "CreateForkOption": {
  6641. "description": "CreateForkOption options for creating a fork",
  6642. "type": "object",
  6643. "properties": {
  6644. "organization": {
  6645. "description": "organization name, if forking into an organization",
  6646. "type": "string",
  6647. "x-go-name": "Organization"
  6648. }
  6649. },
  6650. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6651. },
  6652. "CreateGPGKeyOption": {
  6653. "description": "CreateGPGKeyOption options create user GPG key",
  6654. "type": "object",
  6655. "required": [
  6656. "armored_public_key"
  6657. ],
  6658. "properties": {
  6659. "armored_public_key": {
  6660. "description": "An armored GPG key to add",
  6661. "type": "string",
  6662. "uniqueItems": true,
  6663. "x-go-name": "ArmoredKey"
  6664. }
  6665. },
  6666. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6667. },
  6668. "CreateHookOption": {
  6669. "description": "CreateHookOption options when create a hook",
  6670. "type": "object",
  6671. "required": [
  6672. "type",
  6673. "config"
  6674. ],
  6675. "properties": {
  6676. "active": {
  6677. "type": "boolean",
  6678. "default": false,
  6679. "x-go-name": "Active"
  6680. },
  6681. "config": {
  6682. "type": "object",
  6683. "additionalProperties": {
  6684. "type": "string"
  6685. },
  6686. "x-go-name": "Config"
  6687. },
  6688. "events": {
  6689. "type": "array",
  6690. "items": {
  6691. "type": "string"
  6692. },
  6693. "x-go-name": "Events"
  6694. },
  6695. "type": {
  6696. "type": "string",
  6697. "enum": [
  6698. "gitea",
  6699. "gogs",
  6700. "slack",
  6701. "discord"
  6702. ],
  6703. "x-go-name": "Type"
  6704. }
  6705. },
  6706. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6707. },
  6708. "CreateIssueCommentOption": {
  6709. "description": "CreateIssueCommentOption options for creating a comment on an issue",
  6710. "type": "object",
  6711. "required": [
  6712. "body"
  6713. ],
  6714. "properties": {
  6715. "body": {
  6716. "type": "string",
  6717. "x-go-name": "Body"
  6718. }
  6719. },
  6720. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6721. },
  6722. "CreateIssueOption": {
  6723. "description": "CreateIssueOption options to create one issue",
  6724. "type": "object",
  6725. "required": [
  6726. "title"
  6727. ],
  6728. "properties": {
  6729. "assignee": {
  6730. "description": "username of assignee",
  6731. "type": "string",
  6732. "x-go-name": "Assignee"
  6733. },
  6734. "assignees": {
  6735. "type": "array",
  6736. "items": {
  6737. "type": "string"
  6738. },
  6739. "x-go-name": "Assignees"
  6740. },
  6741. "body": {
  6742. "type": "string",
  6743. "x-go-name": "Body"
  6744. },
  6745. "closed": {
  6746. "type": "boolean",
  6747. "x-go-name": "Closed"
  6748. },
  6749. "due_date": {
  6750. "type": "string",
  6751. "format": "date-time",
  6752. "x-go-name": "Deadline"
  6753. },
  6754. "labels": {
  6755. "description": "list of label ids",
  6756. "type": "array",
  6757. "items": {
  6758. "type": "integer",
  6759. "format": "int64"
  6760. },
  6761. "x-go-name": "Labels"
  6762. },
  6763. "milestone": {
  6764. "description": "milestone id",
  6765. "type": "integer",
  6766. "format": "int64",
  6767. "x-go-name": "Milestone"
  6768. },
  6769. "title": {
  6770. "type": "string",
  6771. "x-go-name": "Title"
  6772. }
  6773. },
  6774. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6775. },
  6776. "CreateKeyOption": {
  6777. "description": "CreateKeyOption options when creating a key",
  6778. "type": "object",
  6779. "required": [
  6780. "title",
  6781. "key"
  6782. ],
  6783. "properties": {
  6784. "key": {
  6785. "description": "An armored SSH key to add",
  6786. "type": "string",
  6787. "uniqueItems": true,
  6788. "x-go-name": "Key"
  6789. },
  6790. "read_only": {
  6791. "description": "Describe if the key has only read access or read/write",
  6792. "type": "boolean",
  6793. "x-go-name": "ReadOnly"
  6794. },
  6795. "title": {
  6796. "description": "Title of the key to add",
  6797. "type": "string",
  6798. "uniqueItems": true,
  6799. "x-go-name": "Title"
  6800. }
  6801. },
  6802. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6803. },
  6804. "CreateLabelOption": {
  6805. "description": "CreateLabelOption options for creating a label",
  6806. "type": "object",
  6807. "required": [
  6808. "name",
  6809. "color"
  6810. ],
  6811. "properties": {
  6812. "color": {
  6813. "type": "string",
  6814. "x-go-name": "Color",
  6815. "example": "#00aabb"
  6816. },
  6817. "name": {
  6818. "type": "string",
  6819. "x-go-name": "Name"
  6820. }
  6821. },
  6822. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6823. },
  6824. "CreateMilestoneOption": {
  6825. "description": "CreateMilestoneOption options for creating a milestone",
  6826. "type": "object",
  6827. "properties": {
  6828. "description": {
  6829. "type": "string",
  6830. "x-go-name": "Description"
  6831. },
  6832. "due_on": {
  6833. "type": "string",
  6834. "format": "date-time",
  6835. "x-go-name": "Deadline"
  6836. },
  6837. "title": {
  6838. "type": "string",
  6839. "x-go-name": "Title"
  6840. }
  6841. },
  6842. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6843. },
  6844. "CreateOrgOption": {
  6845. "description": "CreateOrgOption options for creating an organization",
  6846. "type": "object",
  6847. "required": [
  6848. "username"
  6849. ],
  6850. "properties": {
  6851. "description": {
  6852. "type": "string",
  6853. "x-go-name": "Description"
  6854. },
  6855. "full_name": {
  6856. "type": "string",
  6857. "x-go-name": "FullName"
  6858. },
  6859. "location": {
  6860. "type": "string",
  6861. "x-go-name": "Location"
  6862. },
  6863. "username": {
  6864. "type": "string",
  6865. "x-go-name": "UserName"
  6866. },
  6867. "website": {
  6868. "type": "string",
  6869. "x-go-name": "Website"
  6870. }
  6871. },
  6872. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6873. },
  6874. "CreatePullRequestOption": {
  6875. "description": "CreatePullRequestOption options when creating a pull request",
  6876. "type": "object",
  6877. "properties": {
  6878. "assignee": {
  6879. "type": "string",
  6880. "x-go-name": "Assignee"
  6881. },
  6882. "assignees": {
  6883. "type": "array",
  6884. "items": {
  6885. "type": "string"
  6886. },
  6887. "x-go-name": "Assignees"
  6888. },
  6889. "base": {
  6890. "type": "string",
  6891. "x-go-name": "Base"
  6892. },
  6893. "body": {
  6894. "type": "string",
  6895. "x-go-name": "Body"
  6896. },
  6897. "due_date": {
  6898. "type": "string",
  6899. "format": "date-time",
  6900. "x-go-name": "Deadline"
  6901. },
  6902. "head": {
  6903. "type": "string",
  6904. "x-go-name": "Head"
  6905. },
  6906. "labels": {
  6907. "type": "array",
  6908. "items": {
  6909. "type": "integer",
  6910. "format": "int64"
  6911. },
  6912. "x-go-name": "Labels"
  6913. },
  6914. "milestone": {
  6915. "type": "integer",
  6916. "format": "int64",
  6917. "x-go-name": "Milestone"
  6918. },
  6919. "title": {
  6920. "type": "string",
  6921. "x-go-name": "Title"
  6922. }
  6923. },
  6924. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6925. },
  6926. "CreateReleaseOption": {
  6927. "description": "CreateReleaseOption options when creating a release",
  6928. "type": "object",
  6929. "required": [
  6930. "tag_name"
  6931. ],
  6932. "properties": {
  6933. "body": {
  6934. "type": "string",
  6935. "x-go-name": "Note"
  6936. },
  6937. "draft": {
  6938. "type": "boolean",
  6939. "x-go-name": "IsDraft"
  6940. },
  6941. "name": {
  6942. "type": "string",
  6943. "x-go-name": "Title"
  6944. },
  6945. "prerelease": {
  6946. "type": "boolean",
  6947. "x-go-name": "IsPrerelease"
  6948. },
  6949. "tag_name": {
  6950. "type": "string",
  6951. "x-go-name": "TagName"
  6952. },
  6953. "target_commitish": {
  6954. "type": "string",
  6955. "x-go-name": "Target"
  6956. }
  6957. },
  6958. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6959. },
  6960. "CreateRepoOption": {
  6961. "description": "CreateRepoOption options when creating repository",
  6962. "type": "object",
  6963. "required": [
  6964. "name"
  6965. ],
  6966. "properties": {
  6967. "auto_init": {
  6968. "description": "Whether the repository should be auto-intialized?",
  6969. "type": "boolean",
  6970. "x-go-name": "AutoInit"
  6971. },
  6972. "description": {
  6973. "description": "Description of the repository to create",
  6974. "type": "string",
  6975. "x-go-name": "Description"
  6976. },
  6977. "gitignores": {
  6978. "description": "Gitignores to use",
  6979. "type": "string",
  6980. "x-go-name": "Gitignores"
  6981. },
  6982. "license": {
  6983. "description": "License to use",
  6984. "type": "string",
  6985. "x-go-name": "License"
  6986. },
  6987. "name": {
  6988. "description": "Name of the repository to create",
  6989. "type": "string",
  6990. "uniqueItems": true,
  6991. "x-go-name": "Name"
  6992. },
  6993. "private": {
  6994. "description": "Whether the repository is private",
  6995. "type": "boolean",
  6996. "x-go-name": "Private"
  6997. },
  6998. "readme": {
  6999. "description": "Readme of the repository to create",
  7000. "type": "string",
  7001. "x-go-name": "Readme"
  7002. }
  7003. },
  7004. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7005. },
  7006. "CreateStatusOption": {
  7007. "description": "CreateStatusOption holds the information needed to create a new Status for a Commit",
  7008. "type": "object",
  7009. "properties": {
  7010. "context": {
  7011. "type": "string",
  7012. "x-go-name": "Context"
  7013. },
  7014. "description": {
  7015. "type": "string",
  7016. "x-go-name": "Description"
  7017. },
  7018. "state": {
  7019. "$ref": "#/definitions/StatusState"
  7020. },
  7021. "target_url": {
  7022. "type": "string",
  7023. "x-go-name": "TargetURL"
  7024. }
  7025. },
  7026. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7027. },
  7028. "CreateTeamOption": {
  7029. "description": "CreateTeamOption options for creating a team",
  7030. "type": "object",
  7031. "required": [
  7032. "name"
  7033. ],
  7034. "properties": {
  7035. "description": {
  7036. "type": "string",
  7037. "x-go-name": "Description"
  7038. },
  7039. "name": {
  7040. "type": "string",
  7041. "x-go-name": "Name"
  7042. },
  7043. "permission": {
  7044. "type": "string",
  7045. "enum": [
  7046. "read",
  7047. "write",
  7048. "admin"
  7049. ],
  7050. "x-go-name": "Permission"
  7051. },
  7052. "units": {
  7053. "type": "array",
  7054. "enum": [
  7055. "repo.code",
  7056. "repo.issues",
  7057. "repo.ext_issues",
  7058. "repo.wiki",
  7059. "repo.pulls",
  7060. "repo.releases",
  7061. "repo.ext_wiki"
  7062. ],
  7063. "items": {
  7064. "type": "string"
  7065. },
  7066. "x-go-name": "Units"
  7067. }
  7068. },
  7069. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7070. },
  7071. "CreateUserOption": {
  7072. "description": "CreateUserOption create user options",
  7073. "type": "object",
  7074. "required": [
  7075. "username",
  7076. "email",
  7077. "password"
  7078. ],
  7079. "properties": {
  7080. "email": {
  7081. "type": "string",
  7082. "format": "email",
  7083. "x-go-name": "Email"
  7084. },
  7085. "full_name": {
  7086. "type": "string",
  7087. "x-go-name": "FullName"
  7088. },
  7089. "login_name": {
  7090. "type": "string",
  7091. "x-go-name": "LoginName"
  7092. },
  7093. "must_change_password": {
  7094. "type": "boolean",
  7095. "x-go-name": "MustChangePassword"
  7096. },
  7097. "password": {
  7098. "type": "string",
  7099. "x-go-name": "Password"
  7100. },
  7101. "send_notify": {
  7102. "type": "boolean",
  7103. "x-go-name": "SendNotify"
  7104. },
  7105. "source_id": {
  7106. "type": "integer",
  7107. "format": "int64",
  7108. "x-go-name": "SourceID"
  7109. },
  7110. "username": {
  7111. "type": "string",
  7112. "x-go-name": "Username"
  7113. }
  7114. },
  7115. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7116. },
  7117. "DeleteEmailOption": {
  7118. "description": "DeleteEmailOption options when deleting email addresses",
  7119. "type": "object",
  7120. "properties": {
  7121. "emails": {
  7122. "description": "email addresses to delete",
  7123. "type": "array",
  7124. "items": {
  7125. "type": "string"
  7126. },
  7127. "x-go-name": "Emails"
  7128. }
  7129. },
  7130. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7131. },
  7132. "DeployKey": {
  7133. "description": "DeployKey a deploy key",
  7134. "type": "object",
  7135. "properties": {
  7136. "created_at": {
  7137. "type": "string",
  7138. "format": "date-time",
  7139. "x-go-name": "Created"
  7140. },
  7141. "fingerprint": {
  7142. "type": "string",
  7143. "x-go-name": "Fingerprint"
  7144. },
  7145. "id": {
  7146. "type": "integer",
  7147. "format": "int64",
  7148. "x-go-name": "ID"
  7149. },
  7150. "key": {
  7151. "type": "string",
  7152. "x-go-name": "Key"
  7153. },
  7154. "key_id": {
  7155. "type": "integer",
  7156. "format": "int64",
  7157. "x-go-name": "KeyID"
  7158. },
  7159. "read_only": {
  7160. "type": "boolean",
  7161. "x-go-name": "ReadOnly"
  7162. },
  7163. "repository": {
  7164. "$ref": "#/definitions/Repository"
  7165. },
  7166. "title": {
  7167. "type": "string",
  7168. "x-go-name": "Title"
  7169. },
  7170. "url": {
  7171. "type": "string",
  7172. "x-go-name": "URL"
  7173. }
  7174. },
  7175. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7176. },
  7177. "EditAttachmentOptions": {
  7178. "description": "EditAttachmentOptions options for editing attachments",
  7179. "type": "object",
  7180. "properties": {
  7181. "name": {
  7182. "type": "string",
  7183. "x-go-name": "Name"
  7184. }
  7185. },
  7186. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7187. },
  7188. "EditDeadlineOption": {
  7189. "description": "EditDeadlineOption options for creating a deadline",
  7190. "type": "object",
  7191. "required": [
  7192. "due_date"
  7193. ],
  7194. "properties": {
  7195. "due_date": {
  7196. "type": "string",
  7197. "format": "date-time",
  7198. "x-go-name": "Deadline"
  7199. }
  7200. },
  7201. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7202. },
  7203. "EditGitHookOption": {
  7204. "description": "EditGitHookOption options when modifying one Git hook",
  7205. "type": "object",
  7206. "properties": {
  7207. "content": {
  7208. "type": "string",
  7209. "x-go-name": "Content"
  7210. }
  7211. },
  7212. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7213. },
  7214. "EditHookOption": {
  7215. "description": "EditHookOption options when modify one hook",
  7216. "type": "object",
  7217. "properties": {
  7218. "active": {
  7219. "type": "boolean",
  7220. "x-go-name": "Active"
  7221. },
  7222. "config": {
  7223. "type": "object",
  7224. "additionalProperties": {
  7225. "type": "string"
  7226. },
  7227. "x-go-name": "Config"
  7228. },
  7229. "events": {
  7230. "type": "array",
  7231. "items": {
  7232. "type": "string"
  7233. },
  7234. "x-go-name": "Events"
  7235. }
  7236. },
  7237. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7238. },
  7239. "EditIssueCommentOption": {
  7240. "description": "EditIssueCommentOption options for editing a comment",
  7241. "type": "object",
  7242. "required": [
  7243. "body"
  7244. ],
  7245. "properties": {
  7246. "body": {
  7247. "type": "string",
  7248. "x-go-name": "Body"
  7249. }
  7250. },
  7251. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7252. },
  7253. "EditIssueOption": {
  7254. "description": "EditIssueOption options for editing an issue",
  7255. "type": "object",
  7256. "properties": {
  7257. "assignee": {
  7258. "type": "string",
  7259. "x-go-name": "Assignee"
  7260. },
  7261. "assignees": {
  7262. "type": "array",
  7263. "items": {
  7264. "type": "string"
  7265. },
  7266. "x-go-name": "Assignees"
  7267. },
  7268. "body": {
  7269. "type": "string",
  7270. "x-go-name": "Body"
  7271. },
  7272. "due_date": {
  7273. "type": "string",
  7274. "format": "date-time",
  7275. "x-go-name": "Deadline"
  7276. },
  7277. "milestone": {
  7278. "type": "integer",
  7279. "format": "int64",
  7280. "x-go-name": "Milestone"
  7281. },
  7282. "state": {
  7283. "type": "string",
  7284. "x-go-name": "State"
  7285. },
  7286. "title": {
  7287. "type": "string",
  7288. "x-go-name": "Title"
  7289. }
  7290. },
  7291. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7292. },
  7293. "EditLabelOption": {
  7294. "description": "EditLabelOption options for editing a label",
  7295. "type": "object",
  7296. "properties": {
  7297. "color": {
  7298. "type": "string",
  7299. "x-go-name": "Color"
  7300. },
  7301. "name": {
  7302. "type": "string",
  7303. "x-go-name": "Name"
  7304. }
  7305. },
  7306. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7307. },
  7308. "EditMilestoneOption": {
  7309. "description": "EditMilestoneOption options for editing a milestone",
  7310. "type": "object",
  7311. "properties": {
  7312. "description": {
  7313. "type": "string",
  7314. "x-go-name": "Description"
  7315. },
  7316. "due_on": {
  7317. "type": "string",
  7318. "format": "date-time",
  7319. "x-go-name": "Deadline"
  7320. },
  7321. "state": {
  7322. "type": "string",
  7323. "x-go-name": "State"
  7324. },
  7325. "title": {
  7326. "type": "string",
  7327. "x-go-name": "Title"
  7328. }
  7329. },
  7330. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7331. },
  7332. "EditOrgOption": {
  7333. "description": "EditOrgOption options for editing an organization",
  7334. "type": "object",
  7335. "properties": {
  7336. "description": {
  7337. "type": "string",
  7338. "x-go-name": "Description"
  7339. },
  7340. "full_name": {
  7341. "type": "string",
  7342. "x-go-name": "FullName"
  7343. },
  7344. "location": {
  7345. "type": "string",
  7346. "x-go-name": "Location"
  7347. },
  7348. "website": {
  7349. "type": "string",
  7350. "x-go-name": "Website"
  7351. }
  7352. },
  7353. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7354. },
  7355. "EditPullRequestOption": {
  7356. "description": "EditPullRequestOption options when modify pull request",
  7357. "type": "object",
  7358. "properties": {
  7359. "assignee": {
  7360. "type": "string",
  7361. "x-go-name": "Assignee"
  7362. },
  7363. "assignees": {
  7364. "type": "array",
  7365. "items": {
  7366. "type": "string"
  7367. },
  7368. "x-go-name": "Assignees"
  7369. },
  7370. "body": {
  7371. "type": "string",
  7372. "x-go-name": "Body"
  7373. },
  7374. "due_date": {
  7375. "type": "string",
  7376. "format": "date-time",
  7377. "x-go-name": "Deadline"
  7378. },
  7379. "labels": {
  7380. "type": "array",
  7381. "items": {
  7382. "type": "integer",
  7383. "format": "int64"
  7384. },
  7385. "x-go-name": "Labels"
  7386. },
  7387. "milestone": {
  7388. "type": "integer",
  7389. "format": "int64",
  7390. "x-go-name": "Milestone"
  7391. },
  7392. "state": {
  7393. "type": "string",
  7394. "x-go-name": "State"
  7395. },
  7396. "title": {
  7397. "type": "string",
  7398. "x-go-name": "Title"
  7399. }
  7400. },
  7401. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7402. },
  7403. "EditReleaseOption": {
  7404. "description": "EditReleaseOption options when editing a release",
  7405. "type": "object",
  7406. "properties": {
  7407. "body": {
  7408. "type": "string",
  7409. "x-go-name": "Note"
  7410. },
  7411. "draft": {
  7412. "type": "boolean",
  7413. "x-go-name": "IsDraft"
  7414. },
  7415. "name": {
  7416. "type": "string",
  7417. "x-go-name": "Title"
  7418. },
  7419. "prerelease": {
  7420. "type": "boolean",
  7421. "x-go-name": "IsPrerelease"
  7422. },
  7423. "tag_name": {
  7424. "type": "string",
  7425. "x-go-name": "TagName"
  7426. },
  7427. "target_commitish": {
  7428. "type": "string",
  7429. "x-go-name": "Target"
  7430. }
  7431. },
  7432. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7433. },
  7434. "EditTeamOption": {
  7435. "description": "EditTeamOption options for editing a team",
  7436. "type": "object",
  7437. "required": [
  7438. "name"
  7439. ],
  7440. "properties": {
  7441. "description": {
  7442. "type": "string",
  7443. "x-go-name": "Description"
  7444. },
  7445. "name": {
  7446. "type": "string",
  7447. "x-go-name": "Name"
  7448. },
  7449. "permission": {
  7450. "type": "string",
  7451. "enum": [
  7452. "read",
  7453. "write",
  7454. "admin"
  7455. ],
  7456. "x-go-name": "Permission"
  7457. },
  7458. "units": {
  7459. "type": "array",
  7460. "enum": [
  7461. "repo.code",
  7462. "repo.issues",
  7463. "repo.ext_issues",
  7464. "repo.wiki",
  7465. "repo.pulls",
  7466. "repo.releases",
  7467. "repo.ext_wiki"
  7468. ],
  7469. "items": {
  7470. "type": "string"
  7471. },
  7472. "x-go-name": "Units"
  7473. }
  7474. },
  7475. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7476. },
  7477. "EditUserOption": {
  7478. "description": "EditUserOption edit user options",
  7479. "type": "object",
  7480. "required": [
  7481. "email"
  7482. ],
  7483. "properties": {
  7484. "active": {
  7485. "type": "boolean",
  7486. "x-go-name": "Active"
  7487. },
  7488. "admin": {
  7489. "type": "boolean",
  7490. "x-go-name": "Admin"
  7491. },
  7492. "allow_create_organization": {
  7493. "type": "boolean",
  7494. "x-go-name": "AllowCreateOrganization"
  7495. },
  7496. "allow_git_hook": {
  7497. "type": "boolean",
  7498. "x-go-name": "AllowGitHook"
  7499. },
  7500. "allow_import_local": {
  7501. "type": "boolean",
  7502. "x-go-name": "AllowImportLocal"
  7503. },
  7504. "email": {
  7505. "type": "string",
  7506. "format": "email",
  7507. "x-go-name": "Email"
  7508. },
  7509. "full_name": {
  7510. "type": "string",
  7511. "x-go-name": "FullName"
  7512. },
  7513. "location": {
  7514. "type": "string",
  7515. "x-go-name": "Location"
  7516. },
  7517. "login_name": {
  7518. "type": "string",
  7519. "x-go-name": "LoginName"
  7520. },
  7521. "max_repo_creation": {
  7522. "type": "integer",
  7523. "format": "int64",
  7524. "x-go-name": "MaxRepoCreation"
  7525. },
  7526. "must_change_password": {
  7527. "type": "boolean",
  7528. "x-go-name": "MustChangePassword"
  7529. },
  7530. "password": {
  7531. "type": "string",
  7532. "x-go-name": "Password"
  7533. },
  7534. "prohibit_login": {
  7535. "type": "boolean",
  7536. "x-go-name": "ProhibitLogin"
  7537. },
  7538. "source_id": {
  7539. "type": "integer",
  7540. "format": "int64",
  7541. "x-go-name": "SourceID"
  7542. },
  7543. "website": {
  7544. "type": "string",
  7545. "x-go-name": "Website"
  7546. }
  7547. },
  7548. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7549. },
  7550. "Email": {
  7551. "description": "Email an email address belonging to a user",
  7552. "type": "object",
  7553. "properties": {
  7554. "email": {
  7555. "type": "string",
  7556. "format": "email",
  7557. "x-go-name": "Email"
  7558. },
  7559. "primary": {
  7560. "type": "boolean",
  7561. "x-go-name": "Primary"
  7562. },
  7563. "verified": {
  7564. "type": "boolean",
  7565. "x-go-name": "Verified"
  7566. }
  7567. },
  7568. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7569. },
  7570. "GPGKey": {
  7571. "description": "GPGKey a user GPG key to sign commit and tag in repository",
  7572. "type": "object",
  7573. "properties": {
  7574. "can_certify": {
  7575. "type": "boolean",
  7576. "x-go-name": "CanCertify"
  7577. },
  7578. "can_encrypt_comms": {
  7579. "type": "boolean",
  7580. "x-go-name": "CanEncryptComms"
  7581. },
  7582. "can_encrypt_storage": {
  7583. "type": "boolean",
  7584. "x-go-name": "CanEncryptStorage"
  7585. },
  7586. "can_sign": {
  7587. "type": "boolean",
  7588. "x-go-name": "CanSign"
  7589. },
  7590. "created_at": {
  7591. "type": "string",
  7592. "format": "date-time",
  7593. "x-go-name": "Created"
  7594. },
  7595. "emails": {
  7596. "type": "array",
  7597. "items": {
  7598. "$ref": "#/definitions/GPGKeyEmail"
  7599. },
  7600. "x-go-name": "Emails"
  7601. },
  7602. "expires_at": {
  7603. "type": "string",
  7604. "format": "date-time",
  7605. "x-go-name": "Expires"
  7606. },
  7607. "id": {
  7608. "type": "integer",
  7609. "format": "int64",
  7610. "x-go-name": "ID"
  7611. },
  7612. "key_id": {
  7613. "type": "string",
  7614. "x-go-name": "KeyID"
  7615. },
  7616. "primary_key_id": {
  7617. "type": "string",
  7618. "x-go-name": "PrimaryKeyID"
  7619. },
  7620. "public_key": {
  7621. "type": "string",
  7622. "x-go-name": "PublicKey"
  7623. },
  7624. "subkeys": {
  7625. "type": "array",
  7626. "items": {
  7627. "$ref": "#/definitions/GPGKey"
  7628. },
  7629. "x-go-name": "SubsKey"
  7630. }
  7631. },
  7632. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7633. },
  7634. "GPGKeyEmail": {
  7635. "description": "GPGKeyEmail an email attached to a GPGKey",
  7636. "type": "object",
  7637. "properties": {
  7638. "email": {
  7639. "type": "string",
  7640. "x-go-name": "Email"
  7641. },
  7642. "verified": {
  7643. "type": "boolean",
  7644. "x-go-name": "Verified"
  7645. }
  7646. },
  7647. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7648. },
  7649. "GitEntry": {
  7650. "description": "GitEntry represents a git tree",
  7651. "type": "object",
  7652. "properties": {
  7653. "mode": {
  7654. "type": "string",
  7655. "x-go-name": "Mode"
  7656. },
  7657. "path": {
  7658. "type": "string",
  7659. "x-go-name": "Path"
  7660. },
  7661. "sha": {
  7662. "type": "string",
  7663. "x-go-name": "SHA"
  7664. },
  7665. "size": {
  7666. "type": "integer",
  7667. "format": "int64",
  7668. "x-go-name": "Size"
  7669. },
  7670. "type": {
  7671. "type": "string",
  7672. "x-go-name": "Type"
  7673. },
  7674. "url": {
  7675. "type": "string",
  7676. "x-go-name": "URL"
  7677. }
  7678. },
  7679. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7680. },
  7681. "GitHook": {
  7682. "description": "GitHook represents a Git repository hook",
  7683. "type": "object",
  7684. "properties": {
  7685. "content": {
  7686. "type": "string",
  7687. "x-go-name": "Content"
  7688. },
  7689. "is_active": {
  7690. "type": "boolean",
  7691. "x-go-name": "IsActive"
  7692. },
  7693. "name": {
  7694. "type": "string",
  7695. "x-go-name": "Name"
  7696. }
  7697. },
  7698. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7699. },
  7700. "GitObject": {
  7701. "type": "object",
  7702. "title": "GitObject represents a Git object.",
  7703. "properties": {
  7704. "sha": {
  7705. "type": "string",
  7706. "x-go-name": "SHA"
  7707. },
  7708. "type": {
  7709. "type": "string",
  7710. "x-go-name": "Type"
  7711. },
  7712. "url": {
  7713. "type": "string",
  7714. "x-go-name": "URL"
  7715. }
  7716. },
  7717. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7718. },
  7719. "GitTreeResponse": {
  7720. "description": "GitTreeResponse returns a git tree",
  7721. "type": "object",
  7722. "properties": {
  7723. "page": {
  7724. "type": "integer",
  7725. "format": "int64",
  7726. "x-go-name": "Page"
  7727. },
  7728. "sha": {
  7729. "type": "string",
  7730. "x-go-name": "SHA"
  7731. },
  7732. "total_count": {
  7733. "type": "integer",
  7734. "format": "int64",
  7735. "x-go-name": "TotalCount"
  7736. },
  7737. "tree": {
  7738. "type": "array",
  7739. "items": {
  7740. "$ref": "#/definitions/GitEntry"
  7741. },
  7742. "x-go-name": "Entries"
  7743. },
  7744. "truncated": {
  7745. "type": "boolean",
  7746. "x-go-name": "Truncated"
  7747. },
  7748. "url": {
  7749. "type": "string",
  7750. "x-go-name": "URL"
  7751. }
  7752. },
  7753. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7754. },
  7755. "Hook": {
  7756. "description": "Hook a hook is a web hook when one repository changed",
  7757. "type": "object",
  7758. "properties": {
  7759. "active": {
  7760. "type": "boolean",
  7761. "x-go-name": "Active"
  7762. },
  7763. "config": {
  7764. "type": "object",
  7765. "additionalProperties": {
  7766. "type": "string"
  7767. },
  7768. "x-go-name": "Config"
  7769. },
  7770. "created_at": {
  7771. "type": "string",
  7772. "format": "date-time",
  7773. "x-go-name": "Created"
  7774. },
  7775. "events": {
  7776. "type": "array",
  7777. "items": {
  7778. "type": "string"
  7779. },
  7780. "x-go-name": "Events"
  7781. },
  7782. "id": {
  7783. "type": "integer",
  7784. "format": "int64",
  7785. "x-go-name": "ID"
  7786. },
  7787. "type": {
  7788. "type": "string",
  7789. "x-go-name": "Type"
  7790. },
  7791. "updated_at": {
  7792. "type": "string",
  7793. "format": "date-time",
  7794. "x-go-name": "Updated"
  7795. }
  7796. },
  7797. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7798. },
  7799. "Issue": {
  7800. "description": "Issue represents an issue in a repository",
  7801. "type": "object",
  7802. "properties": {
  7803. "assignee": {
  7804. "$ref": "#/definitions/User"
  7805. },
  7806. "assignees": {
  7807. "type": "array",
  7808. "items": {
  7809. "$ref": "#/definitions/User"
  7810. },
  7811. "x-go-name": "Assignees"
  7812. },
  7813. "body": {
  7814. "type": "string",
  7815. "x-go-name": "Body"
  7816. },
  7817. "closed_at": {
  7818. "type": "string",
  7819. "format": "date-time",
  7820. "x-go-name": "Closed"
  7821. },
  7822. "comments": {
  7823. "type": "integer",
  7824. "format": "int64",
  7825. "x-go-name": "Comments"
  7826. },
  7827. "created_at": {
  7828. "type": "string",
  7829. "format": "date-time",
  7830. "x-go-name": "Created"
  7831. },
  7832. "due_date": {
  7833. "type": "string",
  7834. "format": "date-time",
  7835. "x-go-name": "Deadline"
  7836. },
  7837. "id": {
  7838. "type": "integer",
  7839. "format": "int64",
  7840. "x-go-name": "ID"
  7841. },
  7842. "labels": {
  7843. "type": "array",
  7844. "items": {
  7845. "$ref": "#/definitions/Label"
  7846. },
  7847. "x-go-name": "Labels"
  7848. },
  7849. "milestone": {
  7850. "$ref": "#/definitions/Milestone"
  7851. },
  7852. "number": {
  7853. "type": "integer",
  7854. "format": "int64",
  7855. "x-go-name": "Index"
  7856. },
  7857. "pull_request": {
  7858. "$ref": "#/definitions/PullRequestMeta"
  7859. },
  7860. "state": {
  7861. "$ref": "#/definitions/StateType"
  7862. },
  7863. "title": {
  7864. "type": "string",
  7865. "x-go-name": "Title"
  7866. },
  7867. "updated_at": {
  7868. "type": "string",
  7869. "format": "date-time",
  7870. "x-go-name": "Updated"
  7871. },
  7872. "url": {
  7873. "type": "string",
  7874. "x-go-name": "URL"
  7875. },
  7876. "user": {
  7877. "$ref": "#/definitions/User"
  7878. }
  7879. },
  7880. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7881. },
  7882. "IssueDeadline": {
  7883. "description": "IssueDeadline represents an issue deadline",
  7884. "type": "object",
  7885. "properties": {
  7886. "due_date": {
  7887. "type": "string",
  7888. "format": "date-time",
  7889. "x-go-name": "Deadline"
  7890. }
  7891. },
  7892. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7893. },
  7894. "IssueLabelsOption": {
  7895. "description": "IssueLabelsOption a collection of labels",
  7896. "type": "object",
  7897. "properties": {
  7898. "labels": {
  7899. "description": "list of label IDs",
  7900. "type": "array",
  7901. "items": {
  7902. "type": "integer",
  7903. "format": "int64"
  7904. },
  7905. "x-go-name": "Labels"
  7906. }
  7907. },
  7908. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7909. },
  7910. "Label": {
  7911. "description": "Label a label to an issue or a pr",
  7912. "type": "object",
  7913. "properties": {
  7914. "color": {
  7915. "type": "string",
  7916. "x-go-name": "Color",
  7917. "example": "00aabb"
  7918. },
  7919. "id": {
  7920. "type": "integer",
  7921. "format": "int64",
  7922. "x-go-name": "ID"
  7923. },
  7924. "name": {
  7925. "type": "string",
  7926. "x-go-name": "Name"
  7927. },
  7928. "url": {
  7929. "type": "string",
  7930. "x-go-name": "URL"
  7931. }
  7932. },
  7933. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7934. },
  7935. "MarkdownOption": {
  7936. "description": "MarkdownOption markdown options",
  7937. "type": "object",
  7938. "properties": {
  7939. "Context": {
  7940. "description": "Context to render\n\nin: body",
  7941. "type": "string"
  7942. },
  7943. "Mode": {
  7944. "description": "Mode to render\n\nin: body",
  7945. "type": "string"
  7946. },
  7947. "Text": {
  7948. "description": "Text markdown to render\n\nin: body",
  7949. "type": "string"
  7950. },
  7951. "Wiki": {
  7952. "description": "Is it a wiki page ?\n\nin: body",
  7953. "type": "boolean"
  7954. }
  7955. },
  7956. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7957. },
  7958. "MergePullRequestOption": {
  7959. "description": "MergePullRequestForm form for merging Pull Request",
  7960. "type": "object",
  7961. "required": [
  7962. "Do"
  7963. ],
  7964. "properties": {
  7965. "Do": {
  7966. "type": "string",
  7967. "enum": [
  7968. "merge",
  7969. "rebase",
  7970. "rebase-merge",
  7971. "squash"
  7972. ]
  7973. },
  7974. "MergeMessageField": {
  7975. "type": "string"
  7976. },
  7977. "MergeTitleField": {
  7978. "type": "string"
  7979. }
  7980. },
  7981. "x-go-name": "MergePullRequestForm",
  7982. "x-go-package": "code.gitea.io/gitea/modules/auth"
  7983. },
  7984. "MigrateRepoForm": {
  7985. "description": "MigrateRepoForm form for migrating repository",
  7986. "type": "object",
  7987. "required": [
  7988. "clone_addr",
  7989. "uid",
  7990. "repo_name"
  7991. ],
  7992. "properties": {
  7993. "auth_password": {
  7994. "type": "string",
  7995. "x-go-name": "AuthPassword"
  7996. },
  7997. "auth_username": {
  7998. "type": "string",
  7999. "x-go-name": "AuthUsername"
  8000. },
  8001. "clone_addr": {
  8002. "type": "string",
  8003. "x-go-name": "CloneAddr"
  8004. },
  8005. "description": {
  8006. "type": "string",
  8007. "x-go-name": "Description"
  8008. },
  8009. "mirror": {
  8010. "type": "boolean",
  8011. "x-go-name": "Mirror"
  8012. },
  8013. "private": {
  8014. "type": "boolean",
  8015. "x-go-name": "Private"
  8016. },
  8017. "repo_name": {
  8018. "type": "string",
  8019. "x-go-name": "RepoName"
  8020. },
  8021. "uid": {
  8022. "type": "integer",
  8023. "format": "int64",
  8024. "x-go-name": "UID"
  8025. }
  8026. },
  8027. "x-go-package": "code.gitea.io/gitea/modules/auth"
  8028. },
  8029. "Milestone": {
  8030. "description": "Milestone milestone is a collection of issues on one repository",
  8031. "type": "object",
  8032. "properties": {
  8033. "closed_at": {
  8034. "type": "string",
  8035. "format": "date-time",
  8036. "x-go-name": "Closed"
  8037. },
  8038. "closed_issues": {
  8039. "type": "integer",
  8040. "format": "int64",
  8041. "x-go-name": "ClosedIssues"
  8042. },
  8043. "description": {
  8044. "type": "string",
  8045. "x-go-name": "Description"
  8046. },
  8047. "due_on": {
  8048. "type": "string",
  8049. "format": "date-time",
  8050. "x-go-name": "Deadline"
  8051. },
  8052. "id": {
  8053. "type": "integer",
  8054. "format": "int64",
  8055. "x-go-name": "ID"
  8056. },
  8057. "open_issues": {
  8058. "type": "integer",
  8059. "format": "int64",
  8060. "x-go-name": "OpenIssues"
  8061. },
  8062. "state": {
  8063. "$ref": "#/definitions/StateType"
  8064. },
  8065. "title": {
  8066. "type": "string",
  8067. "x-go-name": "Title"
  8068. }
  8069. },
  8070. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8071. },
  8072. "Organization": {
  8073. "description": "Organization represents an organization",
  8074. "type": "object",
  8075. "properties": {
  8076. "avatar_url": {
  8077. "type": "string",
  8078. "x-go-name": "AvatarURL"
  8079. },
  8080. "description": {
  8081. "type": "string",
  8082. "x-go-name": "Description"
  8083. },
  8084. "full_name": {
  8085. "type": "string",
  8086. "x-go-name": "FullName"
  8087. },
  8088. "id": {
  8089. "type": "integer",
  8090. "format": "int64",
  8091. "x-go-name": "ID"
  8092. },
  8093. "location": {
  8094. "type": "string",
  8095. "x-go-name": "Location"
  8096. },
  8097. "username": {
  8098. "type": "string",
  8099. "x-go-name": "UserName"
  8100. },
  8101. "website": {
  8102. "type": "string",
  8103. "x-go-name": "Website"
  8104. }
  8105. },
  8106. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8107. },
  8108. "PRBranchInfo": {
  8109. "description": "PRBranchInfo information about a branch",
  8110. "type": "object",
  8111. "properties": {
  8112. "label": {
  8113. "type": "string",
  8114. "x-go-name": "Name"
  8115. },
  8116. "ref": {
  8117. "type": "string",
  8118. "x-go-name": "Ref"
  8119. },
  8120. "repo": {
  8121. "$ref": "#/definitions/Repository"
  8122. },
  8123. "repo_id": {
  8124. "type": "integer",
  8125. "format": "int64",
  8126. "x-go-name": "RepoID"
  8127. },
  8128. "sha": {
  8129. "type": "string",
  8130. "x-go-name": "Sha"
  8131. }
  8132. },
  8133. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8134. },
  8135. "PayloadCommit": {
  8136. "description": "PayloadCommit represents a commit",
  8137. "type": "object",
  8138. "properties": {
  8139. "added": {
  8140. "type": "array",
  8141. "items": {
  8142. "type": "string"
  8143. },
  8144. "x-go-name": "Added"
  8145. },
  8146. "author": {
  8147. "$ref": "#/definitions/PayloadUser"
  8148. },
  8149. "committer": {
  8150. "$ref": "#/definitions/PayloadUser"
  8151. },
  8152. "id": {
  8153. "description": "sha1 hash of the commit",
  8154. "type": "string",
  8155. "x-go-name": "ID"
  8156. },
  8157. "message": {
  8158. "type": "string",
  8159. "x-go-name": "Message"
  8160. },
  8161. "modified": {
  8162. "type": "array",
  8163. "items": {
  8164. "type": "string"
  8165. },
  8166. "x-go-name": "Modified"
  8167. },
  8168. "removed": {
  8169. "type": "array",
  8170. "items": {
  8171. "type": "string"
  8172. },
  8173. "x-go-name": "Removed"
  8174. },
  8175. "timestamp": {
  8176. "type": "string",
  8177. "format": "date-time",
  8178. "x-go-name": "Timestamp"
  8179. },
  8180. "url": {
  8181. "type": "string",
  8182. "x-go-name": "URL"
  8183. },
  8184. "verification": {
  8185. "$ref": "#/definitions/PayloadCommitVerification"
  8186. }
  8187. },
  8188. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8189. },
  8190. "PayloadCommitVerification": {
  8191. "description": "PayloadCommitVerification represents the GPG verification of a commit",
  8192. "type": "object",
  8193. "properties": {
  8194. "payload": {
  8195. "type": "string",
  8196. "x-go-name": "Payload"
  8197. },
  8198. "reason": {
  8199. "type": "string",
  8200. "x-go-name": "Reason"
  8201. },
  8202. "signature": {
  8203. "type": "string",
  8204. "x-go-name": "Signature"
  8205. },
  8206. "verified": {
  8207. "type": "boolean",
  8208. "x-go-name": "Verified"
  8209. }
  8210. },
  8211. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8212. },
  8213. "PayloadUser": {
  8214. "description": "PayloadUser represents the author or committer of a commit",
  8215. "type": "object",
  8216. "properties": {
  8217. "email": {
  8218. "type": "string",
  8219. "format": "email",
  8220. "x-go-name": "Email"
  8221. },
  8222. "name": {
  8223. "description": "Full name of the commit author",
  8224. "type": "string",
  8225. "x-go-name": "Name"
  8226. },
  8227. "username": {
  8228. "type": "string",
  8229. "x-go-name": "UserName"
  8230. }
  8231. },
  8232. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8233. },
  8234. "Permission": {
  8235. "description": "Permission represents a set of permissions",
  8236. "type": "object",
  8237. "properties": {
  8238. "admin": {
  8239. "type": "boolean",
  8240. "x-go-name": "Admin"
  8241. },
  8242. "pull": {
  8243. "type": "boolean",
  8244. "x-go-name": "Pull"
  8245. },
  8246. "push": {
  8247. "type": "boolean",
  8248. "x-go-name": "Push"
  8249. }
  8250. },
  8251. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8252. },
  8253. "PublicKey": {
  8254. "description": "PublicKey publickey is a user key to push code to repository",
  8255. "type": "object",
  8256. "properties": {
  8257. "created_at": {
  8258. "type": "string",
  8259. "format": "date-time",
  8260. "x-go-name": "Created"
  8261. },
  8262. "fingerprint": {
  8263. "type": "string",
  8264. "x-go-name": "Fingerprint"
  8265. },
  8266. "id": {
  8267. "type": "integer",
  8268. "format": "int64",
  8269. "x-go-name": "ID"
  8270. },
  8271. "key": {
  8272. "type": "string",
  8273. "x-go-name": "Key"
  8274. },
  8275. "key_type": {
  8276. "type": "string",
  8277. "x-go-name": "KeyType"
  8278. },
  8279. "read_only": {
  8280. "type": "boolean",
  8281. "x-go-name": "ReadOnly"
  8282. },
  8283. "title": {
  8284. "type": "string",
  8285. "x-go-name": "Title"
  8286. },
  8287. "url": {
  8288. "type": "string",
  8289. "x-go-name": "URL"
  8290. },
  8291. "user": {
  8292. "$ref": "#/definitions/User"
  8293. }
  8294. },
  8295. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8296. },
  8297. "PullRequest": {
  8298. "description": "PullRequest represents a pull request",
  8299. "type": "object",
  8300. "properties": {
  8301. "assignee": {
  8302. "$ref": "#/definitions/User"
  8303. },
  8304. "assignees": {
  8305. "type": "array",
  8306. "items": {
  8307. "$ref": "#/definitions/User"
  8308. },
  8309. "x-go-name": "Assignees"
  8310. },
  8311. "base": {
  8312. "$ref": "#/definitions/PRBranchInfo"
  8313. },
  8314. "body": {
  8315. "type": "string",
  8316. "x-go-name": "Body"
  8317. },
  8318. "closed_at": {
  8319. "type": "string",
  8320. "format": "date-time",
  8321. "x-go-name": "Closed"
  8322. },
  8323. "comments": {
  8324. "type": "integer",
  8325. "format": "int64",
  8326. "x-go-name": "Comments"
  8327. },
  8328. "created_at": {
  8329. "type": "string",
  8330. "format": "date-time",
  8331. "x-go-name": "Created"
  8332. },
  8333. "diff_url": {
  8334. "type": "string",
  8335. "x-go-name": "DiffURL"
  8336. },
  8337. "due_date": {
  8338. "type": "string",
  8339. "format": "date-time",
  8340. "x-go-name": "Deadline"
  8341. },
  8342. "head": {
  8343. "$ref": "#/definitions/PRBranchInfo"
  8344. },
  8345. "html_url": {
  8346. "type": "string",
  8347. "x-go-name": "HTMLURL"
  8348. },
  8349. "id": {
  8350. "type": "integer",
  8351. "format": "int64",
  8352. "x-go-name": "ID"
  8353. },
  8354. "labels": {
  8355. "type": "array",
  8356. "items": {
  8357. "$ref": "#/definitions/Label"
  8358. },
  8359. "x-go-name": "Labels"
  8360. },
  8361. "merge_base": {
  8362. "type": "string",
  8363. "x-go-name": "MergeBase"
  8364. },
  8365. "merge_commit_sha": {
  8366. "type": "string",
  8367. "x-go-name": "MergedCommitID"
  8368. },
  8369. "mergeable": {
  8370. "type": "boolean",
  8371. "x-go-name": "Mergeable"
  8372. },
  8373. "merged": {
  8374. "type": "boolean",
  8375. "x-go-name": "HasMerged"
  8376. },
  8377. "merged_at": {
  8378. "type": "string",
  8379. "format": "date-time",
  8380. "x-go-name": "Merged"
  8381. },
  8382. "merged_by": {
  8383. "$ref": "#/definitions/User"
  8384. },
  8385. "milestone": {
  8386. "$ref": "#/definitions/Milestone"
  8387. },
  8388. "number": {
  8389. "type": "integer",
  8390. "format": "int64",
  8391. "x-go-name": "Index"
  8392. },
  8393. "patch_url": {
  8394. "type": "string",
  8395. "x-go-name": "PatchURL"
  8396. },
  8397. "state": {
  8398. "$ref": "#/definitions/StateType"
  8399. },
  8400. "title": {
  8401. "type": "string",
  8402. "x-go-name": "Title"
  8403. },
  8404. "updated_at": {
  8405. "type": "string",
  8406. "format": "date-time",
  8407. "x-go-name": "Updated"
  8408. },
  8409. "url": {
  8410. "type": "string",
  8411. "x-go-name": "URL"
  8412. },
  8413. "user": {
  8414. "$ref": "#/definitions/User"
  8415. }
  8416. },
  8417. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8418. },
  8419. "PullRequestMeta": {
  8420. "description": "PullRequestMeta PR info if an issue is a PR",
  8421. "type": "object",
  8422. "properties": {
  8423. "merged": {
  8424. "type": "boolean",
  8425. "x-go-name": "HasMerged"
  8426. },
  8427. "merged_at": {
  8428. "type": "string",
  8429. "format": "date-time",
  8430. "x-go-name": "Merged"
  8431. }
  8432. },
  8433. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8434. },
  8435. "Reference": {
  8436. "type": "object",
  8437. "title": "Reference represents a Git reference.",
  8438. "properties": {
  8439. "object": {
  8440. "$ref": "#/definitions/GitObject"
  8441. },
  8442. "ref": {
  8443. "type": "string",
  8444. "x-go-name": "Ref"
  8445. },
  8446. "url": {
  8447. "type": "string",
  8448. "x-go-name": "URL"
  8449. }
  8450. },
  8451. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8452. },
  8453. "Release": {
  8454. "description": "Release represents a repository release",
  8455. "type": "object",
  8456. "properties": {
  8457. "assets": {
  8458. "type": "array",
  8459. "items": {
  8460. "$ref": "#/definitions/Attachment"
  8461. },
  8462. "x-go-name": "Attachments"
  8463. },
  8464. "author": {
  8465. "$ref": "#/definitions/User"
  8466. },
  8467. "body": {
  8468. "type": "string",
  8469. "x-go-name": "Note"
  8470. },
  8471. "created_at": {
  8472. "type": "string",
  8473. "format": "date-time",
  8474. "x-go-name": "CreatedAt"
  8475. },
  8476. "draft": {
  8477. "type": "boolean",
  8478. "x-go-name": "IsDraft"
  8479. },
  8480. "id": {
  8481. "type": "integer",
  8482. "format": "int64",
  8483. "x-go-name": "ID"
  8484. },
  8485. "name": {
  8486. "type": "string",
  8487. "x-go-name": "Title"
  8488. },
  8489. "prerelease": {
  8490. "type": "boolean",
  8491. "x-go-name": "IsPrerelease"
  8492. },
  8493. "published_at": {
  8494. "type": "string",
  8495. "format": "date-time",
  8496. "x-go-name": "PublishedAt"
  8497. },
  8498. "tag_name": {
  8499. "type": "string",
  8500. "x-go-name": "TagName"
  8501. },
  8502. "tarball_url": {
  8503. "type": "string",
  8504. "x-go-name": "TarURL"
  8505. },
  8506. "target_commitish": {
  8507. "type": "string",
  8508. "x-go-name": "Target"
  8509. },
  8510. "url": {
  8511. "type": "string",
  8512. "x-go-name": "URL"
  8513. },
  8514. "zipball_url": {
  8515. "type": "string",
  8516. "x-go-name": "ZipURL"
  8517. }
  8518. },
  8519. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8520. },
  8521. "RepoCommit": {
  8522. "type": "object",
  8523. "title": "RepoCommit contains information of a commit in the context of a repository.",
  8524. "properties": {
  8525. "author": {
  8526. "$ref": "#/definitions/CommitUser"
  8527. },
  8528. "committer": {
  8529. "$ref": "#/definitions/CommitUser"
  8530. },
  8531. "message": {
  8532. "type": "string",
  8533. "x-go-name": "Message"
  8534. },
  8535. "tree": {
  8536. "$ref": "#/definitions/CommitMeta"
  8537. },
  8538. "url": {
  8539. "type": "string",
  8540. "x-go-name": "URL"
  8541. }
  8542. },
  8543. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8544. },
  8545. "Repository": {
  8546. "description": "Repository represents a repository",
  8547. "type": "object",
  8548. "properties": {
  8549. "archived": {
  8550. "type": "boolean",
  8551. "x-go-name": "Archived"
  8552. },
  8553. "clone_url": {
  8554. "type": "string",
  8555. "x-go-name": "CloneURL"
  8556. },
  8557. "created_at": {
  8558. "type": "string",
  8559. "format": "date-time",
  8560. "x-go-name": "Created"
  8561. },
  8562. "default_branch": {
  8563. "type": "string",
  8564. "x-go-name": "DefaultBranch"
  8565. },
  8566. "description": {
  8567. "type": "string",
  8568. "x-go-name": "Description"
  8569. },
  8570. "empty": {
  8571. "type": "boolean",
  8572. "x-go-name": "Empty"
  8573. },
  8574. "fork": {
  8575. "type": "boolean",
  8576. "x-go-name": "Fork"
  8577. },
  8578. "forks_count": {
  8579. "type": "integer",
  8580. "format": "int64",
  8581. "x-go-name": "Forks"
  8582. },
  8583. "full_name": {
  8584. "type": "string",
  8585. "x-go-name": "FullName"
  8586. },
  8587. "html_url": {
  8588. "type": "string",
  8589. "x-go-name": "HTMLURL"
  8590. },
  8591. "id": {
  8592. "type": "integer",
  8593. "format": "int64",
  8594. "x-go-name": "ID"
  8595. },
  8596. "mirror": {
  8597. "type": "boolean",
  8598. "x-go-name": "Mirror"
  8599. },
  8600. "name": {
  8601. "type": "string",
  8602. "x-go-name": "Name"
  8603. },
  8604. "open_issues_count": {
  8605. "type": "integer",
  8606. "format": "int64",
  8607. "x-go-name": "OpenIssues"
  8608. },
  8609. "owner": {
  8610. "$ref": "#/definitions/User"
  8611. },
  8612. "parent": {
  8613. "$ref": "#/definitions/Repository"
  8614. },
  8615. "permissions": {
  8616. "$ref": "#/definitions/Permission"
  8617. },
  8618. "private": {
  8619. "type": "boolean",
  8620. "x-go-name": "Private"
  8621. },
  8622. "size": {
  8623. "type": "integer",
  8624. "format": "int64",
  8625. "x-go-name": "Size"
  8626. },
  8627. "ssh_url": {
  8628. "type": "string",
  8629. "x-go-name": "SSHURL"
  8630. },
  8631. "stars_count": {
  8632. "type": "integer",
  8633. "format": "int64",
  8634. "x-go-name": "Stars"
  8635. },
  8636. "updated_at": {
  8637. "type": "string",
  8638. "format": "date-time",
  8639. "x-go-name": "Updated"
  8640. },
  8641. "watchers_count": {
  8642. "type": "integer",
  8643. "format": "int64",
  8644. "x-go-name": "Watchers"
  8645. },
  8646. "website": {
  8647. "type": "string",
  8648. "x-go-name": "Website"
  8649. }
  8650. },
  8651. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8652. },
  8653. "SearchResults": {
  8654. "description": "SearchResults results of a successful search",
  8655. "type": "object",
  8656. "properties": {
  8657. "data": {
  8658. "type": "array",
  8659. "items": {
  8660. "$ref": "#/definitions/Repository"
  8661. },
  8662. "x-go-name": "Data"
  8663. },
  8664. "ok": {
  8665. "type": "boolean",
  8666. "x-go-name": "OK"
  8667. }
  8668. },
  8669. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8670. },
  8671. "ServerVersion": {
  8672. "description": "ServerVersion wraps the version of the server",
  8673. "type": "object",
  8674. "properties": {
  8675. "version": {
  8676. "type": "string",
  8677. "x-go-name": "Version"
  8678. }
  8679. },
  8680. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8681. },
  8682. "StateType": {
  8683. "description": "StateType issue state type",
  8684. "type": "string",
  8685. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8686. },
  8687. "Status": {
  8688. "description": "Status holds a single Status of a single Commit",
  8689. "type": "object",
  8690. "properties": {
  8691. "context": {
  8692. "type": "string",
  8693. "x-go-name": "Context"
  8694. },
  8695. "created_at": {
  8696. "type": "string",
  8697. "format": "date-time",
  8698. "x-go-name": "Created"
  8699. },
  8700. "creator": {
  8701. "$ref": "#/definitions/User"
  8702. },
  8703. "description": {
  8704. "type": "string",
  8705. "x-go-name": "Description"
  8706. },
  8707. "id": {
  8708. "type": "integer",
  8709. "format": "int64",
  8710. "x-go-name": "ID"
  8711. },
  8712. "status": {
  8713. "$ref": "#/definitions/StatusState"
  8714. },
  8715. "target_url": {
  8716. "type": "string",
  8717. "x-go-name": "TargetURL"
  8718. },
  8719. "updated_at": {
  8720. "type": "string",
  8721. "format": "date-time",
  8722. "x-go-name": "Updated"
  8723. },
  8724. "url": {
  8725. "type": "string",
  8726. "x-go-name": "URL"
  8727. }
  8728. },
  8729. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8730. },
  8731. "StatusState": {
  8732. "description": "StatusState holds the state of a Status\nIt can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"",
  8733. "type": "string",
  8734. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8735. },
  8736. "Tag": {
  8737. "description": "Tag represents a repository tag",
  8738. "type": "object",
  8739. "properties": {
  8740. "commit": {
  8741. "type": "object",
  8742. "properties": {
  8743. "sha": {
  8744. "type": "string",
  8745. "x-go-name": "SHA"
  8746. },
  8747. "url": {
  8748. "type": "string",
  8749. "x-go-name": "URL"
  8750. }
  8751. },
  8752. "x-go-name": "Commit"
  8753. },
  8754. "name": {
  8755. "type": "string",
  8756. "x-go-name": "Name"
  8757. },
  8758. "tarball_url": {
  8759. "type": "string",
  8760. "x-go-name": "TarballURL"
  8761. },
  8762. "zipball_url": {
  8763. "type": "string",
  8764. "x-go-name": "ZipballURL"
  8765. }
  8766. },
  8767. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8768. },
  8769. "Team": {
  8770. "description": "Team represents a team in an organization",
  8771. "type": "object",
  8772. "properties": {
  8773. "description": {
  8774. "type": "string",
  8775. "x-go-name": "Description"
  8776. },
  8777. "id": {
  8778. "type": "integer",
  8779. "format": "int64",
  8780. "x-go-name": "ID"
  8781. },
  8782. "name": {
  8783. "type": "string",
  8784. "x-go-name": "Name"
  8785. },
  8786. "organization": {
  8787. "$ref": "#/definitions/Organization"
  8788. },
  8789. "permission": {
  8790. "type": "string",
  8791. "enum": [
  8792. "none",
  8793. "read",
  8794. "write",
  8795. "admin",
  8796. "owner"
  8797. ],
  8798. "x-go-name": "Permission"
  8799. },
  8800. "units": {
  8801. "type": "array",
  8802. "enum": [
  8803. "repo.code",
  8804. "repo.issues",
  8805. "repo.ext_issues",
  8806. "repo.wiki",
  8807. "repo.pulls",
  8808. "repo.releases",
  8809. "repo.ext_wiki"
  8810. ],
  8811. "items": {
  8812. "type": "string"
  8813. },
  8814. "x-go-name": "Units"
  8815. }
  8816. },
  8817. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8818. },
  8819. "TimeStamp": {
  8820. "description": "TimeStamp defines a timestamp",
  8821. "type": "integer",
  8822. "format": "int64",
  8823. "x-go-package": "code.gitea.io/gitea/modules/util"
  8824. },
  8825. "TrackedTime": {
  8826. "description": "TrackedTime worked time for an issue / pr",
  8827. "type": "object",
  8828. "properties": {
  8829. "created": {
  8830. "type": "string",
  8831. "format": "date-time",
  8832. "x-go-name": "Created"
  8833. },
  8834. "id": {
  8835. "type": "integer",
  8836. "format": "int64",
  8837. "x-go-name": "ID"
  8838. },
  8839. "issue_id": {
  8840. "type": "integer",
  8841. "format": "int64",
  8842. "x-go-name": "IssueID"
  8843. },
  8844. "time": {
  8845. "description": "Time in seconds",
  8846. "type": "integer",
  8847. "format": "int64",
  8848. "x-go-name": "Time"
  8849. },
  8850. "user_id": {
  8851. "type": "integer",
  8852. "format": "int64",
  8853. "x-go-name": "UserID"
  8854. }
  8855. },
  8856. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8857. },
  8858. "User": {
  8859. "description": "User represents a user",
  8860. "type": "object",
  8861. "properties": {
  8862. "avatar_url": {
  8863. "description": "URL to the user's avatar",
  8864. "type": "string",
  8865. "x-go-name": "AvatarURL"
  8866. },
  8867. "email": {
  8868. "type": "string",
  8869. "format": "email",
  8870. "x-go-name": "Email"
  8871. },
  8872. "full_name": {
  8873. "description": "the user's full name",
  8874. "type": "string",
  8875. "x-go-name": "FullName"
  8876. },
  8877. "id": {
  8878. "description": "the user's id",
  8879. "type": "integer",
  8880. "format": "int64",
  8881. "x-go-name": "ID"
  8882. },
  8883. "is_admin": {
  8884. "description": "Is the user an administrator",
  8885. "type": "boolean",
  8886. "x-go-name": "IsAdmin"
  8887. },
  8888. "language": {
  8889. "description": "User locale",
  8890. "type": "string",
  8891. "x-go-name": "Language"
  8892. },
  8893. "login": {
  8894. "description": "the user's username",
  8895. "type": "string",
  8896. "x-go-name": "UserName"
  8897. }
  8898. },
  8899. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8900. },
  8901. "UserHeatmapData": {
  8902. "description": "UserHeatmapData represents the data needed to create a heatmap",
  8903. "type": "object",
  8904. "properties": {
  8905. "contributions": {
  8906. "type": "integer",
  8907. "format": "int64",
  8908. "x-go-name": "Contributions"
  8909. },
  8910. "timestamp": {
  8911. "$ref": "#/definitions/TimeStamp"
  8912. }
  8913. },
  8914. "x-go-package": "code.gitea.io/gitea/models"
  8915. },
  8916. "WatchInfo": {
  8917. "description": "WatchInfo represents an API watch status of one repository",
  8918. "type": "object",
  8919. "properties": {
  8920. "created_at": {
  8921. "type": "string",
  8922. "format": "date-time",
  8923. "x-go-name": "CreatedAt"
  8924. },
  8925. "ignored": {
  8926. "type": "boolean",
  8927. "x-go-name": "Ignored"
  8928. },
  8929. "reason": {
  8930. "type": "object",
  8931. "x-go-name": "Reason"
  8932. },
  8933. "repository_url": {
  8934. "type": "string",
  8935. "x-go-name": "RepositoryURL"
  8936. },
  8937. "subscribed": {
  8938. "type": "boolean",
  8939. "x-go-name": "Subscribed"
  8940. },
  8941. "url": {
  8942. "type": "string",
  8943. "x-go-name": "URL"
  8944. }
  8945. },
  8946. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  8947. }
  8948. },
  8949. "responses": {
  8950. "AccessToken": {
  8951. "description": "AccessToken represents a API access token.",
  8952. "headers": {
  8953. "id": {
  8954. "type": "integer",
  8955. "format": "int64"
  8956. },
  8957. "name": {
  8958. "type": "string"
  8959. },
  8960. "sha1": {
  8961. "type": "string"
  8962. }
  8963. }
  8964. },
  8965. "AccessTokenList": {
  8966. "description": "AccessTokenList represents a list of API access token."
  8967. },
  8968. "Attachment": {
  8969. "description": "Attachment",
  8970. "schema": {
  8971. "$ref": "#/definitions/Attachment"
  8972. }
  8973. },
  8974. "AttachmentList": {
  8975. "description": "AttachmentList",
  8976. "schema": {
  8977. "type": "array",
  8978. "items": {
  8979. "$ref": "#/definitions/Attachment"
  8980. }
  8981. }
  8982. },
  8983. "Branch": {
  8984. "description": "Branch",
  8985. "schema": {
  8986. "$ref": "#/definitions/Branch"
  8987. }
  8988. },
  8989. "BranchList": {
  8990. "description": "BranchList",
  8991. "schema": {
  8992. "type": "array",
  8993. "items": {
  8994. "$ref": "#/definitions/Branch"
  8995. }
  8996. }
  8997. },
  8998. "Comment": {
  8999. "description": "Comment",
  9000. "schema": {
  9001. "$ref": "#/definitions/Comment"
  9002. }
  9003. },
  9004. "CommentList": {
  9005. "description": "CommentList",
  9006. "schema": {
  9007. "type": "array",
  9008. "items": {
  9009. "$ref": "#/definitions/Comment"
  9010. }
  9011. }
  9012. },
  9013. "Commit": {
  9014. "description": "Commit",
  9015. "schema": {
  9016. "$ref": "#/definitions/Commit"
  9017. }
  9018. },
  9019. "DeployKey": {
  9020. "description": "DeployKey",
  9021. "schema": {
  9022. "$ref": "#/definitions/DeployKey"
  9023. }
  9024. },
  9025. "DeployKeyList": {
  9026. "description": "DeployKeyList",
  9027. "schema": {
  9028. "type": "array",
  9029. "items": {
  9030. "$ref": "#/definitions/DeployKey"
  9031. }
  9032. }
  9033. },
  9034. "EmailList": {
  9035. "description": "EmailList",
  9036. "schema": {
  9037. "type": "array",
  9038. "items": {
  9039. "$ref": "#/definitions/Email"
  9040. }
  9041. }
  9042. },
  9043. "GPGKey": {
  9044. "description": "GPGKey",
  9045. "schema": {
  9046. "$ref": "#/definitions/GPGKey"
  9047. }
  9048. },
  9049. "GPGKeyList": {
  9050. "description": "GPGKeyList",
  9051. "schema": {
  9052. "type": "array",
  9053. "items": {
  9054. "$ref": "#/definitions/GPGKey"
  9055. }
  9056. }
  9057. },
  9058. "GitHook": {
  9059. "description": "GitHook",
  9060. "schema": {
  9061. "$ref": "#/definitions/GitHook"
  9062. }
  9063. },
  9064. "GitHookList": {
  9065. "description": "GitHookList",
  9066. "schema": {
  9067. "type": "array",
  9068. "items": {
  9069. "$ref": "#/definitions/GitHook"
  9070. }
  9071. }
  9072. },
  9073. "GitTreeResponse": {
  9074. "description": "GitTreeResponse",
  9075. "schema": {
  9076. "$ref": "#/definitions/GitTreeResponse"
  9077. }
  9078. },
  9079. "Hook": {
  9080. "description": "Hook",
  9081. "schema": {
  9082. "$ref": "#/definitions/Hook"
  9083. }
  9084. },
  9085. "HookList": {
  9086. "description": "HookList",
  9087. "schema": {
  9088. "type": "array",
  9089. "items": {
  9090. "$ref": "#/definitions/Hook"
  9091. }
  9092. }
  9093. },
  9094. "Issue": {
  9095. "description": "Issue",
  9096. "schema": {
  9097. "$ref": "#/definitions/Issue"
  9098. }
  9099. },
  9100. "IssueDeadline": {
  9101. "description": "IssueDeadline",
  9102. "schema": {
  9103. "$ref": "#/definitions/IssueDeadline"
  9104. }
  9105. },
  9106. "IssueList": {
  9107. "description": "IssueList",
  9108. "schema": {
  9109. "type": "array",
  9110. "items": {
  9111. "$ref": "#/definitions/Issue"
  9112. }
  9113. }
  9114. },
  9115. "Label": {
  9116. "description": "Label",
  9117. "schema": {
  9118. "$ref": "#/definitions/Label"
  9119. }
  9120. },
  9121. "LabelList": {
  9122. "description": "LabelList",
  9123. "schema": {
  9124. "type": "array",
  9125. "items": {
  9126. "$ref": "#/definitions/Label"
  9127. }
  9128. }
  9129. },
  9130. "MarkdownRender": {
  9131. "description": "MarkdownRender is a rendered markdown document"
  9132. },
  9133. "Milestone": {
  9134. "description": "Milestone",
  9135. "schema": {
  9136. "$ref": "#/definitions/Milestone"
  9137. }
  9138. },
  9139. "MilestoneList": {
  9140. "description": "MilestoneList",
  9141. "schema": {
  9142. "type": "array",
  9143. "items": {
  9144. "$ref": "#/definitions/Milestone"
  9145. }
  9146. }
  9147. },
  9148. "Organization": {
  9149. "description": "Organization",
  9150. "schema": {
  9151. "$ref": "#/definitions/Organization"
  9152. }
  9153. },
  9154. "OrganizationList": {
  9155. "description": "OrganizationList",
  9156. "schema": {
  9157. "type": "array",
  9158. "items": {
  9159. "$ref": "#/definitions/Organization"
  9160. }
  9161. }
  9162. },
  9163. "PublicKey": {
  9164. "description": "PublicKey",
  9165. "schema": {
  9166. "$ref": "#/definitions/PublicKey"
  9167. }
  9168. },
  9169. "PublicKeyList": {
  9170. "description": "PublicKeyList",
  9171. "schema": {
  9172. "type": "array",
  9173. "items": {
  9174. "$ref": "#/definitions/PublicKey"
  9175. }
  9176. }
  9177. },
  9178. "PullRequest": {
  9179. "description": "PullRequest",
  9180. "schema": {
  9181. "$ref": "#/definitions/PullRequest"
  9182. }
  9183. },
  9184. "PullRequestList": {
  9185. "description": "PullRequestList",
  9186. "schema": {
  9187. "type": "array",
  9188. "items": {
  9189. "$ref": "#/definitions/PullRequest"
  9190. }
  9191. }
  9192. },
  9193. "Reference": {
  9194. "description": "Reference",
  9195. "schema": {
  9196. "$ref": "#/definitions/Reference"
  9197. }
  9198. },
  9199. "ReferenceList": {
  9200. "description": "ReferenceList",
  9201. "schema": {
  9202. "type": "array",
  9203. "items": {
  9204. "$ref": "#/definitions/Reference"
  9205. }
  9206. }
  9207. },
  9208. "Release": {
  9209. "description": "Release",
  9210. "schema": {
  9211. "$ref": "#/definitions/Release"
  9212. }
  9213. },
  9214. "ReleaseList": {
  9215. "description": "ReleaseList",
  9216. "schema": {
  9217. "type": "array",
  9218. "items": {
  9219. "$ref": "#/definitions/Release"
  9220. }
  9221. }
  9222. },
  9223. "Repository": {
  9224. "description": "Repository",
  9225. "schema": {
  9226. "$ref": "#/definitions/Repository"
  9227. }
  9228. },
  9229. "RepositoryList": {
  9230. "description": "RepositoryList",
  9231. "schema": {
  9232. "type": "array",
  9233. "items": {
  9234. "$ref": "#/definitions/Repository"
  9235. }
  9236. }
  9237. },
  9238. "SearchResults": {
  9239. "description": "SearchResults",
  9240. "schema": {
  9241. "$ref": "#/definitions/SearchResults"
  9242. }
  9243. },
  9244. "ServerVersion": {
  9245. "description": "ServerVersion",
  9246. "schema": {
  9247. "$ref": "#/definitions/ServerVersion"
  9248. }
  9249. },
  9250. "Status": {
  9251. "description": "Status",
  9252. "schema": {
  9253. "$ref": "#/definitions/Status"
  9254. }
  9255. },
  9256. "StatusList": {
  9257. "description": "StatusList",
  9258. "schema": {
  9259. "type": "array",
  9260. "items": {
  9261. "$ref": "#/definitions/Status"
  9262. }
  9263. }
  9264. },
  9265. "TagList": {
  9266. "description": "TagList",
  9267. "schema": {
  9268. "type": "array",
  9269. "items": {
  9270. "$ref": "#/definitions/Tag"
  9271. }
  9272. }
  9273. },
  9274. "Team": {
  9275. "description": "Team",
  9276. "schema": {
  9277. "$ref": "#/definitions/Team"
  9278. }
  9279. },
  9280. "TeamList": {
  9281. "description": "TeamList",
  9282. "schema": {
  9283. "type": "array",
  9284. "items": {
  9285. "$ref": "#/definitions/Team"
  9286. }
  9287. }
  9288. },
  9289. "TrackedTime": {
  9290. "description": "TrackedTime",
  9291. "schema": {
  9292. "$ref": "#/definitions/TrackedTime"
  9293. }
  9294. },
  9295. "TrackedTimeList": {
  9296. "description": "TrackedTimeList",
  9297. "schema": {
  9298. "type": "array",
  9299. "items": {
  9300. "$ref": "#/definitions/TrackedTime"
  9301. }
  9302. }
  9303. },
  9304. "User": {
  9305. "description": "User",
  9306. "schema": {
  9307. "$ref": "#/definitions/User"
  9308. }
  9309. },
  9310. "UserHeatmapData": {
  9311. "description": "UserHeatmapData",
  9312. "schema": {
  9313. "type": "array",
  9314. "items": {
  9315. "$ref": "#/definitions/UserHeatmapData"
  9316. }
  9317. }
  9318. },
  9319. "UserList": {
  9320. "description": "UserList",
  9321. "schema": {
  9322. "type": "array",
  9323. "items": {
  9324. "$ref": "#/definitions/User"
  9325. }
  9326. }
  9327. },
  9328. "WatchInfo": {
  9329. "description": "WatchInfo",
  9330. "schema": {
  9331. "$ref": "#/definitions/WatchInfo"
  9332. }
  9333. },
  9334. "empty": {
  9335. "description": "APIEmpty is an empty response"
  9336. },
  9337. "error": {
  9338. "description": "APIError is error format response",
  9339. "headers": {
  9340. "message": {
  9341. "type": "string"
  9342. },
  9343. "url": {
  9344. "type": "string"
  9345. }
  9346. }
  9347. },
  9348. "forbidden": {
  9349. "description": "APIForbiddenError is a forbidden error response",
  9350. "headers": {
  9351. "message": {
  9352. "type": "string"
  9353. },
  9354. "url": {
  9355. "type": "string"
  9356. }
  9357. }
  9358. },
  9359. "notFound": {
  9360. "description": "APINotFound is a not found empty response"
  9361. },
  9362. "parameterBodies": {
  9363. "description": "parameterBodies",
  9364. "schema": {
  9365. "$ref": "#/definitions/EditAttachmentOptions"
  9366. }
  9367. },
  9368. "redirect": {
  9369. "description": "APIRedirect is a redirect response"
  9370. },
  9371. "validationError": {
  9372. "description": "APIValidationError is error format response related to input validation",
  9373. "headers": {
  9374. "message": {
  9375. "type": "string"
  9376. },
  9377. "url": {
  9378. "type": "string"
  9379. }
  9380. }
  9381. }
  9382. },
  9383. "securityDefinitions": {
  9384. "AccessToken": {
  9385. "type": "apiKey",
  9386. "name": "access_token",
  9387. "in": "query"
  9388. },
  9389. "AuthorizationHeaderToken": {
  9390. "type": "apiKey",
  9391. "name": "Authorization",
  9392. "in": "header"
  9393. },
  9394. "BasicAuth": {
  9395. "type": "basic"
  9396. },
  9397. "SudoHeader": {
  9398. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  9399. "type": "apiKey",
  9400. "name": "Sudo",
  9401. "in": "header"
  9402. },
  9403. "SudoParam": {
  9404. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  9405. "type": "apiKey",
  9406. "name": "sudo",
  9407. "in": "query"
  9408. },
  9409. "Token": {
  9410. "type": "apiKey",
  9411. "name": "token",
  9412. "in": "query"
  9413. }
  9414. },
  9415. "security": [
  9416. {
  9417. "BasicAuth": []
  9418. },
  9419. {
  9420. "Token": []
  9421. },
  9422. {
  9423. "AccessToken": []
  9424. },
  9425. {
  9426. "AuthorizationHeaderToken": []
  9427. },
  9428. {
  9429. "SudoParam": []
  9430. },
  9431. {
  9432. "SudoHeader": []
  9433. }
  9434. ]
  9435. }