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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136
  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": "{{AppVer | JSEscape | Safe}}"
  23. },
  24. "basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1",
  25. "paths": {
  26. "/admin/cron": {
  27. "get": {
  28. "produces": [
  29. "application/json"
  30. ],
  31. "tags": [
  32. "admin"
  33. ],
  34. "summary": "List cron tasks",
  35. "operationId": "adminCronList",
  36. "parameters": [
  37. {
  38. "type": "integer",
  39. "description": "page number of results to return (1-based)",
  40. "name": "page",
  41. "in": "query"
  42. },
  43. {
  44. "type": "integer",
  45. "description": "page size of results",
  46. "name": "limit",
  47. "in": "query"
  48. }
  49. ],
  50. "responses": {
  51. "200": {
  52. "$ref": "#/responses/CronList"
  53. },
  54. "403": {
  55. "$ref": "#/responses/forbidden"
  56. }
  57. }
  58. }
  59. },
  60. "/admin/cron/{task}": {
  61. "post": {
  62. "produces": [
  63. "application/json"
  64. ],
  65. "tags": [
  66. "admin"
  67. ],
  68. "summary": "Run cron task",
  69. "operationId": "adminCronRun",
  70. "parameters": [
  71. {
  72. "type": "string",
  73. "description": "task to run",
  74. "name": "task",
  75. "in": "path",
  76. "required": true
  77. }
  78. ],
  79. "responses": {
  80. "204": {
  81. "$ref": "#/responses/empty"
  82. },
  83. "404": {
  84. "$ref": "#/responses/notFound"
  85. }
  86. }
  87. }
  88. },
  89. "/admin/orgs": {
  90. "get": {
  91. "produces": [
  92. "application/json"
  93. ],
  94. "tags": [
  95. "admin"
  96. ],
  97. "summary": "List all organizations",
  98. "operationId": "adminGetAllOrgs",
  99. "parameters": [
  100. {
  101. "type": "integer",
  102. "description": "page number of results to return (1-based)",
  103. "name": "page",
  104. "in": "query"
  105. },
  106. {
  107. "type": "integer",
  108. "description": "page size of results",
  109. "name": "limit",
  110. "in": "query"
  111. }
  112. ],
  113. "responses": {
  114. "200": {
  115. "$ref": "#/responses/OrganizationList"
  116. },
  117. "403": {
  118. "$ref": "#/responses/forbidden"
  119. }
  120. }
  121. }
  122. },
  123. "/admin/unadopted": {
  124. "get": {
  125. "produces": [
  126. "application/json"
  127. ],
  128. "tags": [
  129. "admin"
  130. ],
  131. "summary": "List unadopted repositories",
  132. "operationId": "adminUnadoptedList",
  133. "parameters": [
  134. {
  135. "type": "integer",
  136. "description": "page number of results to return (1-based)",
  137. "name": "page",
  138. "in": "query"
  139. },
  140. {
  141. "type": "integer",
  142. "description": "page size of results",
  143. "name": "limit",
  144. "in": "query"
  145. },
  146. {
  147. "type": "string",
  148. "description": "pattern of repositories to search for",
  149. "name": "pattern",
  150. "in": "query"
  151. }
  152. ],
  153. "responses": {
  154. "200": {
  155. "$ref": "#/responses/StringSlice"
  156. },
  157. "403": {
  158. "$ref": "#/responses/forbidden"
  159. }
  160. }
  161. }
  162. },
  163. "/admin/unadopted/{owner}/{repo}": {
  164. "post": {
  165. "produces": [
  166. "application/json"
  167. ],
  168. "tags": [
  169. "admin"
  170. ],
  171. "summary": "Adopt unadopted files as a repository",
  172. "operationId": "adminAdoptRepository",
  173. "parameters": [
  174. {
  175. "type": "string",
  176. "description": "owner of the repo",
  177. "name": "owner",
  178. "in": "path",
  179. "required": true
  180. },
  181. {
  182. "type": "string",
  183. "description": "name of the repo",
  184. "name": "repo",
  185. "in": "path",
  186. "required": true
  187. }
  188. ],
  189. "responses": {
  190. "204": {
  191. "$ref": "#/responses/empty"
  192. },
  193. "403": {
  194. "$ref": "#/responses/forbidden"
  195. },
  196. "404": {
  197. "$ref": "#/responses/notFound"
  198. }
  199. }
  200. },
  201. "delete": {
  202. "produces": [
  203. "application/json"
  204. ],
  205. "tags": [
  206. "admin"
  207. ],
  208. "summary": "Delete unadopted files",
  209. "operationId": "adminDeleteUnadoptedRepository",
  210. "parameters": [
  211. {
  212. "type": "string",
  213. "description": "owner of the repo",
  214. "name": "owner",
  215. "in": "path",
  216. "required": true
  217. },
  218. {
  219. "type": "string",
  220. "description": "name of the repo",
  221. "name": "repo",
  222. "in": "path",
  223. "required": true
  224. }
  225. ],
  226. "responses": {
  227. "204": {
  228. "$ref": "#/responses/empty"
  229. },
  230. "403": {
  231. "$ref": "#/responses/forbidden"
  232. }
  233. }
  234. }
  235. },
  236. "/admin/users": {
  237. "get": {
  238. "produces": [
  239. "application/json"
  240. ],
  241. "tags": [
  242. "admin"
  243. ],
  244. "summary": "List all users",
  245. "operationId": "adminGetAllUsers",
  246. "parameters": [
  247. {
  248. "type": "integer",
  249. "description": "page number of results to return (1-based)",
  250. "name": "page",
  251. "in": "query"
  252. },
  253. {
  254. "type": "integer",
  255. "description": "page size of results",
  256. "name": "limit",
  257. "in": "query"
  258. }
  259. ],
  260. "responses": {
  261. "200": {
  262. "$ref": "#/responses/UserList"
  263. },
  264. "403": {
  265. "$ref": "#/responses/forbidden"
  266. }
  267. }
  268. },
  269. "post": {
  270. "consumes": [
  271. "application/json"
  272. ],
  273. "produces": [
  274. "application/json"
  275. ],
  276. "tags": [
  277. "admin"
  278. ],
  279. "summary": "Create a user",
  280. "operationId": "adminCreateUser",
  281. "parameters": [
  282. {
  283. "name": "body",
  284. "in": "body",
  285. "schema": {
  286. "$ref": "#/definitions/CreateUserOption"
  287. }
  288. }
  289. ],
  290. "responses": {
  291. "201": {
  292. "$ref": "#/responses/User"
  293. },
  294. "400": {
  295. "$ref": "#/responses/error"
  296. },
  297. "403": {
  298. "$ref": "#/responses/forbidden"
  299. },
  300. "422": {
  301. "$ref": "#/responses/validationError"
  302. }
  303. }
  304. }
  305. },
  306. "/admin/users/{username}": {
  307. "delete": {
  308. "produces": [
  309. "application/json"
  310. ],
  311. "tags": [
  312. "admin"
  313. ],
  314. "summary": "Delete a user",
  315. "operationId": "adminDeleteUser",
  316. "parameters": [
  317. {
  318. "type": "string",
  319. "description": "username of user to delete",
  320. "name": "username",
  321. "in": "path",
  322. "required": true
  323. }
  324. ],
  325. "responses": {
  326. "204": {
  327. "$ref": "#/responses/empty"
  328. },
  329. "403": {
  330. "$ref": "#/responses/forbidden"
  331. },
  332. "422": {
  333. "$ref": "#/responses/validationError"
  334. }
  335. }
  336. },
  337. "patch": {
  338. "consumes": [
  339. "application/json"
  340. ],
  341. "produces": [
  342. "application/json"
  343. ],
  344. "tags": [
  345. "admin"
  346. ],
  347. "summary": "Edit an existing user",
  348. "operationId": "adminEditUser",
  349. "parameters": [
  350. {
  351. "type": "string",
  352. "description": "username of user to edit",
  353. "name": "username",
  354. "in": "path",
  355. "required": true
  356. },
  357. {
  358. "name": "body",
  359. "in": "body",
  360. "schema": {
  361. "$ref": "#/definitions/EditUserOption"
  362. }
  363. }
  364. ],
  365. "responses": {
  366. "200": {
  367. "$ref": "#/responses/User"
  368. },
  369. "403": {
  370. "$ref": "#/responses/forbidden"
  371. },
  372. "422": {
  373. "$ref": "#/responses/validationError"
  374. }
  375. }
  376. }
  377. },
  378. "/admin/users/{username}/keys": {
  379. "post": {
  380. "consumes": [
  381. "application/json"
  382. ],
  383. "produces": [
  384. "application/json"
  385. ],
  386. "tags": [
  387. "admin"
  388. ],
  389. "summary": "Add a public key on behalf of a user",
  390. "operationId": "adminCreatePublicKey",
  391. "parameters": [
  392. {
  393. "type": "string",
  394. "description": "username of the user",
  395. "name": "username",
  396. "in": "path",
  397. "required": true
  398. },
  399. {
  400. "name": "key",
  401. "in": "body",
  402. "schema": {
  403. "$ref": "#/definitions/CreateKeyOption"
  404. }
  405. }
  406. ],
  407. "responses": {
  408. "201": {
  409. "$ref": "#/responses/PublicKey"
  410. },
  411. "403": {
  412. "$ref": "#/responses/forbidden"
  413. },
  414. "422": {
  415. "$ref": "#/responses/validationError"
  416. }
  417. }
  418. }
  419. },
  420. "/admin/users/{username}/keys/{id}": {
  421. "delete": {
  422. "produces": [
  423. "application/json"
  424. ],
  425. "tags": [
  426. "admin"
  427. ],
  428. "summary": "Delete a user's public key",
  429. "operationId": "adminDeleteUserPublicKey",
  430. "parameters": [
  431. {
  432. "type": "string",
  433. "description": "username of user",
  434. "name": "username",
  435. "in": "path",
  436. "required": true
  437. },
  438. {
  439. "type": "integer",
  440. "format": "int64",
  441. "description": "id of the key to delete",
  442. "name": "id",
  443. "in": "path",
  444. "required": true
  445. }
  446. ],
  447. "responses": {
  448. "204": {
  449. "$ref": "#/responses/empty"
  450. },
  451. "403": {
  452. "$ref": "#/responses/forbidden"
  453. },
  454. "404": {
  455. "$ref": "#/responses/notFound"
  456. }
  457. }
  458. }
  459. },
  460. "/admin/users/{username}/orgs": {
  461. "post": {
  462. "consumes": [
  463. "application/json"
  464. ],
  465. "produces": [
  466. "application/json"
  467. ],
  468. "tags": [
  469. "admin"
  470. ],
  471. "summary": "Create an organization",
  472. "operationId": "adminCreateOrg",
  473. "parameters": [
  474. {
  475. "type": "string",
  476. "description": "username of the user that will own the created organization",
  477. "name": "username",
  478. "in": "path",
  479. "required": true
  480. },
  481. {
  482. "name": "organization",
  483. "in": "body",
  484. "required": true,
  485. "schema": {
  486. "$ref": "#/definitions/CreateOrgOption"
  487. }
  488. }
  489. ],
  490. "responses": {
  491. "201": {
  492. "$ref": "#/responses/Organization"
  493. },
  494. "403": {
  495. "$ref": "#/responses/forbidden"
  496. },
  497. "422": {
  498. "$ref": "#/responses/validationError"
  499. }
  500. }
  501. }
  502. },
  503. "/admin/users/{username}/repos": {
  504. "post": {
  505. "consumes": [
  506. "application/json"
  507. ],
  508. "produces": [
  509. "application/json"
  510. ],
  511. "tags": [
  512. "admin"
  513. ],
  514. "summary": "Create a repository on behalf of a user",
  515. "operationId": "adminCreateRepo",
  516. "parameters": [
  517. {
  518. "type": "string",
  519. "description": "username of the user. This user will own the created repository",
  520. "name": "username",
  521. "in": "path",
  522. "required": true
  523. },
  524. {
  525. "name": "repository",
  526. "in": "body",
  527. "required": true,
  528. "schema": {
  529. "$ref": "#/definitions/CreateRepoOption"
  530. }
  531. }
  532. ],
  533. "responses": {
  534. "201": {
  535. "$ref": "#/responses/Repository"
  536. },
  537. "403": {
  538. "$ref": "#/responses/forbidden"
  539. },
  540. "404": {
  541. "$ref": "#/responses/notFound"
  542. },
  543. "409": {
  544. "$ref": "#/responses/error"
  545. },
  546. "422": {
  547. "$ref": "#/responses/validationError"
  548. }
  549. }
  550. }
  551. },
  552. "/markdown": {
  553. "post": {
  554. "consumes": [
  555. "application/json"
  556. ],
  557. "produces": [
  558. "text/html"
  559. ],
  560. "tags": [
  561. "miscellaneous"
  562. ],
  563. "summary": "Render a markdown document as HTML",
  564. "operationId": "renderMarkdown",
  565. "parameters": [
  566. {
  567. "name": "body",
  568. "in": "body",
  569. "schema": {
  570. "$ref": "#/definitions/MarkdownOption"
  571. }
  572. }
  573. ],
  574. "responses": {
  575. "200": {
  576. "$ref": "#/responses/MarkdownRender"
  577. },
  578. "422": {
  579. "$ref": "#/responses/validationError"
  580. }
  581. }
  582. }
  583. },
  584. "/markdown/raw": {
  585. "post": {
  586. "consumes": [
  587. "text/plain"
  588. ],
  589. "produces": [
  590. "text/html"
  591. ],
  592. "tags": [
  593. "miscellaneous"
  594. ],
  595. "summary": "Render raw markdown as HTML",
  596. "operationId": "renderMarkdownRaw",
  597. "parameters": [
  598. {
  599. "description": "Request body to render",
  600. "name": "body",
  601. "in": "body",
  602. "required": true,
  603. "schema": {
  604. "type": "string"
  605. }
  606. }
  607. ],
  608. "responses": {
  609. "200": {
  610. "$ref": "#/responses/MarkdownRender"
  611. },
  612. "422": {
  613. "$ref": "#/responses/validationError"
  614. }
  615. }
  616. }
  617. },
  618. "/notifications": {
  619. "get": {
  620. "consumes": [
  621. "application/json"
  622. ],
  623. "produces": [
  624. "application/json"
  625. ],
  626. "tags": [
  627. "notification"
  628. ],
  629. "summary": "List users's notification threads",
  630. "operationId": "notifyGetList",
  631. "parameters": [
  632. {
  633. "type": "string",
  634. "description": "If true, show notifications marked as read. Default value is false",
  635. "name": "all",
  636. "in": "query"
  637. },
  638. {
  639. "type": "array",
  640. "items": {
  641. "type": "string"
  642. },
  643. "collectionFormat": "multi",
  644. "description": "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread \u0026 pinned.",
  645. "name": "status-types",
  646. "in": "query"
  647. },
  648. {
  649. "type": "string",
  650. "format": "date-time",
  651. "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format",
  652. "name": "since",
  653. "in": "query"
  654. },
  655. {
  656. "type": "string",
  657. "format": "date-time",
  658. "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format",
  659. "name": "before",
  660. "in": "query"
  661. },
  662. {
  663. "type": "integer",
  664. "description": "page number of results to return (1-based)",
  665. "name": "page",
  666. "in": "query"
  667. },
  668. {
  669. "type": "integer",
  670. "description": "page size of results",
  671. "name": "limit",
  672. "in": "query"
  673. }
  674. ],
  675. "responses": {
  676. "200": {
  677. "$ref": "#/responses/NotificationThreadList"
  678. }
  679. }
  680. },
  681. "put": {
  682. "consumes": [
  683. "application/json"
  684. ],
  685. "produces": [
  686. "application/json"
  687. ],
  688. "tags": [
  689. "notification"
  690. ],
  691. "summary": "Mark notification threads as read, pinned or unread",
  692. "operationId": "notifyReadList",
  693. "parameters": [
  694. {
  695. "type": "string",
  696. "format": "date-time",
  697. "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated.",
  698. "name": "last_read_at",
  699. "in": "query"
  700. },
  701. {
  702. "type": "string",
  703. "description": "If true, mark all notifications on this repo. Default value is false",
  704. "name": "all",
  705. "in": "query"
  706. },
  707. {
  708. "type": "array",
  709. "items": {
  710. "type": "string"
  711. },
  712. "collectionFormat": "multi",
  713. "description": "Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.",
  714. "name": "status-types",
  715. "in": "query"
  716. },
  717. {
  718. "type": "string",
  719. "description": "Status to mark notifications as, Defaults to read.",
  720. "name": "to-status",
  721. "in": "query"
  722. }
  723. ],
  724. "responses": {
  725. "205": {
  726. "$ref": "#/responses/empty"
  727. }
  728. }
  729. }
  730. },
  731. "/notifications/new": {
  732. "get": {
  733. "tags": [
  734. "notification"
  735. ],
  736. "summary": "Check if unread notifications exist",
  737. "operationId": "notifyNewAvailable",
  738. "responses": {
  739. "200": {
  740. "$ref": "#/responses/NotificationCount"
  741. }
  742. }
  743. }
  744. },
  745. "/notifications/threads/{id}": {
  746. "get": {
  747. "consumes": [
  748. "application/json"
  749. ],
  750. "produces": [
  751. "application/json"
  752. ],
  753. "tags": [
  754. "notification"
  755. ],
  756. "summary": "Get notification thread by ID",
  757. "operationId": "notifyGetThread",
  758. "parameters": [
  759. {
  760. "type": "string",
  761. "description": "id of notification thread",
  762. "name": "id",
  763. "in": "path",
  764. "required": true
  765. }
  766. ],
  767. "responses": {
  768. "200": {
  769. "$ref": "#/responses/NotificationThread"
  770. },
  771. "403": {
  772. "$ref": "#/responses/forbidden"
  773. },
  774. "404": {
  775. "$ref": "#/responses/notFound"
  776. }
  777. }
  778. },
  779. "patch": {
  780. "consumes": [
  781. "application/json"
  782. ],
  783. "produces": [
  784. "application/json"
  785. ],
  786. "tags": [
  787. "notification"
  788. ],
  789. "summary": "Mark notification thread as read by ID",
  790. "operationId": "notifyReadThread",
  791. "parameters": [
  792. {
  793. "type": "string",
  794. "description": "id of notification thread",
  795. "name": "id",
  796. "in": "path",
  797. "required": true
  798. },
  799. {
  800. "type": "string",
  801. "default": "read",
  802. "description": "Status to mark notifications as",
  803. "name": "to-status",
  804. "in": "query"
  805. }
  806. ],
  807. "responses": {
  808. "205": {
  809. "$ref": "#/responses/empty"
  810. },
  811. "403": {
  812. "$ref": "#/responses/forbidden"
  813. },
  814. "404": {
  815. "$ref": "#/responses/notFound"
  816. }
  817. }
  818. }
  819. },
  820. "/org/{org}/repos": {
  821. "post": {
  822. "consumes": [
  823. "application/json"
  824. ],
  825. "produces": [
  826. "application/json"
  827. ],
  828. "tags": [
  829. "organization"
  830. ],
  831. "summary": "Create a repository in an organization",
  832. "operationId": "createOrgRepoDeprecated",
  833. "deprecated": true,
  834. "parameters": [
  835. {
  836. "type": "string",
  837. "description": "name of organization",
  838. "name": "org",
  839. "in": "path",
  840. "required": true
  841. },
  842. {
  843. "name": "body",
  844. "in": "body",
  845. "schema": {
  846. "$ref": "#/definitions/CreateRepoOption"
  847. }
  848. }
  849. ],
  850. "responses": {
  851. "201": {
  852. "$ref": "#/responses/Repository"
  853. },
  854. "403": {
  855. "$ref": "#/responses/forbidden"
  856. },
  857. "422": {
  858. "$ref": "#/responses/validationError"
  859. }
  860. }
  861. }
  862. },
  863. "/orgs": {
  864. "get": {
  865. "produces": [
  866. "application/json"
  867. ],
  868. "tags": [
  869. "organization"
  870. ],
  871. "summary": "Get list of organizations",
  872. "operationId": "orgGetAll",
  873. "parameters": [
  874. {
  875. "type": "integer",
  876. "description": "page number of results to return (1-based)",
  877. "name": "page",
  878. "in": "query"
  879. },
  880. {
  881. "type": "integer",
  882. "description": "page size of results",
  883. "name": "limit",
  884. "in": "query"
  885. }
  886. ],
  887. "responses": {
  888. "200": {
  889. "$ref": "#/responses/OrganizationList"
  890. }
  891. }
  892. },
  893. "post": {
  894. "consumes": [
  895. "application/json"
  896. ],
  897. "produces": [
  898. "application/json"
  899. ],
  900. "tags": [
  901. "organization"
  902. ],
  903. "summary": "Create an organization",
  904. "operationId": "orgCreate",
  905. "parameters": [
  906. {
  907. "name": "organization",
  908. "in": "body",
  909. "required": true,
  910. "schema": {
  911. "$ref": "#/definitions/CreateOrgOption"
  912. }
  913. }
  914. ],
  915. "responses": {
  916. "201": {
  917. "$ref": "#/responses/Organization"
  918. },
  919. "403": {
  920. "$ref": "#/responses/forbidden"
  921. },
  922. "422": {
  923. "$ref": "#/responses/validationError"
  924. }
  925. }
  926. }
  927. },
  928. "/orgs/{org}": {
  929. "get": {
  930. "produces": [
  931. "application/json"
  932. ],
  933. "tags": [
  934. "organization"
  935. ],
  936. "summary": "Get an organization",
  937. "operationId": "orgGet",
  938. "parameters": [
  939. {
  940. "type": "string",
  941. "description": "name of the organization to get",
  942. "name": "org",
  943. "in": "path",
  944. "required": true
  945. }
  946. ],
  947. "responses": {
  948. "200": {
  949. "$ref": "#/responses/Organization"
  950. }
  951. }
  952. },
  953. "delete": {
  954. "produces": [
  955. "application/json"
  956. ],
  957. "tags": [
  958. "organization"
  959. ],
  960. "summary": "Delete an organization",
  961. "operationId": "orgDelete",
  962. "parameters": [
  963. {
  964. "type": "string",
  965. "description": "organization that is to be deleted",
  966. "name": "org",
  967. "in": "path",
  968. "required": true
  969. }
  970. ],
  971. "responses": {
  972. "204": {
  973. "$ref": "#/responses/empty"
  974. }
  975. }
  976. },
  977. "patch": {
  978. "consumes": [
  979. "application/json"
  980. ],
  981. "produces": [
  982. "application/json"
  983. ],
  984. "tags": [
  985. "organization"
  986. ],
  987. "summary": "Edit an organization",
  988. "operationId": "orgEdit",
  989. "parameters": [
  990. {
  991. "type": "string",
  992. "description": "name of the organization to edit",
  993. "name": "org",
  994. "in": "path",
  995. "required": true
  996. },
  997. {
  998. "name": "body",
  999. "in": "body",
  1000. "required": true,
  1001. "schema": {
  1002. "$ref": "#/definitions/EditOrgOption"
  1003. }
  1004. }
  1005. ],
  1006. "responses": {
  1007. "200": {
  1008. "$ref": "#/responses/Organization"
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "/orgs/{org}/hooks": {
  1014. "get": {
  1015. "produces": [
  1016. "application/json"
  1017. ],
  1018. "tags": [
  1019. "organization"
  1020. ],
  1021. "summary": "List an organization's webhooks",
  1022. "operationId": "orgListHooks",
  1023. "parameters": [
  1024. {
  1025. "type": "string",
  1026. "description": "name of the organization",
  1027. "name": "org",
  1028. "in": "path",
  1029. "required": true
  1030. },
  1031. {
  1032. "type": "integer",
  1033. "description": "page number of results to return (1-based)",
  1034. "name": "page",
  1035. "in": "query"
  1036. },
  1037. {
  1038. "type": "integer",
  1039. "description": "page size of results",
  1040. "name": "limit",
  1041. "in": "query"
  1042. }
  1043. ],
  1044. "responses": {
  1045. "200": {
  1046. "$ref": "#/responses/HookList"
  1047. }
  1048. }
  1049. }
  1050. },
  1051. "/orgs/{org}/hooks/": {
  1052. "post": {
  1053. "consumes": [
  1054. "application/json"
  1055. ],
  1056. "produces": [
  1057. "application/json"
  1058. ],
  1059. "tags": [
  1060. "organization"
  1061. ],
  1062. "summary": "Create a hook",
  1063. "operationId": "orgCreateHook",
  1064. "parameters": [
  1065. {
  1066. "type": "string",
  1067. "description": "name of the organization",
  1068. "name": "org",
  1069. "in": "path",
  1070. "required": true
  1071. },
  1072. {
  1073. "name": "body",
  1074. "in": "body",
  1075. "required": true,
  1076. "schema": {
  1077. "$ref": "#/definitions/CreateHookOption"
  1078. }
  1079. }
  1080. ],
  1081. "responses": {
  1082. "201": {
  1083. "$ref": "#/responses/Hook"
  1084. }
  1085. }
  1086. }
  1087. },
  1088. "/orgs/{org}/hooks/{id}": {
  1089. "get": {
  1090. "produces": [
  1091. "application/json"
  1092. ],
  1093. "tags": [
  1094. "organization"
  1095. ],
  1096. "summary": "Get a hook",
  1097. "operationId": "orgGetHook",
  1098. "parameters": [
  1099. {
  1100. "type": "string",
  1101. "description": "name of the organization",
  1102. "name": "org",
  1103. "in": "path",
  1104. "required": true
  1105. },
  1106. {
  1107. "type": "integer",
  1108. "format": "int64",
  1109. "description": "id of the hook to get",
  1110. "name": "id",
  1111. "in": "path",
  1112. "required": true
  1113. }
  1114. ],
  1115. "responses": {
  1116. "200": {
  1117. "$ref": "#/responses/Hook"
  1118. }
  1119. }
  1120. },
  1121. "delete": {
  1122. "produces": [
  1123. "application/json"
  1124. ],
  1125. "tags": [
  1126. "organization"
  1127. ],
  1128. "summary": "Delete a hook",
  1129. "operationId": "orgDeleteHook",
  1130. "parameters": [
  1131. {
  1132. "type": "string",
  1133. "description": "name of the organization",
  1134. "name": "org",
  1135. "in": "path",
  1136. "required": true
  1137. },
  1138. {
  1139. "type": "integer",
  1140. "format": "int64",
  1141. "description": "id of the hook to delete",
  1142. "name": "id",
  1143. "in": "path",
  1144. "required": true
  1145. }
  1146. ],
  1147. "responses": {
  1148. "204": {
  1149. "$ref": "#/responses/empty"
  1150. }
  1151. }
  1152. },
  1153. "patch": {
  1154. "consumes": [
  1155. "application/json"
  1156. ],
  1157. "produces": [
  1158. "application/json"
  1159. ],
  1160. "tags": [
  1161. "organization"
  1162. ],
  1163. "summary": "Update a hook",
  1164. "operationId": "orgEditHook",
  1165. "parameters": [
  1166. {
  1167. "type": "string",
  1168. "description": "name of the organization",
  1169. "name": "org",
  1170. "in": "path",
  1171. "required": true
  1172. },
  1173. {
  1174. "type": "integer",
  1175. "format": "int64",
  1176. "description": "id of the hook to update",
  1177. "name": "id",
  1178. "in": "path",
  1179. "required": true
  1180. },
  1181. {
  1182. "name": "body",
  1183. "in": "body",
  1184. "schema": {
  1185. "$ref": "#/definitions/EditHookOption"
  1186. }
  1187. }
  1188. ],
  1189. "responses": {
  1190. "200": {
  1191. "$ref": "#/responses/Hook"
  1192. }
  1193. }
  1194. }
  1195. },
  1196. "/orgs/{org}/labels": {
  1197. "get": {
  1198. "produces": [
  1199. "application/json"
  1200. ],
  1201. "tags": [
  1202. "organization"
  1203. ],
  1204. "summary": "List an organization's labels",
  1205. "operationId": "orgListLabels",
  1206. "parameters": [
  1207. {
  1208. "type": "string",
  1209. "description": "name of the organization",
  1210. "name": "org",
  1211. "in": "path",
  1212. "required": true
  1213. },
  1214. {
  1215. "type": "integer",
  1216. "description": "page number of results to return (1-based)",
  1217. "name": "page",
  1218. "in": "query"
  1219. },
  1220. {
  1221. "type": "integer",
  1222. "description": "page size of results",
  1223. "name": "limit",
  1224. "in": "query"
  1225. }
  1226. ],
  1227. "responses": {
  1228. "200": {
  1229. "$ref": "#/responses/LabelList"
  1230. }
  1231. }
  1232. },
  1233. "post": {
  1234. "consumes": [
  1235. "application/json"
  1236. ],
  1237. "produces": [
  1238. "application/json"
  1239. ],
  1240. "tags": [
  1241. "organization"
  1242. ],
  1243. "summary": "Create a label for an organization",
  1244. "operationId": "orgCreateLabel",
  1245. "parameters": [
  1246. {
  1247. "type": "string",
  1248. "description": "name of the organization",
  1249. "name": "org",
  1250. "in": "path",
  1251. "required": true
  1252. },
  1253. {
  1254. "name": "body",
  1255. "in": "body",
  1256. "schema": {
  1257. "$ref": "#/definitions/CreateLabelOption"
  1258. }
  1259. }
  1260. ],
  1261. "responses": {
  1262. "201": {
  1263. "$ref": "#/responses/Label"
  1264. },
  1265. "422": {
  1266. "$ref": "#/responses/validationError"
  1267. }
  1268. }
  1269. }
  1270. },
  1271. "/orgs/{org}/labels/{id}": {
  1272. "get": {
  1273. "produces": [
  1274. "application/json"
  1275. ],
  1276. "tags": [
  1277. "organization"
  1278. ],
  1279. "summary": "Get a single label",
  1280. "operationId": "orgGetLabel",
  1281. "parameters": [
  1282. {
  1283. "type": "string",
  1284. "description": "name of the organization",
  1285. "name": "org",
  1286. "in": "path",
  1287. "required": true
  1288. },
  1289. {
  1290. "type": "integer",
  1291. "format": "int64",
  1292. "description": "id of the label to get",
  1293. "name": "id",
  1294. "in": "path",
  1295. "required": true
  1296. }
  1297. ],
  1298. "responses": {
  1299. "200": {
  1300. "$ref": "#/responses/Label"
  1301. }
  1302. }
  1303. },
  1304. "delete": {
  1305. "tags": [
  1306. "organization"
  1307. ],
  1308. "summary": "Delete a label",
  1309. "operationId": "orgDeleteLabel",
  1310. "parameters": [
  1311. {
  1312. "type": "string",
  1313. "description": "name of the organization",
  1314. "name": "org",
  1315. "in": "path",
  1316. "required": true
  1317. },
  1318. {
  1319. "type": "integer",
  1320. "format": "int64",
  1321. "description": "id of the label to delete",
  1322. "name": "id",
  1323. "in": "path",
  1324. "required": true
  1325. }
  1326. ],
  1327. "responses": {
  1328. "204": {
  1329. "$ref": "#/responses/empty"
  1330. }
  1331. }
  1332. },
  1333. "patch": {
  1334. "consumes": [
  1335. "application/json"
  1336. ],
  1337. "produces": [
  1338. "application/json"
  1339. ],
  1340. "tags": [
  1341. "organization"
  1342. ],
  1343. "summary": "Update a label",
  1344. "operationId": "orgEditLabel",
  1345. "parameters": [
  1346. {
  1347. "type": "string",
  1348. "description": "name of the organization",
  1349. "name": "org",
  1350. "in": "path",
  1351. "required": true
  1352. },
  1353. {
  1354. "type": "integer",
  1355. "format": "int64",
  1356. "description": "id of the label to edit",
  1357. "name": "id",
  1358. "in": "path",
  1359. "required": true
  1360. },
  1361. {
  1362. "name": "body",
  1363. "in": "body",
  1364. "schema": {
  1365. "$ref": "#/definitions/EditLabelOption"
  1366. }
  1367. }
  1368. ],
  1369. "responses": {
  1370. "200": {
  1371. "$ref": "#/responses/Label"
  1372. },
  1373. "422": {
  1374. "$ref": "#/responses/validationError"
  1375. }
  1376. }
  1377. }
  1378. },
  1379. "/orgs/{org}/members": {
  1380. "get": {
  1381. "produces": [
  1382. "application/json"
  1383. ],
  1384. "tags": [
  1385. "organization"
  1386. ],
  1387. "summary": "List an organization's members",
  1388. "operationId": "orgListMembers",
  1389. "parameters": [
  1390. {
  1391. "type": "string",
  1392. "description": "name of the organization",
  1393. "name": "org",
  1394. "in": "path",
  1395. "required": true
  1396. },
  1397. {
  1398. "type": "integer",
  1399. "description": "page number of results to return (1-based)",
  1400. "name": "page",
  1401. "in": "query"
  1402. },
  1403. {
  1404. "type": "integer",
  1405. "description": "page size of results",
  1406. "name": "limit",
  1407. "in": "query"
  1408. }
  1409. ],
  1410. "responses": {
  1411. "200": {
  1412. "$ref": "#/responses/UserList"
  1413. }
  1414. }
  1415. }
  1416. },
  1417. "/orgs/{org}/members/{username}": {
  1418. "get": {
  1419. "tags": [
  1420. "organization"
  1421. ],
  1422. "summary": "Check if a user is a member of an organization",
  1423. "operationId": "orgIsMember",
  1424. "parameters": [
  1425. {
  1426. "type": "string",
  1427. "description": "name of the organization",
  1428. "name": "org",
  1429. "in": "path",
  1430. "required": true
  1431. },
  1432. {
  1433. "type": "string",
  1434. "description": "username of the user",
  1435. "name": "username",
  1436. "in": "path",
  1437. "required": true
  1438. }
  1439. ],
  1440. "responses": {
  1441. "204": {
  1442. "description": "user is a member"
  1443. },
  1444. "302": {
  1445. "description": "redirection to /orgs/{org}/public_members/{username}"
  1446. },
  1447. "404": {
  1448. "description": "user is not a member"
  1449. }
  1450. }
  1451. },
  1452. "delete": {
  1453. "produces": [
  1454. "application/json"
  1455. ],
  1456. "tags": [
  1457. "organization"
  1458. ],
  1459. "summary": "Remove a member from an organization",
  1460. "operationId": "orgDeleteMember",
  1461. "parameters": [
  1462. {
  1463. "type": "string",
  1464. "description": "name of the organization",
  1465. "name": "org",
  1466. "in": "path",
  1467. "required": true
  1468. },
  1469. {
  1470. "type": "string",
  1471. "description": "username of the user",
  1472. "name": "username",
  1473. "in": "path",
  1474. "required": true
  1475. }
  1476. ],
  1477. "responses": {
  1478. "204": {
  1479. "description": "member removed"
  1480. }
  1481. }
  1482. }
  1483. },
  1484. "/orgs/{org}/public_members": {
  1485. "get": {
  1486. "produces": [
  1487. "application/json"
  1488. ],
  1489. "tags": [
  1490. "organization"
  1491. ],
  1492. "summary": "List an organization's public members",
  1493. "operationId": "orgListPublicMembers",
  1494. "parameters": [
  1495. {
  1496. "type": "string",
  1497. "description": "name of the organization",
  1498. "name": "org",
  1499. "in": "path",
  1500. "required": true
  1501. },
  1502. {
  1503. "type": "integer",
  1504. "description": "page number of results to return (1-based)",
  1505. "name": "page",
  1506. "in": "query"
  1507. },
  1508. {
  1509. "type": "integer",
  1510. "description": "page size of results",
  1511. "name": "limit",
  1512. "in": "query"
  1513. }
  1514. ],
  1515. "responses": {
  1516. "200": {
  1517. "$ref": "#/responses/UserList"
  1518. }
  1519. }
  1520. }
  1521. },
  1522. "/orgs/{org}/public_members/{username}": {
  1523. "get": {
  1524. "tags": [
  1525. "organization"
  1526. ],
  1527. "summary": "Check if a user is a public member of an organization",
  1528. "operationId": "orgIsPublicMember",
  1529. "parameters": [
  1530. {
  1531. "type": "string",
  1532. "description": "name of the organization",
  1533. "name": "org",
  1534. "in": "path",
  1535. "required": true
  1536. },
  1537. {
  1538. "type": "string",
  1539. "description": "username of the user",
  1540. "name": "username",
  1541. "in": "path",
  1542. "required": true
  1543. }
  1544. ],
  1545. "responses": {
  1546. "204": {
  1547. "description": "user is a public member"
  1548. },
  1549. "404": {
  1550. "description": "user is not a public member"
  1551. }
  1552. }
  1553. },
  1554. "put": {
  1555. "produces": [
  1556. "application/json"
  1557. ],
  1558. "tags": [
  1559. "organization"
  1560. ],
  1561. "summary": "Publicize a user's membership",
  1562. "operationId": "orgPublicizeMember",
  1563. "parameters": [
  1564. {
  1565. "type": "string",
  1566. "description": "name of the organization",
  1567. "name": "org",
  1568. "in": "path",
  1569. "required": true
  1570. },
  1571. {
  1572. "type": "string",
  1573. "description": "username of the user",
  1574. "name": "username",
  1575. "in": "path",
  1576. "required": true
  1577. }
  1578. ],
  1579. "responses": {
  1580. "204": {
  1581. "description": "membership publicized"
  1582. },
  1583. "403": {
  1584. "$ref": "#/responses/forbidden"
  1585. }
  1586. }
  1587. },
  1588. "delete": {
  1589. "produces": [
  1590. "application/json"
  1591. ],
  1592. "tags": [
  1593. "organization"
  1594. ],
  1595. "summary": "Conceal a user's membership",
  1596. "operationId": "orgConcealMember",
  1597. "parameters": [
  1598. {
  1599. "type": "string",
  1600. "description": "name of the organization",
  1601. "name": "org",
  1602. "in": "path",
  1603. "required": true
  1604. },
  1605. {
  1606. "type": "string",
  1607. "description": "username of the user",
  1608. "name": "username",
  1609. "in": "path",
  1610. "required": true
  1611. }
  1612. ],
  1613. "responses": {
  1614. "204": {
  1615. "$ref": "#/responses/empty"
  1616. },
  1617. "403": {
  1618. "$ref": "#/responses/forbidden"
  1619. }
  1620. }
  1621. }
  1622. },
  1623. "/orgs/{org}/repos": {
  1624. "get": {
  1625. "produces": [
  1626. "application/json"
  1627. ],
  1628. "tags": [
  1629. "organization"
  1630. ],
  1631. "summary": "List an organization's repos",
  1632. "operationId": "orgListRepos",
  1633. "parameters": [
  1634. {
  1635. "type": "string",
  1636. "description": "name of the organization",
  1637. "name": "org",
  1638. "in": "path",
  1639. "required": true
  1640. },
  1641. {
  1642. "type": "integer",
  1643. "description": "page number of results to return (1-based)",
  1644. "name": "page",
  1645. "in": "query"
  1646. },
  1647. {
  1648. "type": "integer",
  1649. "description": "page size of results",
  1650. "name": "limit",
  1651. "in": "query"
  1652. }
  1653. ],
  1654. "responses": {
  1655. "200": {
  1656. "$ref": "#/responses/RepositoryList"
  1657. }
  1658. }
  1659. },
  1660. "post": {
  1661. "consumes": [
  1662. "application/json"
  1663. ],
  1664. "produces": [
  1665. "application/json"
  1666. ],
  1667. "tags": [
  1668. "organization"
  1669. ],
  1670. "summary": "Create a repository in an organization",
  1671. "operationId": "createOrgRepo",
  1672. "parameters": [
  1673. {
  1674. "type": "string",
  1675. "description": "name of organization",
  1676. "name": "org",
  1677. "in": "path",
  1678. "required": true
  1679. },
  1680. {
  1681. "name": "body",
  1682. "in": "body",
  1683. "schema": {
  1684. "$ref": "#/definitions/CreateRepoOption"
  1685. }
  1686. }
  1687. ],
  1688. "responses": {
  1689. "201": {
  1690. "$ref": "#/responses/Repository"
  1691. },
  1692. "403": {
  1693. "$ref": "#/responses/forbidden"
  1694. },
  1695. "404": {
  1696. "$ref": "#/responses/notFound"
  1697. }
  1698. }
  1699. }
  1700. },
  1701. "/orgs/{org}/teams": {
  1702. "get": {
  1703. "produces": [
  1704. "application/json"
  1705. ],
  1706. "tags": [
  1707. "organization"
  1708. ],
  1709. "summary": "List an organization's teams",
  1710. "operationId": "orgListTeams",
  1711. "parameters": [
  1712. {
  1713. "type": "string",
  1714. "description": "name of the organization",
  1715. "name": "org",
  1716. "in": "path",
  1717. "required": true
  1718. },
  1719. {
  1720. "type": "integer",
  1721. "description": "page number of results to return (1-based)",
  1722. "name": "page",
  1723. "in": "query"
  1724. },
  1725. {
  1726. "type": "integer",
  1727. "description": "page size of results",
  1728. "name": "limit",
  1729. "in": "query"
  1730. }
  1731. ],
  1732. "responses": {
  1733. "200": {
  1734. "$ref": "#/responses/TeamList"
  1735. }
  1736. }
  1737. },
  1738. "post": {
  1739. "consumes": [
  1740. "application/json"
  1741. ],
  1742. "produces": [
  1743. "application/json"
  1744. ],
  1745. "tags": [
  1746. "organization"
  1747. ],
  1748. "summary": "Create a team",
  1749. "operationId": "orgCreateTeam",
  1750. "parameters": [
  1751. {
  1752. "type": "string",
  1753. "description": "name of the organization",
  1754. "name": "org",
  1755. "in": "path",
  1756. "required": true
  1757. },
  1758. {
  1759. "name": "body",
  1760. "in": "body",
  1761. "schema": {
  1762. "$ref": "#/definitions/CreateTeamOption"
  1763. }
  1764. }
  1765. ],
  1766. "responses": {
  1767. "201": {
  1768. "$ref": "#/responses/Team"
  1769. },
  1770. "422": {
  1771. "$ref": "#/responses/validationError"
  1772. }
  1773. }
  1774. }
  1775. },
  1776. "/orgs/{org}/teams/search": {
  1777. "get": {
  1778. "produces": [
  1779. "application/json"
  1780. ],
  1781. "tags": [
  1782. "organization"
  1783. ],
  1784. "summary": "Search for teams within an organization",
  1785. "operationId": "teamSearch",
  1786. "parameters": [
  1787. {
  1788. "type": "string",
  1789. "description": "name of the organization",
  1790. "name": "org",
  1791. "in": "path",
  1792. "required": true
  1793. },
  1794. {
  1795. "type": "string",
  1796. "description": "keywords to search",
  1797. "name": "q",
  1798. "in": "query"
  1799. },
  1800. {
  1801. "type": "boolean",
  1802. "description": "include search within team description (defaults to true)",
  1803. "name": "include_desc",
  1804. "in": "query"
  1805. },
  1806. {
  1807. "type": "integer",
  1808. "description": "page number of results to return (1-based)",
  1809. "name": "page",
  1810. "in": "query"
  1811. },
  1812. {
  1813. "type": "integer",
  1814. "description": "page size of results",
  1815. "name": "limit",
  1816. "in": "query"
  1817. }
  1818. ],
  1819. "responses": {
  1820. "200": {
  1821. "description": "SearchResults of a successful search",
  1822. "schema": {
  1823. "type": "object",
  1824. "properties": {
  1825. "data": {
  1826. "type": "array",
  1827. "items": {
  1828. "$ref": "#/definitions/Team"
  1829. }
  1830. },
  1831. "ok": {
  1832. "type": "boolean"
  1833. }
  1834. }
  1835. }
  1836. }
  1837. }
  1838. }
  1839. },
  1840. "/repos/issues/search": {
  1841. "get": {
  1842. "produces": [
  1843. "application/json"
  1844. ],
  1845. "tags": [
  1846. "issue"
  1847. ],
  1848. "summary": "Search for issues across the repositories that the user has access to",
  1849. "operationId": "issueSearchIssues",
  1850. "parameters": [
  1851. {
  1852. "type": "string",
  1853. "description": "whether issue is open or closed",
  1854. "name": "state",
  1855. "in": "query"
  1856. },
  1857. {
  1858. "type": "string",
  1859. "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
  1860. "name": "labels",
  1861. "in": "query"
  1862. },
  1863. {
  1864. "type": "string",
  1865. "description": "search string",
  1866. "name": "q",
  1867. "in": "query"
  1868. },
  1869. {
  1870. "type": "integer",
  1871. "format": "int64",
  1872. "description": "repository to prioritize in the results",
  1873. "name": "priority_repo_id",
  1874. "in": "query"
  1875. },
  1876. {
  1877. "type": "string",
  1878. "description": "filter by type (issues / pulls) if set",
  1879. "name": "type",
  1880. "in": "query"
  1881. },
  1882. {
  1883. "type": "string",
  1884. "format": "date-time",
  1885. "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format",
  1886. "name": "since",
  1887. "in": "query"
  1888. },
  1889. {
  1890. "type": "string",
  1891. "format": "date-time",
  1892. "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format",
  1893. "name": "before",
  1894. "in": "query"
  1895. },
  1896. {
  1897. "type": "boolean",
  1898. "description": "filter (issues / pulls) assigned to you, default is false",
  1899. "name": "assigned",
  1900. "in": "query"
  1901. },
  1902. {
  1903. "type": "boolean",
  1904. "description": "filter (issues / pulls) created by you, default is false",
  1905. "name": "created",
  1906. "in": "query"
  1907. },
  1908. {
  1909. "type": "boolean",
  1910. "description": "filter (issues / pulls) mentioning you, default is false",
  1911. "name": "mentioned",
  1912. "in": "query"
  1913. },
  1914. {
  1915. "type": "boolean",
  1916. "description": "filter pulls requesting your review, default is false",
  1917. "name": "review_requested",
  1918. "in": "query"
  1919. },
  1920. {
  1921. "type": "integer",
  1922. "description": "page number of results to return (1-based)",
  1923. "name": "page",
  1924. "in": "query"
  1925. },
  1926. {
  1927. "type": "integer",
  1928. "description": "page size of results",
  1929. "name": "limit",
  1930. "in": "query"
  1931. }
  1932. ],
  1933. "responses": {
  1934. "200": {
  1935. "$ref": "#/responses/IssueList"
  1936. }
  1937. }
  1938. }
  1939. },
  1940. "/repos/migrate": {
  1941. "post": {
  1942. "consumes": [
  1943. "application/json"
  1944. ],
  1945. "produces": [
  1946. "application/json"
  1947. ],
  1948. "tags": [
  1949. "repository"
  1950. ],
  1951. "summary": "Migrate a remote git repository",
  1952. "operationId": "repoMigrate",
  1953. "parameters": [
  1954. {
  1955. "name": "body",
  1956. "in": "body",
  1957. "schema": {
  1958. "$ref": "#/definitions/MigrateRepoOptions"
  1959. }
  1960. }
  1961. ],
  1962. "responses": {
  1963. "201": {
  1964. "$ref": "#/responses/Repository"
  1965. },
  1966. "403": {
  1967. "$ref": "#/responses/forbidden"
  1968. },
  1969. "422": {
  1970. "$ref": "#/responses/validationError"
  1971. }
  1972. }
  1973. }
  1974. },
  1975. "/repos/search": {
  1976. "get": {
  1977. "produces": [
  1978. "application/json"
  1979. ],
  1980. "tags": [
  1981. "repository"
  1982. ],
  1983. "summary": "Search for repositories",
  1984. "operationId": "repoSearch",
  1985. "parameters": [
  1986. {
  1987. "type": "string",
  1988. "description": "keyword",
  1989. "name": "q",
  1990. "in": "query"
  1991. },
  1992. {
  1993. "type": "boolean",
  1994. "description": "Limit search to repositories with keyword as topic",
  1995. "name": "topic",
  1996. "in": "query"
  1997. },
  1998. {
  1999. "type": "boolean",
  2000. "description": "include search of keyword within repository description",
  2001. "name": "includeDesc",
  2002. "in": "query"
  2003. },
  2004. {
  2005. "type": "integer",
  2006. "format": "int64",
  2007. "description": "search only for repos that the user with the given id owns or contributes to",
  2008. "name": "uid",
  2009. "in": "query"
  2010. },
  2011. {
  2012. "type": "integer",
  2013. "format": "int64",
  2014. "description": "repo owner to prioritize in the results",
  2015. "name": "priority_owner_id",
  2016. "in": "query"
  2017. },
  2018. {
  2019. "type": "integer",
  2020. "format": "int64",
  2021. "description": "search only for repos that belong to the given team id",
  2022. "name": "team_id",
  2023. "in": "query"
  2024. },
  2025. {
  2026. "type": "integer",
  2027. "format": "int64",
  2028. "description": "search only for repos that the user with the given id has starred",
  2029. "name": "starredBy",
  2030. "in": "query"
  2031. },
  2032. {
  2033. "type": "boolean",
  2034. "description": "include private repositories this user has access to (defaults to true)",
  2035. "name": "private",
  2036. "in": "query"
  2037. },
  2038. {
  2039. "type": "boolean",
  2040. "description": "show only pubic, private or all repositories (defaults to all)",
  2041. "name": "is_private",
  2042. "in": "query"
  2043. },
  2044. {
  2045. "type": "boolean",
  2046. "description": "include template repositories this user has access to (defaults to true)",
  2047. "name": "template",
  2048. "in": "query"
  2049. },
  2050. {
  2051. "type": "boolean",
  2052. "description": "show only archived, non-archived or all repositories (defaults to all)",
  2053. "name": "archived",
  2054. "in": "query"
  2055. },
  2056. {
  2057. "type": "string",
  2058. "description": "type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"",
  2059. "name": "mode",
  2060. "in": "query"
  2061. },
  2062. {
  2063. "type": "boolean",
  2064. "description": "if `uid` is given, search only for repos that the user owns",
  2065. "name": "exclusive",
  2066. "in": "query"
  2067. },
  2068. {
  2069. "type": "string",
  2070. "description": "sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\"",
  2071. "name": "sort",
  2072. "in": "query"
  2073. },
  2074. {
  2075. "type": "string",
  2076. "description": "sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified.",
  2077. "name": "order",
  2078. "in": "query"
  2079. },
  2080. {
  2081. "type": "integer",
  2082. "description": "page number of results to return (1-based)",
  2083. "name": "page",
  2084. "in": "query"
  2085. },
  2086. {
  2087. "type": "integer",
  2088. "description": "page size of results",
  2089. "name": "limit",
  2090. "in": "query"
  2091. }
  2092. ],
  2093. "responses": {
  2094. "200": {
  2095. "$ref": "#/responses/SearchResults"
  2096. },
  2097. "422": {
  2098. "$ref": "#/responses/validationError"
  2099. }
  2100. }
  2101. }
  2102. },
  2103. "/repos/{owner}/{repo}": {
  2104. "get": {
  2105. "produces": [
  2106. "application/json"
  2107. ],
  2108. "tags": [
  2109. "repository"
  2110. ],
  2111. "summary": "Get a repository",
  2112. "operationId": "repoGet",
  2113. "parameters": [
  2114. {
  2115. "type": "string",
  2116. "description": "owner of the repo",
  2117. "name": "owner",
  2118. "in": "path",
  2119. "required": true
  2120. },
  2121. {
  2122. "type": "string",
  2123. "description": "name of the repo",
  2124. "name": "repo",
  2125. "in": "path",
  2126. "required": true
  2127. }
  2128. ],
  2129. "responses": {
  2130. "200": {
  2131. "$ref": "#/responses/Repository"
  2132. }
  2133. }
  2134. },
  2135. "delete": {
  2136. "produces": [
  2137. "application/json"
  2138. ],
  2139. "tags": [
  2140. "repository"
  2141. ],
  2142. "summary": "Delete a repository",
  2143. "operationId": "repoDelete",
  2144. "parameters": [
  2145. {
  2146. "type": "string",
  2147. "description": "owner of the repo to delete",
  2148. "name": "owner",
  2149. "in": "path",
  2150. "required": true
  2151. },
  2152. {
  2153. "type": "string",
  2154. "description": "name of the repo to delete",
  2155. "name": "repo",
  2156. "in": "path",
  2157. "required": true
  2158. }
  2159. ],
  2160. "responses": {
  2161. "204": {
  2162. "$ref": "#/responses/empty"
  2163. },
  2164. "403": {
  2165. "$ref": "#/responses/forbidden"
  2166. }
  2167. }
  2168. },
  2169. "patch": {
  2170. "produces": [
  2171. "application/json"
  2172. ],
  2173. "tags": [
  2174. "repository"
  2175. ],
  2176. "summary": "Edit a repository's properties. Only fields that are set will be changed.",
  2177. "operationId": "repoEdit",
  2178. "parameters": [
  2179. {
  2180. "type": "string",
  2181. "description": "owner of the repo to edit",
  2182. "name": "owner",
  2183. "in": "path",
  2184. "required": true
  2185. },
  2186. {
  2187. "type": "string",
  2188. "description": "name of the repo to edit",
  2189. "name": "repo",
  2190. "in": "path",
  2191. "required": true
  2192. },
  2193. {
  2194. "description": "Properties of a repo that you can edit",
  2195. "name": "body",
  2196. "in": "body",
  2197. "schema": {
  2198. "$ref": "#/definitions/EditRepoOption"
  2199. }
  2200. }
  2201. ],
  2202. "responses": {
  2203. "200": {
  2204. "$ref": "#/responses/Repository"
  2205. },
  2206. "403": {
  2207. "$ref": "#/responses/forbidden"
  2208. },
  2209. "422": {
  2210. "$ref": "#/responses/validationError"
  2211. }
  2212. }
  2213. }
  2214. },
  2215. "/repos/{owner}/{repo}/archive/{archive}": {
  2216. "get": {
  2217. "produces": [
  2218. "application/json"
  2219. ],
  2220. "tags": [
  2221. "repository"
  2222. ],
  2223. "summary": "Get an archive of a repository",
  2224. "operationId": "repoGetArchive",
  2225. "parameters": [
  2226. {
  2227. "type": "string",
  2228. "description": "owner of the repo",
  2229. "name": "owner",
  2230. "in": "path",
  2231. "required": true
  2232. },
  2233. {
  2234. "type": "string",
  2235. "description": "name of the repo",
  2236. "name": "repo",
  2237. "in": "path",
  2238. "required": true
  2239. },
  2240. {
  2241. "type": "string",
  2242. "description": "the git reference for download with attached archive format (e.g. master.zip)",
  2243. "name": "archive",
  2244. "in": "path",
  2245. "required": true
  2246. }
  2247. ],
  2248. "responses": {
  2249. "200": {
  2250. "description": "success"
  2251. },
  2252. "404": {
  2253. "$ref": "#/responses/notFound"
  2254. }
  2255. }
  2256. }
  2257. },
  2258. "/repos/{owner}/{repo}/branch_protections": {
  2259. "get": {
  2260. "produces": [
  2261. "application/json"
  2262. ],
  2263. "tags": [
  2264. "repository"
  2265. ],
  2266. "summary": "List branch protections for a repository",
  2267. "operationId": "repoListBranchProtection",
  2268. "parameters": [
  2269. {
  2270. "type": "string",
  2271. "description": "owner of the repo",
  2272. "name": "owner",
  2273. "in": "path",
  2274. "required": true
  2275. },
  2276. {
  2277. "type": "string",
  2278. "description": "name of the repo",
  2279. "name": "repo",
  2280. "in": "path",
  2281. "required": true
  2282. }
  2283. ],
  2284. "responses": {
  2285. "200": {
  2286. "$ref": "#/responses/BranchProtectionList"
  2287. }
  2288. }
  2289. },
  2290. "post": {
  2291. "consumes": [
  2292. "application/json"
  2293. ],
  2294. "produces": [
  2295. "application/json"
  2296. ],
  2297. "tags": [
  2298. "repository"
  2299. ],
  2300. "summary": "Create a branch protections for a repository",
  2301. "operationId": "repoCreateBranchProtection",
  2302. "parameters": [
  2303. {
  2304. "type": "string",
  2305. "description": "owner of the repo",
  2306. "name": "owner",
  2307. "in": "path",
  2308. "required": true
  2309. },
  2310. {
  2311. "type": "string",
  2312. "description": "name of the repo",
  2313. "name": "repo",
  2314. "in": "path",
  2315. "required": true
  2316. },
  2317. {
  2318. "name": "body",
  2319. "in": "body",
  2320. "schema": {
  2321. "$ref": "#/definitions/CreateBranchProtectionOption"
  2322. }
  2323. }
  2324. ],
  2325. "responses": {
  2326. "201": {
  2327. "$ref": "#/responses/BranchProtection"
  2328. },
  2329. "403": {
  2330. "$ref": "#/responses/forbidden"
  2331. },
  2332. "404": {
  2333. "$ref": "#/responses/notFound"
  2334. },
  2335. "422": {
  2336. "$ref": "#/responses/validationError"
  2337. }
  2338. }
  2339. }
  2340. },
  2341. "/repos/{owner}/{repo}/branch_protections/{name}": {
  2342. "get": {
  2343. "produces": [
  2344. "application/json"
  2345. ],
  2346. "tags": [
  2347. "repository"
  2348. ],
  2349. "summary": "Get a specific branch protection for the repository",
  2350. "operationId": "repoGetBranchProtection",
  2351. "parameters": [
  2352. {
  2353. "type": "string",
  2354. "description": "owner of the repo",
  2355. "name": "owner",
  2356. "in": "path",
  2357. "required": true
  2358. },
  2359. {
  2360. "type": "string",
  2361. "description": "name of the repo",
  2362. "name": "repo",
  2363. "in": "path",
  2364. "required": true
  2365. },
  2366. {
  2367. "type": "string",
  2368. "description": "name of protected branch",
  2369. "name": "name",
  2370. "in": "path",
  2371. "required": true
  2372. }
  2373. ],
  2374. "responses": {
  2375. "200": {
  2376. "$ref": "#/responses/BranchProtection"
  2377. },
  2378. "404": {
  2379. "$ref": "#/responses/notFound"
  2380. }
  2381. }
  2382. },
  2383. "delete": {
  2384. "produces": [
  2385. "application/json"
  2386. ],
  2387. "tags": [
  2388. "repository"
  2389. ],
  2390. "summary": "Delete a specific branch protection for the repository",
  2391. "operationId": "repoDeleteBranchProtection",
  2392. "parameters": [
  2393. {
  2394. "type": "string",
  2395. "description": "owner of the repo",
  2396. "name": "owner",
  2397. "in": "path",
  2398. "required": true
  2399. },
  2400. {
  2401. "type": "string",
  2402. "description": "name of the repo",
  2403. "name": "repo",
  2404. "in": "path",
  2405. "required": true
  2406. },
  2407. {
  2408. "type": "string",
  2409. "description": "name of protected branch",
  2410. "name": "name",
  2411. "in": "path",
  2412. "required": true
  2413. }
  2414. ],
  2415. "responses": {
  2416. "204": {
  2417. "$ref": "#/responses/empty"
  2418. },
  2419. "404": {
  2420. "$ref": "#/responses/notFound"
  2421. }
  2422. }
  2423. },
  2424. "patch": {
  2425. "consumes": [
  2426. "application/json"
  2427. ],
  2428. "produces": [
  2429. "application/json"
  2430. ],
  2431. "tags": [
  2432. "repository"
  2433. ],
  2434. "summary": "Edit a branch protections for a repository. Only fields that are set will be changed",
  2435. "operationId": "repoEditBranchProtection",
  2436. "parameters": [
  2437. {
  2438. "type": "string",
  2439. "description": "owner of the repo",
  2440. "name": "owner",
  2441. "in": "path",
  2442. "required": true
  2443. },
  2444. {
  2445. "type": "string",
  2446. "description": "name of the repo",
  2447. "name": "repo",
  2448. "in": "path",
  2449. "required": true
  2450. },
  2451. {
  2452. "type": "string",
  2453. "description": "name of protected branch",
  2454. "name": "name",
  2455. "in": "path",
  2456. "required": true
  2457. },
  2458. {
  2459. "name": "body",
  2460. "in": "body",
  2461. "schema": {
  2462. "$ref": "#/definitions/EditBranchProtectionOption"
  2463. }
  2464. }
  2465. ],
  2466. "responses": {
  2467. "200": {
  2468. "$ref": "#/responses/BranchProtection"
  2469. },
  2470. "404": {
  2471. "$ref": "#/responses/notFound"
  2472. },
  2473. "422": {
  2474. "$ref": "#/responses/validationError"
  2475. }
  2476. }
  2477. }
  2478. },
  2479. "/repos/{owner}/{repo}/branches": {
  2480. "get": {
  2481. "produces": [
  2482. "application/json"
  2483. ],
  2484. "tags": [
  2485. "repository"
  2486. ],
  2487. "summary": "List a repository's branches",
  2488. "operationId": "repoListBranches",
  2489. "parameters": [
  2490. {
  2491. "type": "string",
  2492. "description": "owner of the repo",
  2493. "name": "owner",
  2494. "in": "path",
  2495. "required": true
  2496. },
  2497. {
  2498. "type": "string",
  2499. "description": "name of the repo",
  2500. "name": "repo",
  2501. "in": "path",
  2502. "required": true
  2503. },
  2504. {
  2505. "type": "integer",
  2506. "description": "page number of results to return (1-based)",
  2507. "name": "page",
  2508. "in": "query"
  2509. },
  2510. {
  2511. "type": "integer",
  2512. "description": "page size of results",
  2513. "name": "limit",
  2514. "in": "query"
  2515. }
  2516. ],
  2517. "responses": {
  2518. "200": {
  2519. "$ref": "#/responses/BranchList"
  2520. }
  2521. }
  2522. },
  2523. "post": {
  2524. "consumes": [
  2525. "application/json"
  2526. ],
  2527. "produces": [
  2528. "application/json"
  2529. ],
  2530. "tags": [
  2531. "repository"
  2532. ],
  2533. "summary": "Create a branch",
  2534. "operationId": "repoCreateBranch",
  2535. "parameters": [
  2536. {
  2537. "type": "string",
  2538. "description": "owner of the repo",
  2539. "name": "owner",
  2540. "in": "path",
  2541. "required": true
  2542. },
  2543. {
  2544. "type": "string",
  2545. "description": "name of the repo",
  2546. "name": "repo",
  2547. "in": "path",
  2548. "required": true
  2549. },
  2550. {
  2551. "name": "body",
  2552. "in": "body",
  2553. "schema": {
  2554. "$ref": "#/definitions/CreateBranchRepoOption"
  2555. }
  2556. }
  2557. ],
  2558. "responses": {
  2559. "201": {
  2560. "$ref": "#/responses/Branch"
  2561. },
  2562. "404": {
  2563. "description": "The old branch does not exist."
  2564. },
  2565. "409": {
  2566. "description": "The branch with the same name already exists."
  2567. }
  2568. }
  2569. }
  2570. },
  2571. "/repos/{owner}/{repo}/branches/{branch}": {
  2572. "get": {
  2573. "produces": [
  2574. "application/json"
  2575. ],
  2576. "tags": [
  2577. "repository"
  2578. ],
  2579. "summary": "Retrieve a specific branch from a repository, including its effective branch protection",
  2580. "operationId": "repoGetBranch",
  2581. "parameters": [
  2582. {
  2583. "type": "string",
  2584. "description": "owner of the repo",
  2585. "name": "owner",
  2586. "in": "path",
  2587. "required": true
  2588. },
  2589. {
  2590. "type": "string",
  2591. "description": "name of the repo",
  2592. "name": "repo",
  2593. "in": "path",
  2594. "required": true
  2595. },
  2596. {
  2597. "type": "string",
  2598. "description": "branch to get",
  2599. "name": "branch",
  2600. "in": "path",
  2601. "required": true
  2602. }
  2603. ],
  2604. "responses": {
  2605. "200": {
  2606. "$ref": "#/responses/Branch"
  2607. },
  2608. "404": {
  2609. "$ref": "#/responses/notFound"
  2610. }
  2611. }
  2612. },
  2613. "delete": {
  2614. "produces": [
  2615. "application/json"
  2616. ],
  2617. "tags": [
  2618. "repository"
  2619. ],
  2620. "summary": "Delete a specific branch from a repository",
  2621. "operationId": "repoDeleteBranch",
  2622. "parameters": [
  2623. {
  2624. "type": "string",
  2625. "description": "owner of the repo",
  2626. "name": "owner",
  2627. "in": "path",
  2628. "required": true
  2629. },
  2630. {
  2631. "type": "string",
  2632. "description": "name of the repo",
  2633. "name": "repo",
  2634. "in": "path",
  2635. "required": true
  2636. },
  2637. {
  2638. "type": "string",
  2639. "description": "branch to delete",
  2640. "name": "branch",
  2641. "in": "path",
  2642. "required": true
  2643. }
  2644. ],
  2645. "responses": {
  2646. "204": {
  2647. "$ref": "#/responses/empty"
  2648. },
  2649. "403": {
  2650. "$ref": "#/responses/error"
  2651. },
  2652. "404": {
  2653. "$ref": "#/responses/notFound"
  2654. }
  2655. }
  2656. }
  2657. },
  2658. "/repos/{owner}/{repo}/collaborators": {
  2659. "get": {
  2660. "produces": [
  2661. "application/json"
  2662. ],
  2663. "tags": [
  2664. "repository"
  2665. ],
  2666. "summary": "List a repository's collaborators",
  2667. "operationId": "repoListCollaborators",
  2668. "parameters": [
  2669. {
  2670. "type": "string",
  2671. "description": "owner of the repo",
  2672. "name": "owner",
  2673. "in": "path",
  2674. "required": true
  2675. },
  2676. {
  2677. "type": "string",
  2678. "description": "name of the repo",
  2679. "name": "repo",
  2680. "in": "path",
  2681. "required": true
  2682. },
  2683. {
  2684. "type": "integer",
  2685. "description": "page number of results to return (1-based)",
  2686. "name": "page",
  2687. "in": "query"
  2688. },
  2689. {
  2690. "type": "integer",
  2691. "description": "page size of results",
  2692. "name": "limit",
  2693. "in": "query"
  2694. }
  2695. ],
  2696. "responses": {
  2697. "200": {
  2698. "$ref": "#/responses/UserList"
  2699. }
  2700. }
  2701. }
  2702. },
  2703. "/repos/{owner}/{repo}/collaborators/{collaborator}": {
  2704. "get": {
  2705. "produces": [
  2706. "application/json"
  2707. ],
  2708. "tags": [
  2709. "repository"
  2710. ],
  2711. "summary": "Check if a user is a collaborator of a repository",
  2712. "operationId": "repoCheckCollaborator",
  2713. "parameters": [
  2714. {
  2715. "type": "string",
  2716. "description": "owner of the repo",
  2717. "name": "owner",
  2718. "in": "path",
  2719. "required": true
  2720. },
  2721. {
  2722. "type": "string",
  2723. "description": "name of the repo",
  2724. "name": "repo",
  2725. "in": "path",
  2726. "required": true
  2727. },
  2728. {
  2729. "type": "string",
  2730. "description": "username of the collaborator",
  2731. "name": "collaborator",
  2732. "in": "path",
  2733. "required": true
  2734. }
  2735. ],
  2736. "responses": {
  2737. "204": {
  2738. "$ref": "#/responses/empty"
  2739. },
  2740. "404": {
  2741. "$ref": "#/responses/notFound"
  2742. },
  2743. "422": {
  2744. "$ref": "#/responses/validationError"
  2745. }
  2746. }
  2747. },
  2748. "put": {
  2749. "produces": [
  2750. "application/json"
  2751. ],
  2752. "tags": [
  2753. "repository"
  2754. ],
  2755. "summary": "Add a collaborator to a repository",
  2756. "operationId": "repoAddCollaborator",
  2757. "parameters": [
  2758. {
  2759. "type": "string",
  2760. "description": "owner of the repo",
  2761. "name": "owner",
  2762. "in": "path",
  2763. "required": true
  2764. },
  2765. {
  2766. "type": "string",
  2767. "description": "name of the repo",
  2768. "name": "repo",
  2769. "in": "path",
  2770. "required": true
  2771. },
  2772. {
  2773. "type": "string",
  2774. "description": "username of the collaborator to add",
  2775. "name": "collaborator",
  2776. "in": "path",
  2777. "required": true
  2778. },
  2779. {
  2780. "name": "body",
  2781. "in": "body",
  2782. "schema": {
  2783. "$ref": "#/definitions/AddCollaboratorOption"
  2784. }
  2785. }
  2786. ],
  2787. "responses": {
  2788. "204": {
  2789. "$ref": "#/responses/empty"
  2790. },
  2791. "422": {
  2792. "$ref": "#/responses/validationError"
  2793. }
  2794. }
  2795. },
  2796. "delete": {
  2797. "produces": [
  2798. "application/json"
  2799. ],
  2800. "tags": [
  2801. "repository"
  2802. ],
  2803. "summary": "Delete a collaborator from a repository",
  2804. "operationId": "repoDeleteCollaborator",
  2805. "parameters": [
  2806. {
  2807. "type": "string",
  2808. "description": "owner of the repo",
  2809. "name": "owner",
  2810. "in": "path",
  2811. "required": true
  2812. },
  2813. {
  2814. "type": "string",
  2815. "description": "name of the repo",
  2816. "name": "repo",
  2817. "in": "path",
  2818. "required": true
  2819. },
  2820. {
  2821. "type": "string",
  2822. "description": "username of the collaborator to delete",
  2823. "name": "collaborator",
  2824. "in": "path",
  2825. "required": true
  2826. }
  2827. ],
  2828. "responses": {
  2829. "204": {
  2830. "$ref": "#/responses/empty"
  2831. },
  2832. "422": {
  2833. "$ref": "#/responses/validationError"
  2834. }
  2835. }
  2836. }
  2837. },
  2838. "/repos/{owner}/{repo}/commits": {
  2839. "get": {
  2840. "produces": [
  2841. "application/json"
  2842. ],
  2843. "tags": [
  2844. "repository"
  2845. ],
  2846. "summary": "Get a list of all commits from a repository",
  2847. "operationId": "repoGetAllCommits",
  2848. "parameters": [
  2849. {
  2850. "type": "string",
  2851. "description": "owner of the repo",
  2852. "name": "owner",
  2853. "in": "path",
  2854. "required": true
  2855. },
  2856. {
  2857. "type": "string",
  2858. "description": "name of the repo",
  2859. "name": "repo",
  2860. "in": "path",
  2861. "required": true
  2862. },
  2863. {
  2864. "type": "string",
  2865. "description": "SHA or branch to start listing commits from (usually 'master')",
  2866. "name": "sha",
  2867. "in": "query"
  2868. },
  2869. {
  2870. "type": "integer",
  2871. "description": "page number of results to return (1-based)",
  2872. "name": "page",
  2873. "in": "query"
  2874. },
  2875. {
  2876. "type": "integer",
  2877. "description": "page size of results",
  2878. "name": "limit",
  2879. "in": "query"
  2880. }
  2881. ],
  2882. "responses": {
  2883. "200": {
  2884. "$ref": "#/responses/CommitList"
  2885. },
  2886. "404": {
  2887. "$ref": "#/responses/notFound"
  2888. },
  2889. "409": {
  2890. "$ref": "#/responses/EmptyRepository"
  2891. }
  2892. }
  2893. }
  2894. },
  2895. "/repos/{owner}/{repo}/commits/{ref}/status": {
  2896. "get": {
  2897. "produces": [
  2898. "application/json"
  2899. ],
  2900. "tags": [
  2901. "repository"
  2902. ],
  2903. "summary": "Get a commit's combined status, by branch/tag/commit reference",
  2904. "operationId": "repoGetCombinedStatusByRef",
  2905. "parameters": [
  2906. {
  2907. "type": "string",
  2908. "description": "owner of the repo",
  2909. "name": "owner",
  2910. "in": "path",
  2911. "required": true
  2912. },
  2913. {
  2914. "type": "string",
  2915. "description": "name of the repo",
  2916. "name": "repo",
  2917. "in": "path",
  2918. "required": true
  2919. },
  2920. {
  2921. "type": "string",
  2922. "description": "name of branch/tag/commit",
  2923. "name": "ref",
  2924. "in": "path",
  2925. "required": true
  2926. },
  2927. {
  2928. "type": "integer",
  2929. "description": "page number of results to return (1-based)",
  2930. "name": "page",
  2931. "in": "query"
  2932. },
  2933. {
  2934. "type": "integer",
  2935. "description": "page size of results",
  2936. "name": "limit",
  2937. "in": "query"
  2938. }
  2939. ],
  2940. "responses": {
  2941. "200": {
  2942. "$ref": "#/responses/CombinedStatus"
  2943. },
  2944. "400": {
  2945. "$ref": "#/responses/error"
  2946. }
  2947. }
  2948. }
  2949. },
  2950. "/repos/{owner}/{repo}/commits/{ref}/statuses": {
  2951. "get": {
  2952. "produces": [
  2953. "application/json"
  2954. ],
  2955. "tags": [
  2956. "repository"
  2957. ],
  2958. "summary": "Get a commit's statuses, by branch/tag/commit reference",
  2959. "operationId": "repoListStatusesByRef",
  2960. "parameters": [
  2961. {
  2962. "type": "string",
  2963. "description": "owner of the repo",
  2964. "name": "owner",
  2965. "in": "path",
  2966. "required": true
  2967. },
  2968. {
  2969. "type": "string",
  2970. "description": "name of the repo",
  2971. "name": "repo",
  2972. "in": "path",
  2973. "required": true
  2974. },
  2975. {
  2976. "type": "string",
  2977. "description": "name of branch/tag/commit",
  2978. "name": "ref",
  2979. "in": "path",
  2980. "required": true
  2981. },
  2982. {
  2983. "enum": [
  2984. "oldest",
  2985. "recentupdate",
  2986. "leastupdate",
  2987. "leastindex",
  2988. "highestindex"
  2989. ],
  2990. "type": "string",
  2991. "description": "type of sort",
  2992. "name": "sort",
  2993. "in": "query"
  2994. },
  2995. {
  2996. "enum": [
  2997. "pending",
  2998. "success",
  2999. "error",
  3000. "failure",
  3001. "warning"
  3002. ],
  3003. "type": "string",
  3004. "description": "type of state",
  3005. "name": "state",
  3006. "in": "query"
  3007. },
  3008. {
  3009. "type": "integer",
  3010. "description": "page number of results to return (1-based)",
  3011. "name": "page",
  3012. "in": "query"
  3013. },
  3014. {
  3015. "type": "integer",
  3016. "description": "page size of results",
  3017. "name": "limit",
  3018. "in": "query"
  3019. }
  3020. ],
  3021. "responses": {
  3022. "200": {
  3023. "$ref": "#/responses/CommitStatusList"
  3024. },
  3025. "400": {
  3026. "$ref": "#/responses/error"
  3027. }
  3028. }
  3029. }
  3030. },
  3031. "/repos/{owner}/{repo}/contents": {
  3032. "get": {
  3033. "produces": [
  3034. "application/json"
  3035. ],
  3036. "tags": [
  3037. "repository"
  3038. ],
  3039. "summary": "Gets the metadata of all the entries of the root dir",
  3040. "operationId": "repoGetContentsList",
  3041. "parameters": [
  3042. {
  3043. "type": "string",
  3044. "description": "owner of the repo",
  3045. "name": "owner",
  3046. "in": "path",
  3047. "required": true
  3048. },
  3049. {
  3050. "type": "string",
  3051. "description": "name of the repo",
  3052. "name": "repo",
  3053. "in": "path",
  3054. "required": true
  3055. },
  3056. {
  3057. "type": "string",
  3058. "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
  3059. "name": "ref",
  3060. "in": "query"
  3061. }
  3062. ],
  3063. "responses": {
  3064. "200": {
  3065. "$ref": "#/responses/ContentsListResponse"
  3066. },
  3067. "404": {
  3068. "$ref": "#/responses/notFound"
  3069. }
  3070. }
  3071. }
  3072. },
  3073. "/repos/{owner}/{repo}/contents/{filepath}": {
  3074. "get": {
  3075. "produces": [
  3076. "application/json"
  3077. ],
  3078. "tags": [
  3079. "repository"
  3080. ],
  3081. "summary": "Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir",
  3082. "operationId": "repoGetContents",
  3083. "parameters": [
  3084. {
  3085. "type": "string",
  3086. "description": "owner of the repo",
  3087. "name": "owner",
  3088. "in": "path",
  3089. "required": true
  3090. },
  3091. {
  3092. "type": "string",
  3093. "description": "name of the repo",
  3094. "name": "repo",
  3095. "in": "path",
  3096. "required": true
  3097. },
  3098. {
  3099. "type": "string",
  3100. "description": "path of the dir, file, symlink or submodule in the repo",
  3101. "name": "filepath",
  3102. "in": "path",
  3103. "required": true
  3104. },
  3105. {
  3106. "type": "string",
  3107. "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
  3108. "name": "ref",
  3109. "in": "query"
  3110. }
  3111. ],
  3112. "responses": {
  3113. "200": {
  3114. "$ref": "#/responses/ContentsResponse"
  3115. },
  3116. "404": {
  3117. "$ref": "#/responses/notFound"
  3118. }
  3119. }
  3120. },
  3121. "put": {
  3122. "consumes": [
  3123. "application/json"
  3124. ],
  3125. "produces": [
  3126. "application/json"
  3127. ],
  3128. "tags": [
  3129. "repository"
  3130. ],
  3131. "summary": "Update a file in a repository",
  3132. "operationId": "repoUpdateFile",
  3133. "parameters": [
  3134. {
  3135. "type": "string",
  3136. "description": "owner of the repo",
  3137. "name": "owner",
  3138. "in": "path",
  3139. "required": true
  3140. },
  3141. {
  3142. "type": "string",
  3143. "description": "name of the repo",
  3144. "name": "repo",
  3145. "in": "path",
  3146. "required": true
  3147. },
  3148. {
  3149. "type": "string",
  3150. "description": "path of the file to update",
  3151. "name": "filepath",
  3152. "in": "path",
  3153. "required": true
  3154. },
  3155. {
  3156. "name": "body",
  3157. "in": "body",
  3158. "required": true,
  3159. "schema": {
  3160. "$ref": "#/definitions/UpdateFileOptions"
  3161. }
  3162. }
  3163. ],
  3164. "responses": {
  3165. "200": {
  3166. "$ref": "#/responses/FileResponse"
  3167. },
  3168. "403": {
  3169. "$ref": "#/responses/error"
  3170. },
  3171. "404": {
  3172. "$ref": "#/responses/notFound"
  3173. },
  3174. "422": {
  3175. "$ref": "#/responses/error"
  3176. }
  3177. }
  3178. },
  3179. "post": {
  3180. "consumes": [
  3181. "application/json"
  3182. ],
  3183. "produces": [
  3184. "application/json"
  3185. ],
  3186. "tags": [
  3187. "repository"
  3188. ],
  3189. "summary": "Create a file in a repository",
  3190. "operationId": "repoCreateFile",
  3191. "parameters": [
  3192. {
  3193. "type": "string",
  3194. "description": "owner of the repo",
  3195. "name": "owner",
  3196. "in": "path",
  3197. "required": true
  3198. },
  3199. {
  3200. "type": "string",
  3201. "description": "name of the repo",
  3202. "name": "repo",
  3203. "in": "path",
  3204. "required": true
  3205. },
  3206. {
  3207. "type": "string",
  3208. "description": "path of the file to create",
  3209. "name": "filepath",
  3210. "in": "path",
  3211. "required": true
  3212. },
  3213. {
  3214. "name": "body",
  3215. "in": "body",
  3216. "required": true,
  3217. "schema": {
  3218. "$ref": "#/definitions/CreateFileOptions"
  3219. }
  3220. }
  3221. ],
  3222. "responses": {
  3223. "201": {
  3224. "$ref": "#/responses/FileResponse"
  3225. },
  3226. "403": {
  3227. "$ref": "#/responses/error"
  3228. },
  3229. "404": {
  3230. "$ref": "#/responses/notFound"
  3231. },
  3232. "422": {
  3233. "$ref": "#/responses/error"
  3234. }
  3235. }
  3236. },
  3237. "delete": {
  3238. "consumes": [
  3239. "application/json"
  3240. ],
  3241. "produces": [
  3242. "application/json"
  3243. ],
  3244. "tags": [
  3245. "repository"
  3246. ],
  3247. "summary": "Delete a file in a repository",
  3248. "operationId": "repoDeleteFile",
  3249. "parameters": [
  3250. {
  3251. "type": "string",
  3252. "description": "owner of the repo",
  3253. "name": "owner",
  3254. "in": "path",
  3255. "required": true
  3256. },
  3257. {
  3258. "type": "string",
  3259. "description": "name of the repo",
  3260. "name": "repo",
  3261. "in": "path",
  3262. "required": true
  3263. },
  3264. {
  3265. "type": "string",
  3266. "description": "path of the file to delete",
  3267. "name": "filepath",
  3268. "in": "path",
  3269. "required": true
  3270. },
  3271. {
  3272. "name": "body",
  3273. "in": "body",
  3274. "required": true,
  3275. "schema": {
  3276. "$ref": "#/definitions/DeleteFileOptions"
  3277. }
  3278. }
  3279. ],
  3280. "responses": {
  3281. "200": {
  3282. "$ref": "#/responses/FileDeleteResponse"
  3283. },
  3284. "400": {
  3285. "$ref": "#/responses/error"
  3286. },
  3287. "403": {
  3288. "$ref": "#/responses/error"
  3289. },
  3290. "404": {
  3291. "$ref": "#/responses/error"
  3292. }
  3293. }
  3294. }
  3295. },
  3296. "/repos/{owner}/{repo}/editorconfig/{filepath}": {
  3297. "get": {
  3298. "produces": [
  3299. "application/json"
  3300. ],
  3301. "tags": [
  3302. "repository"
  3303. ],
  3304. "summary": "Get the EditorConfig definitions of a file in a repository",
  3305. "operationId": "repoGetEditorConfig",
  3306. "parameters": [
  3307. {
  3308. "type": "string",
  3309. "description": "owner of the repo",
  3310. "name": "owner",
  3311. "in": "path",
  3312. "required": true
  3313. },
  3314. {
  3315. "type": "string",
  3316. "description": "name of the repo",
  3317. "name": "repo",
  3318. "in": "path",
  3319. "required": true
  3320. },
  3321. {
  3322. "type": "string",
  3323. "description": "filepath of file to get",
  3324. "name": "filepath",
  3325. "in": "path",
  3326. "required": true
  3327. }
  3328. ],
  3329. "responses": {
  3330. "200": {
  3331. "description": "success"
  3332. },
  3333. "404": {
  3334. "$ref": "#/responses/notFound"
  3335. }
  3336. }
  3337. }
  3338. },
  3339. "/repos/{owner}/{repo}/forks": {
  3340. "get": {
  3341. "produces": [
  3342. "application/json"
  3343. ],
  3344. "tags": [
  3345. "repository"
  3346. ],
  3347. "summary": "List a repository's forks",
  3348. "operationId": "listForks",
  3349. "parameters": [
  3350. {
  3351. "type": "string",
  3352. "description": "owner of the repo",
  3353. "name": "owner",
  3354. "in": "path",
  3355. "required": true
  3356. },
  3357. {
  3358. "type": "string",
  3359. "description": "name of the repo",
  3360. "name": "repo",
  3361. "in": "path",
  3362. "required": true
  3363. },
  3364. {
  3365. "type": "integer",
  3366. "description": "page number of results to return (1-based)",
  3367. "name": "page",
  3368. "in": "query"
  3369. },
  3370. {
  3371. "type": "integer",
  3372. "description": "page size of results",
  3373. "name": "limit",
  3374. "in": "query"
  3375. }
  3376. ],
  3377. "responses": {
  3378. "200": {
  3379. "$ref": "#/responses/RepositoryList"
  3380. }
  3381. }
  3382. },
  3383. "post": {
  3384. "produces": [
  3385. "application/json"
  3386. ],
  3387. "tags": [
  3388. "repository"
  3389. ],
  3390. "summary": "Fork a repository",
  3391. "operationId": "createFork",
  3392. "parameters": [
  3393. {
  3394. "type": "string",
  3395. "description": "owner of the repo to fork",
  3396. "name": "owner",
  3397. "in": "path",
  3398. "required": true
  3399. },
  3400. {
  3401. "type": "string",
  3402. "description": "name of the repo to fork",
  3403. "name": "repo",
  3404. "in": "path",
  3405. "required": true
  3406. },
  3407. {
  3408. "name": "body",
  3409. "in": "body",
  3410. "schema": {
  3411. "$ref": "#/definitions/CreateForkOption"
  3412. }
  3413. }
  3414. ],
  3415. "responses": {
  3416. "202": {
  3417. "$ref": "#/responses/Repository"
  3418. },
  3419. "403": {
  3420. "$ref": "#/responses/forbidden"
  3421. },
  3422. "422": {
  3423. "$ref": "#/responses/validationError"
  3424. }
  3425. }
  3426. }
  3427. },
  3428. "/repos/{owner}/{repo}/git/blobs/{sha}": {
  3429. "get": {
  3430. "produces": [
  3431. "application/json"
  3432. ],
  3433. "tags": [
  3434. "repository"
  3435. ],
  3436. "summary": "Gets the blob of a repository.",
  3437. "operationId": "GetBlob",
  3438. "parameters": [
  3439. {
  3440. "type": "string",
  3441. "description": "owner of the repo",
  3442. "name": "owner",
  3443. "in": "path",
  3444. "required": true
  3445. },
  3446. {
  3447. "type": "string",
  3448. "description": "name of the repo",
  3449. "name": "repo",
  3450. "in": "path",
  3451. "required": true
  3452. },
  3453. {
  3454. "type": "string",
  3455. "description": "sha of the commit",
  3456. "name": "sha",
  3457. "in": "path",
  3458. "required": true
  3459. }
  3460. ],
  3461. "responses": {
  3462. "200": {
  3463. "$ref": "#/responses/GitBlobResponse"
  3464. },
  3465. "400": {
  3466. "$ref": "#/responses/error"
  3467. }
  3468. }
  3469. }
  3470. },
  3471. "/repos/{owner}/{repo}/git/commits/{sha}": {
  3472. "get": {
  3473. "produces": [
  3474. "application/json"
  3475. ],
  3476. "tags": [
  3477. "repository"
  3478. ],
  3479. "summary": "Get a single commit from a repository",
  3480. "operationId": "repoGetSingleCommit",
  3481. "parameters": [
  3482. {
  3483. "type": "string",
  3484. "description": "owner of the repo",
  3485. "name": "owner",
  3486. "in": "path",
  3487. "required": true
  3488. },
  3489. {
  3490. "type": "string",
  3491. "description": "name of the repo",
  3492. "name": "repo",
  3493. "in": "path",
  3494. "required": true
  3495. },
  3496. {
  3497. "type": "string",
  3498. "description": "a git ref or commit sha",
  3499. "name": "sha",
  3500. "in": "path",
  3501. "required": true
  3502. }
  3503. ],
  3504. "responses": {
  3505. "200": {
  3506. "$ref": "#/responses/Commit"
  3507. },
  3508. "404": {
  3509. "$ref": "#/responses/notFound"
  3510. },
  3511. "422": {
  3512. "$ref": "#/responses/validationError"
  3513. }
  3514. }
  3515. }
  3516. },
  3517. "/repos/{owner}/{repo}/git/refs": {
  3518. "get": {
  3519. "produces": [
  3520. "application/json"
  3521. ],
  3522. "tags": [
  3523. "repository"
  3524. ],
  3525. "summary": "Get specified ref or filtered repository's refs",
  3526. "operationId": "repoListAllGitRefs",
  3527. "parameters": [
  3528. {
  3529. "type": "string",
  3530. "description": "owner of the repo",
  3531. "name": "owner",
  3532. "in": "path",
  3533. "required": true
  3534. },
  3535. {
  3536. "type": "string",
  3537. "description": "name of the repo",
  3538. "name": "repo",
  3539. "in": "path",
  3540. "required": true
  3541. }
  3542. ],
  3543. "responses": {
  3544. "200": {
  3545. "$ref": "#/responses/ReferenceList"
  3546. },
  3547. "404": {
  3548. "$ref": "#/responses/notFound"
  3549. }
  3550. }
  3551. }
  3552. },
  3553. "/repos/{owner}/{repo}/git/refs/{ref}": {
  3554. "get": {
  3555. "produces": [
  3556. "application/json"
  3557. ],
  3558. "tags": [
  3559. "repository"
  3560. ],
  3561. "summary": "Get specified ref or filtered repository's refs",
  3562. "operationId": "repoListGitRefs",
  3563. "parameters": [
  3564. {
  3565. "type": "string",
  3566. "description": "owner of the repo",
  3567. "name": "owner",
  3568. "in": "path",
  3569. "required": true
  3570. },
  3571. {
  3572. "type": "string",
  3573. "description": "name of the repo",
  3574. "name": "repo",
  3575. "in": "path",
  3576. "required": true
  3577. },
  3578. {
  3579. "type": "string",
  3580. "description": "part or full name of the ref",
  3581. "name": "ref",
  3582. "in": "path",
  3583. "required": true
  3584. }
  3585. ],
  3586. "responses": {
  3587. "200": {
  3588. "$ref": "#/responses/ReferenceList"
  3589. },
  3590. "404": {
  3591. "$ref": "#/responses/notFound"
  3592. }
  3593. }
  3594. }
  3595. },
  3596. "/repos/{owner}/{repo}/git/tags/{sha}": {
  3597. "get": {
  3598. "produces": [
  3599. "application/json"
  3600. ],
  3601. "tags": [
  3602. "repository"
  3603. ],
  3604. "summary": "Gets the tag object of an annotated tag (not lightweight tags)",
  3605. "operationId": "GetTag",
  3606. "parameters": [
  3607. {
  3608. "type": "string",
  3609. "description": "owner of the repo",
  3610. "name": "owner",
  3611. "in": "path",
  3612. "required": true
  3613. },
  3614. {
  3615. "type": "string",
  3616. "description": "name of the repo",
  3617. "name": "repo",
  3618. "in": "path",
  3619. "required": true
  3620. },
  3621. {
  3622. "type": "string",
  3623. "description": "sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.",
  3624. "name": "sha",
  3625. "in": "path",
  3626. "required": true
  3627. }
  3628. ],
  3629. "responses": {
  3630. "200": {
  3631. "$ref": "#/responses/AnnotatedTag"
  3632. },
  3633. "400": {
  3634. "$ref": "#/responses/error"
  3635. }
  3636. }
  3637. }
  3638. },
  3639. "/repos/{owner}/{repo}/git/trees/{sha}": {
  3640. "get": {
  3641. "produces": [
  3642. "application/json"
  3643. ],
  3644. "tags": [
  3645. "repository"
  3646. ],
  3647. "summary": "Gets the tree of a repository.",
  3648. "operationId": "GetTree",
  3649. "parameters": [
  3650. {
  3651. "type": "string",
  3652. "description": "owner of the repo",
  3653. "name": "owner",
  3654. "in": "path",
  3655. "required": true
  3656. },
  3657. {
  3658. "type": "string",
  3659. "description": "name of the repo",
  3660. "name": "repo",
  3661. "in": "path",
  3662. "required": true
  3663. },
  3664. {
  3665. "type": "string",
  3666. "description": "sha of the commit",
  3667. "name": "sha",
  3668. "in": "path",
  3669. "required": true
  3670. },
  3671. {
  3672. "type": "boolean",
  3673. "description": "show all directories and files",
  3674. "name": "recursive",
  3675. "in": "query"
  3676. },
  3677. {
  3678. "type": "integer",
  3679. "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",
  3680. "name": "page",
  3681. "in": "query"
  3682. },
  3683. {
  3684. "type": "integer",
  3685. "description": "number of items per page",
  3686. "name": "per_page",
  3687. "in": "query"
  3688. }
  3689. ],
  3690. "responses": {
  3691. "200": {
  3692. "$ref": "#/responses/GitTreeResponse"
  3693. },
  3694. "400": {
  3695. "$ref": "#/responses/error"
  3696. }
  3697. }
  3698. }
  3699. },
  3700. "/repos/{owner}/{repo}/hooks": {
  3701. "get": {
  3702. "produces": [
  3703. "application/json"
  3704. ],
  3705. "tags": [
  3706. "repository"
  3707. ],
  3708. "summary": "List the hooks in a repository",
  3709. "operationId": "repoListHooks",
  3710. "parameters": [
  3711. {
  3712. "type": "string",
  3713. "description": "owner of the repo",
  3714. "name": "owner",
  3715. "in": "path",
  3716. "required": true
  3717. },
  3718. {
  3719. "type": "string",
  3720. "description": "name of the repo",
  3721. "name": "repo",
  3722. "in": "path",
  3723. "required": true
  3724. },
  3725. {
  3726. "type": "integer",
  3727. "description": "page number of results to return (1-based)",
  3728. "name": "page",
  3729. "in": "query"
  3730. },
  3731. {
  3732. "type": "integer",
  3733. "description": "page size of results",
  3734. "name": "limit",
  3735. "in": "query"
  3736. }
  3737. ],
  3738. "responses": {
  3739. "200": {
  3740. "$ref": "#/responses/HookList"
  3741. }
  3742. }
  3743. },
  3744. "post": {
  3745. "consumes": [
  3746. "application/json"
  3747. ],
  3748. "produces": [
  3749. "application/json"
  3750. ],
  3751. "tags": [
  3752. "repository"
  3753. ],
  3754. "summary": "Create a hook",
  3755. "operationId": "repoCreateHook",
  3756. "parameters": [
  3757. {
  3758. "type": "string",
  3759. "description": "owner of the repo",
  3760. "name": "owner",
  3761. "in": "path",
  3762. "required": true
  3763. },
  3764. {
  3765. "type": "string",
  3766. "description": "name of the repo",
  3767. "name": "repo",
  3768. "in": "path",
  3769. "required": true
  3770. },
  3771. {
  3772. "name": "body",
  3773. "in": "body",
  3774. "schema": {
  3775. "$ref": "#/definitions/CreateHookOption"
  3776. }
  3777. }
  3778. ],
  3779. "responses": {
  3780. "201": {
  3781. "$ref": "#/responses/Hook"
  3782. }
  3783. }
  3784. }
  3785. },
  3786. "/repos/{owner}/{repo}/hooks/git": {
  3787. "get": {
  3788. "produces": [
  3789. "application/json"
  3790. ],
  3791. "tags": [
  3792. "repository"
  3793. ],
  3794. "summary": "List the Git hooks in a repository",
  3795. "operationId": "repoListGitHooks",
  3796. "parameters": [
  3797. {
  3798. "type": "string",
  3799. "description": "owner of the repo",
  3800. "name": "owner",
  3801. "in": "path",
  3802. "required": true
  3803. },
  3804. {
  3805. "type": "string",
  3806. "description": "name of the repo",
  3807. "name": "repo",
  3808. "in": "path",
  3809. "required": true
  3810. }
  3811. ],
  3812. "responses": {
  3813. "200": {
  3814. "$ref": "#/responses/GitHookList"
  3815. }
  3816. }
  3817. }
  3818. },
  3819. "/repos/{owner}/{repo}/hooks/git/{id}": {
  3820. "get": {
  3821. "produces": [
  3822. "application/json"
  3823. ],
  3824. "tags": [
  3825. "repository"
  3826. ],
  3827. "summary": "Get a Git hook",
  3828. "operationId": "repoGetGitHook",
  3829. "parameters": [
  3830. {
  3831. "type": "string",
  3832. "description": "owner of the repo",
  3833. "name": "owner",
  3834. "in": "path",
  3835. "required": true
  3836. },
  3837. {
  3838. "type": "string",
  3839. "description": "name of the repo",
  3840. "name": "repo",
  3841. "in": "path",
  3842. "required": true
  3843. },
  3844. {
  3845. "type": "string",
  3846. "description": "id of the hook to get",
  3847. "name": "id",
  3848. "in": "path",
  3849. "required": true
  3850. }
  3851. ],
  3852. "responses": {
  3853. "200": {
  3854. "$ref": "#/responses/GitHook"
  3855. },
  3856. "404": {
  3857. "$ref": "#/responses/notFound"
  3858. }
  3859. }
  3860. },
  3861. "delete": {
  3862. "produces": [
  3863. "application/json"
  3864. ],
  3865. "tags": [
  3866. "repository"
  3867. ],
  3868. "summary": "Delete a Git hook in a repository",
  3869. "operationId": "repoDeleteGitHook",
  3870. "parameters": [
  3871. {
  3872. "type": "string",
  3873. "description": "owner of the repo",
  3874. "name": "owner",
  3875. "in": "path",
  3876. "required": true
  3877. },
  3878. {
  3879. "type": "string",
  3880. "description": "name of the repo",
  3881. "name": "repo",
  3882. "in": "path",
  3883. "required": true
  3884. },
  3885. {
  3886. "type": "string",
  3887. "description": "id of the hook to get",
  3888. "name": "id",
  3889. "in": "path",
  3890. "required": true
  3891. }
  3892. ],
  3893. "responses": {
  3894. "204": {
  3895. "$ref": "#/responses/empty"
  3896. },
  3897. "404": {
  3898. "$ref": "#/responses/notFound"
  3899. }
  3900. }
  3901. },
  3902. "patch": {
  3903. "produces": [
  3904. "application/json"
  3905. ],
  3906. "tags": [
  3907. "repository"
  3908. ],
  3909. "summary": "Edit a Git hook in a repository",
  3910. "operationId": "repoEditGitHook",
  3911. "parameters": [
  3912. {
  3913. "type": "string",
  3914. "description": "owner of the repo",
  3915. "name": "owner",
  3916. "in": "path",
  3917. "required": true
  3918. },
  3919. {
  3920. "type": "string",
  3921. "description": "name of the repo",
  3922. "name": "repo",
  3923. "in": "path",
  3924. "required": true
  3925. },
  3926. {
  3927. "type": "string",
  3928. "description": "id of the hook to get",
  3929. "name": "id",
  3930. "in": "path",
  3931. "required": true
  3932. },
  3933. {
  3934. "name": "body",
  3935. "in": "body",
  3936. "schema": {
  3937. "$ref": "#/definitions/EditGitHookOption"
  3938. }
  3939. }
  3940. ],
  3941. "responses": {
  3942. "200": {
  3943. "$ref": "#/responses/GitHook"
  3944. },
  3945. "404": {
  3946. "$ref": "#/responses/notFound"
  3947. }
  3948. }
  3949. }
  3950. },
  3951. "/repos/{owner}/{repo}/hooks/{id}": {
  3952. "get": {
  3953. "produces": [
  3954. "application/json"
  3955. ],
  3956. "tags": [
  3957. "repository"
  3958. ],
  3959. "summary": "Get a hook",
  3960. "operationId": "repoGetHook",
  3961. "parameters": [
  3962. {
  3963. "type": "string",
  3964. "description": "owner of the repo",
  3965. "name": "owner",
  3966. "in": "path",
  3967. "required": true
  3968. },
  3969. {
  3970. "type": "string",
  3971. "description": "name of the repo",
  3972. "name": "repo",
  3973. "in": "path",
  3974. "required": true
  3975. },
  3976. {
  3977. "type": "integer",
  3978. "format": "int64",
  3979. "description": "id of the hook to get",
  3980. "name": "id",
  3981. "in": "path",
  3982. "required": true
  3983. }
  3984. ],
  3985. "responses": {
  3986. "200": {
  3987. "$ref": "#/responses/Hook"
  3988. },
  3989. "404": {
  3990. "$ref": "#/responses/notFound"
  3991. }
  3992. }
  3993. },
  3994. "delete": {
  3995. "produces": [
  3996. "application/json"
  3997. ],
  3998. "tags": [
  3999. "repository"
  4000. ],
  4001. "summary": "Delete a hook in a repository",
  4002. "operationId": "repoDeleteHook",
  4003. "parameters": [
  4004. {
  4005. "type": "string",
  4006. "description": "owner of the repo",
  4007. "name": "owner",
  4008. "in": "path",
  4009. "required": true
  4010. },
  4011. {
  4012. "type": "string",
  4013. "description": "name of the repo",
  4014. "name": "repo",
  4015. "in": "path",
  4016. "required": true
  4017. },
  4018. {
  4019. "type": "integer",
  4020. "format": "int64",
  4021. "description": "id of the hook to delete",
  4022. "name": "id",
  4023. "in": "path",
  4024. "required": true
  4025. }
  4026. ],
  4027. "responses": {
  4028. "204": {
  4029. "$ref": "#/responses/empty"
  4030. },
  4031. "404": {
  4032. "$ref": "#/responses/notFound"
  4033. }
  4034. }
  4035. },
  4036. "patch": {
  4037. "produces": [
  4038. "application/json"
  4039. ],
  4040. "tags": [
  4041. "repository"
  4042. ],
  4043. "summary": "Edit a hook in a repository",
  4044. "operationId": "repoEditHook",
  4045. "parameters": [
  4046. {
  4047. "type": "string",
  4048. "description": "owner of the repo",
  4049. "name": "owner",
  4050. "in": "path",
  4051. "required": true
  4052. },
  4053. {
  4054. "type": "string",
  4055. "description": "name of the repo",
  4056. "name": "repo",
  4057. "in": "path",
  4058. "required": true
  4059. },
  4060. {
  4061. "type": "integer",
  4062. "format": "int64",
  4063. "description": "index of the hook",
  4064. "name": "id",
  4065. "in": "path",
  4066. "required": true
  4067. },
  4068. {
  4069. "name": "body",
  4070. "in": "body",
  4071. "schema": {
  4072. "$ref": "#/definitions/EditHookOption"
  4073. }
  4074. }
  4075. ],
  4076. "responses": {
  4077. "200": {
  4078. "$ref": "#/responses/Hook"
  4079. }
  4080. }
  4081. }
  4082. },
  4083. "/repos/{owner}/{repo}/hooks/{id}/tests": {
  4084. "post": {
  4085. "produces": [
  4086. "application/json"
  4087. ],
  4088. "tags": [
  4089. "repository"
  4090. ],
  4091. "summary": "Test a push webhook",
  4092. "operationId": "repoTestHook",
  4093. "parameters": [
  4094. {
  4095. "type": "string",
  4096. "description": "owner of the repo",
  4097. "name": "owner",
  4098. "in": "path",
  4099. "required": true
  4100. },
  4101. {
  4102. "type": "string",
  4103. "description": "name of the repo",
  4104. "name": "repo",
  4105. "in": "path",
  4106. "required": true
  4107. },
  4108. {
  4109. "type": "integer",
  4110. "format": "int64",
  4111. "description": "id of the hook to test",
  4112. "name": "id",
  4113. "in": "path",
  4114. "required": true
  4115. }
  4116. ],
  4117. "responses": {
  4118. "204": {
  4119. "$ref": "#/responses/empty"
  4120. }
  4121. }
  4122. }
  4123. },
  4124. "/repos/{owner}/{repo}/issue_templates": {
  4125. "get": {
  4126. "produces": [
  4127. "application/json"
  4128. ],
  4129. "tags": [
  4130. "repository"
  4131. ],
  4132. "summary": "Get available issue templates for a repository",
  4133. "operationId": "repoGetIssueTemplates",
  4134. "parameters": [
  4135. {
  4136. "type": "string",
  4137. "description": "owner of the repo",
  4138. "name": "owner",
  4139. "in": "path",
  4140. "required": true
  4141. },
  4142. {
  4143. "type": "string",
  4144. "description": "name of the repo",
  4145. "name": "repo",
  4146. "in": "path",
  4147. "required": true
  4148. }
  4149. ],
  4150. "responses": {
  4151. "200": {
  4152. "$ref": "#/responses/IssueTemplates"
  4153. }
  4154. }
  4155. }
  4156. },
  4157. "/repos/{owner}/{repo}/issues": {
  4158. "get": {
  4159. "produces": [
  4160. "application/json"
  4161. ],
  4162. "tags": [
  4163. "issue"
  4164. ],
  4165. "summary": "List a repository's issues",
  4166. "operationId": "issueListIssues",
  4167. "parameters": [
  4168. {
  4169. "type": "string",
  4170. "description": "owner of the repo",
  4171. "name": "owner",
  4172. "in": "path",
  4173. "required": true
  4174. },
  4175. {
  4176. "type": "string",
  4177. "description": "name of the repo",
  4178. "name": "repo",
  4179. "in": "path",
  4180. "required": true
  4181. },
  4182. {
  4183. "enum": [
  4184. "closed",
  4185. "open",
  4186. "all"
  4187. ],
  4188. "type": "string",
  4189. "description": "whether issue is open or closed",
  4190. "name": "state",
  4191. "in": "query"
  4192. },
  4193. {
  4194. "type": "string",
  4195. "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
  4196. "name": "labels",
  4197. "in": "query"
  4198. },
  4199. {
  4200. "type": "string",
  4201. "description": "search string",
  4202. "name": "q",
  4203. "in": "query"
  4204. },
  4205. {
  4206. "enum": [
  4207. "issues",
  4208. "pulls"
  4209. ],
  4210. "type": "string",
  4211. "description": "filter by type (issues / pulls) if set",
  4212. "name": "type",
  4213. "in": "query"
  4214. },
  4215. {
  4216. "type": "string",
  4217. "description": "comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded",
  4218. "name": "milestones",
  4219. "in": "query"
  4220. },
  4221. {
  4222. "type": "integer",
  4223. "description": "page number of results to return (1-based)",
  4224. "name": "page",
  4225. "in": "query"
  4226. },
  4227. {
  4228. "type": "integer",
  4229. "description": "page size of results",
  4230. "name": "limit",
  4231. "in": "query"
  4232. }
  4233. ],
  4234. "responses": {
  4235. "200": {
  4236. "$ref": "#/responses/IssueList"
  4237. }
  4238. }
  4239. },
  4240. "post": {
  4241. "consumes": [
  4242. "application/json"
  4243. ],
  4244. "produces": [
  4245. "application/json"
  4246. ],
  4247. "tags": [
  4248. "issue"
  4249. ],
  4250. "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.",
  4251. "operationId": "issueCreateIssue",
  4252. "parameters": [
  4253. {
  4254. "type": "string",
  4255. "description": "owner of the repo",
  4256. "name": "owner",
  4257. "in": "path",
  4258. "required": true
  4259. },
  4260. {
  4261. "type": "string",
  4262. "description": "name of the repo",
  4263. "name": "repo",
  4264. "in": "path",
  4265. "required": true
  4266. },
  4267. {
  4268. "name": "body",
  4269. "in": "body",
  4270. "schema": {
  4271. "$ref": "#/definitions/CreateIssueOption"
  4272. }
  4273. }
  4274. ],
  4275. "responses": {
  4276. "201": {
  4277. "$ref": "#/responses/Issue"
  4278. },
  4279. "403": {
  4280. "$ref": "#/responses/forbidden"
  4281. },
  4282. "412": {
  4283. "$ref": "#/responses/error"
  4284. },
  4285. "422": {
  4286. "$ref": "#/responses/validationError"
  4287. }
  4288. }
  4289. }
  4290. },
  4291. "/repos/{owner}/{repo}/issues/comments": {
  4292. "get": {
  4293. "produces": [
  4294. "application/json"
  4295. ],
  4296. "tags": [
  4297. "issue"
  4298. ],
  4299. "summary": "List all comments in a repository",
  4300. "operationId": "issueGetRepoComments",
  4301. "parameters": [
  4302. {
  4303. "type": "string",
  4304. "description": "owner of the repo",
  4305. "name": "owner",
  4306. "in": "path",
  4307. "required": true
  4308. },
  4309. {
  4310. "type": "string",
  4311. "description": "name of the repo",
  4312. "name": "repo",
  4313. "in": "path",
  4314. "required": true
  4315. },
  4316. {
  4317. "type": "string",
  4318. "format": "date-time",
  4319. "description": "if provided, only comments updated since the provided time are returned.",
  4320. "name": "since",
  4321. "in": "query"
  4322. },
  4323. {
  4324. "type": "string",
  4325. "format": "date-time",
  4326. "description": "if provided, only comments updated before the provided time are returned.",
  4327. "name": "before",
  4328. "in": "query"
  4329. },
  4330. {
  4331. "type": "integer",
  4332. "description": "page number of results to return (1-based)",
  4333. "name": "page",
  4334. "in": "query"
  4335. },
  4336. {
  4337. "type": "integer",
  4338. "description": "page size of results",
  4339. "name": "limit",
  4340. "in": "query"
  4341. }
  4342. ],
  4343. "responses": {
  4344. "200": {
  4345. "$ref": "#/responses/CommentList"
  4346. }
  4347. }
  4348. }
  4349. },
  4350. "/repos/{owner}/{repo}/issues/comments/{id}": {
  4351. "get": {
  4352. "consumes": [
  4353. "application/json"
  4354. ],
  4355. "produces": [
  4356. "application/json"
  4357. ],
  4358. "tags": [
  4359. "issue"
  4360. ],
  4361. "summary": "Get a comment",
  4362. "operationId": "issueGetComment",
  4363. "parameters": [
  4364. {
  4365. "type": "string",
  4366. "description": "owner of the repo",
  4367. "name": "owner",
  4368. "in": "path",
  4369. "required": true
  4370. },
  4371. {
  4372. "type": "string",
  4373. "description": "name of the repo",
  4374. "name": "repo",
  4375. "in": "path",
  4376. "required": true
  4377. },
  4378. {
  4379. "type": "integer",
  4380. "format": "int64",
  4381. "description": "id of the comment",
  4382. "name": "id",
  4383. "in": "path",
  4384. "required": true
  4385. }
  4386. ],
  4387. "responses": {
  4388. "200": {
  4389. "$ref": "#/responses/Comment"
  4390. },
  4391. "204": {
  4392. "$ref": "#/responses/empty"
  4393. },
  4394. "403": {
  4395. "$ref": "#/responses/forbidden"
  4396. },
  4397. "404": {
  4398. "$ref": "#/responses/notFound"
  4399. }
  4400. }
  4401. },
  4402. "delete": {
  4403. "tags": [
  4404. "issue"
  4405. ],
  4406. "summary": "Delete a comment",
  4407. "operationId": "issueDeleteComment",
  4408. "parameters": [
  4409. {
  4410. "type": "string",
  4411. "description": "owner of the repo",
  4412. "name": "owner",
  4413. "in": "path",
  4414. "required": true
  4415. },
  4416. {
  4417. "type": "string",
  4418. "description": "name of the repo",
  4419. "name": "repo",
  4420. "in": "path",
  4421. "required": true
  4422. },
  4423. {
  4424. "type": "integer",
  4425. "format": "int64",
  4426. "description": "id of comment to delete",
  4427. "name": "id",
  4428. "in": "path",
  4429. "required": true
  4430. }
  4431. ],
  4432. "responses": {
  4433. "204": {
  4434. "$ref": "#/responses/empty"
  4435. },
  4436. "403": {
  4437. "$ref": "#/responses/forbidden"
  4438. },
  4439. "404": {
  4440. "$ref": "#/responses/notFound"
  4441. }
  4442. }
  4443. },
  4444. "patch": {
  4445. "consumes": [
  4446. "application/json"
  4447. ],
  4448. "produces": [
  4449. "application/json"
  4450. ],
  4451. "tags": [
  4452. "issue"
  4453. ],
  4454. "summary": "Edit a comment",
  4455. "operationId": "issueEditComment",
  4456. "parameters": [
  4457. {
  4458. "type": "string",
  4459. "description": "owner of the repo",
  4460. "name": "owner",
  4461. "in": "path",
  4462. "required": true
  4463. },
  4464. {
  4465. "type": "string",
  4466. "description": "name of the repo",
  4467. "name": "repo",
  4468. "in": "path",
  4469. "required": true
  4470. },
  4471. {
  4472. "type": "integer",
  4473. "format": "int64",
  4474. "description": "id of the comment to edit",
  4475. "name": "id",
  4476. "in": "path",
  4477. "required": true
  4478. },
  4479. {
  4480. "name": "body",
  4481. "in": "body",
  4482. "schema": {
  4483. "$ref": "#/definitions/EditIssueCommentOption"
  4484. }
  4485. }
  4486. ],
  4487. "responses": {
  4488. "200": {
  4489. "$ref": "#/responses/Comment"
  4490. },
  4491. "204": {
  4492. "$ref": "#/responses/empty"
  4493. },
  4494. "403": {
  4495. "$ref": "#/responses/forbidden"
  4496. },
  4497. "404": {
  4498. "$ref": "#/responses/notFound"
  4499. }
  4500. }
  4501. }
  4502. },
  4503. "/repos/{owner}/{repo}/issues/comments/{id}/reactions": {
  4504. "get": {
  4505. "consumes": [
  4506. "application/json"
  4507. ],
  4508. "produces": [
  4509. "application/json"
  4510. ],
  4511. "tags": [
  4512. "issue"
  4513. ],
  4514. "summary": "Get a list of reactions from a comment of an issue",
  4515. "operationId": "issueGetCommentReactions",
  4516. "parameters": [
  4517. {
  4518. "type": "string",
  4519. "description": "owner of the repo",
  4520. "name": "owner",
  4521. "in": "path",
  4522. "required": true
  4523. },
  4524. {
  4525. "type": "string",
  4526. "description": "name of the repo",
  4527. "name": "repo",
  4528. "in": "path",
  4529. "required": true
  4530. },
  4531. {
  4532. "type": "integer",
  4533. "format": "int64",
  4534. "description": "id of the comment to edit",
  4535. "name": "id",
  4536. "in": "path",
  4537. "required": true
  4538. }
  4539. ],
  4540. "responses": {
  4541. "200": {
  4542. "$ref": "#/responses/ReactionList"
  4543. },
  4544. "403": {
  4545. "$ref": "#/responses/forbidden"
  4546. }
  4547. }
  4548. },
  4549. "post": {
  4550. "consumes": [
  4551. "application/json"
  4552. ],
  4553. "produces": [
  4554. "application/json"
  4555. ],
  4556. "tags": [
  4557. "issue"
  4558. ],
  4559. "summary": "Add a reaction to a comment of an issue",
  4560. "operationId": "issuePostCommentReaction",
  4561. "parameters": [
  4562. {
  4563. "type": "string",
  4564. "description": "owner of the repo",
  4565. "name": "owner",
  4566. "in": "path",
  4567. "required": true
  4568. },
  4569. {
  4570. "type": "string",
  4571. "description": "name of the repo",
  4572. "name": "repo",
  4573. "in": "path",
  4574. "required": true
  4575. },
  4576. {
  4577. "type": "integer",
  4578. "format": "int64",
  4579. "description": "id of the comment to edit",
  4580. "name": "id",
  4581. "in": "path",
  4582. "required": true
  4583. },
  4584. {
  4585. "name": "content",
  4586. "in": "body",
  4587. "schema": {
  4588. "$ref": "#/definitions/EditReactionOption"
  4589. }
  4590. }
  4591. ],
  4592. "responses": {
  4593. "200": {
  4594. "$ref": "#/responses/Reaction"
  4595. },
  4596. "201": {
  4597. "$ref": "#/responses/Reaction"
  4598. },
  4599. "403": {
  4600. "$ref": "#/responses/forbidden"
  4601. }
  4602. }
  4603. },
  4604. "delete": {
  4605. "consumes": [
  4606. "application/json"
  4607. ],
  4608. "produces": [
  4609. "application/json"
  4610. ],
  4611. "tags": [
  4612. "issue"
  4613. ],
  4614. "summary": "Remove a reaction from a comment of an issue",
  4615. "operationId": "issueDeleteCommentReaction",
  4616. "parameters": [
  4617. {
  4618. "type": "string",
  4619. "description": "owner of the repo",
  4620. "name": "owner",
  4621. "in": "path",
  4622. "required": true
  4623. },
  4624. {
  4625. "type": "string",
  4626. "description": "name of the repo",
  4627. "name": "repo",
  4628. "in": "path",
  4629. "required": true
  4630. },
  4631. {
  4632. "type": "integer",
  4633. "format": "int64",
  4634. "description": "id of the comment to edit",
  4635. "name": "id",
  4636. "in": "path",
  4637. "required": true
  4638. },
  4639. {
  4640. "name": "content",
  4641. "in": "body",
  4642. "schema": {
  4643. "$ref": "#/definitions/EditReactionOption"
  4644. }
  4645. }
  4646. ],
  4647. "responses": {
  4648. "200": {
  4649. "$ref": "#/responses/empty"
  4650. },
  4651. "403": {
  4652. "$ref": "#/responses/forbidden"
  4653. }
  4654. }
  4655. }
  4656. },
  4657. "/repos/{owner}/{repo}/issues/{index}": {
  4658. "get": {
  4659. "produces": [
  4660. "application/json"
  4661. ],
  4662. "tags": [
  4663. "issue"
  4664. ],
  4665. "summary": "Get an issue",
  4666. "operationId": "issueGetIssue",
  4667. "parameters": [
  4668. {
  4669. "type": "string",
  4670. "description": "owner of the repo",
  4671. "name": "owner",
  4672. "in": "path",
  4673. "required": true
  4674. },
  4675. {
  4676. "type": "string",
  4677. "description": "name of the repo",
  4678. "name": "repo",
  4679. "in": "path",
  4680. "required": true
  4681. },
  4682. {
  4683. "type": "integer",
  4684. "format": "int64",
  4685. "description": "index of the issue to get",
  4686. "name": "index",
  4687. "in": "path",
  4688. "required": true
  4689. }
  4690. ],
  4691. "responses": {
  4692. "200": {
  4693. "$ref": "#/responses/Issue"
  4694. },
  4695. "404": {
  4696. "$ref": "#/responses/notFound"
  4697. }
  4698. }
  4699. },
  4700. "patch": {
  4701. "consumes": [
  4702. "application/json"
  4703. ],
  4704. "produces": [
  4705. "application/json"
  4706. ],
  4707. "tags": [
  4708. "issue"
  4709. ],
  4710. "summary": "Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.",
  4711. "operationId": "issueEditIssue",
  4712. "parameters": [
  4713. {
  4714. "type": "string",
  4715. "description": "owner of the repo",
  4716. "name": "owner",
  4717. "in": "path",
  4718. "required": true
  4719. },
  4720. {
  4721. "type": "string",
  4722. "description": "name of the repo",
  4723. "name": "repo",
  4724. "in": "path",
  4725. "required": true
  4726. },
  4727. {
  4728. "type": "integer",
  4729. "format": "int64",
  4730. "description": "index of the issue to edit",
  4731. "name": "index",
  4732. "in": "path",
  4733. "required": true
  4734. },
  4735. {
  4736. "name": "body",
  4737. "in": "body",
  4738. "schema": {
  4739. "$ref": "#/definitions/EditIssueOption"
  4740. }
  4741. }
  4742. ],
  4743. "responses": {
  4744. "201": {
  4745. "$ref": "#/responses/Issue"
  4746. },
  4747. "403": {
  4748. "$ref": "#/responses/forbidden"
  4749. },
  4750. "404": {
  4751. "$ref": "#/responses/notFound"
  4752. },
  4753. "412": {
  4754. "$ref": "#/responses/error"
  4755. }
  4756. }
  4757. }
  4758. },
  4759. "/repos/{owner}/{repo}/issues/{index}/comments": {
  4760. "get": {
  4761. "produces": [
  4762. "application/json"
  4763. ],
  4764. "tags": [
  4765. "issue"
  4766. ],
  4767. "summary": "List all comments on an issue",
  4768. "operationId": "issueGetComments",
  4769. "parameters": [
  4770. {
  4771. "type": "string",
  4772. "description": "owner of the repo",
  4773. "name": "owner",
  4774. "in": "path",
  4775. "required": true
  4776. },
  4777. {
  4778. "type": "string",
  4779. "description": "name of the repo",
  4780. "name": "repo",
  4781. "in": "path",
  4782. "required": true
  4783. },
  4784. {
  4785. "type": "integer",
  4786. "format": "int64",
  4787. "description": "index of the issue",
  4788. "name": "index",
  4789. "in": "path",
  4790. "required": true
  4791. },
  4792. {
  4793. "type": "string",
  4794. "format": "date-time",
  4795. "description": "if provided, only comments updated since the specified time are returned.",
  4796. "name": "since",
  4797. "in": "query"
  4798. },
  4799. {
  4800. "type": "string",
  4801. "format": "date-time",
  4802. "description": "if provided, only comments updated before the provided time are returned.",
  4803. "name": "before",
  4804. "in": "query"
  4805. }
  4806. ],
  4807. "responses": {
  4808. "200": {
  4809. "$ref": "#/responses/CommentList"
  4810. }
  4811. }
  4812. },
  4813. "post": {
  4814. "consumes": [
  4815. "application/json"
  4816. ],
  4817. "produces": [
  4818. "application/json"
  4819. ],
  4820. "tags": [
  4821. "issue"
  4822. ],
  4823. "summary": "Add a comment to an issue",
  4824. "operationId": "issueCreateComment",
  4825. "parameters": [
  4826. {
  4827. "type": "string",
  4828. "description": "owner of the repo",
  4829. "name": "owner",
  4830. "in": "path",
  4831. "required": true
  4832. },
  4833. {
  4834. "type": "string",
  4835. "description": "name of the repo",
  4836. "name": "repo",
  4837. "in": "path",
  4838. "required": true
  4839. },
  4840. {
  4841. "type": "integer",
  4842. "format": "int64",
  4843. "description": "index of the issue",
  4844. "name": "index",
  4845. "in": "path",
  4846. "required": true
  4847. },
  4848. {
  4849. "name": "body",
  4850. "in": "body",
  4851. "schema": {
  4852. "$ref": "#/definitions/CreateIssueCommentOption"
  4853. }
  4854. }
  4855. ],
  4856. "responses": {
  4857. "201": {
  4858. "$ref": "#/responses/Comment"
  4859. },
  4860. "403": {
  4861. "$ref": "#/responses/forbidden"
  4862. }
  4863. }
  4864. }
  4865. },
  4866. "/repos/{owner}/{repo}/issues/{index}/comments/{id}": {
  4867. "delete": {
  4868. "tags": [
  4869. "issue"
  4870. ],
  4871. "summary": "Delete a comment",
  4872. "operationId": "issueDeleteCommentDeprecated",
  4873. "deprecated": true,
  4874. "parameters": [
  4875. {
  4876. "type": "string",
  4877. "description": "owner of the repo",
  4878. "name": "owner",
  4879. "in": "path",
  4880. "required": true
  4881. },
  4882. {
  4883. "type": "string",
  4884. "description": "name of the repo",
  4885. "name": "repo",
  4886. "in": "path",
  4887. "required": true
  4888. },
  4889. {
  4890. "type": "integer",
  4891. "description": "this parameter is ignored",
  4892. "name": "index",
  4893. "in": "path",
  4894. "required": true
  4895. },
  4896. {
  4897. "type": "integer",
  4898. "format": "int64",
  4899. "description": "id of comment to delete",
  4900. "name": "id",
  4901. "in": "path",
  4902. "required": true
  4903. }
  4904. ],
  4905. "responses": {
  4906. "204": {
  4907. "$ref": "#/responses/empty"
  4908. },
  4909. "403": {
  4910. "$ref": "#/responses/forbidden"
  4911. },
  4912. "404": {
  4913. "$ref": "#/responses/notFound"
  4914. }
  4915. }
  4916. },
  4917. "patch": {
  4918. "consumes": [
  4919. "application/json"
  4920. ],
  4921. "produces": [
  4922. "application/json"
  4923. ],
  4924. "tags": [
  4925. "issue"
  4926. ],
  4927. "summary": "Edit a comment",
  4928. "operationId": "issueEditCommentDeprecated",
  4929. "deprecated": true,
  4930. "parameters": [
  4931. {
  4932. "type": "string",
  4933. "description": "owner of the repo",
  4934. "name": "owner",
  4935. "in": "path",
  4936. "required": true
  4937. },
  4938. {
  4939. "type": "string",
  4940. "description": "name of the repo",
  4941. "name": "repo",
  4942. "in": "path",
  4943. "required": true
  4944. },
  4945. {
  4946. "type": "integer",
  4947. "description": "this parameter is ignored",
  4948. "name": "index",
  4949. "in": "path",
  4950. "required": true
  4951. },
  4952. {
  4953. "type": "integer",
  4954. "format": "int64",
  4955. "description": "id of the comment to edit",
  4956. "name": "id",
  4957. "in": "path",
  4958. "required": true
  4959. },
  4960. {
  4961. "name": "body",
  4962. "in": "body",
  4963. "schema": {
  4964. "$ref": "#/definitions/EditIssueCommentOption"
  4965. }
  4966. }
  4967. ],
  4968. "responses": {
  4969. "200": {
  4970. "$ref": "#/responses/Comment"
  4971. },
  4972. "204": {
  4973. "$ref": "#/responses/empty"
  4974. },
  4975. "403": {
  4976. "$ref": "#/responses/forbidden"
  4977. },
  4978. "404": {
  4979. "$ref": "#/responses/notFound"
  4980. }
  4981. }
  4982. }
  4983. },
  4984. "/repos/{owner}/{repo}/issues/{index}/deadline": {
  4985. "post": {
  4986. "consumes": [
  4987. "application/json"
  4988. ],
  4989. "produces": [
  4990. "application/json"
  4991. ],
  4992. "tags": [
  4993. "issue"
  4994. ],
  4995. "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.",
  4996. "operationId": "issueEditIssueDeadline",
  4997. "parameters": [
  4998. {
  4999. "type": "string",
  5000. "description": "owner of the repo",
  5001. "name": "owner",
  5002. "in": "path",
  5003. "required": true
  5004. },
  5005. {
  5006. "type": "string",
  5007. "description": "name of the repo",
  5008. "name": "repo",
  5009. "in": "path",
  5010. "required": true
  5011. },
  5012. {
  5013. "type": "integer",
  5014. "format": "int64",
  5015. "description": "index of the issue to create or update a deadline on",
  5016. "name": "index",
  5017. "in": "path",
  5018. "required": true
  5019. },
  5020. {
  5021. "name": "body",
  5022. "in": "body",
  5023. "schema": {
  5024. "$ref": "#/definitions/EditDeadlineOption"
  5025. }
  5026. }
  5027. ],
  5028. "responses": {
  5029. "201": {
  5030. "$ref": "#/responses/IssueDeadline"
  5031. },
  5032. "403": {
  5033. "$ref": "#/responses/forbidden"
  5034. },
  5035. "404": {
  5036. "$ref": "#/responses/notFound"
  5037. }
  5038. }
  5039. }
  5040. },
  5041. "/repos/{owner}/{repo}/issues/{index}/labels": {
  5042. "get": {
  5043. "produces": [
  5044. "application/json"
  5045. ],
  5046. "tags": [
  5047. "issue"
  5048. ],
  5049. "summary": "Get an issue's labels",
  5050. "operationId": "issueGetLabels",
  5051. "parameters": [
  5052. {
  5053. "type": "string",
  5054. "description": "owner of the repo",
  5055. "name": "owner",
  5056. "in": "path",
  5057. "required": true
  5058. },
  5059. {
  5060. "type": "string",
  5061. "description": "name of the repo",
  5062. "name": "repo",
  5063. "in": "path",
  5064. "required": true
  5065. },
  5066. {
  5067. "type": "integer",
  5068. "format": "int64",
  5069. "description": "index of the issue",
  5070. "name": "index",
  5071. "in": "path",
  5072. "required": true
  5073. }
  5074. ],
  5075. "responses": {
  5076. "200": {
  5077. "$ref": "#/responses/LabelList"
  5078. },
  5079. "404": {
  5080. "$ref": "#/responses/notFound"
  5081. }
  5082. }
  5083. },
  5084. "put": {
  5085. "consumes": [
  5086. "application/json"
  5087. ],
  5088. "produces": [
  5089. "application/json"
  5090. ],
  5091. "tags": [
  5092. "issue"
  5093. ],
  5094. "summary": "Replace an issue's labels",
  5095. "operationId": "issueReplaceLabels",
  5096. "parameters": [
  5097. {
  5098. "type": "string",
  5099. "description": "owner of the repo",
  5100. "name": "owner",
  5101. "in": "path",
  5102. "required": true
  5103. },
  5104. {
  5105. "type": "string",
  5106. "description": "name of the repo",
  5107. "name": "repo",
  5108. "in": "path",
  5109. "required": true
  5110. },
  5111. {
  5112. "type": "integer",
  5113. "format": "int64",
  5114. "description": "index of the issue",
  5115. "name": "index",
  5116. "in": "path",
  5117. "required": true
  5118. },
  5119. {
  5120. "name": "body",
  5121. "in": "body",
  5122. "schema": {
  5123. "$ref": "#/definitions/IssueLabelsOption"
  5124. }
  5125. }
  5126. ],
  5127. "responses": {
  5128. "200": {
  5129. "$ref": "#/responses/LabelList"
  5130. },
  5131. "403": {
  5132. "$ref": "#/responses/forbidden"
  5133. }
  5134. }
  5135. },
  5136. "post": {
  5137. "consumes": [
  5138. "application/json"
  5139. ],
  5140. "produces": [
  5141. "application/json"
  5142. ],
  5143. "tags": [
  5144. "issue"
  5145. ],
  5146. "summary": "Add a label to an issue",
  5147. "operationId": "issueAddLabel",
  5148. "parameters": [
  5149. {
  5150. "type": "string",
  5151. "description": "owner of the repo",
  5152. "name": "owner",
  5153. "in": "path",
  5154. "required": true
  5155. },
  5156. {
  5157. "type": "string",
  5158. "description": "name of the repo",
  5159. "name": "repo",
  5160. "in": "path",
  5161. "required": true
  5162. },
  5163. {
  5164. "type": "integer",
  5165. "format": "int64",
  5166. "description": "index of the issue",
  5167. "name": "index",
  5168. "in": "path",
  5169. "required": true
  5170. },
  5171. {
  5172. "name": "body",
  5173. "in": "body",
  5174. "schema": {
  5175. "$ref": "#/definitions/IssueLabelsOption"
  5176. }
  5177. }
  5178. ],
  5179. "responses": {
  5180. "200": {
  5181. "$ref": "#/responses/LabelList"
  5182. },
  5183. "403": {
  5184. "$ref": "#/responses/forbidden"
  5185. }
  5186. }
  5187. },
  5188. "delete": {
  5189. "produces": [
  5190. "application/json"
  5191. ],
  5192. "tags": [
  5193. "issue"
  5194. ],
  5195. "summary": "Remove all labels from an issue",
  5196. "operationId": "issueClearLabels",
  5197. "parameters": [
  5198. {
  5199. "type": "string",
  5200. "description": "owner of the repo",
  5201. "name": "owner",
  5202. "in": "path",
  5203. "required": true
  5204. },
  5205. {
  5206. "type": "string",
  5207. "description": "name of the repo",
  5208. "name": "repo",
  5209. "in": "path",
  5210. "required": true
  5211. },
  5212. {
  5213. "type": "integer",
  5214. "format": "int64",
  5215. "description": "index of the issue",
  5216. "name": "index",
  5217. "in": "path",
  5218. "required": true
  5219. }
  5220. ],
  5221. "responses": {
  5222. "204": {
  5223. "$ref": "#/responses/empty"
  5224. },
  5225. "403": {
  5226. "$ref": "#/responses/forbidden"
  5227. }
  5228. }
  5229. }
  5230. },
  5231. "/repos/{owner}/{repo}/issues/{index}/labels/{id}": {
  5232. "delete": {
  5233. "produces": [
  5234. "application/json"
  5235. ],
  5236. "tags": [
  5237. "issue"
  5238. ],
  5239. "summary": "Remove a label from an issue",
  5240. "operationId": "issueRemoveLabel",
  5241. "parameters": [
  5242. {
  5243. "type": "string",
  5244. "description": "owner of the repo",
  5245. "name": "owner",
  5246. "in": "path",
  5247. "required": true
  5248. },
  5249. {
  5250. "type": "string",
  5251. "description": "name of the repo",
  5252. "name": "repo",
  5253. "in": "path",
  5254. "required": true
  5255. },
  5256. {
  5257. "type": "integer",
  5258. "format": "int64",
  5259. "description": "index of the issue",
  5260. "name": "index",
  5261. "in": "path",
  5262. "required": true
  5263. },
  5264. {
  5265. "type": "integer",
  5266. "format": "int64",
  5267. "description": "id of the label to remove",
  5268. "name": "id",
  5269. "in": "path",
  5270. "required": true
  5271. }
  5272. ],
  5273. "responses": {
  5274. "204": {
  5275. "$ref": "#/responses/empty"
  5276. },
  5277. "403": {
  5278. "$ref": "#/responses/forbidden"
  5279. },
  5280. "422": {
  5281. "$ref": "#/responses/validationError"
  5282. }
  5283. }
  5284. }
  5285. },
  5286. "/repos/{owner}/{repo}/issues/{index}/reactions": {
  5287. "get": {
  5288. "consumes": [
  5289. "application/json"
  5290. ],
  5291. "produces": [
  5292. "application/json"
  5293. ],
  5294. "tags": [
  5295. "issue"
  5296. ],
  5297. "summary": "Get a list reactions of an issue",
  5298. "operationId": "issueGetIssueReactions",
  5299. "parameters": [
  5300. {
  5301. "type": "string",
  5302. "description": "owner of the repo",
  5303. "name": "owner",
  5304. "in": "path",
  5305. "required": true
  5306. },
  5307. {
  5308. "type": "string",
  5309. "description": "name of the repo",
  5310. "name": "repo",
  5311. "in": "path",
  5312. "required": true
  5313. },
  5314. {
  5315. "type": "integer",
  5316. "format": "int64",
  5317. "description": "index of the issue",
  5318. "name": "index",
  5319. "in": "path",
  5320. "required": true
  5321. },
  5322. {
  5323. "type": "integer",
  5324. "description": "page number of results to return (1-based)",
  5325. "name": "page",
  5326. "in": "query"
  5327. },
  5328. {
  5329. "type": "integer",
  5330. "description": "page size of results",
  5331. "name": "limit",
  5332. "in": "query"
  5333. }
  5334. ],
  5335. "responses": {
  5336. "200": {
  5337. "$ref": "#/responses/ReactionList"
  5338. },
  5339. "403": {
  5340. "$ref": "#/responses/forbidden"
  5341. }
  5342. }
  5343. },
  5344. "post": {
  5345. "consumes": [
  5346. "application/json"
  5347. ],
  5348. "produces": [
  5349. "application/json"
  5350. ],
  5351. "tags": [
  5352. "issue"
  5353. ],
  5354. "summary": "Add a reaction to an issue",
  5355. "operationId": "issuePostIssueReaction",
  5356. "parameters": [
  5357. {
  5358. "type": "string",
  5359. "description": "owner of the repo",
  5360. "name": "owner",
  5361. "in": "path",
  5362. "required": true
  5363. },
  5364. {
  5365. "type": "string",
  5366. "description": "name of the repo",
  5367. "name": "repo",
  5368. "in": "path",
  5369. "required": true
  5370. },
  5371. {
  5372. "type": "integer",
  5373. "format": "int64",
  5374. "description": "index of the issue",
  5375. "name": "index",
  5376. "in": "path",
  5377. "required": true
  5378. },
  5379. {
  5380. "name": "content",
  5381. "in": "body",
  5382. "schema": {
  5383. "$ref": "#/definitions/EditReactionOption"
  5384. }
  5385. }
  5386. ],
  5387. "responses": {
  5388. "200": {
  5389. "$ref": "#/responses/Reaction"
  5390. },
  5391. "201": {
  5392. "$ref": "#/responses/Reaction"
  5393. },
  5394. "403": {
  5395. "$ref": "#/responses/forbidden"
  5396. }
  5397. }
  5398. },
  5399. "delete": {
  5400. "consumes": [
  5401. "application/json"
  5402. ],
  5403. "produces": [
  5404. "application/json"
  5405. ],
  5406. "tags": [
  5407. "issue"
  5408. ],
  5409. "summary": "Remove a reaction from an issue",
  5410. "operationId": "issueDeleteIssueReaction",
  5411. "parameters": [
  5412. {
  5413. "type": "string",
  5414. "description": "owner of the repo",
  5415. "name": "owner",
  5416. "in": "path",
  5417. "required": true
  5418. },
  5419. {
  5420. "type": "string",
  5421. "description": "name of the repo",
  5422. "name": "repo",
  5423. "in": "path",
  5424. "required": true
  5425. },
  5426. {
  5427. "type": "integer",
  5428. "format": "int64",
  5429. "description": "index of the issue",
  5430. "name": "index",
  5431. "in": "path",
  5432. "required": true
  5433. },
  5434. {
  5435. "name": "content",
  5436. "in": "body",
  5437. "schema": {
  5438. "$ref": "#/definitions/EditReactionOption"
  5439. }
  5440. }
  5441. ],
  5442. "responses": {
  5443. "200": {
  5444. "$ref": "#/responses/empty"
  5445. },
  5446. "403": {
  5447. "$ref": "#/responses/forbidden"
  5448. }
  5449. }
  5450. }
  5451. },
  5452. "/repos/{owner}/{repo}/issues/{index}/stopwatch/delete": {
  5453. "delete": {
  5454. "consumes": [
  5455. "application/json"
  5456. ],
  5457. "produces": [
  5458. "application/json"
  5459. ],
  5460. "tags": [
  5461. "issue"
  5462. ],
  5463. "summary": "Delete an issue's existing stopwatch.",
  5464. "operationId": "issueDeleteStopWatch",
  5465. "parameters": [
  5466. {
  5467. "type": "string",
  5468. "description": "owner of the repo",
  5469. "name": "owner",
  5470. "in": "path",
  5471. "required": true
  5472. },
  5473. {
  5474. "type": "string",
  5475. "description": "name of the repo",
  5476. "name": "repo",
  5477. "in": "path",
  5478. "required": true
  5479. },
  5480. {
  5481. "type": "integer",
  5482. "format": "int64",
  5483. "description": "index of the issue to stop the stopwatch on",
  5484. "name": "index",
  5485. "in": "path",
  5486. "required": true
  5487. }
  5488. ],
  5489. "responses": {
  5490. "204": {
  5491. "$ref": "#/responses/empty"
  5492. },
  5493. "403": {
  5494. "description": "Not repo writer, user does not have rights to toggle stopwatch"
  5495. },
  5496. "404": {
  5497. "$ref": "#/responses/notFound"
  5498. },
  5499. "409": {
  5500. "description": "Cannot cancel a non existent stopwatch"
  5501. }
  5502. }
  5503. }
  5504. },
  5505. "/repos/{owner}/{repo}/issues/{index}/stopwatch/start": {
  5506. "post": {
  5507. "consumes": [
  5508. "application/json"
  5509. ],
  5510. "produces": [
  5511. "application/json"
  5512. ],
  5513. "tags": [
  5514. "issue"
  5515. ],
  5516. "summary": "Start stopwatch on an issue.",
  5517. "operationId": "issueStartStopWatch",
  5518. "parameters": [
  5519. {
  5520. "type": "string",
  5521. "description": "owner of the repo",
  5522. "name": "owner",
  5523. "in": "path",
  5524. "required": true
  5525. },
  5526. {
  5527. "type": "string",
  5528. "description": "name of the repo",
  5529. "name": "repo",
  5530. "in": "path",
  5531. "required": true
  5532. },
  5533. {
  5534. "type": "integer",
  5535. "format": "int64",
  5536. "description": "index of the issue to create the stopwatch on",
  5537. "name": "index",
  5538. "in": "path",
  5539. "required": true
  5540. }
  5541. ],
  5542. "responses": {
  5543. "201": {
  5544. "$ref": "#/responses/empty"
  5545. },
  5546. "403": {
  5547. "description": "Not repo writer, user does not have rights to toggle stopwatch"
  5548. },
  5549. "404": {
  5550. "$ref": "#/responses/notFound"
  5551. },
  5552. "409": {
  5553. "description": "Cannot start a stopwatch again if it already exists"
  5554. }
  5555. }
  5556. }
  5557. },
  5558. "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop": {
  5559. "post": {
  5560. "consumes": [
  5561. "application/json"
  5562. ],
  5563. "produces": [
  5564. "application/json"
  5565. ],
  5566. "tags": [
  5567. "issue"
  5568. ],
  5569. "summary": "Stop an issue's existing stopwatch.",
  5570. "operationId": "issueStopStopWatch",
  5571. "parameters": [
  5572. {
  5573. "type": "string",
  5574. "description": "owner of the repo",
  5575. "name": "owner",
  5576. "in": "path",
  5577. "required": true
  5578. },
  5579. {
  5580. "type": "string",
  5581. "description": "name of the repo",
  5582. "name": "repo",
  5583. "in": "path",
  5584. "required": true
  5585. },
  5586. {
  5587. "type": "integer",
  5588. "format": "int64",
  5589. "description": "index of the issue to stop the stopwatch on",
  5590. "name": "index",
  5591. "in": "path",
  5592. "required": true
  5593. }
  5594. ],
  5595. "responses": {
  5596. "201": {
  5597. "$ref": "#/responses/empty"
  5598. },
  5599. "403": {
  5600. "description": "Not repo writer, user does not have rights to toggle stopwatch"
  5601. },
  5602. "404": {
  5603. "$ref": "#/responses/notFound"
  5604. },
  5605. "409": {
  5606. "description": "Cannot stop a non existent stopwatch"
  5607. }
  5608. }
  5609. }
  5610. },
  5611. "/repos/{owner}/{repo}/issues/{index}/subscriptions": {
  5612. "get": {
  5613. "consumes": [
  5614. "application/json"
  5615. ],
  5616. "produces": [
  5617. "application/json"
  5618. ],
  5619. "tags": [
  5620. "issue"
  5621. ],
  5622. "summary": "Get users who subscribed on an issue.",
  5623. "operationId": "issueSubscriptions",
  5624. "parameters": [
  5625. {
  5626. "type": "string",
  5627. "description": "owner of the repo",
  5628. "name": "owner",
  5629. "in": "path",
  5630. "required": true
  5631. },
  5632. {
  5633. "type": "string",
  5634. "description": "name of the repo",
  5635. "name": "repo",
  5636. "in": "path",
  5637. "required": true
  5638. },
  5639. {
  5640. "type": "integer",
  5641. "format": "int64",
  5642. "description": "index of the issue",
  5643. "name": "index",
  5644. "in": "path",
  5645. "required": true
  5646. },
  5647. {
  5648. "type": "integer",
  5649. "description": "page number of results to return (1-based)",
  5650. "name": "page",
  5651. "in": "query"
  5652. },
  5653. {
  5654. "type": "integer",
  5655. "description": "page size of results",
  5656. "name": "limit",
  5657. "in": "query"
  5658. }
  5659. ],
  5660. "responses": {
  5661. "200": {
  5662. "$ref": "#/responses/UserList"
  5663. },
  5664. "404": {
  5665. "$ref": "#/responses/notFound"
  5666. }
  5667. }
  5668. }
  5669. },
  5670. "/repos/{owner}/{repo}/issues/{index}/subscriptions/check": {
  5671. "get": {
  5672. "consumes": [
  5673. "application/json"
  5674. ],
  5675. "produces": [
  5676. "application/json"
  5677. ],
  5678. "tags": [
  5679. "issue"
  5680. ],
  5681. "summary": "Check if user is subscribed to an issue",
  5682. "operationId": "issueCheckSubscription",
  5683. "parameters": [
  5684. {
  5685. "type": "string",
  5686. "description": "owner of the repo",
  5687. "name": "owner",
  5688. "in": "path",
  5689. "required": true
  5690. },
  5691. {
  5692. "type": "string",
  5693. "description": "name of the repo",
  5694. "name": "repo",
  5695. "in": "path",
  5696. "required": true
  5697. },
  5698. {
  5699. "type": "integer",
  5700. "format": "int64",
  5701. "description": "index of the issue",
  5702. "name": "index",
  5703. "in": "path",
  5704. "required": true
  5705. }
  5706. ],
  5707. "responses": {
  5708. "200": {
  5709. "$ref": "#/responses/WatchInfo"
  5710. },
  5711. "404": {
  5712. "$ref": "#/responses/notFound"
  5713. }
  5714. }
  5715. }
  5716. },
  5717. "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}": {
  5718. "put": {
  5719. "consumes": [
  5720. "application/json"
  5721. ],
  5722. "produces": [
  5723. "application/json"
  5724. ],
  5725. "tags": [
  5726. "issue"
  5727. ],
  5728. "summary": "Subscribe user to issue",
  5729. "operationId": "issueAddSubscription",
  5730. "parameters": [
  5731. {
  5732. "type": "string",
  5733. "description": "owner of the repo",
  5734. "name": "owner",
  5735. "in": "path",
  5736. "required": true
  5737. },
  5738. {
  5739. "type": "string",
  5740. "description": "name of the repo",
  5741. "name": "repo",
  5742. "in": "path",
  5743. "required": true
  5744. },
  5745. {
  5746. "type": "integer",
  5747. "format": "int64",
  5748. "description": "index of the issue",
  5749. "name": "index",
  5750. "in": "path",
  5751. "required": true
  5752. },
  5753. {
  5754. "type": "string",
  5755. "description": "user to subscribe",
  5756. "name": "user",
  5757. "in": "path",
  5758. "required": true
  5759. }
  5760. ],
  5761. "responses": {
  5762. "200": {
  5763. "description": "Already subscribed"
  5764. },
  5765. "201": {
  5766. "description": "Successfully Subscribed"
  5767. },
  5768. "304": {
  5769. "description": "User can only subscribe itself if he is no admin"
  5770. },
  5771. "404": {
  5772. "$ref": "#/responses/notFound"
  5773. }
  5774. }
  5775. },
  5776. "delete": {
  5777. "consumes": [
  5778. "application/json"
  5779. ],
  5780. "produces": [
  5781. "application/json"
  5782. ],
  5783. "tags": [
  5784. "issue"
  5785. ],
  5786. "summary": "Unsubscribe user from issue",
  5787. "operationId": "issueDeleteSubscription",
  5788. "parameters": [
  5789. {
  5790. "type": "string",
  5791. "description": "owner of the repo",
  5792. "name": "owner",
  5793. "in": "path",
  5794. "required": true
  5795. },
  5796. {
  5797. "type": "string",
  5798. "description": "name of the repo",
  5799. "name": "repo",
  5800. "in": "path",
  5801. "required": true
  5802. },
  5803. {
  5804. "type": "integer",
  5805. "format": "int64",
  5806. "description": "index of the issue",
  5807. "name": "index",
  5808. "in": "path",
  5809. "required": true
  5810. },
  5811. {
  5812. "type": "string",
  5813. "description": "user witch unsubscribe",
  5814. "name": "user",
  5815. "in": "path",
  5816. "required": true
  5817. }
  5818. ],
  5819. "responses": {
  5820. "200": {
  5821. "description": "Already unsubscribed"
  5822. },
  5823. "201": {
  5824. "description": "Successfully Unsubscribed"
  5825. },
  5826. "304": {
  5827. "description": "User can only subscribe itself if he is no admin"
  5828. },
  5829. "404": {
  5830. "$ref": "#/responses/notFound"
  5831. }
  5832. }
  5833. }
  5834. },
  5835. "/repos/{owner}/{repo}/issues/{index}/times": {
  5836. "get": {
  5837. "produces": [
  5838. "application/json"
  5839. ],
  5840. "tags": [
  5841. "issue"
  5842. ],
  5843. "summary": "List an issue's tracked times",
  5844. "operationId": "issueTrackedTimes",
  5845. "parameters": [
  5846. {
  5847. "type": "string",
  5848. "description": "owner of the repo",
  5849. "name": "owner",
  5850. "in": "path",
  5851. "required": true
  5852. },
  5853. {
  5854. "type": "string",
  5855. "description": "name of the repo",
  5856. "name": "repo",
  5857. "in": "path",
  5858. "required": true
  5859. },
  5860. {
  5861. "type": "integer",
  5862. "format": "int64",
  5863. "description": "index of the issue",
  5864. "name": "index",
  5865. "in": "path",
  5866. "required": true
  5867. },
  5868. {
  5869. "type": "string",
  5870. "description": "optional filter by user (available for issue managers)",
  5871. "name": "user",
  5872. "in": "query"
  5873. },
  5874. {
  5875. "type": "string",
  5876. "format": "date-time",
  5877. "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
  5878. "name": "since",
  5879. "in": "query"
  5880. },
  5881. {
  5882. "type": "string",
  5883. "format": "date-time",
  5884. "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
  5885. "name": "before",
  5886. "in": "query"
  5887. },
  5888. {
  5889. "type": "integer",
  5890. "description": "page number of results to return (1-based)",
  5891. "name": "page",
  5892. "in": "query"
  5893. },
  5894. {
  5895. "type": "integer",
  5896. "description": "page size of results",
  5897. "name": "limit",
  5898. "in": "query"
  5899. }
  5900. ],
  5901. "responses": {
  5902. "200": {
  5903. "$ref": "#/responses/TrackedTimeList"
  5904. },
  5905. "404": {
  5906. "$ref": "#/responses/notFound"
  5907. }
  5908. }
  5909. },
  5910. "post": {
  5911. "consumes": [
  5912. "application/json"
  5913. ],
  5914. "produces": [
  5915. "application/json"
  5916. ],
  5917. "tags": [
  5918. "issue"
  5919. ],
  5920. "summary": "Add tracked time to a issue",
  5921. "operationId": "issueAddTime",
  5922. "parameters": [
  5923. {
  5924. "type": "string",
  5925. "description": "owner of the repo",
  5926. "name": "owner",
  5927. "in": "path",
  5928. "required": true
  5929. },
  5930. {
  5931. "type": "string",
  5932. "description": "name of the repo",
  5933. "name": "repo",
  5934. "in": "path",
  5935. "required": true
  5936. },
  5937. {
  5938. "type": "integer",
  5939. "format": "int64",
  5940. "description": "index of the issue",
  5941. "name": "index",
  5942. "in": "path",
  5943. "required": true
  5944. },
  5945. {
  5946. "name": "body",
  5947. "in": "body",
  5948. "schema": {
  5949. "$ref": "#/definitions/AddTimeOption"
  5950. }
  5951. }
  5952. ],
  5953. "responses": {
  5954. "200": {
  5955. "$ref": "#/responses/TrackedTime"
  5956. },
  5957. "400": {
  5958. "$ref": "#/responses/error"
  5959. },
  5960. "403": {
  5961. "$ref": "#/responses/forbidden"
  5962. }
  5963. }
  5964. },
  5965. "delete": {
  5966. "consumes": [
  5967. "application/json"
  5968. ],
  5969. "produces": [
  5970. "application/json"
  5971. ],
  5972. "tags": [
  5973. "issue"
  5974. ],
  5975. "summary": "Reset a tracked time of an issue",
  5976. "operationId": "issueResetTime",
  5977. "parameters": [
  5978. {
  5979. "type": "string",
  5980. "description": "owner of the repo",
  5981. "name": "owner",
  5982. "in": "path",
  5983. "required": true
  5984. },
  5985. {
  5986. "type": "string",
  5987. "description": "name of the repo",
  5988. "name": "repo",
  5989. "in": "path",
  5990. "required": true
  5991. },
  5992. {
  5993. "type": "integer",
  5994. "format": "int64",
  5995. "description": "index of the issue to add tracked time to",
  5996. "name": "index",
  5997. "in": "path",
  5998. "required": true
  5999. }
  6000. ],
  6001. "responses": {
  6002. "204": {
  6003. "$ref": "#/responses/empty"
  6004. },
  6005. "400": {
  6006. "$ref": "#/responses/error"
  6007. },
  6008. "403": {
  6009. "$ref": "#/responses/forbidden"
  6010. }
  6011. }
  6012. }
  6013. },
  6014. "/repos/{owner}/{repo}/issues/{index}/times/{id}": {
  6015. "delete": {
  6016. "consumes": [
  6017. "application/json"
  6018. ],
  6019. "produces": [
  6020. "application/json"
  6021. ],
  6022. "tags": [
  6023. "issue"
  6024. ],
  6025. "summary": "Delete specific tracked time",
  6026. "operationId": "issueDeleteTime",
  6027. "parameters": [
  6028. {
  6029. "type": "string",
  6030. "description": "owner of the repo",
  6031. "name": "owner",
  6032. "in": "path",
  6033. "required": true
  6034. },
  6035. {
  6036. "type": "string",
  6037. "description": "name of the repo",
  6038. "name": "repo",
  6039. "in": "path",
  6040. "required": true
  6041. },
  6042. {
  6043. "type": "integer",
  6044. "format": "int64",
  6045. "description": "index of the issue",
  6046. "name": "index",
  6047. "in": "path",
  6048. "required": true
  6049. },
  6050. {
  6051. "type": "integer",
  6052. "format": "int64",
  6053. "description": "id of time to delete",
  6054. "name": "id",
  6055. "in": "path",
  6056. "required": true
  6057. }
  6058. ],
  6059. "responses": {
  6060. "204": {
  6061. "$ref": "#/responses/empty"
  6062. },
  6063. "400": {
  6064. "$ref": "#/responses/error"
  6065. },
  6066. "403": {
  6067. "$ref": "#/responses/forbidden"
  6068. }
  6069. }
  6070. }
  6071. },
  6072. "/repos/{owner}/{repo}/keys": {
  6073. "get": {
  6074. "produces": [
  6075. "application/json"
  6076. ],
  6077. "tags": [
  6078. "repository"
  6079. ],
  6080. "summary": "List a repository's keys",
  6081. "operationId": "repoListKeys",
  6082. "parameters": [
  6083. {
  6084. "type": "string",
  6085. "description": "owner of the repo",
  6086. "name": "owner",
  6087. "in": "path",
  6088. "required": true
  6089. },
  6090. {
  6091. "type": "string",
  6092. "description": "name of the repo",
  6093. "name": "repo",
  6094. "in": "path",
  6095. "required": true
  6096. },
  6097. {
  6098. "type": "integer",
  6099. "description": "the key_id to search for",
  6100. "name": "key_id",
  6101. "in": "query"
  6102. },
  6103. {
  6104. "type": "string",
  6105. "description": "fingerprint of the key",
  6106. "name": "fingerprint",
  6107. "in": "query"
  6108. },
  6109. {
  6110. "type": "integer",
  6111. "description": "page number of results to return (1-based)",
  6112. "name": "page",
  6113. "in": "query"
  6114. },
  6115. {
  6116. "type": "integer",
  6117. "description": "page size of results",
  6118. "name": "limit",
  6119. "in": "query"
  6120. }
  6121. ],
  6122. "responses": {
  6123. "200": {
  6124. "$ref": "#/responses/DeployKeyList"
  6125. }
  6126. }
  6127. },
  6128. "post": {
  6129. "consumes": [
  6130. "application/json"
  6131. ],
  6132. "produces": [
  6133. "application/json"
  6134. ],
  6135. "tags": [
  6136. "repository"
  6137. ],
  6138. "summary": "Add a key to a repository",
  6139. "operationId": "repoCreateKey",
  6140. "parameters": [
  6141. {
  6142. "type": "string",
  6143. "description": "owner of the repo",
  6144. "name": "owner",
  6145. "in": "path",
  6146. "required": true
  6147. },
  6148. {
  6149. "type": "string",
  6150. "description": "name of the repo",
  6151. "name": "repo",
  6152. "in": "path",
  6153. "required": true
  6154. },
  6155. {
  6156. "name": "body",
  6157. "in": "body",
  6158. "schema": {
  6159. "$ref": "#/definitions/CreateKeyOption"
  6160. }
  6161. }
  6162. ],
  6163. "responses": {
  6164. "201": {
  6165. "$ref": "#/responses/DeployKey"
  6166. },
  6167. "422": {
  6168. "$ref": "#/responses/validationError"
  6169. }
  6170. }
  6171. }
  6172. },
  6173. "/repos/{owner}/{repo}/keys/{id}": {
  6174. "get": {
  6175. "produces": [
  6176. "application/json"
  6177. ],
  6178. "tags": [
  6179. "repository"
  6180. ],
  6181. "summary": "Get a repository's key by id",
  6182. "operationId": "repoGetKey",
  6183. "parameters": [
  6184. {
  6185. "type": "string",
  6186. "description": "owner of the repo",
  6187. "name": "owner",
  6188. "in": "path",
  6189. "required": true
  6190. },
  6191. {
  6192. "type": "string",
  6193. "description": "name of the repo",
  6194. "name": "repo",
  6195. "in": "path",
  6196. "required": true
  6197. },
  6198. {
  6199. "type": "integer",
  6200. "format": "int64",
  6201. "description": "id of the key to get",
  6202. "name": "id",
  6203. "in": "path",
  6204. "required": true
  6205. }
  6206. ],
  6207. "responses": {
  6208. "200": {
  6209. "$ref": "#/responses/DeployKey"
  6210. }
  6211. }
  6212. },
  6213. "delete": {
  6214. "tags": [
  6215. "repository"
  6216. ],
  6217. "summary": "Delete a key from a repository",
  6218. "operationId": "repoDeleteKey",
  6219. "parameters": [
  6220. {
  6221. "type": "string",
  6222. "description": "owner of the repo",
  6223. "name": "owner",
  6224. "in": "path",
  6225. "required": true
  6226. },
  6227. {
  6228. "type": "string",
  6229. "description": "name of the repo",
  6230. "name": "repo",
  6231. "in": "path",
  6232. "required": true
  6233. },
  6234. {
  6235. "type": "integer",
  6236. "format": "int64",
  6237. "description": "id of the key to delete",
  6238. "name": "id",
  6239. "in": "path",
  6240. "required": true
  6241. }
  6242. ],
  6243. "responses": {
  6244. "204": {
  6245. "$ref": "#/responses/empty"
  6246. },
  6247. "403": {
  6248. "$ref": "#/responses/forbidden"
  6249. }
  6250. }
  6251. }
  6252. },
  6253. "/repos/{owner}/{repo}/labels": {
  6254. "get": {
  6255. "produces": [
  6256. "application/json"
  6257. ],
  6258. "tags": [
  6259. "issue"
  6260. ],
  6261. "summary": "Get all of a repository's labels",
  6262. "operationId": "issueListLabels",
  6263. "parameters": [
  6264. {
  6265. "type": "string",
  6266. "description": "owner of the repo",
  6267. "name": "owner",
  6268. "in": "path",
  6269. "required": true
  6270. },
  6271. {
  6272. "type": "string",
  6273. "description": "name of the repo",
  6274. "name": "repo",
  6275. "in": "path",
  6276. "required": true
  6277. },
  6278. {
  6279. "type": "integer",
  6280. "description": "page number of results to return (1-based)",
  6281. "name": "page",
  6282. "in": "query"
  6283. },
  6284. {
  6285. "type": "integer",
  6286. "description": "page size of results",
  6287. "name": "limit",
  6288. "in": "query"
  6289. }
  6290. ],
  6291. "responses": {
  6292. "200": {
  6293. "$ref": "#/responses/LabelList"
  6294. }
  6295. }
  6296. },
  6297. "post": {
  6298. "consumes": [
  6299. "application/json"
  6300. ],
  6301. "produces": [
  6302. "application/json"
  6303. ],
  6304. "tags": [
  6305. "issue"
  6306. ],
  6307. "summary": "Create a label",
  6308. "operationId": "issueCreateLabel",
  6309. "parameters": [
  6310. {
  6311. "type": "string",
  6312. "description": "owner of the repo",
  6313. "name": "owner",
  6314. "in": "path",
  6315. "required": true
  6316. },
  6317. {
  6318. "type": "string",
  6319. "description": "name of the repo",
  6320. "name": "repo",
  6321. "in": "path",
  6322. "required": true
  6323. },
  6324. {
  6325. "name": "body",
  6326. "in": "body",
  6327. "schema": {
  6328. "$ref": "#/definitions/CreateLabelOption"
  6329. }
  6330. }
  6331. ],
  6332. "responses": {
  6333. "201": {
  6334. "$ref": "#/responses/Label"
  6335. },
  6336. "422": {
  6337. "$ref": "#/responses/validationError"
  6338. }
  6339. }
  6340. }
  6341. },
  6342. "/repos/{owner}/{repo}/labels/{id}": {
  6343. "get": {
  6344. "produces": [
  6345. "application/json"
  6346. ],
  6347. "tags": [
  6348. "issue"
  6349. ],
  6350. "summary": "Get a single label",
  6351. "operationId": "issueGetLabel",
  6352. "parameters": [
  6353. {
  6354. "type": "string",
  6355. "description": "owner of the repo",
  6356. "name": "owner",
  6357. "in": "path",
  6358. "required": true
  6359. },
  6360. {
  6361. "type": "string",
  6362. "description": "name of the repo",
  6363. "name": "repo",
  6364. "in": "path",
  6365. "required": true
  6366. },
  6367. {
  6368. "type": "integer",
  6369. "format": "int64",
  6370. "description": "id of the label to get",
  6371. "name": "id",
  6372. "in": "path",
  6373. "required": true
  6374. }
  6375. ],
  6376. "responses": {
  6377. "200": {
  6378. "$ref": "#/responses/Label"
  6379. }
  6380. }
  6381. },
  6382. "delete": {
  6383. "tags": [
  6384. "issue"
  6385. ],
  6386. "summary": "Delete a label",
  6387. "operationId": "issueDeleteLabel",
  6388. "parameters": [
  6389. {
  6390. "type": "string",
  6391. "description": "owner of the repo",
  6392. "name": "owner",
  6393. "in": "path",
  6394. "required": true
  6395. },
  6396. {
  6397. "type": "string",
  6398. "description": "name of the repo",
  6399. "name": "repo",
  6400. "in": "path",
  6401. "required": true
  6402. },
  6403. {
  6404. "type": "integer",
  6405. "format": "int64",
  6406. "description": "id of the label to delete",
  6407. "name": "id",
  6408. "in": "path",
  6409. "required": true
  6410. }
  6411. ],
  6412. "responses": {
  6413. "204": {
  6414. "$ref": "#/responses/empty"
  6415. }
  6416. }
  6417. },
  6418. "patch": {
  6419. "consumes": [
  6420. "application/json"
  6421. ],
  6422. "produces": [
  6423. "application/json"
  6424. ],
  6425. "tags": [
  6426. "issue"
  6427. ],
  6428. "summary": "Update a label",
  6429. "operationId": "issueEditLabel",
  6430. "parameters": [
  6431. {
  6432. "type": "string",
  6433. "description": "owner of the repo",
  6434. "name": "owner",
  6435. "in": "path",
  6436. "required": true
  6437. },
  6438. {
  6439. "type": "string",
  6440. "description": "name of the repo",
  6441. "name": "repo",
  6442. "in": "path",
  6443. "required": true
  6444. },
  6445. {
  6446. "type": "integer",
  6447. "format": "int64",
  6448. "description": "id of the label to edit",
  6449. "name": "id",
  6450. "in": "path",
  6451. "required": true
  6452. },
  6453. {
  6454. "name": "body",
  6455. "in": "body",
  6456. "schema": {
  6457. "$ref": "#/definitions/EditLabelOption"
  6458. }
  6459. }
  6460. ],
  6461. "responses": {
  6462. "200": {
  6463. "$ref": "#/responses/Label"
  6464. },
  6465. "422": {
  6466. "$ref": "#/responses/validationError"
  6467. }
  6468. }
  6469. }
  6470. },
  6471. "/repos/{owner}/{repo}/languages": {
  6472. "get": {
  6473. "produces": [
  6474. "application/json"
  6475. ],
  6476. "tags": [
  6477. "repository"
  6478. ],
  6479. "summary": "Get languages and number of bytes of code written",
  6480. "operationId": "repoGetLanguages",
  6481. "parameters": [
  6482. {
  6483. "type": "string",
  6484. "description": "owner of the repo",
  6485. "name": "owner",
  6486. "in": "path",
  6487. "required": true
  6488. },
  6489. {
  6490. "type": "string",
  6491. "description": "name of the repo",
  6492. "name": "repo",
  6493. "in": "path",
  6494. "required": true
  6495. }
  6496. ],
  6497. "responses": {
  6498. "200": {
  6499. "$ref": "#/responses/LanguageStatistics"
  6500. },
  6501. "404": {
  6502. "$ref": "#/responses/notFound"
  6503. }
  6504. }
  6505. }
  6506. },
  6507. "/repos/{owner}/{repo}/milestones": {
  6508. "get": {
  6509. "produces": [
  6510. "application/json"
  6511. ],
  6512. "tags": [
  6513. "issue"
  6514. ],
  6515. "summary": "Get all of a repository's opened milestones",
  6516. "operationId": "issueGetMilestonesList",
  6517. "parameters": [
  6518. {
  6519. "type": "string",
  6520. "description": "owner of the repo",
  6521. "name": "owner",
  6522. "in": "path",
  6523. "required": true
  6524. },
  6525. {
  6526. "type": "string",
  6527. "description": "name of the repo",
  6528. "name": "repo",
  6529. "in": "path",
  6530. "required": true
  6531. },
  6532. {
  6533. "type": "string",
  6534. "description": "Milestone state, Recognised values are open, closed and all. Defaults to \"open\"",
  6535. "name": "state",
  6536. "in": "query"
  6537. },
  6538. {
  6539. "type": "string",
  6540. "description": "filter by milestone name",
  6541. "name": "name",
  6542. "in": "query"
  6543. },
  6544. {
  6545. "type": "integer",
  6546. "description": "page number of results to return (1-based)",
  6547. "name": "page",
  6548. "in": "query"
  6549. },
  6550. {
  6551. "type": "integer",
  6552. "description": "page size of results",
  6553. "name": "limit",
  6554. "in": "query"
  6555. }
  6556. ],
  6557. "responses": {
  6558. "200": {
  6559. "$ref": "#/responses/MilestoneList"
  6560. }
  6561. }
  6562. },
  6563. "post": {
  6564. "consumes": [
  6565. "application/json"
  6566. ],
  6567. "produces": [
  6568. "application/json"
  6569. ],
  6570. "tags": [
  6571. "issue"
  6572. ],
  6573. "summary": "Create a milestone",
  6574. "operationId": "issueCreateMilestone",
  6575. "parameters": [
  6576. {
  6577. "type": "string",
  6578. "description": "owner of the repo",
  6579. "name": "owner",
  6580. "in": "path",
  6581. "required": true
  6582. },
  6583. {
  6584. "type": "string",
  6585. "description": "name of the repo",
  6586. "name": "repo",
  6587. "in": "path",
  6588. "required": true
  6589. },
  6590. {
  6591. "name": "body",
  6592. "in": "body",
  6593. "schema": {
  6594. "$ref": "#/definitions/CreateMilestoneOption"
  6595. }
  6596. }
  6597. ],
  6598. "responses": {
  6599. "201": {
  6600. "$ref": "#/responses/Milestone"
  6601. }
  6602. }
  6603. }
  6604. },
  6605. "/repos/{owner}/{repo}/milestones/{id}": {
  6606. "get": {
  6607. "produces": [
  6608. "application/json"
  6609. ],
  6610. "tags": [
  6611. "issue"
  6612. ],
  6613. "summary": "Get a milestone",
  6614. "operationId": "issueGetMilestone",
  6615. "parameters": [
  6616. {
  6617. "type": "string",
  6618. "description": "owner of the repo",
  6619. "name": "owner",
  6620. "in": "path",
  6621. "required": true
  6622. },
  6623. {
  6624. "type": "string",
  6625. "description": "name of the repo",
  6626. "name": "repo",
  6627. "in": "path",
  6628. "required": true
  6629. },
  6630. {
  6631. "type": "string",
  6632. "description": "the milestone to get, identified by ID and if not available by name",
  6633. "name": "id",
  6634. "in": "path",
  6635. "required": true
  6636. }
  6637. ],
  6638. "responses": {
  6639. "200": {
  6640. "$ref": "#/responses/Milestone"
  6641. }
  6642. }
  6643. },
  6644. "delete": {
  6645. "tags": [
  6646. "issue"
  6647. ],
  6648. "summary": "Delete a milestone",
  6649. "operationId": "issueDeleteMilestone",
  6650. "parameters": [
  6651. {
  6652. "type": "string",
  6653. "description": "owner of the repo",
  6654. "name": "owner",
  6655. "in": "path",
  6656. "required": true
  6657. },
  6658. {
  6659. "type": "string",
  6660. "description": "name of the repo",
  6661. "name": "repo",
  6662. "in": "path",
  6663. "required": true
  6664. },
  6665. {
  6666. "type": "string",
  6667. "description": "the milestone to delete, identified by ID and if not available by name",
  6668. "name": "id",
  6669. "in": "path",
  6670. "required": true
  6671. }
  6672. ],
  6673. "responses": {
  6674. "204": {
  6675. "$ref": "#/responses/empty"
  6676. }
  6677. }
  6678. },
  6679. "patch": {
  6680. "consumes": [
  6681. "application/json"
  6682. ],
  6683. "produces": [
  6684. "application/json"
  6685. ],
  6686. "tags": [
  6687. "issue"
  6688. ],
  6689. "summary": "Update a milestone",
  6690. "operationId": "issueEditMilestone",
  6691. "parameters": [
  6692. {
  6693. "type": "string",
  6694. "description": "owner of the repo",
  6695. "name": "owner",
  6696. "in": "path",
  6697. "required": true
  6698. },
  6699. {
  6700. "type": "string",
  6701. "description": "name of the repo",
  6702. "name": "repo",
  6703. "in": "path",
  6704. "required": true
  6705. },
  6706. {
  6707. "type": "string",
  6708. "description": "the milestone to edit, identified by ID and if not available by name",
  6709. "name": "id",
  6710. "in": "path",
  6711. "required": true
  6712. },
  6713. {
  6714. "name": "body",
  6715. "in": "body",
  6716. "schema": {
  6717. "$ref": "#/definitions/EditMilestoneOption"
  6718. }
  6719. }
  6720. ],
  6721. "responses": {
  6722. "200": {
  6723. "$ref": "#/responses/Milestone"
  6724. }
  6725. }
  6726. }
  6727. },
  6728. "/repos/{owner}/{repo}/mirror-sync": {
  6729. "post": {
  6730. "produces": [
  6731. "application/json"
  6732. ],
  6733. "tags": [
  6734. "repository"
  6735. ],
  6736. "summary": "Sync a mirrored repository",
  6737. "operationId": "repoMirrorSync",
  6738. "parameters": [
  6739. {
  6740. "type": "string",
  6741. "description": "owner of the repo to sync",
  6742. "name": "owner",
  6743. "in": "path",
  6744. "required": true
  6745. },
  6746. {
  6747. "type": "string",
  6748. "description": "name of the repo to sync",
  6749. "name": "repo",
  6750. "in": "path",
  6751. "required": true
  6752. }
  6753. ],
  6754. "responses": {
  6755. "200": {
  6756. "$ref": "#/responses/empty"
  6757. },
  6758. "403": {
  6759. "$ref": "#/responses/forbidden"
  6760. }
  6761. }
  6762. }
  6763. },
  6764. "/repos/{owner}/{repo}/notifications": {
  6765. "get": {
  6766. "consumes": [
  6767. "application/json"
  6768. ],
  6769. "produces": [
  6770. "application/json"
  6771. ],
  6772. "tags": [
  6773. "notification"
  6774. ],
  6775. "summary": "List users's notification threads on a specific repo",
  6776. "operationId": "notifyGetRepoList",
  6777. "parameters": [
  6778. {
  6779. "type": "string",
  6780. "description": "owner of the repo",
  6781. "name": "owner",
  6782. "in": "path",
  6783. "required": true
  6784. },
  6785. {
  6786. "type": "string",
  6787. "description": "name of the repo",
  6788. "name": "repo",
  6789. "in": "path",
  6790. "required": true
  6791. },
  6792. {
  6793. "type": "string",
  6794. "description": "If true, show notifications marked as read. Default value is false",
  6795. "name": "all",
  6796. "in": "query"
  6797. },
  6798. {
  6799. "type": "array",
  6800. "items": {
  6801. "type": "string"
  6802. },
  6803. "collectionFormat": "multi",
  6804. "description": "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread \u0026 pinned",
  6805. "name": "status-types",
  6806. "in": "query"
  6807. },
  6808. {
  6809. "type": "string",
  6810. "format": "date-time",
  6811. "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format",
  6812. "name": "since",
  6813. "in": "query"
  6814. },
  6815. {
  6816. "type": "string",
  6817. "format": "date-time",
  6818. "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format",
  6819. "name": "before",
  6820. "in": "query"
  6821. },
  6822. {
  6823. "type": "integer",
  6824. "description": "page number of results to return (1-based)",
  6825. "name": "page",
  6826. "in": "query"
  6827. },
  6828. {
  6829. "type": "integer",
  6830. "description": "page size of results",
  6831. "name": "limit",
  6832. "in": "query"
  6833. }
  6834. ],
  6835. "responses": {
  6836. "200": {
  6837. "$ref": "#/responses/NotificationThreadList"
  6838. }
  6839. }
  6840. },
  6841. "put": {
  6842. "consumes": [
  6843. "application/json"
  6844. ],
  6845. "produces": [
  6846. "application/json"
  6847. ],
  6848. "tags": [
  6849. "notification"
  6850. ],
  6851. "summary": "Mark notification threads as read, pinned or unread on a specific repo",
  6852. "operationId": "notifyReadRepoList",
  6853. "parameters": [
  6854. {
  6855. "type": "string",
  6856. "description": "owner of the repo",
  6857. "name": "owner",
  6858. "in": "path",
  6859. "required": true
  6860. },
  6861. {
  6862. "type": "string",
  6863. "description": "name of the repo",
  6864. "name": "repo",
  6865. "in": "path",
  6866. "required": true
  6867. },
  6868. {
  6869. "type": "string",
  6870. "description": "If true, mark all notifications on this repo. Default value is false",
  6871. "name": "all",
  6872. "in": "query"
  6873. },
  6874. {
  6875. "type": "array",
  6876. "items": {
  6877. "type": "string"
  6878. },
  6879. "collectionFormat": "multi",
  6880. "description": "Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.",
  6881. "name": "status-types",
  6882. "in": "query"
  6883. },
  6884. {
  6885. "type": "string",
  6886. "description": "Status to mark notifications as. Defaults to read.",
  6887. "name": "to-status",
  6888. "in": "query"
  6889. },
  6890. {
  6891. "type": "string",
  6892. "format": "date-time",
  6893. "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated.",
  6894. "name": "last_read_at",
  6895. "in": "query"
  6896. }
  6897. ],
  6898. "responses": {
  6899. "205": {
  6900. "$ref": "#/responses/empty"
  6901. }
  6902. }
  6903. }
  6904. },
  6905. "/repos/{owner}/{repo}/pulls": {
  6906. "get": {
  6907. "produces": [
  6908. "application/json"
  6909. ],
  6910. "tags": [
  6911. "repository"
  6912. ],
  6913. "summary": "List a repo's pull requests",
  6914. "operationId": "repoListPullRequests",
  6915. "parameters": [
  6916. {
  6917. "type": "string",
  6918. "description": "owner of the repo",
  6919. "name": "owner",
  6920. "in": "path",
  6921. "required": true
  6922. },
  6923. {
  6924. "type": "string",
  6925. "description": "name of the repo",
  6926. "name": "repo",
  6927. "in": "path",
  6928. "required": true
  6929. },
  6930. {
  6931. "enum": [
  6932. "closed",
  6933. "open",
  6934. "all"
  6935. ],
  6936. "type": "string",
  6937. "description": "State of pull request: open or closed (optional)",
  6938. "name": "state",
  6939. "in": "query"
  6940. },
  6941. {
  6942. "enum": [
  6943. "oldest",
  6944. "recentupdate",
  6945. "leastupdate",
  6946. "mostcomment",
  6947. "leastcomment",
  6948. "priority"
  6949. ],
  6950. "type": "string",
  6951. "description": "Type of sort",
  6952. "name": "sort",
  6953. "in": "query"
  6954. },
  6955. {
  6956. "type": "integer",
  6957. "format": "int64",
  6958. "description": "ID of the milestone",
  6959. "name": "milestone",
  6960. "in": "query"
  6961. },
  6962. {
  6963. "type": "array",
  6964. "items": {
  6965. "type": "integer",
  6966. "format": "int64"
  6967. },
  6968. "collectionFormat": "multi",
  6969. "description": "Label IDs",
  6970. "name": "labels",
  6971. "in": "query"
  6972. },
  6973. {
  6974. "type": "integer",
  6975. "description": "page number of results to return (1-based)",
  6976. "name": "page",
  6977. "in": "query"
  6978. },
  6979. {
  6980. "type": "integer",
  6981. "description": "page size of results",
  6982. "name": "limit",
  6983. "in": "query"
  6984. }
  6985. ],
  6986. "responses": {
  6987. "200": {
  6988. "$ref": "#/responses/PullRequestList"
  6989. }
  6990. }
  6991. },
  6992. "post": {
  6993. "consumes": [
  6994. "application/json"
  6995. ],
  6996. "produces": [
  6997. "application/json"
  6998. ],
  6999. "tags": [
  7000. "repository"
  7001. ],
  7002. "summary": "Create a pull request",
  7003. "operationId": "repoCreatePullRequest",
  7004. "parameters": [
  7005. {
  7006. "type": "string",
  7007. "description": "owner of the repo",
  7008. "name": "owner",
  7009. "in": "path",
  7010. "required": true
  7011. },
  7012. {
  7013. "type": "string",
  7014. "description": "name of the repo",
  7015. "name": "repo",
  7016. "in": "path",
  7017. "required": true
  7018. },
  7019. {
  7020. "name": "body",
  7021. "in": "body",
  7022. "schema": {
  7023. "$ref": "#/definitions/CreatePullRequestOption"
  7024. }
  7025. }
  7026. ],
  7027. "responses": {
  7028. "201": {
  7029. "$ref": "#/responses/PullRequest"
  7030. },
  7031. "409": {
  7032. "$ref": "#/responses/error"
  7033. },
  7034. "422": {
  7035. "$ref": "#/responses/validationError"
  7036. }
  7037. }
  7038. }
  7039. },
  7040. "/repos/{owner}/{repo}/pulls/{index}": {
  7041. "get": {
  7042. "produces": [
  7043. "application/json"
  7044. ],
  7045. "tags": [
  7046. "repository"
  7047. ],
  7048. "summary": "Get a pull request",
  7049. "operationId": "repoGetPullRequest",
  7050. "parameters": [
  7051. {
  7052. "type": "string",
  7053. "description": "owner of the repo",
  7054. "name": "owner",
  7055. "in": "path",
  7056. "required": true
  7057. },
  7058. {
  7059. "type": "string",
  7060. "description": "name of the repo",
  7061. "name": "repo",
  7062. "in": "path",
  7063. "required": true
  7064. },
  7065. {
  7066. "type": "integer",
  7067. "format": "int64",
  7068. "description": "index of the pull request to get",
  7069. "name": "index",
  7070. "in": "path",
  7071. "required": true
  7072. }
  7073. ],
  7074. "responses": {
  7075. "200": {
  7076. "$ref": "#/responses/PullRequest"
  7077. },
  7078. "404": {
  7079. "$ref": "#/responses/notFound"
  7080. }
  7081. }
  7082. },
  7083. "patch": {
  7084. "consumes": [
  7085. "application/json"
  7086. ],
  7087. "produces": [
  7088. "application/json"
  7089. ],
  7090. "tags": [
  7091. "repository"
  7092. ],
  7093. "summary": "Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.",
  7094. "operationId": "repoEditPullRequest",
  7095. "parameters": [
  7096. {
  7097. "type": "string",
  7098. "description": "owner of the repo",
  7099. "name": "owner",
  7100. "in": "path",
  7101. "required": true
  7102. },
  7103. {
  7104. "type": "string",
  7105. "description": "name of the repo",
  7106. "name": "repo",
  7107. "in": "path",
  7108. "required": true
  7109. },
  7110. {
  7111. "type": "integer",
  7112. "format": "int64",
  7113. "description": "index of the pull request to edit",
  7114. "name": "index",
  7115. "in": "path",
  7116. "required": true
  7117. },
  7118. {
  7119. "name": "body",
  7120. "in": "body",
  7121. "schema": {
  7122. "$ref": "#/definitions/EditPullRequestOption"
  7123. }
  7124. }
  7125. ],
  7126. "responses": {
  7127. "201": {
  7128. "$ref": "#/responses/PullRequest"
  7129. },
  7130. "403": {
  7131. "$ref": "#/responses/forbidden"
  7132. },
  7133. "409": {
  7134. "$ref": "#/responses/error"
  7135. },
  7136. "412": {
  7137. "$ref": "#/responses/error"
  7138. },
  7139. "422": {
  7140. "$ref": "#/responses/validationError"
  7141. }
  7142. }
  7143. }
  7144. },
  7145. "/repos/{owner}/{repo}/pulls/{index}.diff": {
  7146. "get": {
  7147. "produces": [
  7148. "text/plain"
  7149. ],
  7150. "tags": [
  7151. "repository"
  7152. ],
  7153. "summary": "Get a pull request diff",
  7154. "operationId": "repoDownloadPullDiff",
  7155. "parameters": [
  7156. {
  7157. "type": "string",
  7158. "description": "owner of the repo",
  7159. "name": "owner",
  7160. "in": "path",
  7161. "required": true
  7162. },
  7163. {
  7164. "type": "string",
  7165. "description": "name of the repo",
  7166. "name": "repo",
  7167. "in": "path",
  7168. "required": true
  7169. },
  7170. {
  7171. "type": "integer",
  7172. "format": "int64",
  7173. "description": "index of the pull request to get",
  7174. "name": "index",
  7175. "in": "path",
  7176. "required": true
  7177. }
  7178. ],
  7179. "responses": {
  7180. "200": {
  7181. "$ref": "#/responses/string"
  7182. },
  7183. "404": {
  7184. "$ref": "#/responses/notFound"
  7185. }
  7186. }
  7187. }
  7188. },
  7189. "/repos/{owner}/{repo}/pulls/{index}.patch": {
  7190. "get": {
  7191. "produces": [
  7192. "text/plain"
  7193. ],
  7194. "tags": [
  7195. "repository"
  7196. ],
  7197. "summary": "Get a pull request patch file",
  7198. "operationId": "repoDownloadPullPatch",
  7199. "parameters": [
  7200. {
  7201. "type": "string",
  7202. "description": "owner of the repo",
  7203. "name": "owner",
  7204. "in": "path",
  7205. "required": true
  7206. },
  7207. {
  7208. "type": "string",
  7209. "description": "name of the repo",
  7210. "name": "repo",
  7211. "in": "path",
  7212. "required": true
  7213. },
  7214. {
  7215. "type": "integer",
  7216. "format": "int64",
  7217. "description": "index of the pull request to get",
  7218. "name": "index",
  7219. "in": "path",
  7220. "required": true
  7221. }
  7222. ],
  7223. "responses": {
  7224. "200": {
  7225. "$ref": "#/responses/string"
  7226. },
  7227. "404": {
  7228. "$ref": "#/responses/notFound"
  7229. }
  7230. }
  7231. }
  7232. },
  7233. "/repos/{owner}/{repo}/pulls/{index}/merge": {
  7234. "get": {
  7235. "produces": [
  7236. "application/json"
  7237. ],
  7238. "tags": [
  7239. "repository"
  7240. ],
  7241. "summary": "Check if a pull request has been merged",
  7242. "operationId": "repoPullRequestIsMerged",
  7243. "parameters": [
  7244. {
  7245. "type": "string",
  7246. "description": "owner of the repo",
  7247. "name": "owner",
  7248. "in": "path",
  7249. "required": true
  7250. },
  7251. {
  7252. "type": "string",
  7253. "description": "name of the repo",
  7254. "name": "repo",
  7255. "in": "path",
  7256. "required": true
  7257. },
  7258. {
  7259. "type": "integer",
  7260. "format": "int64",
  7261. "description": "index of the pull request",
  7262. "name": "index",
  7263. "in": "path",
  7264. "required": true
  7265. }
  7266. ],
  7267. "responses": {
  7268. "204": {
  7269. "description": "pull request has been merged"
  7270. },
  7271. "404": {
  7272. "description": "pull request has not been merged"
  7273. }
  7274. }
  7275. },
  7276. "post": {
  7277. "produces": [
  7278. "application/json"
  7279. ],
  7280. "tags": [
  7281. "repository"
  7282. ],
  7283. "summary": "Merge a pull request",
  7284. "operationId": "repoMergePullRequest",
  7285. "parameters": [
  7286. {
  7287. "type": "string",
  7288. "description": "owner of the repo",
  7289. "name": "owner",
  7290. "in": "path",
  7291. "required": true
  7292. },
  7293. {
  7294. "type": "string",
  7295. "description": "name of the repo",
  7296. "name": "repo",
  7297. "in": "path",
  7298. "required": true
  7299. },
  7300. {
  7301. "type": "integer",
  7302. "format": "int64",
  7303. "description": "index of the pull request to merge",
  7304. "name": "index",
  7305. "in": "path",
  7306. "required": true
  7307. },
  7308. {
  7309. "name": "body",
  7310. "in": "body",
  7311. "schema": {
  7312. "$ref": "#/definitions/MergePullRequestOption"
  7313. }
  7314. }
  7315. ],
  7316. "responses": {
  7317. "200": {
  7318. "$ref": "#/responses/empty"
  7319. },
  7320. "405": {
  7321. "$ref": "#/responses/empty"
  7322. },
  7323. "409": {
  7324. "$ref": "#/responses/error"
  7325. }
  7326. }
  7327. }
  7328. },
  7329. "/repos/{owner}/{repo}/pulls/{index}/requested_reviewers": {
  7330. "post": {
  7331. "produces": [
  7332. "application/json"
  7333. ],
  7334. "tags": [
  7335. "repository"
  7336. ],
  7337. "summary": "create review requests for a pull request",
  7338. "operationId": "repoCreatePullReviewRequests",
  7339. "parameters": [
  7340. {
  7341. "type": "string",
  7342. "description": "owner of the repo",
  7343. "name": "owner",
  7344. "in": "path",
  7345. "required": true
  7346. },
  7347. {
  7348. "type": "string",
  7349. "description": "name of the repo",
  7350. "name": "repo",
  7351. "in": "path",
  7352. "required": true
  7353. },
  7354. {
  7355. "type": "integer",
  7356. "format": "int64",
  7357. "description": "index of the pull request",
  7358. "name": "index",
  7359. "in": "path",
  7360. "required": true
  7361. },
  7362. {
  7363. "name": "body",
  7364. "in": "body",
  7365. "required": true,
  7366. "schema": {
  7367. "$ref": "#/definitions/PullReviewRequestOptions"
  7368. }
  7369. }
  7370. ],
  7371. "responses": {
  7372. "201": {
  7373. "$ref": "#/responses/PullReviewList"
  7374. },
  7375. "404": {
  7376. "$ref": "#/responses/notFound"
  7377. },
  7378. "422": {
  7379. "$ref": "#/responses/validationError"
  7380. }
  7381. }
  7382. },
  7383. "delete": {
  7384. "produces": [
  7385. "application/json"
  7386. ],
  7387. "tags": [
  7388. "repository"
  7389. ],
  7390. "summary": "cancel review requests for a pull request",
  7391. "operationId": "repoDeletePullReviewRequests",
  7392. "parameters": [
  7393. {
  7394. "type": "string",
  7395. "description": "owner of the repo",
  7396. "name": "owner",
  7397. "in": "path",
  7398. "required": true
  7399. },
  7400. {
  7401. "type": "string",
  7402. "description": "name of the repo",
  7403. "name": "repo",
  7404. "in": "path",
  7405. "required": true
  7406. },
  7407. {
  7408. "type": "integer",
  7409. "format": "int64",
  7410. "description": "index of the pull request",
  7411. "name": "index",
  7412. "in": "path",
  7413. "required": true
  7414. },
  7415. {
  7416. "name": "body",
  7417. "in": "body",
  7418. "required": true,
  7419. "schema": {
  7420. "$ref": "#/definitions/PullReviewRequestOptions"
  7421. }
  7422. }
  7423. ],
  7424. "responses": {
  7425. "204": {
  7426. "$ref": "#/responses/empty"
  7427. },
  7428. "404": {
  7429. "$ref": "#/responses/notFound"
  7430. },
  7431. "422": {
  7432. "$ref": "#/responses/validationError"
  7433. }
  7434. }
  7435. }
  7436. },
  7437. "/repos/{owner}/{repo}/pulls/{index}/reviews": {
  7438. "get": {
  7439. "produces": [
  7440. "application/json"
  7441. ],
  7442. "tags": [
  7443. "repository"
  7444. ],
  7445. "summary": "List all reviews for a pull request",
  7446. "operationId": "repoListPullReviews",
  7447. "parameters": [
  7448. {
  7449. "type": "string",
  7450. "description": "owner of the repo",
  7451. "name": "owner",
  7452. "in": "path",
  7453. "required": true
  7454. },
  7455. {
  7456. "type": "string",
  7457. "description": "name of the repo",
  7458. "name": "repo",
  7459. "in": "path",
  7460. "required": true
  7461. },
  7462. {
  7463. "type": "integer",
  7464. "format": "int64",
  7465. "description": "index of the pull request",
  7466. "name": "index",
  7467. "in": "path",
  7468. "required": true
  7469. },
  7470. {
  7471. "type": "integer",
  7472. "description": "page number of results to return (1-based)",
  7473. "name": "page",
  7474. "in": "query"
  7475. },
  7476. {
  7477. "type": "integer",
  7478. "description": "page size of results",
  7479. "name": "limit",
  7480. "in": "query"
  7481. }
  7482. ],
  7483. "responses": {
  7484. "200": {
  7485. "$ref": "#/responses/PullReviewList"
  7486. },
  7487. "404": {
  7488. "$ref": "#/responses/notFound"
  7489. }
  7490. }
  7491. },
  7492. "post": {
  7493. "produces": [
  7494. "application/json"
  7495. ],
  7496. "tags": [
  7497. "repository"
  7498. ],
  7499. "summary": "Create a review to an pull request",
  7500. "operationId": "repoCreatePullReview",
  7501. "parameters": [
  7502. {
  7503. "type": "string",
  7504. "description": "owner of the repo",
  7505. "name": "owner",
  7506. "in": "path",
  7507. "required": true
  7508. },
  7509. {
  7510. "type": "string",
  7511. "description": "name of the repo",
  7512. "name": "repo",
  7513. "in": "path",
  7514. "required": true
  7515. },
  7516. {
  7517. "type": "integer",
  7518. "format": "int64",
  7519. "description": "index of the pull request",
  7520. "name": "index",
  7521. "in": "path",
  7522. "required": true
  7523. },
  7524. {
  7525. "name": "body",
  7526. "in": "body",
  7527. "required": true,
  7528. "schema": {
  7529. "$ref": "#/definitions/CreatePullReviewOptions"
  7530. }
  7531. }
  7532. ],
  7533. "responses": {
  7534. "200": {
  7535. "$ref": "#/responses/PullReview"
  7536. },
  7537. "404": {
  7538. "$ref": "#/responses/notFound"
  7539. },
  7540. "422": {
  7541. "$ref": "#/responses/validationError"
  7542. }
  7543. }
  7544. }
  7545. },
  7546. "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}": {
  7547. "get": {
  7548. "produces": [
  7549. "application/json"
  7550. ],
  7551. "tags": [
  7552. "repository"
  7553. ],
  7554. "summary": "Get a specific review for a pull request",
  7555. "operationId": "repoGetPullReview",
  7556. "parameters": [
  7557. {
  7558. "type": "string",
  7559. "description": "owner of the repo",
  7560. "name": "owner",
  7561. "in": "path",
  7562. "required": true
  7563. },
  7564. {
  7565. "type": "string",
  7566. "description": "name of the repo",
  7567. "name": "repo",
  7568. "in": "path",
  7569. "required": true
  7570. },
  7571. {
  7572. "type": "integer",
  7573. "format": "int64",
  7574. "description": "index of the pull request",
  7575. "name": "index",
  7576. "in": "path",
  7577. "required": true
  7578. },
  7579. {
  7580. "type": "integer",
  7581. "format": "int64",
  7582. "description": "id of the review",
  7583. "name": "id",
  7584. "in": "path",
  7585. "required": true
  7586. }
  7587. ],
  7588. "responses": {
  7589. "200": {
  7590. "$ref": "#/responses/PullReview"
  7591. },
  7592. "404": {
  7593. "$ref": "#/responses/notFound"
  7594. }
  7595. }
  7596. },
  7597. "post": {
  7598. "produces": [
  7599. "application/json"
  7600. ],
  7601. "tags": [
  7602. "repository"
  7603. ],
  7604. "summary": "Submit a pending review to an pull request",
  7605. "operationId": "repoSubmitPullReview",
  7606. "parameters": [
  7607. {
  7608. "type": "string",
  7609. "description": "owner of the repo",
  7610. "name": "owner",
  7611. "in": "path",
  7612. "required": true
  7613. },
  7614. {
  7615. "type": "string",
  7616. "description": "name of the repo",
  7617. "name": "repo",
  7618. "in": "path",
  7619. "required": true
  7620. },
  7621. {
  7622. "type": "integer",
  7623. "format": "int64",
  7624. "description": "index of the pull request",
  7625. "name": "index",
  7626. "in": "path",
  7627. "required": true
  7628. },
  7629. {
  7630. "type": "integer",
  7631. "format": "int64",
  7632. "description": "id of the review",
  7633. "name": "id",
  7634. "in": "path",
  7635. "required": true
  7636. },
  7637. {
  7638. "name": "body",
  7639. "in": "body",
  7640. "required": true,
  7641. "schema": {
  7642. "$ref": "#/definitions/SubmitPullReviewOptions"
  7643. }
  7644. }
  7645. ],
  7646. "responses": {
  7647. "200": {
  7648. "$ref": "#/responses/PullReview"
  7649. },
  7650. "404": {
  7651. "$ref": "#/responses/notFound"
  7652. },
  7653. "422": {
  7654. "$ref": "#/responses/validationError"
  7655. }
  7656. }
  7657. },
  7658. "delete": {
  7659. "produces": [
  7660. "application/json"
  7661. ],
  7662. "tags": [
  7663. "repository"
  7664. ],
  7665. "summary": "Delete a specific review from a pull request",
  7666. "operationId": "repoDeletePullReview",
  7667. "parameters": [
  7668. {
  7669. "type": "string",
  7670. "description": "owner of the repo",
  7671. "name": "owner",
  7672. "in": "path",
  7673. "required": true
  7674. },
  7675. {
  7676. "type": "string",
  7677. "description": "name of the repo",
  7678. "name": "repo",
  7679. "in": "path",
  7680. "required": true
  7681. },
  7682. {
  7683. "type": "integer",
  7684. "format": "int64",
  7685. "description": "index of the pull request",
  7686. "name": "index",
  7687. "in": "path",
  7688. "required": true
  7689. },
  7690. {
  7691. "type": "integer",
  7692. "format": "int64",
  7693. "description": "id of the review",
  7694. "name": "id",
  7695. "in": "path",
  7696. "required": true
  7697. }
  7698. ],
  7699. "responses": {
  7700. "204": {
  7701. "$ref": "#/responses/empty"
  7702. },
  7703. "403": {
  7704. "$ref": "#/responses/forbidden"
  7705. },
  7706. "404": {
  7707. "$ref": "#/responses/notFound"
  7708. }
  7709. }
  7710. }
  7711. },
  7712. "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments": {
  7713. "get": {
  7714. "produces": [
  7715. "application/json"
  7716. ],
  7717. "tags": [
  7718. "repository"
  7719. ],
  7720. "summary": "Get a specific review for a pull request",
  7721. "operationId": "repoGetPullReviewComments",
  7722. "parameters": [
  7723. {
  7724. "type": "string",
  7725. "description": "owner of the repo",
  7726. "name": "owner",
  7727. "in": "path",
  7728. "required": true
  7729. },
  7730. {
  7731. "type": "string",
  7732. "description": "name of the repo",
  7733. "name": "repo",
  7734. "in": "path",
  7735. "required": true
  7736. },
  7737. {
  7738. "type": "integer",
  7739. "format": "int64",
  7740. "description": "index of the pull request",
  7741. "name": "index",
  7742. "in": "path",
  7743. "required": true
  7744. },
  7745. {
  7746. "type": "integer",
  7747. "format": "int64",
  7748. "description": "id of the review",
  7749. "name": "id",
  7750. "in": "path",
  7751. "required": true
  7752. }
  7753. ],
  7754. "responses": {
  7755. "200": {
  7756. "$ref": "#/responses/PullReviewCommentList"
  7757. },
  7758. "404": {
  7759. "$ref": "#/responses/notFound"
  7760. }
  7761. }
  7762. }
  7763. },
  7764. "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals": {
  7765. "post": {
  7766. "produces": [
  7767. "application/json"
  7768. ],
  7769. "tags": [
  7770. "repository"
  7771. ],
  7772. "summary": "Dismiss a review for a pull request",
  7773. "operationId": "repoDismissPullReview",
  7774. "parameters": [
  7775. {
  7776. "type": "string",
  7777. "description": "owner of the repo",
  7778. "name": "owner",
  7779. "in": "path",
  7780. "required": true
  7781. },
  7782. {
  7783. "type": "string",
  7784. "description": "name of the repo",
  7785. "name": "repo",
  7786. "in": "path",
  7787. "required": true
  7788. },
  7789. {
  7790. "type": "integer",
  7791. "format": "int64",
  7792. "description": "index of the pull request",
  7793. "name": "index",
  7794. "in": "path",
  7795. "required": true
  7796. },
  7797. {
  7798. "type": "integer",
  7799. "format": "int64",
  7800. "description": "id of the review",
  7801. "name": "id",
  7802. "in": "path",
  7803. "required": true
  7804. },
  7805. {
  7806. "name": "body",
  7807. "in": "body",
  7808. "required": true,
  7809. "schema": {
  7810. "$ref": "#/definitions/DismissPullReviewOptions"
  7811. }
  7812. }
  7813. ],
  7814. "responses": {
  7815. "200": {
  7816. "$ref": "#/responses/PullReview"
  7817. },
  7818. "403": {
  7819. "$ref": "#/responses/forbidden"
  7820. },
  7821. "422": {
  7822. "$ref": "#/responses/validationError"
  7823. }
  7824. }
  7825. }
  7826. },
  7827. "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals": {
  7828. "post": {
  7829. "produces": [
  7830. "application/json"
  7831. ],
  7832. "tags": [
  7833. "repository"
  7834. ],
  7835. "summary": "Cancel to dismiss a review for a pull request",
  7836. "operationId": "repoUnDismissPullReview",
  7837. "parameters": [
  7838. {
  7839. "type": "string",
  7840. "description": "owner of the repo",
  7841. "name": "owner",
  7842. "in": "path",
  7843. "required": true
  7844. },
  7845. {
  7846. "type": "string",
  7847. "description": "name of the repo",
  7848. "name": "repo",
  7849. "in": "path",
  7850. "required": true
  7851. },
  7852. {
  7853. "type": "integer",
  7854. "format": "int64",
  7855. "description": "index of the pull request",
  7856. "name": "index",
  7857. "in": "path",
  7858. "required": true
  7859. },
  7860. {
  7861. "type": "integer",
  7862. "format": "int64",
  7863. "description": "id of the review",
  7864. "name": "id",
  7865. "in": "path",
  7866. "required": true
  7867. }
  7868. ],
  7869. "responses": {
  7870. "200": {
  7871. "$ref": "#/responses/PullReview"
  7872. },
  7873. "403": {
  7874. "$ref": "#/responses/forbidden"
  7875. },
  7876. "422": {
  7877. "$ref": "#/responses/validationError"
  7878. }
  7879. }
  7880. }
  7881. },
  7882. "/repos/{owner}/{repo}/pulls/{index}/update": {
  7883. "post": {
  7884. "produces": [
  7885. "application/json"
  7886. ],
  7887. "tags": [
  7888. "repository"
  7889. ],
  7890. "summary": "Merge PR's baseBranch into headBranch",
  7891. "operationId": "repoUpdatePullRequest",
  7892. "parameters": [
  7893. {
  7894. "type": "string",
  7895. "description": "owner of the repo",
  7896. "name": "owner",
  7897. "in": "path",
  7898. "required": true
  7899. },
  7900. {
  7901. "type": "string",
  7902. "description": "name of the repo",
  7903. "name": "repo",
  7904. "in": "path",
  7905. "required": true
  7906. },
  7907. {
  7908. "type": "integer",
  7909. "format": "int64",
  7910. "description": "index of the pull request to get",
  7911. "name": "index",
  7912. "in": "path",
  7913. "required": true
  7914. }
  7915. ],
  7916. "responses": {
  7917. "200": {
  7918. "$ref": "#/responses/empty"
  7919. },
  7920. "403": {
  7921. "$ref": "#/responses/forbidden"
  7922. },
  7923. "404": {
  7924. "$ref": "#/responses/notFound"
  7925. },
  7926. "409": {
  7927. "$ref": "#/responses/error"
  7928. },
  7929. "422": {
  7930. "$ref": "#/responses/validationError"
  7931. }
  7932. }
  7933. }
  7934. },
  7935. "/repos/{owner}/{repo}/raw/{filepath}": {
  7936. "get": {
  7937. "produces": [
  7938. "application/json"
  7939. ],
  7940. "tags": [
  7941. "repository"
  7942. ],
  7943. "summary": "Get a file from a repository",
  7944. "operationId": "repoGetRawFile",
  7945. "parameters": [
  7946. {
  7947. "type": "string",
  7948. "description": "owner of the repo",
  7949. "name": "owner",
  7950. "in": "path",
  7951. "required": true
  7952. },
  7953. {
  7954. "type": "string",
  7955. "description": "name of the repo",
  7956. "name": "repo",
  7957. "in": "path",
  7958. "required": true
  7959. },
  7960. {
  7961. "type": "string",
  7962. "description": "filepath of the file to get",
  7963. "name": "filepath",
  7964. "in": "path",
  7965. "required": true
  7966. },
  7967. {
  7968. "type": "string",
  7969. "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
  7970. "name": "ref",
  7971. "in": "query"
  7972. }
  7973. ],
  7974. "responses": {
  7975. "200": {
  7976. "description": "success"
  7977. },
  7978. "404": {
  7979. "$ref": "#/responses/notFound"
  7980. }
  7981. }
  7982. }
  7983. },
  7984. "/repos/{owner}/{repo}/releases": {
  7985. "get": {
  7986. "produces": [
  7987. "application/json"
  7988. ],
  7989. "tags": [
  7990. "repository"
  7991. ],
  7992. "summary": "List a repo's releases",
  7993. "operationId": "repoListReleases",
  7994. "parameters": [
  7995. {
  7996. "type": "string",
  7997. "description": "owner of the repo",
  7998. "name": "owner",
  7999. "in": "path",
  8000. "required": true
  8001. },
  8002. {
  8003. "type": "string",
  8004. "description": "name of the repo",
  8005. "name": "repo",
  8006. "in": "path",
  8007. "required": true
  8008. },
  8009. {
  8010. "type": "integer",
  8011. "description": "page size of results, deprecated - use limit",
  8012. "name": "per_page",
  8013. "in": "query"
  8014. },
  8015. {
  8016. "type": "integer",
  8017. "description": "page number of results to return (1-based)",
  8018. "name": "page",
  8019. "in": "query"
  8020. },
  8021. {
  8022. "type": "integer",
  8023. "description": "page size of results",
  8024. "name": "limit",
  8025. "in": "query"
  8026. }
  8027. ],
  8028. "responses": {
  8029. "200": {
  8030. "$ref": "#/responses/ReleaseList"
  8031. }
  8032. }
  8033. },
  8034. "post": {
  8035. "consumes": [
  8036. "application/json"
  8037. ],
  8038. "produces": [
  8039. "application/json"
  8040. ],
  8041. "tags": [
  8042. "repository"
  8043. ],
  8044. "summary": "Create a release",
  8045. "operationId": "repoCreateRelease",
  8046. "parameters": [
  8047. {
  8048. "type": "string",
  8049. "description": "owner of the repo",
  8050. "name": "owner",
  8051. "in": "path",
  8052. "required": true
  8053. },
  8054. {
  8055. "type": "string",
  8056. "description": "name of the repo",
  8057. "name": "repo",
  8058. "in": "path",
  8059. "required": true
  8060. },
  8061. {
  8062. "name": "body",
  8063. "in": "body",
  8064. "schema": {
  8065. "$ref": "#/definitions/CreateReleaseOption"
  8066. }
  8067. }
  8068. ],
  8069. "responses": {
  8070. "201": {
  8071. "$ref": "#/responses/Release"
  8072. },
  8073. "404": {
  8074. "$ref": "#/responses/notFound"
  8075. },
  8076. "409": {
  8077. "$ref": "#/responses/error"
  8078. }
  8079. }
  8080. }
  8081. },
  8082. "/repos/{owner}/{repo}/releases/tags/{tag}": {
  8083. "get": {
  8084. "produces": [
  8085. "application/json"
  8086. ],
  8087. "tags": [
  8088. "repository"
  8089. ],
  8090. "summary": "Get a release by tag name",
  8091. "operationId": "repoGetReleaseByTag",
  8092. "parameters": [
  8093. {
  8094. "type": "string",
  8095. "description": "owner of the repo",
  8096. "name": "owner",
  8097. "in": "path",
  8098. "required": true
  8099. },
  8100. {
  8101. "type": "string",
  8102. "description": "name of the repo",
  8103. "name": "repo",
  8104. "in": "path",
  8105. "required": true
  8106. },
  8107. {
  8108. "type": "string",
  8109. "description": "tag name of the release to get",
  8110. "name": "tag",
  8111. "in": "path",
  8112. "required": true
  8113. }
  8114. ],
  8115. "responses": {
  8116. "200": {
  8117. "$ref": "#/responses/Release"
  8118. },
  8119. "404": {
  8120. "$ref": "#/responses/notFound"
  8121. }
  8122. }
  8123. },
  8124. "delete": {
  8125. "tags": [
  8126. "repository"
  8127. ],
  8128. "summary": "Delete a release by tag name",
  8129. "operationId": "repoDeleteReleaseByTag",
  8130. "parameters": [
  8131. {
  8132. "type": "string",
  8133. "description": "owner of the repo",
  8134. "name": "owner",
  8135. "in": "path",
  8136. "required": true
  8137. },
  8138. {
  8139. "type": "string",
  8140. "description": "name of the repo",
  8141. "name": "repo",
  8142. "in": "path",
  8143. "required": true
  8144. },
  8145. {
  8146. "type": "string",
  8147. "description": "tag name of the release to delete",
  8148. "name": "tag",
  8149. "in": "path",
  8150. "required": true
  8151. }
  8152. ],
  8153. "responses": {
  8154. "204": {
  8155. "$ref": "#/responses/empty"
  8156. },
  8157. "404": {
  8158. "$ref": "#/responses/notFound"
  8159. }
  8160. }
  8161. }
  8162. },
  8163. "/repos/{owner}/{repo}/releases/{id}": {
  8164. "get": {
  8165. "produces": [
  8166. "application/json"
  8167. ],
  8168. "tags": [
  8169. "repository"
  8170. ],
  8171. "summary": "Get a release",
  8172. "operationId": "repoGetRelease",
  8173. "parameters": [
  8174. {
  8175. "type": "string",
  8176. "description": "owner of the repo",
  8177. "name": "owner",
  8178. "in": "path",
  8179. "required": true
  8180. },
  8181. {
  8182. "type": "string",
  8183. "description": "name of the repo",
  8184. "name": "repo",
  8185. "in": "path",
  8186. "required": true
  8187. },
  8188. {
  8189. "type": "integer",
  8190. "format": "int64",
  8191. "description": "id of the release to get",
  8192. "name": "id",
  8193. "in": "path",
  8194. "required": true
  8195. }
  8196. ],
  8197. "responses": {
  8198. "200": {
  8199. "$ref": "#/responses/Release"
  8200. },
  8201. "404": {
  8202. "$ref": "#/responses/notFound"
  8203. }
  8204. }
  8205. },
  8206. "delete": {
  8207. "tags": [
  8208. "repository"
  8209. ],
  8210. "summary": "Delete a release",
  8211. "operationId": "repoDeleteRelease",
  8212. "parameters": [
  8213. {
  8214. "type": "string",
  8215. "description": "owner of the repo",
  8216. "name": "owner",
  8217. "in": "path",
  8218. "required": true
  8219. },
  8220. {
  8221. "type": "string",
  8222. "description": "name of the repo",
  8223. "name": "repo",
  8224. "in": "path",
  8225. "required": true
  8226. },
  8227. {
  8228. "type": "integer",
  8229. "format": "int64",
  8230. "description": "id of the release to delete",
  8231. "name": "id",
  8232. "in": "path",
  8233. "required": true
  8234. }
  8235. ],
  8236. "responses": {
  8237. "204": {
  8238. "$ref": "#/responses/empty"
  8239. },
  8240. "404": {
  8241. "$ref": "#/responses/notFound"
  8242. }
  8243. }
  8244. },
  8245. "patch": {
  8246. "consumes": [
  8247. "application/json"
  8248. ],
  8249. "produces": [
  8250. "application/json"
  8251. ],
  8252. "tags": [
  8253. "repository"
  8254. ],
  8255. "summary": "Update a release",
  8256. "operationId": "repoEditRelease",
  8257. "parameters": [
  8258. {
  8259. "type": "string",
  8260. "description": "owner of the repo",
  8261. "name": "owner",
  8262. "in": "path",
  8263. "required": true
  8264. },
  8265. {
  8266. "type": "string",
  8267. "description": "name of the repo",
  8268. "name": "repo",
  8269. "in": "path",
  8270. "required": true
  8271. },
  8272. {
  8273. "type": "integer",
  8274. "format": "int64",
  8275. "description": "id of the release to edit",
  8276. "name": "id",
  8277. "in": "path",
  8278. "required": true
  8279. },
  8280. {
  8281. "name": "body",
  8282. "in": "body",
  8283. "schema": {
  8284. "$ref": "#/definitions/EditReleaseOption"
  8285. }
  8286. }
  8287. ],
  8288. "responses": {
  8289. "200": {
  8290. "$ref": "#/responses/Release"
  8291. },
  8292. "404": {
  8293. "$ref": "#/responses/notFound"
  8294. }
  8295. }
  8296. }
  8297. },
  8298. "/repos/{owner}/{repo}/releases/{id}/assets": {
  8299. "get": {
  8300. "produces": [
  8301. "application/json"
  8302. ],
  8303. "tags": [
  8304. "repository"
  8305. ],
  8306. "summary": "List release's attachments",
  8307. "operationId": "repoListReleaseAttachments",
  8308. "parameters": [
  8309. {
  8310. "type": "string",
  8311. "description": "owner of the repo",
  8312. "name": "owner",
  8313. "in": "path",
  8314. "required": true
  8315. },
  8316. {
  8317. "type": "string",
  8318. "description": "name of the repo",
  8319. "name": "repo",
  8320. "in": "path",
  8321. "required": true
  8322. },
  8323. {
  8324. "type": "integer",
  8325. "format": "int64",
  8326. "description": "id of the release",
  8327. "name": "id",
  8328. "in": "path",
  8329. "required": true
  8330. }
  8331. ],
  8332. "responses": {
  8333. "200": {
  8334. "$ref": "#/responses/AttachmentList"
  8335. }
  8336. }
  8337. },
  8338. "post": {
  8339. "consumes": [
  8340. "multipart/form-data"
  8341. ],
  8342. "produces": [
  8343. "application/json"
  8344. ],
  8345. "tags": [
  8346. "repository"
  8347. ],
  8348. "summary": "Create a release attachment",
  8349. "operationId": "repoCreateReleaseAttachment",
  8350. "parameters": [
  8351. {
  8352. "type": "string",
  8353. "description": "owner of the repo",
  8354. "name": "owner",
  8355. "in": "path",
  8356. "required": true
  8357. },
  8358. {
  8359. "type": "string",
  8360. "description": "name of the repo",
  8361. "name": "repo",
  8362. "in": "path",
  8363. "required": true
  8364. },
  8365. {
  8366. "type": "integer",
  8367. "format": "int64",
  8368. "description": "id of the release",
  8369. "name": "id",
  8370. "in": "path",
  8371. "required": true
  8372. },
  8373. {
  8374. "type": "string",
  8375. "description": "name of the attachment",
  8376. "name": "name",
  8377. "in": "query"
  8378. },
  8379. {
  8380. "type": "file",
  8381. "description": "attachment to upload",
  8382. "name": "attachment",
  8383. "in": "formData",
  8384. "required": true
  8385. }
  8386. ],
  8387. "responses": {
  8388. "201": {
  8389. "$ref": "#/responses/Attachment"
  8390. },
  8391. "400": {
  8392. "$ref": "#/responses/error"
  8393. }
  8394. }
  8395. }
  8396. },
  8397. "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": {
  8398. "get": {
  8399. "produces": [
  8400. "application/json"
  8401. ],
  8402. "tags": [
  8403. "repository"
  8404. ],
  8405. "summary": "Get a release attachment",
  8406. "operationId": "repoGetReleaseAttachment",
  8407. "parameters": [
  8408. {
  8409. "type": "string",
  8410. "description": "owner of the repo",
  8411. "name": "owner",
  8412. "in": "path",
  8413. "required": true
  8414. },
  8415. {
  8416. "type": "string",
  8417. "description": "name of the repo",
  8418. "name": "repo",
  8419. "in": "path",
  8420. "required": true
  8421. },
  8422. {
  8423. "type": "integer",
  8424. "format": "int64",
  8425. "description": "id of the release",
  8426. "name": "id",
  8427. "in": "path",
  8428. "required": true
  8429. },
  8430. {
  8431. "type": "integer",
  8432. "format": "int64",
  8433. "description": "id of the attachment to get",
  8434. "name": "attachment_id",
  8435. "in": "path",
  8436. "required": true
  8437. }
  8438. ],
  8439. "responses": {
  8440. "200": {
  8441. "$ref": "#/responses/Attachment"
  8442. }
  8443. }
  8444. },
  8445. "delete": {
  8446. "produces": [
  8447. "application/json"
  8448. ],
  8449. "tags": [
  8450. "repository"
  8451. ],
  8452. "summary": "Delete a release attachment",
  8453. "operationId": "repoDeleteReleaseAttachment",
  8454. "parameters": [
  8455. {
  8456. "type": "string",
  8457. "description": "owner of the repo",
  8458. "name": "owner",
  8459. "in": "path",
  8460. "required": true
  8461. },
  8462. {
  8463. "type": "string",
  8464. "description": "name of the repo",
  8465. "name": "repo",
  8466. "in": "path",
  8467. "required": true
  8468. },
  8469. {
  8470. "type": "integer",
  8471. "format": "int64",
  8472. "description": "id of the release",
  8473. "name": "id",
  8474. "in": "path",
  8475. "required": true
  8476. },
  8477. {
  8478. "type": "integer",
  8479. "format": "int64",
  8480. "description": "id of the attachment to delete",
  8481. "name": "attachment_id",
  8482. "in": "path",
  8483. "required": true
  8484. }
  8485. ],
  8486. "responses": {
  8487. "204": {
  8488. "$ref": "#/responses/empty"
  8489. }
  8490. }
  8491. },
  8492. "patch": {
  8493. "consumes": [
  8494. "application/json"
  8495. ],
  8496. "produces": [
  8497. "application/json"
  8498. ],
  8499. "tags": [
  8500. "repository"
  8501. ],
  8502. "summary": "Edit a release attachment",
  8503. "operationId": "repoEditReleaseAttachment",
  8504. "parameters": [
  8505. {
  8506. "type": "string",
  8507. "description": "owner of the repo",
  8508. "name": "owner",
  8509. "in": "path",
  8510. "required": true
  8511. },
  8512. {
  8513. "type": "string",
  8514. "description": "name of the repo",
  8515. "name": "repo",
  8516. "in": "path",
  8517. "required": true
  8518. },
  8519. {
  8520. "type": "integer",
  8521. "format": "int64",
  8522. "description": "id of the release",
  8523. "name": "id",
  8524. "in": "path",
  8525. "required": true
  8526. },
  8527. {
  8528. "type": "integer",
  8529. "format": "int64",
  8530. "description": "id of the attachment to edit",
  8531. "name": "attachment_id",
  8532. "in": "path",
  8533. "required": true
  8534. },
  8535. {
  8536. "name": "body",
  8537. "in": "body",
  8538. "schema": {
  8539. "$ref": "#/definitions/EditAttachmentOptions"
  8540. }
  8541. }
  8542. ],
  8543. "responses": {
  8544. "201": {
  8545. "$ref": "#/responses/Attachment"
  8546. }
  8547. }
  8548. }
  8549. },
  8550. "/repos/{owner}/{repo}/signing-key.gpg": {
  8551. "get": {
  8552. "produces": [
  8553. "text/plain"
  8554. ],
  8555. "tags": [
  8556. "repository"
  8557. ],
  8558. "summary": "Get signing-key.gpg for given repository",
  8559. "operationId": "repoSigningKey",
  8560. "parameters": [
  8561. {
  8562. "type": "string",
  8563. "description": "owner of the repo",
  8564. "name": "owner",
  8565. "in": "path",
  8566. "required": true
  8567. },
  8568. {
  8569. "type": "string",
  8570. "description": "name of the repo",
  8571. "name": "repo",
  8572. "in": "path",
  8573. "required": true
  8574. }
  8575. ],
  8576. "responses": {
  8577. "200": {
  8578. "description": "GPG armored public key",
  8579. "schema": {
  8580. "type": "string"
  8581. }
  8582. }
  8583. }
  8584. }
  8585. },
  8586. "/repos/{owner}/{repo}/stargazers": {
  8587. "get": {
  8588. "produces": [
  8589. "application/json"
  8590. ],
  8591. "tags": [
  8592. "repository"
  8593. ],
  8594. "summary": "List a repo's stargazers",
  8595. "operationId": "repoListStargazers",
  8596. "parameters": [
  8597. {
  8598. "type": "string",
  8599. "description": "owner of the repo",
  8600. "name": "owner",
  8601. "in": "path",
  8602. "required": true
  8603. },
  8604. {
  8605. "type": "string",
  8606. "description": "name of the repo",
  8607. "name": "repo",
  8608. "in": "path",
  8609. "required": true
  8610. },
  8611. {
  8612. "type": "integer",
  8613. "description": "page number of results to return (1-based)",
  8614. "name": "page",
  8615. "in": "query"
  8616. },
  8617. {
  8618. "type": "integer",
  8619. "description": "page size of results",
  8620. "name": "limit",
  8621. "in": "query"
  8622. }
  8623. ],
  8624. "responses": {
  8625. "200": {
  8626. "$ref": "#/responses/UserList"
  8627. }
  8628. }
  8629. }
  8630. },
  8631. "/repos/{owner}/{repo}/statuses/{sha}": {
  8632. "get": {
  8633. "produces": [
  8634. "application/json"
  8635. ],
  8636. "tags": [
  8637. "repository"
  8638. ],
  8639. "summary": "Get a commit's statuses",
  8640. "operationId": "repoListStatuses",
  8641. "parameters": [
  8642. {
  8643. "type": "string",
  8644. "description": "owner of the repo",
  8645. "name": "owner",
  8646. "in": "path",
  8647. "required": true
  8648. },
  8649. {
  8650. "type": "string",
  8651. "description": "name of the repo",
  8652. "name": "repo",
  8653. "in": "path",
  8654. "required": true
  8655. },
  8656. {
  8657. "type": "string",
  8658. "description": "sha of the commit",
  8659. "name": "sha",
  8660. "in": "path",
  8661. "required": true
  8662. },
  8663. {
  8664. "enum": [
  8665. "oldest",
  8666. "recentupdate",
  8667. "leastupdate",
  8668. "leastindex",
  8669. "highestindex"
  8670. ],
  8671. "type": "string",
  8672. "description": "type of sort",
  8673. "name": "sort",
  8674. "in": "query"
  8675. },
  8676. {
  8677. "enum": [
  8678. "pending",
  8679. "success",
  8680. "error",
  8681. "failure",
  8682. "warning"
  8683. ],
  8684. "type": "string",
  8685. "description": "type of state",
  8686. "name": "state",
  8687. "in": "query"
  8688. },
  8689. {
  8690. "type": "integer",
  8691. "description": "page number of results to return (1-based)",
  8692. "name": "page",
  8693. "in": "query"
  8694. },
  8695. {
  8696. "type": "integer",
  8697. "description": "page size of results",
  8698. "name": "limit",
  8699. "in": "query"
  8700. }
  8701. ],
  8702. "responses": {
  8703. "200": {
  8704. "$ref": "#/responses/CommitStatusList"
  8705. },
  8706. "400": {
  8707. "$ref": "#/responses/error"
  8708. }
  8709. }
  8710. },
  8711. "post": {
  8712. "produces": [
  8713. "application/json"
  8714. ],
  8715. "tags": [
  8716. "repository"
  8717. ],
  8718. "summary": "Create a commit status",
  8719. "operationId": "repoCreateStatus",
  8720. "parameters": [
  8721. {
  8722. "type": "string",
  8723. "description": "owner of the repo",
  8724. "name": "owner",
  8725. "in": "path",
  8726. "required": true
  8727. },
  8728. {
  8729. "type": "string",
  8730. "description": "name of the repo",
  8731. "name": "repo",
  8732. "in": "path",
  8733. "required": true
  8734. },
  8735. {
  8736. "type": "string",
  8737. "description": "sha of the commit",
  8738. "name": "sha",
  8739. "in": "path",
  8740. "required": true
  8741. },
  8742. {
  8743. "name": "body",
  8744. "in": "body",
  8745. "schema": {
  8746. "$ref": "#/definitions/CreateStatusOption"
  8747. }
  8748. }
  8749. ],
  8750. "responses": {
  8751. "201": {
  8752. "$ref": "#/responses/CommitStatus"
  8753. },
  8754. "400": {
  8755. "$ref": "#/responses/error"
  8756. }
  8757. }
  8758. }
  8759. },
  8760. "/repos/{owner}/{repo}/subscribers": {
  8761. "get": {
  8762. "produces": [
  8763. "application/json"
  8764. ],
  8765. "tags": [
  8766. "repository"
  8767. ],
  8768. "summary": "List a repo's watchers",
  8769. "operationId": "repoListSubscribers",
  8770. "parameters": [
  8771. {
  8772. "type": "string",
  8773. "description": "owner of the repo",
  8774. "name": "owner",
  8775. "in": "path",
  8776. "required": true
  8777. },
  8778. {
  8779. "type": "string",
  8780. "description": "name of the repo",
  8781. "name": "repo",
  8782. "in": "path",
  8783. "required": true
  8784. },
  8785. {
  8786. "type": "integer",
  8787. "description": "page number of results to return (1-based)",
  8788. "name": "page",
  8789. "in": "query"
  8790. },
  8791. {
  8792. "type": "integer",
  8793. "description": "page size of results",
  8794. "name": "limit",
  8795. "in": "query"
  8796. }
  8797. ],
  8798. "responses": {
  8799. "200": {
  8800. "$ref": "#/responses/UserList"
  8801. }
  8802. }
  8803. }
  8804. },
  8805. "/repos/{owner}/{repo}/subscription": {
  8806. "get": {
  8807. "tags": [
  8808. "repository"
  8809. ],
  8810. "summary": "Check if the current user is watching a repo",
  8811. "operationId": "userCurrentCheckSubscription",
  8812. "parameters": [
  8813. {
  8814. "type": "string",
  8815. "description": "owner of the repo",
  8816. "name": "owner",
  8817. "in": "path",
  8818. "required": true
  8819. },
  8820. {
  8821. "type": "string",
  8822. "description": "name of the repo",
  8823. "name": "repo",
  8824. "in": "path",
  8825. "required": true
  8826. }
  8827. ],
  8828. "responses": {
  8829. "200": {
  8830. "$ref": "#/responses/WatchInfo"
  8831. },
  8832. "404": {
  8833. "description": "User is not watching this repo or repo do not exist"
  8834. }
  8835. }
  8836. },
  8837. "put": {
  8838. "tags": [
  8839. "repository"
  8840. ],
  8841. "summary": "Watch a repo",
  8842. "operationId": "userCurrentPutSubscription",
  8843. "parameters": [
  8844. {
  8845. "type": "string",
  8846. "description": "owner of the repo",
  8847. "name": "owner",
  8848. "in": "path",
  8849. "required": true
  8850. },
  8851. {
  8852. "type": "string",
  8853. "description": "name of the repo",
  8854. "name": "repo",
  8855. "in": "path",
  8856. "required": true
  8857. }
  8858. ],
  8859. "responses": {
  8860. "200": {
  8861. "$ref": "#/responses/WatchInfo"
  8862. }
  8863. }
  8864. },
  8865. "delete": {
  8866. "tags": [
  8867. "repository"
  8868. ],
  8869. "summary": "Unwatch a repo",
  8870. "operationId": "userCurrentDeleteSubscription",
  8871. "parameters": [
  8872. {
  8873. "type": "string",
  8874. "description": "owner of the repo",
  8875. "name": "owner",
  8876. "in": "path",
  8877. "required": true
  8878. },
  8879. {
  8880. "type": "string",
  8881. "description": "name of the repo",
  8882. "name": "repo",
  8883. "in": "path",
  8884. "required": true
  8885. }
  8886. ],
  8887. "responses": {
  8888. "204": {
  8889. "$ref": "#/responses/empty"
  8890. }
  8891. }
  8892. }
  8893. },
  8894. "/repos/{owner}/{repo}/tags": {
  8895. "get": {
  8896. "produces": [
  8897. "application/json"
  8898. ],
  8899. "tags": [
  8900. "repository"
  8901. ],
  8902. "summary": "List a repository's tags",
  8903. "operationId": "repoListTags",
  8904. "parameters": [
  8905. {
  8906. "type": "string",
  8907. "description": "owner of the repo",
  8908. "name": "owner",
  8909. "in": "path",
  8910. "required": true
  8911. },
  8912. {
  8913. "type": "string",
  8914. "description": "name of the repo",
  8915. "name": "repo",
  8916. "in": "path",
  8917. "required": true
  8918. },
  8919. {
  8920. "type": "integer",
  8921. "description": "page number of results to return (1-based)",
  8922. "name": "page",
  8923. "in": "query"
  8924. },
  8925. {
  8926. "type": "integer",
  8927. "description": "page size of results, default maximum page size is 50",
  8928. "name": "limit",
  8929. "in": "query"
  8930. }
  8931. ],
  8932. "responses": {
  8933. "200": {
  8934. "$ref": "#/responses/TagList"
  8935. }
  8936. }
  8937. }
  8938. },
  8939. "/repos/{owner}/{repo}/tags/{tag}": {
  8940. "delete": {
  8941. "produces": [
  8942. "application/json"
  8943. ],
  8944. "tags": [
  8945. "repository"
  8946. ],
  8947. "summary": "Delete a repository's tag by name",
  8948. "operationId": "repoDeleteTag",
  8949. "parameters": [
  8950. {
  8951. "type": "string",
  8952. "description": "owner of the repo",
  8953. "name": "owner",
  8954. "in": "path",
  8955. "required": true
  8956. },
  8957. {
  8958. "type": "string",
  8959. "description": "name of the repo",
  8960. "name": "repo",
  8961. "in": "path",
  8962. "required": true
  8963. },
  8964. {
  8965. "type": "string",
  8966. "description": "name of tag to delete",
  8967. "name": "tag",
  8968. "in": "path",
  8969. "required": true
  8970. }
  8971. ],
  8972. "responses": {
  8973. "204": {
  8974. "$ref": "#/responses/empty"
  8975. },
  8976. "404": {
  8977. "$ref": "#/responses/notFound"
  8978. },
  8979. "409": {
  8980. "$ref": "#/responses/conflict"
  8981. }
  8982. }
  8983. }
  8984. },
  8985. "/repos/{owner}/{repo}/teams": {
  8986. "get": {
  8987. "produces": [
  8988. "application/json"
  8989. ],
  8990. "tags": [
  8991. "repository"
  8992. ],
  8993. "summary": "List a repository's teams",
  8994. "operationId": "repoListTeams",
  8995. "parameters": [
  8996. {
  8997. "type": "string",
  8998. "description": "owner of the repo",
  8999. "name": "owner",
  9000. "in": "path",
  9001. "required": true
  9002. },
  9003. {
  9004. "type": "string",
  9005. "description": "name of the repo",
  9006. "name": "repo",
  9007. "in": "path",
  9008. "required": true
  9009. }
  9010. ],
  9011. "responses": {
  9012. "200": {
  9013. "$ref": "#/responses/TeamList"
  9014. }
  9015. }
  9016. }
  9017. },
  9018. "/repos/{owner}/{repo}/teams/{team}": {
  9019. "get": {
  9020. "produces": [
  9021. "application/json"
  9022. ],
  9023. "tags": [
  9024. "repository"
  9025. ],
  9026. "summary": "Check if a team is assigned to a repository",
  9027. "operationId": "repoCheckTeam",
  9028. "parameters": [
  9029. {
  9030. "type": "string",
  9031. "description": "owner of the repo",
  9032. "name": "owner",
  9033. "in": "path",
  9034. "required": true
  9035. },
  9036. {
  9037. "type": "string",
  9038. "description": "name of the repo",
  9039. "name": "repo",
  9040. "in": "path",
  9041. "required": true
  9042. },
  9043. {
  9044. "type": "string",
  9045. "description": "team name",
  9046. "name": "team",
  9047. "in": "path",
  9048. "required": true
  9049. }
  9050. ],
  9051. "responses": {
  9052. "200": {
  9053. "$ref": "#/responses/Team"
  9054. },
  9055. "404": {
  9056. "$ref": "#/responses/notFound"
  9057. },
  9058. "405": {
  9059. "$ref": "#/responses/error"
  9060. }
  9061. }
  9062. },
  9063. "put": {
  9064. "produces": [
  9065. "application/json"
  9066. ],
  9067. "tags": [
  9068. "repository"
  9069. ],
  9070. "summary": "Add a team to a repository",
  9071. "operationId": "repoAddTeam",
  9072. "parameters": [
  9073. {
  9074. "type": "string",
  9075. "description": "owner of the repo",
  9076. "name": "owner",
  9077. "in": "path",
  9078. "required": true
  9079. },
  9080. {
  9081. "type": "string",
  9082. "description": "name of the repo",
  9083. "name": "repo",
  9084. "in": "path",
  9085. "required": true
  9086. },
  9087. {
  9088. "type": "string",
  9089. "description": "team name",
  9090. "name": "team",
  9091. "in": "path",
  9092. "required": true
  9093. }
  9094. ],
  9095. "responses": {
  9096. "204": {
  9097. "$ref": "#/responses/empty"
  9098. },
  9099. "405": {
  9100. "$ref": "#/responses/error"
  9101. },
  9102. "422": {
  9103. "$ref": "#/responses/validationError"
  9104. }
  9105. }
  9106. },
  9107. "delete": {
  9108. "produces": [
  9109. "application/json"
  9110. ],
  9111. "tags": [
  9112. "repository"
  9113. ],
  9114. "summary": "Delete a team from a repository",
  9115. "operationId": "repoDeleteTeam",
  9116. "parameters": [
  9117. {
  9118. "type": "string",
  9119. "description": "owner of the repo",
  9120. "name": "owner",
  9121. "in": "path",
  9122. "required": true
  9123. },
  9124. {
  9125. "type": "string",
  9126. "description": "name of the repo",
  9127. "name": "repo",
  9128. "in": "path",
  9129. "required": true
  9130. },
  9131. {
  9132. "type": "string",
  9133. "description": "team name",
  9134. "name": "team",
  9135. "in": "path",
  9136. "required": true
  9137. }
  9138. ],
  9139. "responses": {
  9140. "204": {
  9141. "$ref": "#/responses/empty"
  9142. },
  9143. "405": {
  9144. "$ref": "#/responses/error"
  9145. },
  9146. "422": {
  9147. "$ref": "#/responses/validationError"
  9148. }
  9149. }
  9150. }
  9151. },
  9152. "/repos/{owner}/{repo}/times": {
  9153. "get": {
  9154. "produces": [
  9155. "application/json"
  9156. ],
  9157. "tags": [
  9158. "repository"
  9159. ],
  9160. "summary": "List a repo's tracked times",
  9161. "operationId": "repoTrackedTimes",
  9162. "parameters": [
  9163. {
  9164. "type": "string",
  9165. "description": "owner of the repo",
  9166. "name": "owner",
  9167. "in": "path",
  9168. "required": true
  9169. },
  9170. {
  9171. "type": "string",
  9172. "description": "name of the repo",
  9173. "name": "repo",
  9174. "in": "path",
  9175. "required": true
  9176. },
  9177. {
  9178. "type": "string",
  9179. "description": "optional filter by user (available for issue managers)",
  9180. "name": "user",
  9181. "in": "query"
  9182. },
  9183. {
  9184. "type": "string",
  9185. "format": "date-time",
  9186. "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
  9187. "name": "since",
  9188. "in": "query"
  9189. },
  9190. {
  9191. "type": "string",
  9192. "format": "date-time",
  9193. "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
  9194. "name": "before",
  9195. "in": "query"
  9196. },
  9197. {
  9198. "type": "integer",
  9199. "description": "page number of results to return (1-based)",
  9200. "name": "page",
  9201. "in": "query"
  9202. },
  9203. {
  9204. "type": "integer",
  9205. "description": "page size of results",
  9206. "name": "limit",
  9207. "in": "query"
  9208. }
  9209. ],
  9210. "responses": {
  9211. "200": {
  9212. "$ref": "#/responses/TrackedTimeList"
  9213. },
  9214. "400": {
  9215. "$ref": "#/responses/error"
  9216. },
  9217. "403": {
  9218. "$ref": "#/responses/forbidden"
  9219. }
  9220. }
  9221. }
  9222. },
  9223. "/repos/{owner}/{repo}/times/{user}": {
  9224. "get": {
  9225. "produces": [
  9226. "application/json"
  9227. ],
  9228. "tags": [
  9229. "repository"
  9230. ],
  9231. "summary": "List a user's tracked times in a repo",
  9232. "operationId": "userTrackedTimes",
  9233. "deprecated": true,
  9234. "parameters": [
  9235. {
  9236. "type": "string",
  9237. "description": "owner of the repo",
  9238. "name": "owner",
  9239. "in": "path",
  9240. "required": true
  9241. },
  9242. {
  9243. "type": "string",
  9244. "description": "name of the repo",
  9245. "name": "repo",
  9246. "in": "path",
  9247. "required": true
  9248. },
  9249. {
  9250. "type": "string",
  9251. "description": "username of user",
  9252. "name": "user",
  9253. "in": "path",
  9254. "required": true
  9255. }
  9256. ],
  9257. "responses": {
  9258. "200": {
  9259. "$ref": "#/responses/TrackedTimeList"
  9260. },
  9261. "400": {
  9262. "$ref": "#/responses/error"
  9263. },
  9264. "403": {
  9265. "$ref": "#/responses/forbidden"
  9266. }
  9267. }
  9268. }
  9269. },
  9270. "/repos/{owner}/{repo}/topics": {
  9271. "get": {
  9272. "produces": [
  9273. "application/json"
  9274. ],
  9275. "tags": [
  9276. "repository"
  9277. ],
  9278. "summary": "Get list of topics that a repository has",
  9279. "operationId": "repoListTopics",
  9280. "parameters": [
  9281. {
  9282. "type": "string",
  9283. "description": "owner of the repo",
  9284. "name": "owner",
  9285. "in": "path",
  9286. "required": true
  9287. },
  9288. {
  9289. "type": "string",
  9290. "description": "name of the repo",
  9291. "name": "repo",
  9292. "in": "path",
  9293. "required": true
  9294. },
  9295. {
  9296. "type": "integer",
  9297. "description": "page number of results to return (1-based)",
  9298. "name": "page",
  9299. "in": "query"
  9300. },
  9301. {
  9302. "type": "integer",
  9303. "description": "page size of results",
  9304. "name": "limit",
  9305. "in": "query"
  9306. }
  9307. ],
  9308. "responses": {
  9309. "200": {
  9310. "$ref": "#/responses/TopicNames"
  9311. }
  9312. }
  9313. },
  9314. "put": {
  9315. "produces": [
  9316. "application/json"
  9317. ],
  9318. "tags": [
  9319. "repository"
  9320. ],
  9321. "summary": "Replace list of topics for a repository",
  9322. "operationId": "repoUpdateTopics",
  9323. "parameters": [
  9324. {
  9325. "type": "string",
  9326. "description": "owner of the repo",
  9327. "name": "owner",
  9328. "in": "path",
  9329. "required": true
  9330. },
  9331. {
  9332. "type": "string",
  9333. "description": "name of the repo",
  9334. "name": "repo",
  9335. "in": "path",
  9336. "required": true
  9337. },
  9338. {
  9339. "name": "body",
  9340. "in": "body",
  9341. "schema": {
  9342. "$ref": "#/definitions/RepoTopicOptions"
  9343. }
  9344. }
  9345. ],
  9346. "responses": {
  9347. "204": {
  9348. "$ref": "#/responses/empty"
  9349. },
  9350. "422": {
  9351. "$ref": "#/responses/invalidTopicsError"
  9352. }
  9353. }
  9354. }
  9355. },
  9356. "/repos/{owner}/{repo}/topics/{topic}": {
  9357. "put": {
  9358. "produces": [
  9359. "application/json"
  9360. ],
  9361. "tags": [
  9362. "repository"
  9363. ],
  9364. "summary": "Add a topic to a repository",
  9365. "operationId": "repoAddTopíc",
  9366. "parameters": [
  9367. {
  9368. "type": "string",
  9369. "description": "owner of the repo",
  9370. "name": "owner",
  9371. "in": "path",
  9372. "required": true
  9373. },
  9374. {
  9375. "type": "string",
  9376. "description": "name of the repo",
  9377. "name": "repo",
  9378. "in": "path",
  9379. "required": true
  9380. },
  9381. {
  9382. "type": "string",
  9383. "description": "name of the topic to add",
  9384. "name": "topic",
  9385. "in": "path",
  9386. "required": true
  9387. }
  9388. ],
  9389. "responses": {
  9390. "204": {
  9391. "$ref": "#/responses/empty"
  9392. },
  9393. "422": {
  9394. "$ref": "#/responses/invalidTopicsError"
  9395. }
  9396. }
  9397. },
  9398. "delete": {
  9399. "produces": [
  9400. "application/json"
  9401. ],
  9402. "tags": [
  9403. "repository"
  9404. ],
  9405. "summary": "Delete a topic from a repository",
  9406. "operationId": "repoDeleteTopic",
  9407. "parameters": [
  9408. {
  9409. "type": "string",
  9410. "description": "owner of the repo",
  9411. "name": "owner",
  9412. "in": "path",
  9413. "required": true
  9414. },
  9415. {
  9416. "type": "string",
  9417. "description": "name of the repo",
  9418. "name": "repo",
  9419. "in": "path",
  9420. "required": true
  9421. },
  9422. {
  9423. "type": "string",
  9424. "description": "name of the topic to delete",
  9425. "name": "topic",
  9426. "in": "path",
  9427. "required": true
  9428. }
  9429. ],
  9430. "responses": {
  9431. "204": {
  9432. "$ref": "#/responses/empty"
  9433. },
  9434. "422": {
  9435. "$ref": "#/responses/invalidTopicsError"
  9436. }
  9437. }
  9438. }
  9439. },
  9440. "/repos/{owner}/{repo}/transfer": {
  9441. "post": {
  9442. "produces": [
  9443. "application/json"
  9444. ],
  9445. "tags": [
  9446. "repository"
  9447. ],
  9448. "summary": "Transfer a repo ownership",
  9449. "operationId": "repoTransfer",
  9450. "parameters": [
  9451. {
  9452. "type": "string",
  9453. "description": "owner of the repo to transfer",
  9454. "name": "owner",
  9455. "in": "path",
  9456. "required": true
  9457. },
  9458. {
  9459. "type": "string",
  9460. "description": "name of the repo to transfer",
  9461. "name": "repo",
  9462. "in": "path",
  9463. "required": true
  9464. },
  9465. {
  9466. "description": "Transfer Options",
  9467. "name": "body",
  9468. "in": "body",
  9469. "required": true,
  9470. "schema": {
  9471. "$ref": "#/definitions/TransferRepoOption"
  9472. }
  9473. }
  9474. ],
  9475. "responses": {
  9476. "202": {
  9477. "$ref": "#/responses/Repository"
  9478. },
  9479. "403": {
  9480. "$ref": "#/responses/forbidden"
  9481. },
  9482. "404": {
  9483. "$ref": "#/responses/notFound"
  9484. },
  9485. "422": {
  9486. "$ref": "#/responses/validationError"
  9487. }
  9488. }
  9489. }
  9490. },
  9491. "/repositories/{id}": {
  9492. "get": {
  9493. "produces": [
  9494. "application/json"
  9495. ],
  9496. "tags": [
  9497. "repository"
  9498. ],
  9499. "summary": "Get a repository by id",
  9500. "operationId": "repoGetByID",
  9501. "parameters": [
  9502. {
  9503. "type": "integer",
  9504. "format": "int64",
  9505. "description": "id of the repo to get",
  9506. "name": "id",
  9507. "in": "path",
  9508. "required": true
  9509. }
  9510. ],
  9511. "responses": {
  9512. "200": {
  9513. "$ref": "#/responses/Repository"
  9514. }
  9515. }
  9516. }
  9517. },
  9518. "/settings/api": {
  9519. "get": {
  9520. "produces": [
  9521. "application/json"
  9522. ],
  9523. "tags": [
  9524. "settings"
  9525. ],
  9526. "summary": "Get instance's global settings for api",
  9527. "operationId": "getGeneralAPISettings",
  9528. "responses": {
  9529. "200": {
  9530. "$ref": "#/responses/GeneralAPISettings"
  9531. }
  9532. }
  9533. }
  9534. },
  9535. "/settings/attachment": {
  9536. "get": {
  9537. "produces": [
  9538. "application/json"
  9539. ],
  9540. "tags": [
  9541. "settings"
  9542. ],
  9543. "summary": "Get instance's global settings for Attachment",
  9544. "operationId": "getGeneralAttachmentSettings",
  9545. "responses": {
  9546. "200": {
  9547. "$ref": "#/responses/GeneralAttachmentSettings"
  9548. }
  9549. }
  9550. }
  9551. },
  9552. "/settings/repository": {
  9553. "get": {
  9554. "produces": [
  9555. "application/json"
  9556. ],
  9557. "tags": [
  9558. "settings"
  9559. ],
  9560. "summary": "Get instance's global settings for repositories",
  9561. "operationId": "getGeneralRepositorySettings",
  9562. "responses": {
  9563. "200": {
  9564. "$ref": "#/responses/GeneralRepoSettings"
  9565. }
  9566. }
  9567. }
  9568. },
  9569. "/settings/ui": {
  9570. "get": {
  9571. "produces": [
  9572. "application/json"
  9573. ],
  9574. "tags": [
  9575. "settings"
  9576. ],
  9577. "summary": "Get instance's global settings for ui",
  9578. "operationId": "getGeneralUISettings",
  9579. "responses": {
  9580. "200": {
  9581. "$ref": "#/responses/GeneralUISettings"
  9582. }
  9583. }
  9584. }
  9585. },
  9586. "/signing-key.gpg": {
  9587. "get": {
  9588. "produces": [
  9589. "text/plain"
  9590. ],
  9591. "tags": [
  9592. "miscellaneous"
  9593. ],
  9594. "summary": "Get default signing-key.gpg",
  9595. "operationId": "getSigningKey",
  9596. "responses": {
  9597. "200": {
  9598. "description": "GPG armored public key",
  9599. "schema": {
  9600. "type": "string"
  9601. }
  9602. }
  9603. }
  9604. }
  9605. },
  9606. "/teams/{id}": {
  9607. "get": {
  9608. "produces": [
  9609. "application/json"
  9610. ],
  9611. "tags": [
  9612. "organization"
  9613. ],
  9614. "summary": "Get a team",
  9615. "operationId": "orgGetTeam",
  9616. "parameters": [
  9617. {
  9618. "type": "integer",
  9619. "format": "int64",
  9620. "description": "id of the team to get",
  9621. "name": "id",
  9622. "in": "path",
  9623. "required": true
  9624. }
  9625. ],
  9626. "responses": {
  9627. "200": {
  9628. "$ref": "#/responses/Team"
  9629. }
  9630. }
  9631. },
  9632. "delete": {
  9633. "tags": [
  9634. "organization"
  9635. ],
  9636. "summary": "Delete a team",
  9637. "operationId": "orgDeleteTeam",
  9638. "parameters": [
  9639. {
  9640. "type": "integer",
  9641. "format": "int64",
  9642. "description": "id of the team to delete",
  9643. "name": "id",
  9644. "in": "path",
  9645. "required": true
  9646. }
  9647. ],
  9648. "responses": {
  9649. "204": {
  9650. "description": "team deleted"
  9651. }
  9652. }
  9653. },
  9654. "patch": {
  9655. "consumes": [
  9656. "application/json"
  9657. ],
  9658. "produces": [
  9659. "application/json"
  9660. ],
  9661. "tags": [
  9662. "organization"
  9663. ],
  9664. "summary": "Edit a team",
  9665. "operationId": "orgEditTeam",
  9666. "parameters": [
  9667. {
  9668. "type": "integer",
  9669. "description": "id of the team to edit",
  9670. "name": "id",
  9671. "in": "path",
  9672. "required": true
  9673. },
  9674. {
  9675. "name": "body",
  9676. "in": "body",
  9677. "schema": {
  9678. "$ref": "#/definitions/EditTeamOption"
  9679. }
  9680. }
  9681. ],
  9682. "responses": {
  9683. "200": {
  9684. "$ref": "#/responses/Team"
  9685. }
  9686. }
  9687. }
  9688. },
  9689. "/teams/{id}/members": {
  9690. "get": {
  9691. "produces": [
  9692. "application/json"
  9693. ],
  9694. "tags": [
  9695. "organization"
  9696. ],
  9697. "summary": "List a team's members",
  9698. "operationId": "orgListTeamMembers",
  9699. "parameters": [
  9700. {
  9701. "type": "integer",
  9702. "format": "int64",
  9703. "description": "id of the team",
  9704. "name": "id",
  9705. "in": "path",
  9706. "required": true
  9707. },
  9708. {
  9709. "type": "integer",
  9710. "description": "page number of results to return (1-based)",
  9711. "name": "page",
  9712. "in": "query"
  9713. },
  9714. {
  9715. "type": "integer",
  9716. "description": "page size of results",
  9717. "name": "limit",
  9718. "in": "query"
  9719. }
  9720. ],
  9721. "responses": {
  9722. "200": {
  9723. "$ref": "#/responses/UserList"
  9724. }
  9725. }
  9726. }
  9727. },
  9728. "/teams/{id}/members/{username}": {
  9729. "get": {
  9730. "produces": [
  9731. "application/json"
  9732. ],
  9733. "tags": [
  9734. "organization"
  9735. ],
  9736. "summary": "List a particular member of team",
  9737. "operationId": "orgListTeamMember",
  9738. "parameters": [
  9739. {
  9740. "type": "integer",
  9741. "format": "int64",
  9742. "description": "id of the team",
  9743. "name": "id",
  9744. "in": "path",
  9745. "required": true
  9746. },
  9747. {
  9748. "type": "string",
  9749. "description": "username of the member to list",
  9750. "name": "username",
  9751. "in": "path",
  9752. "required": true
  9753. }
  9754. ],
  9755. "responses": {
  9756. "200": {
  9757. "$ref": "#/responses/User"
  9758. },
  9759. "404": {
  9760. "$ref": "#/responses/notFound"
  9761. }
  9762. }
  9763. },
  9764. "put": {
  9765. "produces": [
  9766. "application/json"
  9767. ],
  9768. "tags": [
  9769. "organization"
  9770. ],
  9771. "summary": "Add a team member",
  9772. "operationId": "orgAddTeamMember",
  9773. "parameters": [
  9774. {
  9775. "type": "integer",
  9776. "format": "int64",
  9777. "description": "id of the team",
  9778. "name": "id",
  9779. "in": "path",
  9780. "required": true
  9781. },
  9782. {
  9783. "type": "string",
  9784. "description": "username of the user to add",
  9785. "name": "username",
  9786. "in": "path",
  9787. "required": true
  9788. }
  9789. ],
  9790. "responses": {
  9791. "204": {
  9792. "$ref": "#/responses/empty"
  9793. },
  9794. "404": {
  9795. "$ref": "#/responses/notFound"
  9796. }
  9797. }
  9798. },
  9799. "delete": {
  9800. "produces": [
  9801. "application/json"
  9802. ],
  9803. "tags": [
  9804. "organization"
  9805. ],
  9806. "summary": "Remove a team member",
  9807. "operationId": "orgRemoveTeamMember",
  9808. "parameters": [
  9809. {
  9810. "type": "integer",
  9811. "format": "int64",
  9812. "description": "id of the team",
  9813. "name": "id",
  9814. "in": "path",
  9815. "required": true
  9816. },
  9817. {
  9818. "type": "string",
  9819. "description": "username of the user to remove",
  9820. "name": "username",
  9821. "in": "path",
  9822. "required": true
  9823. }
  9824. ],
  9825. "responses": {
  9826. "204": {
  9827. "$ref": "#/responses/empty"
  9828. },
  9829. "404": {
  9830. "$ref": "#/responses/notFound"
  9831. }
  9832. }
  9833. }
  9834. },
  9835. "/teams/{id}/repos": {
  9836. "get": {
  9837. "produces": [
  9838. "application/json"
  9839. ],
  9840. "tags": [
  9841. "organization"
  9842. ],
  9843. "summary": "List a team's repos",
  9844. "operationId": "orgListTeamRepos",
  9845. "parameters": [
  9846. {
  9847. "type": "integer",
  9848. "format": "int64",
  9849. "description": "id of the team",
  9850. "name": "id",
  9851. "in": "path",
  9852. "required": true
  9853. },
  9854. {
  9855. "type": "integer",
  9856. "description": "page number of results to return (1-based)",
  9857. "name": "page",
  9858. "in": "query"
  9859. },
  9860. {
  9861. "type": "integer",
  9862. "description": "page size of results",
  9863. "name": "limit",
  9864. "in": "query"
  9865. }
  9866. ],
  9867. "responses": {
  9868. "200": {
  9869. "$ref": "#/responses/RepositoryList"
  9870. }
  9871. }
  9872. }
  9873. },
  9874. "/teams/{id}/repos/{org}/{repo}": {
  9875. "put": {
  9876. "produces": [
  9877. "application/json"
  9878. ],
  9879. "tags": [
  9880. "organization"
  9881. ],
  9882. "summary": "Add a repository to a team",
  9883. "operationId": "orgAddTeamRepository",
  9884. "parameters": [
  9885. {
  9886. "type": "integer",
  9887. "format": "int64",
  9888. "description": "id of the team",
  9889. "name": "id",
  9890. "in": "path",
  9891. "required": true
  9892. },
  9893. {
  9894. "type": "string",
  9895. "description": "organization that owns the repo to add",
  9896. "name": "org",
  9897. "in": "path",
  9898. "required": true
  9899. },
  9900. {
  9901. "type": "string",
  9902. "description": "name of the repo to add",
  9903. "name": "repo",
  9904. "in": "path",
  9905. "required": true
  9906. }
  9907. ],
  9908. "responses": {
  9909. "204": {
  9910. "$ref": "#/responses/empty"
  9911. },
  9912. "403": {
  9913. "$ref": "#/responses/forbidden"
  9914. }
  9915. }
  9916. },
  9917. "delete": {
  9918. "description": "This does not delete the repository, it only removes the repository from the team.",
  9919. "produces": [
  9920. "application/json"
  9921. ],
  9922. "tags": [
  9923. "organization"
  9924. ],
  9925. "summary": "Remove a repository from a team",
  9926. "operationId": "orgRemoveTeamRepository",
  9927. "parameters": [
  9928. {
  9929. "type": "integer",
  9930. "format": "int64",
  9931. "description": "id of the team",
  9932. "name": "id",
  9933. "in": "path",
  9934. "required": true
  9935. },
  9936. {
  9937. "type": "string",
  9938. "description": "organization that owns the repo to remove",
  9939. "name": "org",
  9940. "in": "path",
  9941. "required": true
  9942. },
  9943. {
  9944. "type": "string",
  9945. "description": "name of the repo to remove",
  9946. "name": "repo",
  9947. "in": "path",
  9948. "required": true
  9949. }
  9950. ],
  9951. "responses": {
  9952. "204": {
  9953. "$ref": "#/responses/empty"
  9954. },
  9955. "403": {
  9956. "$ref": "#/responses/forbidden"
  9957. }
  9958. }
  9959. }
  9960. },
  9961. "/topics/search": {
  9962. "get": {
  9963. "produces": [
  9964. "application/json"
  9965. ],
  9966. "tags": [
  9967. "repository"
  9968. ],
  9969. "summary": "search topics via keyword",
  9970. "operationId": "topicSearch",
  9971. "parameters": [
  9972. {
  9973. "type": "string",
  9974. "description": "keywords to search",
  9975. "name": "q",
  9976. "in": "query",
  9977. "required": true
  9978. },
  9979. {
  9980. "type": "integer",
  9981. "description": "page number of results to return (1-based)",
  9982. "name": "page",
  9983. "in": "query"
  9984. },
  9985. {
  9986. "type": "integer",
  9987. "description": "page size of results",
  9988. "name": "limit",
  9989. "in": "query"
  9990. }
  9991. ],
  9992. "responses": {
  9993. "200": {
  9994. "$ref": "#/responses/TopicListResponse"
  9995. },
  9996. "403": {
  9997. "$ref": "#/responses/forbidden"
  9998. }
  9999. }
  10000. }
  10001. },
  10002. "/user": {
  10003. "get": {
  10004. "produces": [
  10005. "application/json"
  10006. ],
  10007. "tags": [
  10008. "user"
  10009. ],
  10010. "summary": "Get the authenticated user",
  10011. "operationId": "userGetCurrent",
  10012. "responses": {
  10013. "200": {
  10014. "$ref": "#/responses/User"
  10015. }
  10016. }
  10017. }
  10018. },
  10019. "/user/applications/oauth2": {
  10020. "get": {
  10021. "produces": [
  10022. "application/json"
  10023. ],
  10024. "tags": [
  10025. "user"
  10026. ],
  10027. "summary": "List the authenticated user's oauth2 applications",
  10028. "operationId": "userGetOauth2Application",
  10029. "parameters": [
  10030. {
  10031. "type": "integer",
  10032. "description": "page number of results to return (1-based)",
  10033. "name": "page",
  10034. "in": "query"
  10035. },
  10036. {
  10037. "type": "integer",
  10038. "description": "page size of results",
  10039. "name": "limit",
  10040. "in": "query"
  10041. }
  10042. ],
  10043. "responses": {
  10044. "200": {
  10045. "$ref": "#/responses/OAuth2ApplicationList"
  10046. }
  10047. }
  10048. },
  10049. "post": {
  10050. "produces": [
  10051. "application/json"
  10052. ],
  10053. "tags": [
  10054. "user"
  10055. ],
  10056. "summary": "creates a new OAuth2 application",
  10057. "operationId": "userCreateOAuth2Application",
  10058. "parameters": [
  10059. {
  10060. "name": "body",
  10061. "in": "body",
  10062. "required": true,
  10063. "schema": {
  10064. "$ref": "#/definitions/CreateOAuth2ApplicationOptions"
  10065. }
  10066. }
  10067. ],
  10068. "responses": {
  10069. "201": {
  10070. "$ref": "#/responses/OAuth2Application"
  10071. }
  10072. }
  10073. }
  10074. },
  10075. "/user/applications/oauth2/{id}": {
  10076. "get": {
  10077. "produces": [
  10078. "application/json"
  10079. ],
  10080. "tags": [
  10081. "user"
  10082. ],
  10083. "summary": "get an OAuth2 Application",
  10084. "operationId": "userGetOAuth2Application",
  10085. "parameters": [
  10086. {
  10087. "type": "integer",
  10088. "format": "int64",
  10089. "description": "Application ID to be found",
  10090. "name": "id",
  10091. "in": "path",
  10092. "required": true
  10093. }
  10094. ],
  10095. "responses": {
  10096. "200": {
  10097. "$ref": "#/responses/OAuth2Application"
  10098. }
  10099. }
  10100. },
  10101. "delete": {
  10102. "produces": [
  10103. "application/json"
  10104. ],
  10105. "tags": [
  10106. "user"
  10107. ],
  10108. "summary": "delete an OAuth2 Application",
  10109. "operationId": "userDeleteOAuth2Application",
  10110. "parameters": [
  10111. {
  10112. "type": "integer",
  10113. "format": "int64",
  10114. "description": "token to be deleted",
  10115. "name": "id",
  10116. "in": "path",
  10117. "required": true
  10118. }
  10119. ],
  10120. "responses": {
  10121. "204": {
  10122. "$ref": "#/responses/empty"
  10123. }
  10124. }
  10125. },
  10126. "patch": {
  10127. "produces": [
  10128. "application/json"
  10129. ],
  10130. "tags": [
  10131. "user"
  10132. ],
  10133. "summary": "update an OAuth2 Application, this includes regenerating the client secret",
  10134. "operationId": "userUpdateOAuth2Application",
  10135. "parameters": [
  10136. {
  10137. "type": "integer",
  10138. "format": "int64",
  10139. "description": "application to be updated",
  10140. "name": "id",
  10141. "in": "path",
  10142. "required": true
  10143. },
  10144. {
  10145. "name": "body",
  10146. "in": "body",
  10147. "required": true,
  10148. "schema": {
  10149. "$ref": "#/definitions/CreateOAuth2ApplicationOptions"
  10150. }
  10151. }
  10152. ],
  10153. "responses": {
  10154. "200": {
  10155. "$ref": "#/responses/OAuth2Application"
  10156. }
  10157. }
  10158. }
  10159. },
  10160. "/user/emails": {
  10161. "get": {
  10162. "produces": [
  10163. "application/json"
  10164. ],
  10165. "tags": [
  10166. "user"
  10167. ],
  10168. "summary": "List the authenticated user's email addresses",
  10169. "operationId": "userListEmails",
  10170. "responses": {
  10171. "200": {
  10172. "$ref": "#/responses/EmailList"
  10173. }
  10174. }
  10175. },
  10176. "post": {
  10177. "produces": [
  10178. "application/json"
  10179. ],
  10180. "tags": [
  10181. "user"
  10182. ],
  10183. "summary": "Add email addresses",
  10184. "operationId": "userAddEmail",
  10185. "parameters": [
  10186. {
  10187. "name": "body",
  10188. "in": "body",
  10189. "schema": {
  10190. "$ref": "#/definitions/CreateEmailOption"
  10191. }
  10192. }
  10193. ],
  10194. "responses": {
  10195. "201": {
  10196. "$ref": "#/responses/EmailList"
  10197. },
  10198. "422": {
  10199. "$ref": "#/responses/validationError"
  10200. }
  10201. }
  10202. },
  10203. "delete": {
  10204. "produces": [
  10205. "application/json"
  10206. ],
  10207. "tags": [
  10208. "user"
  10209. ],
  10210. "summary": "Delete email addresses",
  10211. "operationId": "userDeleteEmail",
  10212. "parameters": [
  10213. {
  10214. "name": "body",
  10215. "in": "body",
  10216. "schema": {
  10217. "$ref": "#/definitions/DeleteEmailOption"
  10218. }
  10219. }
  10220. ],
  10221. "responses": {
  10222. "204": {
  10223. "$ref": "#/responses/empty"
  10224. }
  10225. }
  10226. }
  10227. },
  10228. "/user/followers": {
  10229. "get": {
  10230. "produces": [
  10231. "application/json"
  10232. ],
  10233. "tags": [
  10234. "user"
  10235. ],
  10236. "summary": "List the authenticated user's followers",
  10237. "operationId": "userCurrentListFollowers",
  10238. "parameters": [
  10239. {
  10240. "type": "integer",
  10241. "description": "page number of results to return (1-based)",
  10242. "name": "page",
  10243. "in": "query"
  10244. },
  10245. {
  10246. "type": "integer",
  10247. "description": "page size of results",
  10248. "name": "limit",
  10249. "in": "query"
  10250. }
  10251. ],
  10252. "responses": {
  10253. "200": {
  10254. "$ref": "#/responses/UserList"
  10255. }
  10256. }
  10257. }
  10258. },
  10259. "/user/following": {
  10260. "get": {
  10261. "produces": [
  10262. "application/json"
  10263. ],
  10264. "tags": [
  10265. "user"
  10266. ],
  10267. "summary": "List the users that the authenticated user is following",
  10268. "operationId": "userCurrentListFollowing",
  10269. "parameters": [
  10270. {
  10271. "type": "integer",
  10272. "description": "page number of results to return (1-based)",
  10273. "name": "page",
  10274. "in": "query"
  10275. },
  10276. {
  10277. "type": "integer",
  10278. "description": "page size of results",
  10279. "name": "limit",
  10280. "in": "query"
  10281. }
  10282. ],
  10283. "responses": {
  10284. "200": {
  10285. "$ref": "#/responses/UserList"
  10286. }
  10287. }
  10288. }
  10289. },
  10290. "/user/following/{username}": {
  10291. "get": {
  10292. "tags": [
  10293. "user"
  10294. ],
  10295. "summary": "Check whether a user is followed by the authenticated user",
  10296. "operationId": "userCurrentCheckFollowing",
  10297. "parameters": [
  10298. {
  10299. "type": "string",
  10300. "description": "username of followed user",
  10301. "name": "username",
  10302. "in": "path",
  10303. "required": true
  10304. }
  10305. ],
  10306. "responses": {
  10307. "204": {
  10308. "$ref": "#/responses/empty"
  10309. },
  10310. "404": {
  10311. "$ref": "#/responses/notFound"
  10312. }
  10313. }
  10314. },
  10315. "put": {
  10316. "tags": [
  10317. "user"
  10318. ],
  10319. "summary": "Follow a user",
  10320. "operationId": "userCurrentPutFollow",
  10321. "parameters": [
  10322. {
  10323. "type": "string",
  10324. "description": "username of user to follow",
  10325. "name": "username",
  10326. "in": "path",
  10327. "required": true
  10328. }
  10329. ],
  10330. "responses": {
  10331. "204": {
  10332. "$ref": "#/responses/empty"
  10333. }
  10334. }
  10335. },
  10336. "delete": {
  10337. "tags": [
  10338. "user"
  10339. ],
  10340. "summary": "Unfollow a user",
  10341. "operationId": "userCurrentDeleteFollow",
  10342. "parameters": [
  10343. {
  10344. "type": "string",
  10345. "description": "username of user to unfollow",
  10346. "name": "username",
  10347. "in": "path",
  10348. "required": true
  10349. }
  10350. ],
  10351. "responses": {
  10352. "204": {
  10353. "$ref": "#/responses/empty"
  10354. }
  10355. }
  10356. }
  10357. },
  10358. "/user/gpg_keys": {
  10359. "get": {
  10360. "produces": [
  10361. "application/json"
  10362. ],
  10363. "tags": [
  10364. "user"
  10365. ],
  10366. "summary": "List the authenticated user's GPG keys",
  10367. "operationId": "userCurrentListGPGKeys",
  10368. "parameters": [
  10369. {
  10370. "type": "integer",
  10371. "description": "page number of results to return (1-based)",
  10372. "name": "page",
  10373. "in": "query"
  10374. },
  10375. {
  10376. "type": "integer",
  10377. "description": "page size of results",
  10378. "name": "limit",
  10379. "in": "query"
  10380. }
  10381. ],
  10382. "responses": {
  10383. "200": {
  10384. "$ref": "#/responses/GPGKeyList"
  10385. }
  10386. }
  10387. },
  10388. "post": {
  10389. "consumes": [
  10390. "application/json"
  10391. ],
  10392. "produces": [
  10393. "application/json"
  10394. ],
  10395. "tags": [
  10396. "user"
  10397. ],
  10398. "summary": "Create a GPG key",
  10399. "operationId": "userCurrentPostGPGKey",
  10400. "parameters": [
  10401. {
  10402. "name": "Form",
  10403. "in": "body",
  10404. "schema": {
  10405. "$ref": "#/definitions/CreateGPGKeyOption"
  10406. }
  10407. }
  10408. ],
  10409. "responses": {
  10410. "201": {
  10411. "$ref": "#/responses/GPGKey"
  10412. },
  10413. "404": {
  10414. "$ref": "#/responses/notFound"
  10415. },
  10416. "422": {
  10417. "$ref": "#/responses/validationError"
  10418. }
  10419. }
  10420. }
  10421. },
  10422. "/user/gpg_keys/{id}": {
  10423. "get": {
  10424. "produces": [
  10425. "application/json"
  10426. ],
  10427. "tags": [
  10428. "user"
  10429. ],
  10430. "summary": "Get a GPG key",
  10431. "operationId": "userCurrentGetGPGKey",
  10432. "parameters": [
  10433. {
  10434. "type": "integer",
  10435. "format": "int64",
  10436. "description": "id of key to get",
  10437. "name": "id",
  10438. "in": "path",
  10439. "required": true
  10440. }
  10441. ],
  10442. "responses": {
  10443. "200": {
  10444. "$ref": "#/responses/GPGKey"
  10445. },
  10446. "404": {
  10447. "$ref": "#/responses/notFound"
  10448. }
  10449. }
  10450. },
  10451. "delete": {
  10452. "produces": [
  10453. "application/json"
  10454. ],
  10455. "tags": [
  10456. "user"
  10457. ],
  10458. "summary": "Remove a GPG key",
  10459. "operationId": "userCurrentDeleteGPGKey",
  10460. "parameters": [
  10461. {
  10462. "type": "integer",
  10463. "format": "int64",
  10464. "description": "id of key to delete",
  10465. "name": "id",
  10466. "in": "path",
  10467. "required": true
  10468. }
  10469. ],
  10470. "responses": {
  10471. "204": {
  10472. "$ref": "#/responses/empty"
  10473. },
  10474. "403": {
  10475. "$ref": "#/responses/forbidden"
  10476. },
  10477. "404": {
  10478. "$ref": "#/responses/notFound"
  10479. }
  10480. }
  10481. }
  10482. },
  10483. "/user/keys": {
  10484. "get": {
  10485. "produces": [
  10486. "application/json"
  10487. ],
  10488. "tags": [
  10489. "user"
  10490. ],
  10491. "summary": "List the authenticated user's public keys",
  10492. "operationId": "userCurrentListKeys",
  10493. "parameters": [
  10494. {
  10495. "type": "string",
  10496. "description": "fingerprint of the key",
  10497. "name": "fingerprint",
  10498. "in": "query"
  10499. },
  10500. {
  10501. "type": "integer",
  10502. "description": "page number of results to return (1-based)",
  10503. "name": "page",
  10504. "in": "query"
  10505. },
  10506. {
  10507. "type": "integer",
  10508. "description": "page size of results",
  10509. "name": "limit",
  10510. "in": "query"
  10511. }
  10512. ],
  10513. "responses": {
  10514. "200": {
  10515. "$ref": "#/responses/PublicKeyList"
  10516. }
  10517. }
  10518. },
  10519. "post": {
  10520. "consumes": [
  10521. "application/json"
  10522. ],
  10523. "produces": [
  10524. "application/json"
  10525. ],
  10526. "tags": [
  10527. "user"
  10528. ],
  10529. "summary": "Create a public key",
  10530. "operationId": "userCurrentPostKey",
  10531. "parameters": [
  10532. {
  10533. "name": "body",
  10534. "in": "body",
  10535. "schema": {
  10536. "$ref": "#/definitions/CreateKeyOption"
  10537. }
  10538. }
  10539. ],
  10540. "responses": {
  10541. "201": {
  10542. "$ref": "#/responses/PublicKey"
  10543. },
  10544. "422": {
  10545. "$ref": "#/responses/validationError"
  10546. }
  10547. }
  10548. }
  10549. },
  10550. "/user/keys/{id}": {
  10551. "get": {
  10552. "produces": [
  10553. "application/json"
  10554. ],
  10555. "tags": [
  10556. "user"
  10557. ],
  10558. "summary": "Get a public key",
  10559. "operationId": "userCurrentGetKey",
  10560. "parameters": [
  10561. {
  10562. "type": "integer",
  10563. "format": "int64",
  10564. "description": "id of key to get",
  10565. "name": "id",
  10566. "in": "path",
  10567. "required": true
  10568. }
  10569. ],
  10570. "responses": {
  10571. "200": {
  10572. "$ref": "#/responses/PublicKey"
  10573. },
  10574. "404": {
  10575. "$ref": "#/responses/notFound"
  10576. }
  10577. }
  10578. },
  10579. "delete": {
  10580. "produces": [
  10581. "application/json"
  10582. ],
  10583. "tags": [
  10584. "user"
  10585. ],
  10586. "summary": "Delete a public key",
  10587. "operationId": "userCurrentDeleteKey",
  10588. "parameters": [
  10589. {
  10590. "type": "integer",
  10591. "format": "int64",
  10592. "description": "id of key to delete",
  10593. "name": "id",
  10594. "in": "path",
  10595. "required": true
  10596. }
  10597. ],
  10598. "responses": {
  10599. "204": {
  10600. "$ref": "#/responses/empty"
  10601. },
  10602. "403": {
  10603. "$ref": "#/responses/forbidden"
  10604. },
  10605. "404": {
  10606. "$ref": "#/responses/notFound"
  10607. }
  10608. }
  10609. }
  10610. },
  10611. "/user/orgs": {
  10612. "get": {
  10613. "produces": [
  10614. "application/json"
  10615. ],
  10616. "tags": [
  10617. "organization"
  10618. ],
  10619. "summary": "List the current user's organizations",
  10620. "operationId": "orgListCurrentUserOrgs",
  10621. "parameters": [
  10622. {
  10623. "type": "integer",
  10624. "description": "page number of results to return (1-based)",
  10625. "name": "page",
  10626. "in": "query"
  10627. },
  10628. {
  10629. "type": "integer",
  10630. "description": "page size of results",
  10631. "name": "limit",
  10632. "in": "query"
  10633. }
  10634. ],
  10635. "responses": {
  10636. "200": {
  10637. "$ref": "#/responses/OrganizationList"
  10638. }
  10639. }
  10640. }
  10641. },
  10642. "/user/repos": {
  10643. "get": {
  10644. "produces": [
  10645. "application/json"
  10646. ],
  10647. "tags": [
  10648. "user"
  10649. ],
  10650. "summary": "List the repos that the authenticated user owns or has access to",
  10651. "operationId": "userCurrentListRepos",
  10652. "parameters": [
  10653. {
  10654. "type": "integer",
  10655. "description": "page number of results to return (1-based)",
  10656. "name": "page",
  10657. "in": "query"
  10658. },
  10659. {
  10660. "type": "integer",
  10661. "description": "page size of results",
  10662. "name": "limit",
  10663. "in": "query"
  10664. }
  10665. ],
  10666. "responses": {
  10667. "200": {
  10668. "$ref": "#/responses/RepositoryList"
  10669. }
  10670. }
  10671. },
  10672. "post": {
  10673. "consumes": [
  10674. "application/json"
  10675. ],
  10676. "produces": [
  10677. "application/json"
  10678. ],
  10679. "tags": [
  10680. "repository",
  10681. "user"
  10682. ],
  10683. "summary": "Create a repository",
  10684. "operationId": "createCurrentUserRepo",
  10685. "parameters": [
  10686. {
  10687. "name": "body",
  10688. "in": "body",
  10689. "schema": {
  10690. "$ref": "#/definitions/CreateRepoOption"
  10691. }
  10692. }
  10693. ],
  10694. "responses": {
  10695. "201": {
  10696. "$ref": "#/responses/Repository"
  10697. },
  10698. "409": {
  10699. "description": "The repository with the same name already exists."
  10700. },
  10701. "422": {
  10702. "$ref": "#/responses/validationError"
  10703. }
  10704. }
  10705. }
  10706. },
  10707. "/user/starred": {
  10708. "get": {
  10709. "produces": [
  10710. "application/json"
  10711. ],
  10712. "tags": [
  10713. "user"
  10714. ],
  10715. "summary": "The repos that the authenticated user has starred",
  10716. "operationId": "userCurrentListStarred",
  10717. "parameters": [
  10718. {
  10719. "type": "integer",
  10720. "description": "page number of results to return (1-based)",
  10721. "name": "page",
  10722. "in": "query"
  10723. },
  10724. {
  10725. "type": "integer",
  10726. "description": "page size of results",
  10727. "name": "limit",
  10728. "in": "query"
  10729. }
  10730. ],
  10731. "responses": {
  10732. "200": {
  10733. "$ref": "#/responses/RepositoryList"
  10734. }
  10735. }
  10736. }
  10737. },
  10738. "/user/starred/{owner}/{repo}": {
  10739. "get": {
  10740. "tags": [
  10741. "user"
  10742. ],
  10743. "summary": "Whether the authenticated is starring the repo",
  10744. "operationId": "userCurrentCheckStarring",
  10745. "parameters": [
  10746. {
  10747. "type": "string",
  10748. "description": "owner of the repo",
  10749. "name": "owner",
  10750. "in": "path",
  10751. "required": true
  10752. },
  10753. {
  10754. "type": "string",
  10755. "description": "name of the repo",
  10756. "name": "repo",
  10757. "in": "path",
  10758. "required": true
  10759. }
  10760. ],
  10761. "responses": {
  10762. "204": {
  10763. "$ref": "#/responses/empty"
  10764. },
  10765. "404": {
  10766. "$ref": "#/responses/notFound"
  10767. }
  10768. }
  10769. },
  10770. "put": {
  10771. "tags": [
  10772. "user"
  10773. ],
  10774. "summary": "Star the given repo",
  10775. "operationId": "userCurrentPutStar",
  10776. "parameters": [
  10777. {
  10778. "type": "string",
  10779. "description": "owner of the repo to star",
  10780. "name": "owner",
  10781. "in": "path",
  10782. "required": true
  10783. },
  10784. {
  10785. "type": "string",
  10786. "description": "name of the repo to star",
  10787. "name": "repo",
  10788. "in": "path",
  10789. "required": true
  10790. }
  10791. ],
  10792. "responses": {
  10793. "204": {
  10794. "$ref": "#/responses/empty"
  10795. }
  10796. }
  10797. },
  10798. "delete": {
  10799. "tags": [
  10800. "user"
  10801. ],
  10802. "summary": "Unstar the given repo",
  10803. "operationId": "userCurrentDeleteStar",
  10804. "parameters": [
  10805. {
  10806. "type": "string",
  10807. "description": "owner of the repo to unstar",
  10808. "name": "owner",
  10809. "in": "path",
  10810. "required": true
  10811. },
  10812. {
  10813. "type": "string",
  10814. "description": "name of the repo to unstar",
  10815. "name": "repo",
  10816. "in": "path",
  10817. "required": true
  10818. }
  10819. ],
  10820. "responses": {
  10821. "204": {
  10822. "$ref": "#/responses/empty"
  10823. }
  10824. }
  10825. }
  10826. },
  10827. "/user/stopwatches": {
  10828. "get": {
  10829. "consumes": [
  10830. "application/json"
  10831. ],
  10832. "produces": [
  10833. "application/json"
  10834. ],
  10835. "tags": [
  10836. "user"
  10837. ],
  10838. "summary": "Get list of all existing stopwatches",
  10839. "operationId": "userGetStopWatches",
  10840. "parameters": [
  10841. {
  10842. "type": "integer",
  10843. "description": "page number of results to return (1-based)",
  10844. "name": "page",
  10845. "in": "query"
  10846. },
  10847. {
  10848. "type": "integer",
  10849. "description": "page size of results",
  10850. "name": "limit",
  10851. "in": "query"
  10852. }
  10853. ],
  10854. "responses": {
  10855. "200": {
  10856. "$ref": "#/responses/StopWatchList"
  10857. }
  10858. }
  10859. }
  10860. },
  10861. "/user/subscriptions": {
  10862. "get": {
  10863. "produces": [
  10864. "application/json"
  10865. ],
  10866. "tags": [
  10867. "user"
  10868. ],
  10869. "summary": "List repositories watched by the authenticated user",
  10870. "operationId": "userCurrentListSubscriptions",
  10871. "parameters": [
  10872. {
  10873. "type": "integer",
  10874. "description": "page number of results to return (1-based)",
  10875. "name": "page",
  10876. "in": "query"
  10877. },
  10878. {
  10879. "type": "integer",
  10880. "description": "page size of results",
  10881. "name": "limit",
  10882. "in": "query"
  10883. }
  10884. ],
  10885. "responses": {
  10886. "200": {
  10887. "$ref": "#/responses/RepositoryList"
  10888. }
  10889. }
  10890. }
  10891. },
  10892. "/user/teams": {
  10893. "get": {
  10894. "produces": [
  10895. "application/json"
  10896. ],
  10897. "tags": [
  10898. "user"
  10899. ],
  10900. "summary": "List all the teams a user belongs to",
  10901. "operationId": "userListTeams",
  10902. "parameters": [
  10903. {
  10904. "type": "integer",
  10905. "description": "page number of results to return (1-based)",
  10906. "name": "page",
  10907. "in": "query"
  10908. },
  10909. {
  10910. "type": "integer",
  10911. "description": "page size of results",
  10912. "name": "limit",
  10913. "in": "query"
  10914. }
  10915. ],
  10916. "responses": {
  10917. "200": {
  10918. "$ref": "#/responses/TeamList"
  10919. }
  10920. }
  10921. }
  10922. },
  10923. "/user/times": {
  10924. "get": {
  10925. "produces": [
  10926. "application/json"
  10927. ],
  10928. "tags": [
  10929. "user"
  10930. ],
  10931. "summary": "List the current user's tracked times",
  10932. "operationId": "userCurrentTrackedTimes",
  10933. "parameters": [
  10934. {
  10935. "type": "string",
  10936. "format": "date-time",
  10937. "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
  10938. "name": "since",
  10939. "in": "query"
  10940. },
  10941. {
  10942. "type": "string",
  10943. "format": "date-time",
  10944. "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
  10945. "name": "before",
  10946. "in": "query"
  10947. }
  10948. ],
  10949. "responses": {
  10950. "200": {
  10951. "$ref": "#/responses/TrackedTimeList"
  10952. }
  10953. }
  10954. }
  10955. },
  10956. "/users/search": {
  10957. "get": {
  10958. "produces": [
  10959. "application/json"
  10960. ],
  10961. "tags": [
  10962. "user"
  10963. ],
  10964. "summary": "Search for users",
  10965. "operationId": "userSearch",
  10966. "parameters": [
  10967. {
  10968. "type": "string",
  10969. "description": "keyword",
  10970. "name": "q",
  10971. "in": "query"
  10972. },
  10973. {
  10974. "type": "integer",
  10975. "format": "int64",
  10976. "description": "ID of the user to search for",
  10977. "name": "uid",
  10978. "in": "query"
  10979. },
  10980. {
  10981. "type": "integer",
  10982. "description": "page number of results to return (1-based)",
  10983. "name": "page",
  10984. "in": "query"
  10985. },
  10986. {
  10987. "type": "integer",
  10988. "description": "page size of results",
  10989. "name": "limit",
  10990. "in": "query"
  10991. }
  10992. ],
  10993. "responses": {
  10994. "200": {
  10995. "description": "SearchResults of a successful search",
  10996. "schema": {
  10997. "type": "object",
  10998. "properties": {
  10999. "data": {
  11000. "type": "array",
  11001. "items": {
  11002. "$ref": "#/definitions/User"
  11003. }
  11004. },
  11005. "ok": {
  11006. "type": "boolean"
  11007. }
  11008. }
  11009. }
  11010. }
  11011. }
  11012. }
  11013. },
  11014. "/users/{follower}/following/{followee}": {
  11015. "get": {
  11016. "tags": [
  11017. "user"
  11018. ],
  11019. "summary": "Check if one user is following another user",
  11020. "operationId": "userCheckFollowing",
  11021. "parameters": [
  11022. {
  11023. "type": "string",
  11024. "description": "username of following user",
  11025. "name": "follower",
  11026. "in": "path",
  11027. "required": true
  11028. },
  11029. {
  11030. "type": "string",
  11031. "description": "username of followed user",
  11032. "name": "followee",
  11033. "in": "path",
  11034. "required": true
  11035. }
  11036. ],
  11037. "responses": {
  11038. "204": {
  11039. "$ref": "#/responses/empty"
  11040. },
  11041. "404": {
  11042. "$ref": "#/responses/notFound"
  11043. }
  11044. }
  11045. }
  11046. },
  11047. "/users/{username}": {
  11048. "get": {
  11049. "produces": [
  11050. "application/json"
  11051. ],
  11052. "tags": [
  11053. "user"
  11054. ],
  11055. "summary": "Get a user",
  11056. "operationId": "userGet",
  11057. "parameters": [
  11058. {
  11059. "type": "string",
  11060. "description": "username of user to get",
  11061. "name": "username",
  11062. "in": "path",
  11063. "required": true
  11064. }
  11065. ],
  11066. "responses": {
  11067. "200": {
  11068. "$ref": "#/responses/User"
  11069. },
  11070. "404": {
  11071. "$ref": "#/responses/notFound"
  11072. }
  11073. }
  11074. }
  11075. },
  11076. "/users/{username}/followers": {
  11077. "get": {
  11078. "produces": [
  11079. "application/json"
  11080. ],
  11081. "tags": [
  11082. "user"
  11083. ],
  11084. "summary": "List the given user's followers",
  11085. "operationId": "userListFollowers",
  11086. "parameters": [
  11087. {
  11088. "type": "string",
  11089. "description": "username of user",
  11090. "name": "username",
  11091. "in": "path",
  11092. "required": true
  11093. },
  11094. {
  11095. "type": "integer",
  11096. "description": "page number of results to return (1-based)",
  11097. "name": "page",
  11098. "in": "query"
  11099. },
  11100. {
  11101. "type": "integer",
  11102. "description": "page size of results",
  11103. "name": "limit",
  11104. "in": "query"
  11105. }
  11106. ],
  11107. "responses": {
  11108. "200": {
  11109. "$ref": "#/responses/UserList"
  11110. }
  11111. }
  11112. }
  11113. },
  11114. "/users/{username}/following": {
  11115. "get": {
  11116. "produces": [
  11117. "application/json"
  11118. ],
  11119. "tags": [
  11120. "user"
  11121. ],
  11122. "summary": "List the users that the given user is following",
  11123. "operationId": "userListFollowing",
  11124. "parameters": [
  11125. {
  11126. "type": "string",
  11127. "description": "username of user",
  11128. "name": "username",
  11129. "in": "path",
  11130. "required": true
  11131. },
  11132. {
  11133. "type": "integer",
  11134. "description": "page number of results to return (1-based)",
  11135. "name": "page",
  11136. "in": "query"
  11137. },
  11138. {
  11139. "type": "integer",
  11140. "description": "page size of results",
  11141. "name": "limit",
  11142. "in": "query"
  11143. }
  11144. ],
  11145. "responses": {
  11146. "200": {
  11147. "$ref": "#/responses/UserList"
  11148. }
  11149. }
  11150. }
  11151. },
  11152. "/users/{username}/gpg_keys": {
  11153. "get": {
  11154. "produces": [
  11155. "application/json"
  11156. ],
  11157. "tags": [
  11158. "user"
  11159. ],
  11160. "summary": "List the given user's GPG keys",
  11161. "operationId": "userListGPGKeys",
  11162. "parameters": [
  11163. {
  11164. "type": "string",
  11165. "description": "username of user",
  11166. "name": "username",
  11167. "in": "path",
  11168. "required": true
  11169. },
  11170. {
  11171. "type": "integer",
  11172. "description": "page number of results to return (1-based)",
  11173. "name": "page",
  11174. "in": "query"
  11175. },
  11176. {
  11177. "type": "integer",
  11178. "description": "page size of results",
  11179. "name": "limit",
  11180. "in": "query"
  11181. }
  11182. ],
  11183. "responses": {
  11184. "200": {
  11185. "$ref": "#/responses/GPGKeyList"
  11186. }
  11187. }
  11188. }
  11189. },
  11190. "/users/{username}/heatmap": {
  11191. "get": {
  11192. "produces": [
  11193. "application/json"
  11194. ],
  11195. "tags": [
  11196. "user"
  11197. ],
  11198. "summary": "Get a user's heatmap",
  11199. "operationId": "userGetHeatmapData",
  11200. "parameters": [
  11201. {
  11202. "type": "string",
  11203. "description": "username of user to get",
  11204. "name": "username",
  11205. "in": "path",
  11206. "required": true
  11207. }
  11208. ],
  11209. "responses": {
  11210. "200": {
  11211. "$ref": "#/responses/UserHeatmapData"
  11212. },
  11213. "404": {
  11214. "$ref": "#/responses/notFound"
  11215. }
  11216. }
  11217. }
  11218. },
  11219. "/users/{username}/keys": {
  11220. "get": {
  11221. "produces": [
  11222. "application/json"
  11223. ],
  11224. "tags": [
  11225. "user"
  11226. ],
  11227. "summary": "List the given user's public keys",
  11228. "operationId": "userListKeys",
  11229. "parameters": [
  11230. {
  11231. "type": "string",
  11232. "description": "username of user",
  11233. "name": "username",
  11234. "in": "path",
  11235. "required": true
  11236. },
  11237. {
  11238. "type": "string",
  11239. "description": "fingerprint of the key",
  11240. "name": "fingerprint",
  11241. "in": "query"
  11242. },
  11243. {
  11244. "type": "integer",
  11245. "description": "page number of results to return (1-based)",
  11246. "name": "page",
  11247. "in": "query"
  11248. },
  11249. {
  11250. "type": "integer",
  11251. "description": "page size of results",
  11252. "name": "limit",
  11253. "in": "query"
  11254. }
  11255. ],
  11256. "responses": {
  11257. "200": {
  11258. "$ref": "#/responses/PublicKeyList"
  11259. }
  11260. }
  11261. }
  11262. },
  11263. "/users/{username}/orgs": {
  11264. "get": {
  11265. "produces": [
  11266. "application/json"
  11267. ],
  11268. "tags": [
  11269. "organization"
  11270. ],
  11271. "summary": "List a user's organizations",
  11272. "operationId": "orgListUserOrgs",
  11273. "parameters": [
  11274. {
  11275. "type": "string",
  11276. "description": "username of user",
  11277. "name": "username",
  11278. "in": "path",
  11279. "required": true
  11280. },
  11281. {
  11282. "type": "integer",
  11283. "description": "page number of results to return (1-based)",
  11284. "name": "page",
  11285. "in": "query"
  11286. },
  11287. {
  11288. "type": "integer",
  11289. "description": "page size of results",
  11290. "name": "limit",
  11291. "in": "query"
  11292. }
  11293. ],
  11294. "responses": {
  11295. "200": {
  11296. "$ref": "#/responses/OrganizationList"
  11297. }
  11298. }
  11299. }
  11300. },
  11301. "/users/{username}/repos": {
  11302. "get": {
  11303. "produces": [
  11304. "application/json"
  11305. ],
  11306. "tags": [
  11307. "user"
  11308. ],
  11309. "summary": "List the repos owned by the given user",
  11310. "operationId": "userListRepos",
  11311. "parameters": [
  11312. {
  11313. "type": "string",
  11314. "description": "username of user",
  11315. "name": "username",
  11316. "in": "path",
  11317. "required": true
  11318. },
  11319. {
  11320. "type": "integer",
  11321. "description": "page number of results to return (1-based)",
  11322. "name": "page",
  11323. "in": "query"
  11324. },
  11325. {
  11326. "type": "integer",
  11327. "description": "page size of results",
  11328. "name": "limit",
  11329. "in": "query"
  11330. }
  11331. ],
  11332. "responses": {
  11333. "200": {
  11334. "$ref": "#/responses/RepositoryList"
  11335. }
  11336. }
  11337. }
  11338. },
  11339. "/users/{username}/starred": {
  11340. "get": {
  11341. "produces": [
  11342. "application/json"
  11343. ],
  11344. "tags": [
  11345. "user"
  11346. ],
  11347. "summary": "The repos that the given user has starred",
  11348. "operationId": "userListStarred",
  11349. "parameters": [
  11350. {
  11351. "type": "string",
  11352. "description": "username of user",
  11353. "name": "username",
  11354. "in": "path",
  11355. "required": true
  11356. },
  11357. {
  11358. "type": "integer",
  11359. "description": "page number of results to return (1-based)",
  11360. "name": "page",
  11361. "in": "query"
  11362. },
  11363. {
  11364. "type": "integer",
  11365. "description": "page size of results",
  11366. "name": "limit",
  11367. "in": "query"
  11368. }
  11369. ],
  11370. "responses": {
  11371. "200": {
  11372. "$ref": "#/responses/RepositoryList"
  11373. }
  11374. }
  11375. }
  11376. },
  11377. "/users/{username}/subscriptions": {
  11378. "get": {
  11379. "produces": [
  11380. "application/json"
  11381. ],
  11382. "tags": [
  11383. "user"
  11384. ],
  11385. "summary": "List the repositories watched by a user",
  11386. "operationId": "userListSubscriptions",
  11387. "parameters": [
  11388. {
  11389. "type": "string",
  11390. "description": "username of the user",
  11391. "name": "username",
  11392. "in": "path",
  11393. "required": true
  11394. },
  11395. {
  11396. "type": "integer",
  11397. "description": "page number of results to return (1-based)",
  11398. "name": "page",
  11399. "in": "query"
  11400. },
  11401. {
  11402. "type": "integer",
  11403. "description": "page size of results",
  11404. "name": "limit",
  11405. "in": "query"
  11406. }
  11407. ],
  11408. "responses": {
  11409. "200": {
  11410. "$ref": "#/responses/RepositoryList"
  11411. }
  11412. }
  11413. }
  11414. },
  11415. "/users/{username}/tokens": {
  11416. "get": {
  11417. "produces": [
  11418. "application/json"
  11419. ],
  11420. "tags": [
  11421. "user"
  11422. ],
  11423. "summary": "List the authenticated user's access tokens",
  11424. "operationId": "userGetTokens",
  11425. "parameters": [
  11426. {
  11427. "type": "string",
  11428. "description": "username of user",
  11429. "name": "username",
  11430. "in": "path",
  11431. "required": true
  11432. },
  11433. {
  11434. "type": "integer",
  11435. "description": "page number of results to return (1-based)",
  11436. "name": "page",
  11437. "in": "query"
  11438. },
  11439. {
  11440. "type": "integer",
  11441. "description": "page size of results",
  11442. "name": "limit",
  11443. "in": "query"
  11444. }
  11445. ],
  11446. "responses": {
  11447. "200": {
  11448. "$ref": "#/responses/AccessTokenList"
  11449. }
  11450. }
  11451. },
  11452. "post": {
  11453. "consumes": [
  11454. "application/json"
  11455. ],
  11456. "produces": [
  11457. "application/json"
  11458. ],
  11459. "tags": [
  11460. "user"
  11461. ],
  11462. "summary": "Create an access token",
  11463. "operationId": "userCreateToken",
  11464. "parameters": [
  11465. {
  11466. "type": "string",
  11467. "x-go-name": "Name",
  11468. "description": "username of user",
  11469. "name": "username",
  11470. "in": "path",
  11471. "required": true
  11472. },
  11473. {
  11474. "name": "accessToken",
  11475. "in": "body",
  11476. "schema": {
  11477. "type": "object",
  11478. "required": [
  11479. "name"
  11480. ],
  11481. "properties": {
  11482. "name": {
  11483. "type": "string"
  11484. }
  11485. }
  11486. }
  11487. }
  11488. ],
  11489. "responses": {
  11490. "201": {
  11491. "$ref": "#/responses/AccessToken"
  11492. }
  11493. }
  11494. }
  11495. },
  11496. "/users/{username}/tokens/{token}": {
  11497. "delete": {
  11498. "produces": [
  11499. "application/json"
  11500. ],
  11501. "tags": [
  11502. "user"
  11503. ],
  11504. "summary": "delete an access token",
  11505. "operationId": "userDeleteAccessToken",
  11506. "parameters": [
  11507. {
  11508. "type": "string",
  11509. "description": "username of user",
  11510. "name": "username",
  11511. "in": "path",
  11512. "required": true
  11513. },
  11514. {
  11515. "type": "string",
  11516. "description": "token to be deleted, identified by ID and if not available by name",
  11517. "name": "token",
  11518. "in": "path",
  11519. "required": true
  11520. }
  11521. ],
  11522. "responses": {
  11523. "204": {
  11524. "$ref": "#/responses/empty"
  11525. },
  11526. "422": {
  11527. "$ref": "#/responses/error"
  11528. }
  11529. }
  11530. }
  11531. },
  11532. "/version": {
  11533. "get": {
  11534. "produces": [
  11535. "application/json"
  11536. ],
  11537. "tags": [
  11538. "miscellaneous"
  11539. ],
  11540. "summary": "Returns the version of the Gitea application",
  11541. "operationId": "getVersion",
  11542. "responses": {
  11543. "200": {
  11544. "$ref": "#/responses/ServerVersion"
  11545. }
  11546. }
  11547. }
  11548. }
  11549. },
  11550. "definitions": {
  11551. "APIError": {
  11552. "description": "APIError is an api error with a message",
  11553. "type": "object",
  11554. "properties": {
  11555. "message": {
  11556. "type": "string",
  11557. "x-go-name": "Message"
  11558. },
  11559. "url": {
  11560. "type": "string",
  11561. "x-go-name": "URL"
  11562. }
  11563. },
  11564. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11565. },
  11566. "AccessToken": {
  11567. "type": "object",
  11568. "title": "AccessToken represents an API access token.",
  11569. "properties": {
  11570. "id": {
  11571. "type": "integer",
  11572. "format": "int64",
  11573. "x-go-name": "ID"
  11574. },
  11575. "name": {
  11576. "type": "string",
  11577. "x-go-name": "Name"
  11578. },
  11579. "sha1": {
  11580. "type": "string",
  11581. "x-go-name": "Token"
  11582. },
  11583. "token_last_eight": {
  11584. "type": "string",
  11585. "x-go-name": "TokenLastEight"
  11586. }
  11587. },
  11588. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11589. },
  11590. "AddCollaboratorOption": {
  11591. "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
  11592. "type": "object",
  11593. "properties": {
  11594. "permission": {
  11595. "type": "string",
  11596. "x-go-name": "Permission"
  11597. }
  11598. },
  11599. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11600. },
  11601. "AddTimeOption": {
  11602. "description": "AddTimeOption options for adding time to an issue",
  11603. "type": "object",
  11604. "required": [
  11605. "time"
  11606. ],
  11607. "properties": {
  11608. "created": {
  11609. "type": "string",
  11610. "format": "date-time",
  11611. "x-go-name": "Created"
  11612. },
  11613. "time": {
  11614. "description": "time in seconds",
  11615. "type": "integer",
  11616. "format": "int64",
  11617. "x-go-name": "Time"
  11618. },
  11619. "user_name": {
  11620. "description": "User who spent the time (optional)",
  11621. "type": "string",
  11622. "x-go-name": "User"
  11623. }
  11624. },
  11625. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11626. },
  11627. "AnnotatedTag": {
  11628. "description": "AnnotatedTag represents an annotated tag",
  11629. "type": "object",
  11630. "properties": {
  11631. "message": {
  11632. "type": "string",
  11633. "x-go-name": "Message"
  11634. },
  11635. "object": {
  11636. "$ref": "#/definitions/AnnotatedTagObject"
  11637. },
  11638. "sha": {
  11639. "type": "string",
  11640. "x-go-name": "SHA"
  11641. },
  11642. "tag": {
  11643. "type": "string",
  11644. "x-go-name": "Tag"
  11645. },
  11646. "tagger": {
  11647. "$ref": "#/definitions/CommitUser"
  11648. },
  11649. "url": {
  11650. "type": "string",
  11651. "x-go-name": "URL"
  11652. },
  11653. "verification": {
  11654. "$ref": "#/definitions/PayloadCommitVerification"
  11655. }
  11656. },
  11657. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11658. },
  11659. "AnnotatedTagObject": {
  11660. "description": "AnnotatedTagObject contains meta information of the tag object",
  11661. "type": "object",
  11662. "properties": {
  11663. "sha": {
  11664. "type": "string",
  11665. "x-go-name": "SHA"
  11666. },
  11667. "type": {
  11668. "type": "string",
  11669. "x-go-name": "Type"
  11670. },
  11671. "url": {
  11672. "type": "string",
  11673. "x-go-name": "URL"
  11674. }
  11675. },
  11676. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11677. },
  11678. "Attachment": {
  11679. "description": "Attachment a generic attachment",
  11680. "type": "object",
  11681. "properties": {
  11682. "browser_download_url": {
  11683. "type": "string",
  11684. "x-go-name": "DownloadURL"
  11685. },
  11686. "created_at": {
  11687. "type": "string",
  11688. "format": "date-time",
  11689. "x-go-name": "Created"
  11690. },
  11691. "download_count": {
  11692. "type": "integer",
  11693. "format": "int64",
  11694. "x-go-name": "DownloadCount"
  11695. },
  11696. "id": {
  11697. "type": "integer",
  11698. "format": "int64",
  11699. "x-go-name": "ID"
  11700. },
  11701. "name": {
  11702. "type": "string",
  11703. "x-go-name": "Name"
  11704. },
  11705. "size": {
  11706. "type": "integer",
  11707. "format": "int64",
  11708. "x-go-name": "Size"
  11709. },
  11710. "uuid": {
  11711. "type": "string",
  11712. "x-go-name": "UUID"
  11713. }
  11714. },
  11715. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11716. },
  11717. "Branch": {
  11718. "description": "Branch represents a repository branch",
  11719. "type": "object",
  11720. "properties": {
  11721. "commit": {
  11722. "$ref": "#/definitions/PayloadCommit"
  11723. },
  11724. "effective_branch_protection_name": {
  11725. "type": "string",
  11726. "x-go-name": "EffectiveBranchProtectionName"
  11727. },
  11728. "enable_status_check": {
  11729. "type": "boolean",
  11730. "x-go-name": "EnableStatusCheck"
  11731. },
  11732. "name": {
  11733. "type": "string",
  11734. "x-go-name": "Name"
  11735. },
  11736. "protected": {
  11737. "type": "boolean",
  11738. "x-go-name": "Protected"
  11739. },
  11740. "required_approvals": {
  11741. "type": "integer",
  11742. "format": "int64",
  11743. "x-go-name": "RequiredApprovals"
  11744. },
  11745. "status_check_contexts": {
  11746. "type": "array",
  11747. "items": {
  11748. "type": "string"
  11749. },
  11750. "x-go-name": "StatusCheckContexts"
  11751. },
  11752. "user_can_merge": {
  11753. "type": "boolean",
  11754. "x-go-name": "UserCanMerge"
  11755. },
  11756. "user_can_push": {
  11757. "type": "boolean",
  11758. "x-go-name": "UserCanPush"
  11759. }
  11760. },
  11761. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11762. },
  11763. "BranchProtection": {
  11764. "description": "BranchProtection represents a branch protection for a repository",
  11765. "type": "object",
  11766. "properties": {
  11767. "approvals_whitelist_teams": {
  11768. "type": "array",
  11769. "items": {
  11770. "type": "string"
  11771. },
  11772. "x-go-name": "ApprovalsWhitelistTeams"
  11773. },
  11774. "approvals_whitelist_username": {
  11775. "type": "array",
  11776. "items": {
  11777. "type": "string"
  11778. },
  11779. "x-go-name": "ApprovalsWhitelistUsernames"
  11780. },
  11781. "block_on_official_review_requests": {
  11782. "type": "boolean",
  11783. "x-go-name": "BlockOnOfficialReviewRequests"
  11784. },
  11785. "block_on_outdated_branch": {
  11786. "type": "boolean",
  11787. "x-go-name": "BlockOnOutdatedBranch"
  11788. },
  11789. "block_on_rejected_reviews": {
  11790. "type": "boolean",
  11791. "x-go-name": "BlockOnRejectedReviews"
  11792. },
  11793. "branch_name": {
  11794. "type": "string",
  11795. "x-go-name": "BranchName"
  11796. },
  11797. "created_at": {
  11798. "type": "string",
  11799. "format": "date-time",
  11800. "x-go-name": "Created"
  11801. },
  11802. "dismiss_stale_approvals": {
  11803. "type": "boolean",
  11804. "x-go-name": "DismissStaleApprovals"
  11805. },
  11806. "enable_approvals_whitelist": {
  11807. "type": "boolean",
  11808. "x-go-name": "EnableApprovalsWhitelist"
  11809. },
  11810. "enable_merge_whitelist": {
  11811. "type": "boolean",
  11812. "x-go-name": "EnableMergeWhitelist"
  11813. },
  11814. "enable_push": {
  11815. "type": "boolean",
  11816. "x-go-name": "EnablePush"
  11817. },
  11818. "enable_push_whitelist": {
  11819. "type": "boolean",
  11820. "x-go-name": "EnablePushWhitelist"
  11821. },
  11822. "enable_status_check": {
  11823. "type": "boolean",
  11824. "x-go-name": "EnableStatusCheck"
  11825. },
  11826. "merge_whitelist_teams": {
  11827. "type": "array",
  11828. "items": {
  11829. "type": "string"
  11830. },
  11831. "x-go-name": "MergeWhitelistTeams"
  11832. },
  11833. "merge_whitelist_usernames": {
  11834. "type": "array",
  11835. "items": {
  11836. "type": "string"
  11837. },
  11838. "x-go-name": "MergeWhitelistUsernames"
  11839. },
  11840. "protected_file_patterns": {
  11841. "type": "string",
  11842. "x-go-name": "ProtectedFilePatterns"
  11843. },
  11844. "push_whitelist_deploy_keys": {
  11845. "type": "boolean",
  11846. "x-go-name": "PushWhitelistDeployKeys"
  11847. },
  11848. "push_whitelist_teams": {
  11849. "type": "array",
  11850. "items": {
  11851. "type": "string"
  11852. },
  11853. "x-go-name": "PushWhitelistTeams"
  11854. },
  11855. "push_whitelist_usernames": {
  11856. "type": "array",
  11857. "items": {
  11858. "type": "string"
  11859. },
  11860. "x-go-name": "PushWhitelistUsernames"
  11861. },
  11862. "require_signed_commits": {
  11863. "type": "boolean",
  11864. "x-go-name": "RequireSignedCommits"
  11865. },
  11866. "required_approvals": {
  11867. "type": "integer",
  11868. "format": "int64",
  11869. "x-go-name": "RequiredApprovals"
  11870. },
  11871. "status_check_contexts": {
  11872. "type": "array",
  11873. "items": {
  11874. "type": "string"
  11875. },
  11876. "x-go-name": "StatusCheckContexts"
  11877. },
  11878. "updated_at": {
  11879. "type": "string",
  11880. "format": "date-time",
  11881. "x-go-name": "Updated"
  11882. }
  11883. },
  11884. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11885. },
  11886. "CombinedStatus": {
  11887. "description": "CombinedStatus holds the combined state of several statuses for a single commit",
  11888. "type": "object",
  11889. "properties": {
  11890. "commit_url": {
  11891. "type": "string",
  11892. "x-go-name": "CommitURL"
  11893. },
  11894. "repository": {
  11895. "$ref": "#/definitions/Repository"
  11896. },
  11897. "sha": {
  11898. "type": "string",
  11899. "x-go-name": "SHA"
  11900. },
  11901. "state": {
  11902. "$ref": "#/definitions/CommitStatusState"
  11903. },
  11904. "statuses": {
  11905. "type": "array",
  11906. "items": {
  11907. "$ref": "#/definitions/CommitStatus"
  11908. },
  11909. "x-go-name": "Statuses"
  11910. },
  11911. "total_count": {
  11912. "type": "integer",
  11913. "format": "int64",
  11914. "x-go-name": "TotalCount"
  11915. },
  11916. "url": {
  11917. "type": "string",
  11918. "x-go-name": "URL"
  11919. }
  11920. },
  11921. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11922. },
  11923. "Comment": {
  11924. "description": "Comment represents a comment on a commit or issue",
  11925. "type": "object",
  11926. "properties": {
  11927. "body": {
  11928. "type": "string",
  11929. "x-go-name": "Body"
  11930. },
  11931. "created_at": {
  11932. "type": "string",
  11933. "format": "date-time",
  11934. "x-go-name": "Created"
  11935. },
  11936. "html_url": {
  11937. "type": "string",
  11938. "x-go-name": "HTMLURL"
  11939. },
  11940. "id": {
  11941. "type": "integer",
  11942. "format": "int64",
  11943. "x-go-name": "ID"
  11944. },
  11945. "issue_url": {
  11946. "type": "string",
  11947. "x-go-name": "IssueURL"
  11948. },
  11949. "original_author": {
  11950. "type": "string",
  11951. "x-go-name": "OriginalAuthor"
  11952. },
  11953. "original_author_id": {
  11954. "type": "integer",
  11955. "format": "int64",
  11956. "x-go-name": "OriginalAuthorID"
  11957. },
  11958. "pull_request_url": {
  11959. "type": "string",
  11960. "x-go-name": "PRURL"
  11961. },
  11962. "updated_at": {
  11963. "type": "string",
  11964. "format": "date-time",
  11965. "x-go-name": "Updated"
  11966. },
  11967. "user": {
  11968. "$ref": "#/definitions/User"
  11969. }
  11970. },
  11971. "x-go-package": "code.gitea.io/gitea/modules/structs"
  11972. },
  11973. "Commit": {
  11974. "type": "object",
  11975. "title": "Commit contains information generated from a Git commit.",
  11976. "properties": {
  11977. "author": {
  11978. "$ref": "#/definitions/User"
  11979. },
  11980. "commit": {
  11981. "$ref": "#/definitions/RepoCommit"
  11982. },
  11983. "committer": {
  11984. "$ref": "#/definitions/User"
  11985. },
  11986. "created": {
  11987. "type": "string",
  11988. "format": "date-time",
  11989. "x-go-name": "Created"
  11990. },
  11991. "files": {
  11992. "type": "array",
  11993. "items": {
  11994. "$ref": "#/definitions/CommitAffectedFiles"
  11995. },
  11996. "x-go-name": "Files"
  11997. },
  11998. "html_url": {
  11999. "type": "string",
  12000. "x-go-name": "HTMLURL"
  12001. },
  12002. "parents": {
  12003. "type": "array",
  12004. "items": {
  12005. "$ref": "#/definitions/CommitMeta"
  12006. },
  12007. "x-go-name": "Parents"
  12008. },
  12009. "sha": {
  12010. "type": "string",
  12011. "x-go-name": "SHA"
  12012. },
  12013. "url": {
  12014. "type": "string",
  12015. "x-go-name": "URL"
  12016. }
  12017. },
  12018. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12019. },
  12020. "CommitAffectedFiles": {
  12021. "description": "CommitAffectedFiles store information about files affected by the commit",
  12022. "type": "object",
  12023. "properties": {
  12024. "filename": {
  12025. "type": "string",
  12026. "x-go-name": "Filename"
  12027. }
  12028. },
  12029. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12030. },
  12031. "CommitDateOptions": {
  12032. "description": "CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE",
  12033. "type": "object",
  12034. "properties": {
  12035. "author": {
  12036. "type": "string",
  12037. "format": "date-time",
  12038. "x-go-name": "Author"
  12039. },
  12040. "committer": {
  12041. "type": "string",
  12042. "format": "date-time",
  12043. "x-go-name": "Committer"
  12044. }
  12045. },
  12046. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12047. },
  12048. "CommitMeta": {
  12049. "type": "object",
  12050. "title": "CommitMeta contains meta information of a commit in terms of API.",
  12051. "properties": {
  12052. "created": {
  12053. "type": "string",
  12054. "format": "date-time",
  12055. "x-go-name": "Created"
  12056. },
  12057. "sha": {
  12058. "type": "string",
  12059. "x-go-name": "SHA"
  12060. },
  12061. "url": {
  12062. "type": "string",
  12063. "x-go-name": "URL"
  12064. }
  12065. },
  12066. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12067. },
  12068. "CommitStatus": {
  12069. "description": "CommitStatus holds a single status of a single Commit",
  12070. "type": "object",
  12071. "properties": {
  12072. "context": {
  12073. "type": "string",
  12074. "x-go-name": "Context"
  12075. },
  12076. "created_at": {
  12077. "type": "string",
  12078. "format": "date-time",
  12079. "x-go-name": "Created"
  12080. },
  12081. "creator": {
  12082. "$ref": "#/definitions/User"
  12083. },
  12084. "description": {
  12085. "type": "string",
  12086. "x-go-name": "Description"
  12087. },
  12088. "id": {
  12089. "type": "integer",
  12090. "format": "int64",
  12091. "x-go-name": "ID"
  12092. },
  12093. "status": {
  12094. "$ref": "#/definitions/CommitStatusState"
  12095. },
  12096. "target_url": {
  12097. "type": "string",
  12098. "x-go-name": "TargetURL"
  12099. },
  12100. "updated_at": {
  12101. "type": "string",
  12102. "format": "date-time",
  12103. "x-go-name": "Updated"
  12104. },
  12105. "url": {
  12106. "type": "string",
  12107. "x-go-name": "URL"
  12108. }
  12109. },
  12110. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12111. },
  12112. "CommitStatusState": {
  12113. "description": "CommitStatusState holds the state of a CommitStatus\nIt can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"",
  12114. "type": "string",
  12115. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12116. },
  12117. "CommitUser": {
  12118. "type": "object",
  12119. "title": "CommitUser contains information of a user in the context of a commit.",
  12120. "properties": {
  12121. "date": {
  12122. "type": "string",
  12123. "x-go-name": "Date"
  12124. },
  12125. "email": {
  12126. "type": "string",
  12127. "format": "email",
  12128. "x-go-name": "Email"
  12129. },
  12130. "name": {
  12131. "type": "string",
  12132. "x-go-name": "Name"
  12133. }
  12134. },
  12135. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12136. },
  12137. "ContentsResponse": {
  12138. "description": "ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content",
  12139. "type": "object",
  12140. "properties": {
  12141. "_links": {
  12142. "$ref": "#/definitions/FileLinksResponse"
  12143. },
  12144. "content": {
  12145. "description": "`content` is populated when `type` is `file`, otherwise null",
  12146. "type": "string",
  12147. "x-go-name": "Content"
  12148. },
  12149. "download_url": {
  12150. "type": "string",
  12151. "x-go-name": "DownloadURL"
  12152. },
  12153. "encoding": {
  12154. "description": "`encoding` is populated when `type` is `file`, otherwise null",
  12155. "type": "string",
  12156. "x-go-name": "Encoding"
  12157. },
  12158. "git_url": {
  12159. "type": "string",
  12160. "x-go-name": "GitURL"
  12161. },
  12162. "html_url": {
  12163. "type": "string",
  12164. "x-go-name": "HTMLURL"
  12165. },
  12166. "name": {
  12167. "type": "string",
  12168. "x-go-name": "Name"
  12169. },
  12170. "path": {
  12171. "type": "string",
  12172. "x-go-name": "Path"
  12173. },
  12174. "sha": {
  12175. "type": "string",
  12176. "x-go-name": "SHA"
  12177. },
  12178. "size": {
  12179. "type": "integer",
  12180. "format": "int64",
  12181. "x-go-name": "Size"
  12182. },
  12183. "submodule_git_url": {
  12184. "description": "`submodule_git_url` is populated when `type` is `submodule`, otherwise null",
  12185. "type": "string",
  12186. "x-go-name": "SubmoduleGitURL"
  12187. },
  12188. "target": {
  12189. "description": "`target` is populated when `type` is `symlink`, otherwise null",
  12190. "type": "string",
  12191. "x-go-name": "Target"
  12192. },
  12193. "type": {
  12194. "description": "`type` will be `file`, `dir`, `symlink`, or `submodule`",
  12195. "type": "string",
  12196. "x-go-name": "Type"
  12197. },
  12198. "url": {
  12199. "type": "string",
  12200. "x-go-name": "URL"
  12201. }
  12202. },
  12203. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12204. },
  12205. "CreateBranchProtectionOption": {
  12206. "description": "CreateBranchProtectionOption options for creating a branch protection",
  12207. "type": "object",
  12208. "properties": {
  12209. "approvals_whitelist_teams": {
  12210. "type": "array",
  12211. "items": {
  12212. "type": "string"
  12213. },
  12214. "x-go-name": "ApprovalsWhitelistTeams"
  12215. },
  12216. "approvals_whitelist_username": {
  12217. "type": "array",
  12218. "items": {
  12219. "type": "string"
  12220. },
  12221. "x-go-name": "ApprovalsWhitelistUsernames"
  12222. },
  12223. "block_on_official_review_requests": {
  12224. "type": "boolean",
  12225. "x-go-name": "BlockOnOfficialReviewRequests"
  12226. },
  12227. "block_on_outdated_branch": {
  12228. "type": "boolean",
  12229. "x-go-name": "BlockOnOutdatedBranch"
  12230. },
  12231. "block_on_rejected_reviews": {
  12232. "type": "boolean",
  12233. "x-go-name": "BlockOnRejectedReviews"
  12234. },
  12235. "branch_name": {
  12236. "type": "string",
  12237. "x-go-name": "BranchName"
  12238. },
  12239. "dismiss_stale_approvals": {
  12240. "type": "boolean",
  12241. "x-go-name": "DismissStaleApprovals"
  12242. },
  12243. "enable_approvals_whitelist": {
  12244. "type": "boolean",
  12245. "x-go-name": "EnableApprovalsWhitelist"
  12246. },
  12247. "enable_merge_whitelist": {
  12248. "type": "boolean",
  12249. "x-go-name": "EnableMergeWhitelist"
  12250. },
  12251. "enable_push": {
  12252. "type": "boolean",
  12253. "x-go-name": "EnablePush"
  12254. },
  12255. "enable_push_whitelist": {
  12256. "type": "boolean",
  12257. "x-go-name": "EnablePushWhitelist"
  12258. },
  12259. "enable_status_check": {
  12260. "type": "boolean",
  12261. "x-go-name": "EnableStatusCheck"
  12262. },
  12263. "merge_whitelist_teams": {
  12264. "type": "array",
  12265. "items": {
  12266. "type": "string"
  12267. },
  12268. "x-go-name": "MergeWhitelistTeams"
  12269. },
  12270. "merge_whitelist_usernames": {
  12271. "type": "array",
  12272. "items": {
  12273. "type": "string"
  12274. },
  12275. "x-go-name": "MergeWhitelistUsernames"
  12276. },
  12277. "protected_file_patterns": {
  12278. "type": "string",
  12279. "x-go-name": "ProtectedFilePatterns"
  12280. },
  12281. "push_whitelist_deploy_keys": {
  12282. "type": "boolean",
  12283. "x-go-name": "PushWhitelistDeployKeys"
  12284. },
  12285. "push_whitelist_teams": {
  12286. "type": "array",
  12287. "items": {
  12288. "type": "string"
  12289. },
  12290. "x-go-name": "PushWhitelistTeams"
  12291. },
  12292. "push_whitelist_usernames": {
  12293. "type": "array",
  12294. "items": {
  12295. "type": "string"
  12296. },
  12297. "x-go-name": "PushWhitelistUsernames"
  12298. },
  12299. "require_signed_commits": {
  12300. "type": "boolean",
  12301. "x-go-name": "RequireSignedCommits"
  12302. },
  12303. "required_approvals": {
  12304. "type": "integer",
  12305. "format": "int64",
  12306. "x-go-name": "RequiredApprovals"
  12307. },
  12308. "status_check_contexts": {
  12309. "type": "array",
  12310. "items": {
  12311. "type": "string"
  12312. },
  12313. "x-go-name": "StatusCheckContexts"
  12314. }
  12315. },
  12316. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12317. },
  12318. "CreateBranchRepoOption": {
  12319. "description": "CreateBranchRepoOption options when creating a branch in a repository",
  12320. "type": "object",
  12321. "required": [
  12322. "new_branch_name"
  12323. ],
  12324. "properties": {
  12325. "new_branch_name": {
  12326. "description": "Name of the branch to create",
  12327. "type": "string",
  12328. "uniqueItems": true,
  12329. "x-go-name": "BranchName"
  12330. },
  12331. "old_branch_name": {
  12332. "description": "Name of the old branch to create from",
  12333. "type": "string",
  12334. "uniqueItems": true,
  12335. "x-go-name": "OldBranchName"
  12336. }
  12337. },
  12338. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12339. },
  12340. "CreateEmailOption": {
  12341. "description": "CreateEmailOption options when creating email addresses",
  12342. "type": "object",
  12343. "properties": {
  12344. "emails": {
  12345. "description": "email addresses to add",
  12346. "type": "array",
  12347. "items": {
  12348. "type": "string"
  12349. },
  12350. "x-go-name": "Emails"
  12351. }
  12352. },
  12353. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12354. },
  12355. "CreateFileOptions": {
  12356. "description": "CreateFileOptions options for creating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
  12357. "type": "object",
  12358. "required": [
  12359. "content"
  12360. ],
  12361. "properties": {
  12362. "author": {
  12363. "$ref": "#/definitions/Identity"
  12364. },
  12365. "branch": {
  12366. "description": "branch (optional) to base this file from. if not given, the default branch is used",
  12367. "type": "string",
  12368. "x-go-name": "BranchName"
  12369. },
  12370. "committer": {
  12371. "$ref": "#/definitions/Identity"
  12372. },
  12373. "content": {
  12374. "description": "content must be base64 encoded",
  12375. "type": "string",
  12376. "x-go-name": "Content"
  12377. },
  12378. "dates": {
  12379. "$ref": "#/definitions/CommitDateOptions"
  12380. },
  12381. "message": {
  12382. "description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
  12383. "type": "string",
  12384. "x-go-name": "Message"
  12385. },
  12386. "new_branch": {
  12387. "description": "new_branch (optional) will make a new branch from `branch` before creating the file",
  12388. "type": "string",
  12389. "x-go-name": "NewBranchName"
  12390. },
  12391. "signoff": {
  12392. "description": "Add a Signed-off-by trailer by the committer at the end of the commit log message.",
  12393. "type": "boolean",
  12394. "x-go-name": "Signoff"
  12395. }
  12396. },
  12397. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12398. },
  12399. "CreateForkOption": {
  12400. "description": "CreateForkOption options for creating a fork",
  12401. "type": "object",
  12402. "properties": {
  12403. "organization": {
  12404. "description": "organization name, if forking into an organization",
  12405. "type": "string",
  12406. "x-go-name": "Organization"
  12407. }
  12408. },
  12409. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12410. },
  12411. "CreateGPGKeyOption": {
  12412. "description": "CreateGPGKeyOption options create user GPG key",
  12413. "type": "object",
  12414. "required": [
  12415. "armored_public_key"
  12416. ],
  12417. "properties": {
  12418. "armored_public_key": {
  12419. "description": "An armored GPG key to add",
  12420. "type": "string",
  12421. "uniqueItems": true,
  12422. "x-go-name": "ArmoredKey"
  12423. }
  12424. },
  12425. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12426. },
  12427. "CreateHookOption": {
  12428. "description": "CreateHookOption options when create a hook",
  12429. "type": "object",
  12430. "required": [
  12431. "type",
  12432. "config"
  12433. ],
  12434. "properties": {
  12435. "active": {
  12436. "type": "boolean",
  12437. "default": false,
  12438. "x-go-name": "Active"
  12439. },
  12440. "branch_filter": {
  12441. "type": "string",
  12442. "x-go-name": "BranchFilter"
  12443. },
  12444. "config": {
  12445. "$ref": "#/definitions/CreateHookOptionConfig"
  12446. },
  12447. "events": {
  12448. "type": "array",
  12449. "items": {
  12450. "type": "string"
  12451. },
  12452. "x-go-name": "Events"
  12453. },
  12454. "type": {
  12455. "type": "string",
  12456. "enum": [
  12457. "dingtalk",
  12458. "discord",
  12459. "gitea",
  12460. "gogs",
  12461. "msteams",
  12462. "slack",
  12463. "telegram",
  12464. "feishu"
  12465. ],
  12466. "x-go-name": "Type"
  12467. }
  12468. },
  12469. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12470. },
  12471. "CreateHookOptionConfig": {
  12472. "description": "CreateHookOptionConfig has all config options in it\nrequired are \"content_type\" and \"url\" Required",
  12473. "type": "object",
  12474. "additionalProperties": {
  12475. "type": "string"
  12476. },
  12477. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12478. },
  12479. "CreateIssueCommentOption": {
  12480. "description": "CreateIssueCommentOption options for creating a comment on an issue",
  12481. "type": "object",
  12482. "required": [
  12483. "body"
  12484. ],
  12485. "properties": {
  12486. "body": {
  12487. "type": "string",
  12488. "x-go-name": "Body"
  12489. }
  12490. },
  12491. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12492. },
  12493. "CreateIssueOption": {
  12494. "description": "CreateIssueOption options to create one issue",
  12495. "type": "object",
  12496. "required": [
  12497. "title"
  12498. ],
  12499. "properties": {
  12500. "assignee": {
  12501. "description": "deprecated",
  12502. "type": "string",
  12503. "x-go-name": "Assignee"
  12504. },
  12505. "assignees": {
  12506. "type": "array",
  12507. "items": {
  12508. "type": "string"
  12509. },
  12510. "x-go-name": "Assignees"
  12511. },
  12512. "body": {
  12513. "type": "string",
  12514. "x-go-name": "Body"
  12515. },
  12516. "closed": {
  12517. "type": "boolean",
  12518. "x-go-name": "Closed"
  12519. },
  12520. "due_date": {
  12521. "type": "string",
  12522. "format": "date-time",
  12523. "x-go-name": "Deadline"
  12524. },
  12525. "labels": {
  12526. "description": "list of label ids",
  12527. "type": "array",
  12528. "items": {
  12529. "type": "integer",
  12530. "format": "int64"
  12531. },
  12532. "x-go-name": "Labels"
  12533. },
  12534. "milestone": {
  12535. "description": "milestone id",
  12536. "type": "integer",
  12537. "format": "int64",
  12538. "x-go-name": "Milestone"
  12539. },
  12540. "ref": {
  12541. "type": "string",
  12542. "x-go-name": "Ref"
  12543. },
  12544. "title": {
  12545. "type": "string",
  12546. "x-go-name": "Title"
  12547. }
  12548. },
  12549. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12550. },
  12551. "CreateKeyOption": {
  12552. "description": "CreateKeyOption options when creating a key",
  12553. "type": "object",
  12554. "required": [
  12555. "title",
  12556. "key"
  12557. ],
  12558. "properties": {
  12559. "key": {
  12560. "description": "An armored SSH key to add",
  12561. "type": "string",
  12562. "uniqueItems": true,
  12563. "x-go-name": "Key"
  12564. },
  12565. "read_only": {
  12566. "description": "Describe if the key has only read access or read/write",
  12567. "type": "boolean",
  12568. "x-go-name": "ReadOnly"
  12569. },
  12570. "title": {
  12571. "description": "Title of the key to add",
  12572. "type": "string",
  12573. "uniqueItems": true,
  12574. "x-go-name": "Title"
  12575. }
  12576. },
  12577. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12578. },
  12579. "CreateLabelOption": {
  12580. "description": "CreateLabelOption options for creating a label",
  12581. "type": "object",
  12582. "required": [
  12583. "name",
  12584. "color"
  12585. ],
  12586. "properties": {
  12587. "color": {
  12588. "type": "string",
  12589. "x-go-name": "Color",
  12590. "example": "#00aabb"
  12591. },
  12592. "description": {
  12593. "type": "string",
  12594. "x-go-name": "Description"
  12595. },
  12596. "name": {
  12597. "type": "string",
  12598. "x-go-name": "Name"
  12599. }
  12600. },
  12601. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12602. },
  12603. "CreateMilestoneOption": {
  12604. "description": "CreateMilestoneOption options for creating a milestone",
  12605. "type": "object",
  12606. "properties": {
  12607. "description": {
  12608. "type": "string",
  12609. "x-go-name": "Description"
  12610. },
  12611. "due_on": {
  12612. "type": "string",
  12613. "format": "date-time",
  12614. "x-go-name": "Deadline"
  12615. },
  12616. "state": {
  12617. "type": "string",
  12618. "enum": [
  12619. "open",
  12620. "closed"
  12621. ],
  12622. "x-go-name": "State"
  12623. },
  12624. "title": {
  12625. "type": "string",
  12626. "x-go-name": "Title"
  12627. }
  12628. },
  12629. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12630. },
  12631. "CreateOAuth2ApplicationOptions": {
  12632. "description": "CreateOAuth2ApplicationOptions holds options to create an oauth2 application",
  12633. "type": "object",
  12634. "properties": {
  12635. "name": {
  12636. "type": "string",
  12637. "x-go-name": "Name"
  12638. },
  12639. "redirect_uris": {
  12640. "type": "array",
  12641. "items": {
  12642. "type": "string"
  12643. },
  12644. "x-go-name": "RedirectURIs"
  12645. }
  12646. },
  12647. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12648. },
  12649. "CreateOrgOption": {
  12650. "description": "CreateOrgOption options for creating an organization",
  12651. "type": "object",
  12652. "required": [
  12653. "username"
  12654. ],
  12655. "properties": {
  12656. "description": {
  12657. "type": "string",
  12658. "x-go-name": "Description"
  12659. },
  12660. "full_name": {
  12661. "type": "string",
  12662. "x-go-name": "FullName"
  12663. },
  12664. "location": {
  12665. "type": "string",
  12666. "x-go-name": "Location"
  12667. },
  12668. "repo_admin_change_team_access": {
  12669. "type": "boolean",
  12670. "x-go-name": "RepoAdminChangeTeamAccess"
  12671. },
  12672. "username": {
  12673. "type": "string",
  12674. "x-go-name": "UserName"
  12675. },
  12676. "visibility": {
  12677. "description": "possible values are `public` (default), `limited` or `private`",
  12678. "type": "string",
  12679. "enum": [
  12680. "public",
  12681. "limited",
  12682. "private"
  12683. ],
  12684. "x-go-name": "Visibility"
  12685. },
  12686. "website": {
  12687. "type": "string",
  12688. "x-go-name": "Website"
  12689. }
  12690. },
  12691. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12692. },
  12693. "CreatePullRequestOption": {
  12694. "description": "CreatePullRequestOption options when creating a pull request",
  12695. "type": "object",
  12696. "properties": {
  12697. "assignee": {
  12698. "type": "string",
  12699. "x-go-name": "Assignee"
  12700. },
  12701. "assignees": {
  12702. "type": "array",
  12703. "items": {
  12704. "type": "string"
  12705. },
  12706. "x-go-name": "Assignees"
  12707. },
  12708. "base": {
  12709. "type": "string",
  12710. "x-go-name": "Base"
  12711. },
  12712. "body": {
  12713. "type": "string",
  12714. "x-go-name": "Body"
  12715. },
  12716. "due_date": {
  12717. "type": "string",
  12718. "format": "date-time",
  12719. "x-go-name": "Deadline"
  12720. },
  12721. "head": {
  12722. "type": "string",
  12723. "x-go-name": "Head"
  12724. },
  12725. "labels": {
  12726. "type": "array",
  12727. "items": {
  12728. "type": "integer",
  12729. "format": "int64"
  12730. },
  12731. "x-go-name": "Labels"
  12732. },
  12733. "milestone": {
  12734. "type": "integer",
  12735. "format": "int64",
  12736. "x-go-name": "Milestone"
  12737. },
  12738. "title": {
  12739. "type": "string",
  12740. "x-go-name": "Title"
  12741. }
  12742. },
  12743. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12744. },
  12745. "CreatePullReviewComment": {
  12746. "description": "CreatePullReviewComment represent a review comment for creation api",
  12747. "type": "object",
  12748. "properties": {
  12749. "body": {
  12750. "type": "string",
  12751. "x-go-name": "Body"
  12752. },
  12753. "new_position": {
  12754. "description": "if comment to new file line or 0",
  12755. "type": "integer",
  12756. "format": "int64",
  12757. "x-go-name": "NewLineNum"
  12758. },
  12759. "old_position": {
  12760. "description": "if comment to old file line or 0",
  12761. "type": "integer",
  12762. "format": "int64",
  12763. "x-go-name": "OldLineNum"
  12764. },
  12765. "path": {
  12766. "description": "the tree path",
  12767. "type": "string",
  12768. "x-go-name": "Path"
  12769. }
  12770. },
  12771. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12772. },
  12773. "CreatePullReviewOptions": {
  12774. "description": "CreatePullReviewOptions are options to create a pull review",
  12775. "type": "object",
  12776. "properties": {
  12777. "body": {
  12778. "type": "string",
  12779. "x-go-name": "Body"
  12780. },
  12781. "comments": {
  12782. "type": "array",
  12783. "items": {
  12784. "$ref": "#/definitions/CreatePullReviewComment"
  12785. },
  12786. "x-go-name": "Comments"
  12787. },
  12788. "commit_id": {
  12789. "type": "string",
  12790. "x-go-name": "CommitID"
  12791. },
  12792. "event": {
  12793. "$ref": "#/definitions/ReviewStateType"
  12794. }
  12795. },
  12796. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12797. },
  12798. "CreateReleaseOption": {
  12799. "description": "CreateReleaseOption options when creating a release",
  12800. "type": "object",
  12801. "required": [
  12802. "tag_name"
  12803. ],
  12804. "properties": {
  12805. "body": {
  12806. "type": "string",
  12807. "x-go-name": "Note"
  12808. },
  12809. "draft": {
  12810. "type": "boolean",
  12811. "x-go-name": "IsDraft"
  12812. },
  12813. "name": {
  12814. "type": "string",
  12815. "x-go-name": "Title"
  12816. },
  12817. "prerelease": {
  12818. "type": "boolean",
  12819. "x-go-name": "IsPrerelease"
  12820. },
  12821. "tag_name": {
  12822. "type": "string",
  12823. "x-go-name": "TagName"
  12824. },
  12825. "target_commitish": {
  12826. "type": "string",
  12827. "x-go-name": "Target"
  12828. }
  12829. },
  12830. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12831. },
  12832. "CreateRepoOption": {
  12833. "description": "CreateRepoOption options when creating repository",
  12834. "type": "object",
  12835. "required": [
  12836. "name"
  12837. ],
  12838. "properties": {
  12839. "auto_init": {
  12840. "description": "Whether the repository should be auto-intialized?",
  12841. "type": "boolean",
  12842. "x-go-name": "AutoInit"
  12843. },
  12844. "default_branch": {
  12845. "description": "DefaultBranch of the repository (used when initializes and in template)",
  12846. "type": "string",
  12847. "x-go-name": "DefaultBranch"
  12848. },
  12849. "description": {
  12850. "description": "Description of the repository to create",
  12851. "type": "string",
  12852. "x-go-name": "Description"
  12853. },
  12854. "gitignores": {
  12855. "description": "Gitignores to use",
  12856. "type": "string",
  12857. "x-go-name": "Gitignores"
  12858. },
  12859. "issue_labels": {
  12860. "description": "Label-Set to use",
  12861. "type": "string",
  12862. "x-go-name": "IssueLabels"
  12863. },
  12864. "license": {
  12865. "description": "License to use",
  12866. "type": "string",
  12867. "x-go-name": "License"
  12868. },
  12869. "name": {
  12870. "description": "Name of the repository to create",
  12871. "type": "string",
  12872. "uniqueItems": true,
  12873. "x-go-name": "Name"
  12874. },
  12875. "private": {
  12876. "description": "Whether the repository is private",
  12877. "type": "boolean",
  12878. "x-go-name": "Private"
  12879. },
  12880. "readme": {
  12881. "description": "Readme of the repository to create",
  12882. "type": "string",
  12883. "x-go-name": "Readme"
  12884. },
  12885. "template": {
  12886. "description": "Whether the repository is template",
  12887. "type": "boolean",
  12888. "x-go-name": "Template"
  12889. },
  12890. "trust_model": {
  12891. "description": "TrustModel of the repository",
  12892. "type": "string",
  12893. "enum": [
  12894. "default",
  12895. "collaborator",
  12896. "committer",
  12897. "collaboratorcommitter"
  12898. ],
  12899. "x-go-name": "TrustModel"
  12900. }
  12901. },
  12902. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12903. },
  12904. "CreateStatusOption": {
  12905. "description": "CreateStatusOption holds the information needed to create a new CommitStatus for a Commit",
  12906. "type": "object",
  12907. "properties": {
  12908. "context": {
  12909. "type": "string",
  12910. "x-go-name": "Context"
  12911. },
  12912. "description": {
  12913. "type": "string",
  12914. "x-go-name": "Description"
  12915. },
  12916. "state": {
  12917. "$ref": "#/definitions/CommitStatusState"
  12918. },
  12919. "target_url": {
  12920. "type": "string",
  12921. "x-go-name": "TargetURL"
  12922. }
  12923. },
  12924. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12925. },
  12926. "CreateTeamOption": {
  12927. "description": "CreateTeamOption options for creating a team",
  12928. "type": "object",
  12929. "required": [
  12930. "name"
  12931. ],
  12932. "properties": {
  12933. "can_create_org_repo": {
  12934. "type": "boolean",
  12935. "x-go-name": "CanCreateOrgRepo"
  12936. },
  12937. "description": {
  12938. "type": "string",
  12939. "x-go-name": "Description"
  12940. },
  12941. "includes_all_repositories": {
  12942. "type": "boolean",
  12943. "x-go-name": "IncludesAllRepositories"
  12944. },
  12945. "name": {
  12946. "type": "string",
  12947. "x-go-name": "Name"
  12948. },
  12949. "permission": {
  12950. "type": "string",
  12951. "enum": [
  12952. "read",
  12953. "write",
  12954. "admin"
  12955. ],
  12956. "x-go-name": "Permission"
  12957. },
  12958. "units": {
  12959. "type": "array",
  12960. "items": {
  12961. "type": "string"
  12962. },
  12963. "x-go-name": "Units",
  12964. "example": [
  12965. "repo.code",
  12966. "repo.issues",
  12967. "repo.ext_issues",
  12968. "repo.wiki",
  12969. "repo.pulls",
  12970. "repo.releases",
  12971. "repo.projects",
  12972. "repo.ext_wiki"
  12973. ]
  12974. }
  12975. },
  12976. "x-go-package": "code.gitea.io/gitea/modules/structs"
  12977. },
  12978. "CreateUserOption": {
  12979. "description": "CreateUserOption create user options",
  12980. "type": "object",
  12981. "required": [
  12982. "username",
  12983. "email",
  12984. "password"
  12985. ],
  12986. "properties": {
  12987. "email": {
  12988. "type": "string",
  12989. "format": "email",
  12990. "x-go-name": "Email"
  12991. },
  12992. "full_name": {
  12993. "type": "string",
  12994. "x-go-name": "FullName"
  12995. },
  12996. "login_name": {
  12997. "type": "string",
  12998. "x-go-name": "LoginName"
  12999. },
  13000. "must_change_password": {
  13001. "type": "boolean",
  13002. "x-go-name": "MustChangePassword"
  13003. },
  13004. "password": {
  13005. "type": "string",
  13006. "x-go-name": "Password"
  13007. },
  13008. "send_notify": {
  13009. "type": "boolean",
  13010. "x-go-name": "SendNotify"
  13011. },
  13012. "source_id": {
  13013. "type": "integer",
  13014. "format": "int64",
  13015. "x-go-name": "SourceID"
  13016. },
  13017. "username": {
  13018. "type": "string",
  13019. "x-go-name": "Username"
  13020. }
  13021. },
  13022. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13023. },
  13024. "Cron": {
  13025. "description": "Cron represents a Cron task",
  13026. "type": "object",
  13027. "properties": {
  13028. "exec_times": {
  13029. "type": "integer",
  13030. "format": "int64",
  13031. "x-go-name": "ExecTimes"
  13032. },
  13033. "name": {
  13034. "type": "string",
  13035. "x-go-name": "Name"
  13036. },
  13037. "next": {
  13038. "type": "string",
  13039. "format": "date-time",
  13040. "x-go-name": "Next"
  13041. },
  13042. "prev": {
  13043. "type": "string",
  13044. "format": "date-time",
  13045. "x-go-name": "Prev"
  13046. },
  13047. "schedule": {
  13048. "type": "string",
  13049. "x-go-name": "Schedule"
  13050. }
  13051. },
  13052. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13053. },
  13054. "DeleteEmailOption": {
  13055. "description": "DeleteEmailOption options when deleting email addresses",
  13056. "type": "object",
  13057. "properties": {
  13058. "emails": {
  13059. "description": "email addresses to delete",
  13060. "type": "array",
  13061. "items": {
  13062. "type": "string"
  13063. },
  13064. "x-go-name": "Emails"
  13065. }
  13066. },
  13067. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13068. },
  13069. "DeleteFileOptions": {
  13070. "description": "DeleteFileOptions options for deleting files (used for other File structs below)\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
  13071. "type": "object",
  13072. "required": [
  13073. "sha"
  13074. ],
  13075. "properties": {
  13076. "author": {
  13077. "$ref": "#/definitions/Identity"
  13078. },
  13079. "branch": {
  13080. "description": "branch (optional) to base this file from. if not given, the default branch is used",
  13081. "type": "string",
  13082. "x-go-name": "BranchName"
  13083. },
  13084. "committer": {
  13085. "$ref": "#/definitions/Identity"
  13086. },
  13087. "dates": {
  13088. "$ref": "#/definitions/CommitDateOptions"
  13089. },
  13090. "message": {
  13091. "description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
  13092. "type": "string",
  13093. "x-go-name": "Message"
  13094. },
  13095. "new_branch": {
  13096. "description": "new_branch (optional) will make a new branch from `branch` before creating the file",
  13097. "type": "string",
  13098. "x-go-name": "NewBranchName"
  13099. },
  13100. "sha": {
  13101. "description": "sha is the SHA for the file that already exists",
  13102. "type": "string",
  13103. "x-go-name": "SHA"
  13104. },
  13105. "signoff": {
  13106. "description": "Add a Signed-off-by trailer by the committer at the end of the commit log message.",
  13107. "type": "boolean",
  13108. "x-go-name": "Signoff"
  13109. }
  13110. },
  13111. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13112. },
  13113. "DeployKey": {
  13114. "description": "DeployKey a deploy key",
  13115. "type": "object",
  13116. "properties": {
  13117. "created_at": {
  13118. "type": "string",
  13119. "format": "date-time",
  13120. "x-go-name": "Created"
  13121. },
  13122. "fingerprint": {
  13123. "type": "string",
  13124. "x-go-name": "Fingerprint"
  13125. },
  13126. "id": {
  13127. "type": "integer",
  13128. "format": "int64",
  13129. "x-go-name": "ID"
  13130. },
  13131. "key": {
  13132. "type": "string",
  13133. "x-go-name": "Key"
  13134. },
  13135. "key_id": {
  13136. "type": "integer",
  13137. "format": "int64",
  13138. "x-go-name": "KeyID"
  13139. },
  13140. "read_only": {
  13141. "type": "boolean",
  13142. "x-go-name": "ReadOnly"
  13143. },
  13144. "repository": {
  13145. "$ref": "#/definitions/Repository"
  13146. },
  13147. "title": {
  13148. "type": "string",
  13149. "x-go-name": "Title"
  13150. },
  13151. "url": {
  13152. "type": "string",
  13153. "x-go-name": "URL"
  13154. }
  13155. },
  13156. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13157. },
  13158. "DismissPullReviewOptions": {
  13159. "description": "DismissPullReviewOptions are options to dismiss a pull review",
  13160. "type": "object",
  13161. "properties": {
  13162. "message": {
  13163. "type": "string",
  13164. "x-go-name": "Message"
  13165. }
  13166. },
  13167. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13168. },
  13169. "EditAttachmentOptions": {
  13170. "description": "EditAttachmentOptions options for editing attachments",
  13171. "type": "object",
  13172. "properties": {
  13173. "name": {
  13174. "type": "string",
  13175. "x-go-name": "Name"
  13176. }
  13177. },
  13178. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13179. },
  13180. "EditBranchProtectionOption": {
  13181. "description": "EditBranchProtectionOption options for editing a branch protection",
  13182. "type": "object",
  13183. "properties": {
  13184. "approvals_whitelist_teams": {
  13185. "type": "array",
  13186. "items": {
  13187. "type": "string"
  13188. },
  13189. "x-go-name": "ApprovalsWhitelistTeams"
  13190. },
  13191. "approvals_whitelist_username": {
  13192. "type": "array",
  13193. "items": {
  13194. "type": "string"
  13195. },
  13196. "x-go-name": "ApprovalsWhitelistUsernames"
  13197. },
  13198. "block_on_official_review_requests": {
  13199. "type": "boolean",
  13200. "x-go-name": "BlockOnOfficialReviewRequests"
  13201. },
  13202. "block_on_outdated_branch": {
  13203. "type": "boolean",
  13204. "x-go-name": "BlockOnOutdatedBranch"
  13205. },
  13206. "block_on_rejected_reviews": {
  13207. "type": "boolean",
  13208. "x-go-name": "BlockOnRejectedReviews"
  13209. },
  13210. "dismiss_stale_approvals": {
  13211. "type": "boolean",
  13212. "x-go-name": "DismissStaleApprovals"
  13213. },
  13214. "enable_approvals_whitelist": {
  13215. "type": "boolean",
  13216. "x-go-name": "EnableApprovalsWhitelist"
  13217. },
  13218. "enable_merge_whitelist": {
  13219. "type": "boolean",
  13220. "x-go-name": "EnableMergeWhitelist"
  13221. },
  13222. "enable_push": {
  13223. "type": "boolean",
  13224. "x-go-name": "EnablePush"
  13225. },
  13226. "enable_push_whitelist": {
  13227. "type": "boolean",
  13228. "x-go-name": "EnablePushWhitelist"
  13229. },
  13230. "enable_status_check": {
  13231. "type": "boolean",
  13232. "x-go-name": "EnableStatusCheck"
  13233. },
  13234. "merge_whitelist_teams": {
  13235. "type": "array",
  13236. "items": {
  13237. "type": "string"
  13238. },
  13239. "x-go-name": "MergeWhitelistTeams"
  13240. },
  13241. "merge_whitelist_usernames": {
  13242. "type": "array",
  13243. "items": {
  13244. "type": "string"
  13245. },
  13246. "x-go-name": "MergeWhitelistUsernames"
  13247. },
  13248. "protected_file_patterns": {
  13249. "type": "string",
  13250. "x-go-name": "ProtectedFilePatterns"
  13251. },
  13252. "push_whitelist_deploy_keys": {
  13253. "type": "boolean",
  13254. "x-go-name": "PushWhitelistDeployKeys"
  13255. },
  13256. "push_whitelist_teams": {
  13257. "type": "array",
  13258. "items": {
  13259. "type": "string"
  13260. },
  13261. "x-go-name": "PushWhitelistTeams"
  13262. },
  13263. "push_whitelist_usernames": {
  13264. "type": "array",
  13265. "items": {
  13266. "type": "string"
  13267. },
  13268. "x-go-name": "PushWhitelistUsernames"
  13269. },
  13270. "require_signed_commits": {
  13271. "type": "boolean",
  13272. "x-go-name": "RequireSignedCommits"
  13273. },
  13274. "required_approvals": {
  13275. "type": "integer",
  13276. "format": "int64",
  13277. "x-go-name": "RequiredApprovals"
  13278. },
  13279. "status_check_contexts": {
  13280. "type": "array",
  13281. "items": {
  13282. "type": "string"
  13283. },
  13284. "x-go-name": "StatusCheckContexts"
  13285. }
  13286. },
  13287. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13288. },
  13289. "EditDeadlineOption": {
  13290. "description": "EditDeadlineOption options for creating a deadline",
  13291. "type": "object",
  13292. "required": [
  13293. "due_date"
  13294. ],
  13295. "properties": {
  13296. "due_date": {
  13297. "type": "string",
  13298. "format": "date-time",
  13299. "x-go-name": "Deadline"
  13300. }
  13301. },
  13302. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13303. },
  13304. "EditGitHookOption": {
  13305. "description": "EditGitHookOption options when modifying one Git hook",
  13306. "type": "object",
  13307. "properties": {
  13308. "content": {
  13309. "type": "string",
  13310. "x-go-name": "Content"
  13311. }
  13312. },
  13313. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13314. },
  13315. "EditHookOption": {
  13316. "description": "EditHookOption options when modify one hook",
  13317. "type": "object",
  13318. "properties": {
  13319. "active": {
  13320. "type": "boolean",
  13321. "x-go-name": "Active"
  13322. },
  13323. "branch_filter": {
  13324. "type": "string",
  13325. "x-go-name": "BranchFilter"
  13326. },
  13327. "config": {
  13328. "type": "object",
  13329. "additionalProperties": {
  13330. "type": "string"
  13331. },
  13332. "x-go-name": "Config"
  13333. },
  13334. "events": {
  13335. "type": "array",
  13336. "items": {
  13337. "type": "string"
  13338. },
  13339. "x-go-name": "Events"
  13340. }
  13341. },
  13342. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13343. },
  13344. "EditIssueCommentOption": {
  13345. "description": "EditIssueCommentOption options for editing a comment",
  13346. "type": "object",
  13347. "required": [
  13348. "body"
  13349. ],
  13350. "properties": {
  13351. "body": {
  13352. "type": "string",
  13353. "x-go-name": "Body"
  13354. }
  13355. },
  13356. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13357. },
  13358. "EditIssueOption": {
  13359. "description": "EditIssueOption options for editing an issue",
  13360. "type": "object",
  13361. "properties": {
  13362. "assignee": {
  13363. "description": "deprecated",
  13364. "type": "string",
  13365. "x-go-name": "Assignee"
  13366. },
  13367. "assignees": {
  13368. "type": "array",
  13369. "items": {
  13370. "type": "string"
  13371. },
  13372. "x-go-name": "Assignees"
  13373. },
  13374. "body": {
  13375. "type": "string",
  13376. "x-go-name": "Body"
  13377. },
  13378. "due_date": {
  13379. "type": "string",
  13380. "format": "date-time",
  13381. "x-go-name": "Deadline"
  13382. },
  13383. "milestone": {
  13384. "type": "integer",
  13385. "format": "int64",
  13386. "x-go-name": "Milestone"
  13387. },
  13388. "ref": {
  13389. "type": "string",
  13390. "x-go-name": "Ref"
  13391. },
  13392. "state": {
  13393. "type": "string",
  13394. "x-go-name": "State"
  13395. },
  13396. "title": {
  13397. "type": "string",
  13398. "x-go-name": "Title"
  13399. },
  13400. "unset_due_date": {
  13401. "type": "boolean",
  13402. "x-go-name": "RemoveDeadline"
  13403. }
  13404. },
  13405. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13406. },
  13407. "EditLabelOption": {
  13408. "description": "EditLabelOption options for editing a label",
  13409. "type": "object",
  13410. "properties": {
  13411. "color": {
  13412. "type": "string",
  13413. "x-go-name": "Color"
  13414. },
  13415. "description": {
  13416. "type": "string",
  13417. "x-go-name": "Description"
  13418. },
  13419. "name": {
  13420. "type": "string",
  13421. "x-go-name": "Name"
  13422. }
  13423. },
  13424. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13425. },
  13426. "EditMilestoneOption": {
  13427. "description": "EditMilestoneOption options for editing a milestone",
  13428. "type": "object",
  13429. "properties": {
  13430. "description": {
  13431. "type": "string",
  13432. "x-go-name": "Description"
  13433. },
  13434. "due_on": {
  13435. "type": "string",
  13436. "format": "date-time",
  13437. "x-go-name": "Deadline"
  13438. },
  13439. "state": {
  13440. "type": "string",
  13441. "x-go-name": "State"
  13442. },
  13443. "title": {
  13444. "type": "string",
  13445. "x-go-name": "Title"
  13446. }
  13447. },
  13448. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13449. },
  13450. "EditOrgOption": {
  13451. "description": "EditOrgOption options for editing an organization",
  13452. "type": "object",
  13453. "properties": {
  13454. "description": {
  13455. "type": "string",
  13456. "x-go-name": "Description"
  13457. },
  13458. "full_name": {
  13459. "type": "string",
  13460. "x-go-name": "FullName"
  13461. },
  13462. "location": {
  13463. "type": "string",
  13464. "x-go-name": "Location"
  13465. },
  13466. "repo_admin_change_team_access": {
  13467. "type": "boolean",
  13468. "x-go-name": "RepoAdminChangeTeamAccess"
  13469. },
  13470. "visibility": {
  13471. "description": "possible values are `public`, `limited` or `private`",
  13472. "type": "string",
  13473. "enum": [
  13474. "public",
  13475. "limited",
  13476. "private"
  13477. ],
  13478. "x-go-name": "Visibility"
  13479. },
  13480. "website": {
  13481. "type": "string",
  13482. "x-go-name": "Website"
  13483. }
  13484. },
  13485. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13486. },
  13487. "EditPullRequestOption": {
  13488. "description": "EditPullRequestOption options when modify pull request",
  13489. "type": "object",
  13490. "properties": {
  13491. "assignee": {
  13492. "type": "string",
  13493. "x-go-name": "Assignee"
  13494. },
  13495. "assignees": {
  13496. "type": "array",
  13497. "items": {
  13498. "type": "string"
  13499. },
  13500. "x-go-name": "Assignees"
  13501. },
  13502. "base": {
  13503. "type": "string",
  13504. "x-go-name": "Base"
  13505. },
  13506. "body": {
  13507. "type": "string",
  13508. "x-go-name": "Body"
  13509. },
  13510. "due_date": {
  13511. "type": "string",
  13512. "format": "date-time",
  13513. "x-go-name": "Deadline"
  13514. },
  13515. "labels": {
  13516. "type": "array",
  13517. "items": {
  13518. "type": "integer",
  13519. "format": "int64"
  13520. },
  13521. "x-go-name": "Labels"
  13522. },
  13523. "milestone": {
  13524. "type": "integer",
  13525. "format": "int64",
  13526. "x-go-name": "Milestone"
  13527. },
  13528. "state": {
  13529. "type": "string",
  13530. "x-go-name": "State"
  13531. },
  13532. "title": {
  13533. "type": "string",
  13534. "x-go-name": "Title"
  13535. },
  13536. "unset_due_date": {
  13537. "type": "boolean",
  13538. "x-go-name": "RemoveDeadline"
  13539. }
  13540. },
  13541. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13542. },
  13543. "EditReactionOption": {
  13544. "description": "EditReactionOption contain the reaction type",
  13545. "type": "object",
  13546. "properties": {
  13547. "content": {
  13548. "type": "string",
  13549. "x-go-name": "Reaction"
  13550. }
  13551. },
  13552. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13553. },
  13554. "EditReleaseOption": {
  13555. "description": "EditReleaseOption options when editing a release",
  13556. "type": "object",
  13557. "properties": {
  13558. "body": {
  13559. "type": "string",
  13560. "x-go-name": "Note"
  13561. },
  13562. "draft": {
  13563. "type": "boolean",
  13564. "x-go-name": "IsDraft"
  13565. },
  13566. "name": {
  13567. "type": "string",
  13568. "x-go-name": "Title"
  13569. },
  13570. "prerelease": {
  13571. "type": "boolean",
  13572. "x-go-name": "IsPrerelease"
  13573. },
  13574. "tag_name": {
  13575. "type": "string",
  13576. "x-go-name": "TagName"
  13577. },
  13578. "target_commitish": {
  13579. "type": "string",
  13580. "x-go-name": "Target"
  13581. }
  13582. },
  13583. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13584. },
  13585. "EditRepoOption": {
  13586. "description": "EditRepoOption options when editing a repository's properties",
  13587. "type": "object",
  13588. "properties": {
  13589. "allow_manual_merge": {
  13590. "description": "either `true` to allow mark pr as merged manually, or `false` to prevent it. `has_pull_requests` must be `true`.",
  13591. "type": "boolean",
  13592. "x-go-name": "AllowManualMerge"
  13593. },
  13594. "allow_merge_commits": {
  13595. "description": "either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`.",
  13596. "type": "boolean",
  13597. "x-go-name": "AllowMerge"
  13598. },
  13599. "allow_rebase": {
  13600. "description": "either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`.",
  13601. "type": "boolean",
  13602. "x-go-name": "AllowRebase"
  13603. },
  13604. "allow_rebase_explicit": {
  13605. "description": "either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. `has_pull_requests` must be `true`.",
  13606. "type": "boolean",
  13607. "x-go-name": "AllowRebaseMerge"
  13608. },
  13609. "allow_squash_merge": {
  13610. "description": "either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. `has_pull_requests` must be `true`.",
  13611. "type": "boolean",
  13612. "x-go-name": "AllowSquash"
  13613. },
  13614. "archived": {
  13615. "description": "set to `true` to archive this repository.",
  13616. "type": "boolean",
  13617. "x-go-name": "Archived"
  13618. },
  13619. "autodetect_manual_merge": {
  13620. "description": "either `true` to enable AutodetectManualMerge, or `false` to prevent it. `has_pull_requests` must be `true`, Note: In some special cases, misjudgments can occur.",
  13621. "type": "boolean",
  13622. "x-go-name": "AutodetectManualMerge"
  13623. },
  13624. "default_branch": {
  13625. "description": "sets the default branch for this repository.",
  13626. "type": "string",
  13627. "x-go-name": "DefaultBranch"
  13628. },
  13629. "default_merge_style": {
  13630. "description": "set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". `has_pull_requests` must be `true`.",
  13631. "type": "string",
  13632. "x-go-name": "DefaultMergeStyle"
  13633. },
  13634. "description": {
  13635. "description": "a short description of the repository.",
  13636. "type": "string",
  13637. "x-go-name": "Description"
  13638. },
  13639. "external_tracker": {
  13640. "$ref": "#/definitions/ExternalTracker"
  13641. },
  13642. "external_wiki": {
  13643. "$ref": "#/definitions/ExternalWiki"
  13644. },
  13645. "has_issues": {
  13646. "description": "either `true` to enable issues for this repository or `false` to disable them.",
  13647. "type": "boolean",
  13648. "x-go-name": "HasIssues"
  13649. },
  13650. "has_projects": {
  13651. "description": "either `true` to enable project unit, or `false` to disable them.",
  13652. "type": "boolean",
  13653. "x-go-name": "HasProjects"
  13654. },
  13655. "has_pull_requests": {
  13656. "description": "either `true` to allow pull requests, or `false` to prevent pull request.",
  13657. "type": "boolean",
  13658. "x-go-name": "HasPullRequests"
  13659. },
  13660. "has_wiki": {
  13661. "description": "either `true` to enable the wiki for this repository or `false` to disable it.",
  13662. "type": "boolean",
  13663. "x-go-name": "HasWiki"
  13664. },
  13665. "ignore_whitespace_conflicts": {
  13666. "description": "either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. `has_pull_requests` must be `true`.",
  13667. "type": "boolean",
  13668. "x-go-name": "IgnoreWhitespaceConflicts"
  13669. },
  13670. "internal_tracker": {
  13671. "$ref": "#/definitions/InternalTracker"
  13672. },
  13673. "mirror_interval": {
  13674. "description": "set to a string like `8h30m0s` to set the mirror interval time",
  13675. "type": "string",
  13676. "x-go-name": "MirrorInterval"
  13677. },
  13678. "name": {
  13679. "description": "name of the repository",
  13680. "type": "string",
  13681. "uniqueItems": true,
  13682. "x-go-name": "Name"
  13683. },
  13684. "private": {
  13685. "description": "either `true` to make the repository private or `false` to make it public.\nNote: you will get a 422 error if the organization restricts changing repository visibility to organization\nowners and a non-owner tries to change the value of private.",
  13686. "type": "boolean",
  13687. "x-go-name": "Private"
  13688. },
  13689. "template": {
  13690. "description": "either `true` to make this repository a template or `false` to make it a normal repository",
  13691. "type": "boolean",
  13692. "x-go-name": "Template"
  13693. },
  13694. "website": {
  13695. "description": "a URL with more information about the repository.",
  13696. "type": "string",
  13697. "x-go-name": "Website"
  13698. }
  13699. },
  13700. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13701. },
  13702. "EditTeamOption": {
  13703. "description": "EditTeamOption options for editing a team",
  13704. "type": "object",
  13705. "required": [
  13706. "name"
  13707. ],
  13708. "properties": {
  13709. "can_create_org_repo": {
  13710. "type": "boolean",
  13711. "x-go-name": "CanCreateOrgRepo"
  13712. },
  13713. "description": {
  13714. "type": "string",
  13715. "x-go-name": "Description"
  13716. },
  13717. "includes_all_repositories": {
  13718. "type": "boolean",
  13719. "x-go-name": "IncludesAllRepositories"
  13720. },
  13721. "name": {
  13722. "type": "string",
  13723. "x-go-name": "Name"
  13724. },
  13725. "permission": {
  13726. "type": "string",
  13727. "enum": [
  13728. "read",
  13729. "write",
  13730. "admin"
  13731. ],
  13732. "x-go-name": "Permission"
  13733. },
  13734. "units": {
  13735. "type": "array",
  13736. "items": {
  13737. "type": "string"
  13738. },
  13739. "x-go-name": "Units",
  13740. "example": [
  13741. "repo.code",
  13742. "repo.issues",
  13743. "repo.ext_issues",
  13744. "repo.wiki",
  13745. "repo.pulls",
  13746. "repo.releases",
  13747. "repo.projects",
  13748. "repo.ext_wiki"
  13749. ]
  13750. }
  13751. },
  13752. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13753. },
  13754. "EditUserOption": {
  13755. "description": "EditUserOption edit user options",
  13756. "type": "object",
  13757. "required": [
  13758. "source_id",
  13759. "login_name"
  13760. ],
  13761. "properties": {
  13762. "active": {
  13763. "type": "boolean",
  13764. "x-go-name": "Active"
  13765. },
  13766. "admin": {
  13767. "type": "boolean",
  13768. "x-go-name": "Admin"
  13769. },
  13770. "allow_create_organization": {
  13771. "type": "boolean",
  13772. "x-go-name": "AllowCreateOrganization"
  13773. },
  13774. "allow_git_hook": {
  13775. "type": "boolean",
  13776. "x-go-name": "AllowGitHook"
  13777. },
  13778. "allow_import_local": {
  13779. "type": "boolean",
  13780. "x-go-name": "AllowImportLocal"
  13781. },
  13782. "email": {
  13783. "type": "string",
  13784. "format": "email",
  13785. "x-go-name": "Email"
  13786. },
  13787. "full_name": {
  13788. "type": "string",
  13789. "x-go-name": "FullName"
  13790. },
  13791. "location": {
  13792. "type": "string",
  13793. "x-go-name": "Location"
  13794. },
  13795. "login_name": {
  13796. "type": "string",
  13797. "x-go-name": "LoginName"
  13798. },
  13799. "max_repo_creation": {
  13800. "type": "integer",
  13801. "format": "int64",
  13802. "x-go-name": "MaxRepoCreation"
  13803. },
  13804. "must_change_password": {
  13805. "type": "boolean",
  13806. "x-go-name": "MustChangePassword"
  13807. },
  13808. "password": {
  13809. "type": "string",
  13810. "x-go-name": "Password"
  13811. },
  13812. "prohibit_login": {
  13813. "type": "boolean",
  13814. "x-go-name": "ProhibitLogin"
  13815. },
  13816. "restricted": {
  13817. "type": "boolean",
  13818. "x-go-name": "Restricted"
  13819. },
  13820. "source_id": {
  13821. "type": "integer",
  13822. "format": "int64",
  13823. "x-go-name": "SourceID"
  13824. },
  13825. "website": {
  13826. "type": "string",
  13827. "x-go-name": "Website"
  13828. }
  13829. },
  13830. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13831. },
  13832. "Email": {
  13833. "description": "Email an email address belonging to a user",
  13834. "type": "object",
  13835. "properties": {
  13836. "email": {
  13837. "type": "string",
  13838. "format": "email",
  13839. "x-go-name": "Email"
  13840. },
  13841. "primary": {
  13842. "type": "boolean",
  13843. "x-go-name": "Primary"
  13844. },
  13845. "verified": {
  13846. "type": "boolean",
  13847. "x-go-name": "Verified"
  13848. }
  13849. },
  13850. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13851. },
  13852. "ExternalTracker": {
  13853. "description": "ExternalTracker represents settings for external tracker",
  13854. "type": "object",
  13855. "properties": {
  13856. "external_tracker_format": {
  13857. "description": "External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index.",
  13858. "type": "string",
  13859. "x-go-name": "ExternalTrackerFormat"
  13860. },
  13861. "external_tracker_style": {
  13862. "description": "External Issue Tracker Number Format, either `numeric` or `alphanumeric`",
  13863. "type": "string",
  13864. "x-go-name": "ExternalTrackerStyle"
  13865. },
  13866. "external_tracker_url": {
  13867. "description": "URL of external issue tracker.",
  13868. "type": "string",
  13869. "x-go-name": "ExternalTrackerURL"
  13870. }
  13871. },
  13872. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13873. },
  13874. "ExternalWiki": {
  13875. "description": "ExternalWiki represents setting for external wiki",
  13876. "type": "object",
  13877. "properties": {
  13878. "external_wiki_url": {
  13879. "description": "URL of external wiki.",
  13880. "type": "string",
  13881. "x-go-name": "ExternalWikiURL"
  13882. }
  13883. },
  13884. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13885. },
  13886. "FileCommitResponse": {
  13887. "type": "object",
  13888. "title": "FileCommitResponse contains information generated from a Git commit for a repo's file.",
  13889. "properties": {
  13890. "author": {
  13891. "$ref": "#/definitions/CommitUser"
  13892. },
  13893. "committer": {
  13894. "$ref": "#/definitions/CommitUser"
  13895. },
  13896. "created": {
  13897. "type": "string",
  13898. "format": "date-time",
  13899. "x-go-name": "Created"
  13900. },
  13901. "html_url": {
  13902. "type": "string",
  13903. "x-go-name": "HTMLURL"
  13904. },
  13905. "message": {
  13906. "type": "string",
  13907. "x-go-name": "Message"
  13908. },
  13909. "parents": {
  13910. "type": "array",
  13911. "items": {
  13912. "$ref": "#/definitions/CommitMeta"
  13913. },
  13914. "x-go-name": "Parents"
  13915. },
  13916. "sha": {
  13917. "type": "string",
  13918. "x-go-name": "SHA"
  13919. },
  13920. "tree": {
  13921. "$ref": "#/definitions/CommitMeta"
  13922. },
  13923. "url": {
  13924. "type": "string",
  13925. "x-go-name": "URL"
  13926. }
  13927. },
  13928. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13929. },
  13930. "FileDeleteResponse": {
  13931. "description": "FileDeleteResponse contains information about a repo's file that was deleted",
  13932. "type": "object",
  13933. "properties": {
  13934. "commit": {
  13935. "$ref": "#/definitions/FileCommitResponse"
  13936. },
  13937. "content": {
  13938. "type": "object",
  13939. "x-go-name": "Content"
  13940. },
  13941. "verification": {
  13942. "$ref": "#/definitions/PayloadCommitVerification"
  13943. }
  13944. },
  13945. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13946. },
  13947. "FileLinksResponse": {
  13948. "description": "FileLinksResponse contains the links for a repo's file",
  13949. "type": "object",
  13950. "properties": {
  13951. "git": {
  13952. "type": "string",
  13953. "x-go-name": "GitURL"
  13954. },
  13955. "html": {
  13956. "type": "string",
  13957. "x-go-name": "HTMLURL"
  13958. },
  13959. "self": {
  13960. "type": "string",
  13961. "x-go-name": "Self"
  13962. }
  13963. },
  13964. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13965. },
  13966. "FileResponse": {
  13967. "description": "FileResponse contains information about a repo's file",
  13968. "type": "object",
  13969. "properties": {
  13970. "commit": {
  13971. "$ref": "#/definitions/FileCommitResponse"
  13972. },
  13973. "content": {
  13974. "$ref": "#/definitions/ContentsResponse"
  13975. },
  13976. "verification": {
  13977. "$ref": "#/definitions/PayloadCommitVerification"
  13978. }
  13979. },
  13980. "x-go-package": "code.gitea.io/gitea/modules/structs"
  13981. },
  13982. "GPGKey": {
  13983. "description": "GPGKey a user GPG key to sign commit and tag in repository",
  13984. "type": "object",
  13985. "properties": {
  13986. "can_certify": {
  13987. "type": "boolean",
  13988. "x-go-name": "CanCertify"
  13989. },
  13990. "can_encrypt_comms": {
  13991. "type": "boolean",
  13992. "x-go-name": "CanEncryptComms"
  13993. },
  13994. "can_encrypt_storage": {
  13995. "type": "boolean",
  13996. "x-go-name": "CanEncryptStorage"
  13997. },
  13998. "can_sign": {
  13999. "type": "boolean",
  14000. "x-go-name": "CanSign"
  14001. },
  14002. "created_at": {
  14003. "type": "string",
  14004. "format": "date-time",
  14005. "x-go-name": "Created"
  14006. },
  14007. "emails": {
  14008. "type": "array",
  14009. "items": {
  14010. "$ref": "#/definitions/GPGKeyEmail"
  14011. },
  14012. "x-go-name": "Emails"
  14013. },
  14014. "expires_at": {
  14015. "type": "string",
  14016. "format": "date-time",
  14017. "x-go-name": "Expires"
  14018. },
  14019. "id": {
  14020. "type": "integer",
  14021. "format": "int64",
  14022. "x-go-name": "ID"
  14023. },
  14024. "key_id": {
  14025. "type": "string",
  14026. "x-go-name": "KeyID"
  14027. },
  14028. "primary_key_id": {
  14029. "type": "string",
  14030. "x-go-name": "PrimaryKeyID"
  14031. },
  14032. "public_key": {
  14033. "type": "string",
  14034. "x-go-name": "PublicKey"
  14035. },
  14036. "subkeys": {
  14037. "type": "array",
  14038. "items": {
  14039. "$ref": "#/definitions/GPGKey"
  14040. },
  14041. "x-go-name": "SubsKey"
  14042. }
  14043. },
  14044. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14045. },
  14046. "GPGKeyEmail": {
  14047. "description": "GPGKeyEmail an email attached to a GPGKey",
  14048. "type": "object",
  14049. "properties": {
  14050. "email": {
  14051. "type": "string",
  14052. "x-go-name": "Email"
  14053. },
  14054. "verified": {
  14055. "type": "boolean",
  14056. "x-go-name": "Verified"
  14057. }
  14058. },
  14059. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14060. },
  14061. "GeneralAPISettings": {
  14062. "description": "GeneralAPISettings contains global api settings exposed by it",
  14063. "type": "object",
  14064. "properties": {
  14065. "default_git_trees_per_page": {
  14066. "type": "integer",
  14067. "format": "int64",
  14068. "x-go-name": "DefaultGitTreesPerPage"
  14069. },
  14070. "default_max_blob_size": {
  14071. "type": "integer",
  14072. "format": "int64",
  14073. "x-go-name": "DefaultMaxBlobSize"
  14074. },
  14075. "default_paging_num": {
  14076. "type": "integer",
  14077. "format": "int64",
  14078. "x-go-name": "DefaultPagingNum"
  14079. },
  14080. "max_response_items": {
  14081. "type": "integer",
  14082. "format": "int64",
  14083. "x-go-name": "MaxResponseItems"
  14084. }
  14085. },
  14086. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14087. },
  14088. "GeneralAttachmentSettings": {
  14089. "description": "GeneralAttachmentSettings contains global Attachment settings exposed by API",
  14090. "type": "object",
  14091. "properties": {
  14092. "allowed_types": {
  14093. "type": "string",
  14094. "x-go-name": "AllowedTypes"
  14095. },
  14096. "enabled": {
  14097. "type": "boolean",
  14098. "x-go-name": "Enabled"
  14099. },
  14100. "max_files": {
  14101. "type": "integer",
  14102. "format": "int64",
  14103. "x-go-name": "MaxFiles"
  14104. },
  14105. "max_size": {
  14106. "type": "integer",
  14107. "format": "int64",
  14108. "x-go-name": "MaxSize"
  14109. }
  14110. },
  14111. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14112. },
  14113. "GeneralRepoSettings": {
  14114. "description": "GeneralRepoSettings contains global repository settings exposed by API",
  14115. "type": "object",
  14116. "properties": {
  14117. "http_git_disabled": {
  14118. "type": "boolean",
  14119. "x-go-name": "HTTPGitDisabled"
  14120. },
  14121. "lfs_disabled": {
  14122. "type": "boolean",
  14123. "x-go-name": "LFSDisabled"
  14124. },
  14125. "migrations_disabled": {
  14126. "type": "boolean",
  14127. "x-go-name": "MigrationsDisabled"
  14128. },
  14129. "mirrors_disabled": {
  14130. "type": "boolean",
  14131. "x-go-name": "MirrorsDisabled"
  14132. },
  14133. "time_tracking_disabled": {
  14134. "type": "boolean",
  14135. "x-go-name": "TimeTrackingDisabled"
  14136. }
  14137. },
  14138. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14139. },
  14140. "GeneralUISettings": {
  14141. "description": "GeneralUISettings contains global ui settings exposed by API",
  14142. "type": "object",
  14143. "properties": {
  14144. "allowed_reactions": {
  14145. "type": "array",
  14146. "items": {
  14147. "type": "string"
  14148. },
  14149. "x-go-name": "AllowedReactions"
  14150. },
  14151. "default_theme": {
  14152. "type": "string",
  14153. "x-go-name": "DefaultTheme"
  14154. }
  14155. },
  14156. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14157. },
  14158. "GitBlobResponse": {
  14159. "description": "GitBlobResponse represents a git blob",
  14160. "type": "object",
  14161. "properties": {
  14162. "content": {
  14163. "type": "string",
  14164. "x-go-name": "Content"
  14165. },
  14166. "encoding": {
  14167. "type": "string",
  14168. "x-go-name": "Encoding"
  14169. },
  14170. "sha": {
  14171. "type": "string",
  14172. "x-go-name": "SHA"
  14173. },
  14174. "size": {
  14175. "type": "integer",
  14176. "format": "int64",
  14177. "x-go-name": "Size"
  14178. },
  14179. "url": {
  14180. "type": "string",
  14181. "x-go-name": "URL"
  14182. }
  14183. },
  14184. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14185. },
  14186. "GitEntry": {
  14187. "description": "GitEntry represents a git tree",
  14188. "type": "object",
  14189. "properties": {
  14190. "mode": {
  14191. "type": "string",
  14192. "x-go-name": "Mode"
  14193. },
  14194. "path": {
  14195. "type": "string",
  14196. "x-go-name": "Path"
  14197. },
  14198. "sha": {
  14199. "type": "string",
  14200. "x-go-name": "SHA"
  14201. },
  14202. "size": {
  14203. "type": "integer",
  14204. "format": "int64",
  14205. "x-go-name": "Size"
  14206. },
  14207. "type": {
  14208. "type": "string",
  14209. "x-go-name": "Type"
  14210. },
  14211. "url": {
  14212. "type": "string",
  14213. "x-go-name": "URL"
  14214. }
  14215. },
  14216. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14217. },
  14218. "GitHook": {
  14219. "description": "GitHook represents a Git repository hook",
  14220. "type": "object",
  14221. "properties": {
  14222. "content": {
  14223. "type": "string",
  14224. "x-go-name": "Content"
  14225. },
  14226. "is_active": {
  14227. "type": "boolean",
  14228. "x-go-name": "IsActive"
  14229. },
  14230. "name": {
  14231. "type": "string",
  14232. "x-go-name": "Name"
  14233. }
  14234. },
  14235. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14236. },
  14237. "GitObject": {
  14238. "type": "object",
  14239. "title": "GitObject represents a Git object.",
  14240. "properties": {
  14241. "sha": {
  14242. "type": "string",
  14243. "x-go-name": "SHA"
  14244. },
  14245. "type": {
  14246. "type": "string",
  14247. "x-go-name": "Type"
  14248. },
  14249. "url": {
  14250. "type": "string",
  14251. "x-go-name": "URL"
  14252. }
  14253. },
  14254. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14255. },
  14256. "GitServiceType": {
  14257. "description": "GitServiceType represents a git service",
  14258. "type": "integer",
  14259. "format": "int64",
  14260. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14261. },
  14262. "GitTreeResponse": {
  14263. "description": "GitTreeResponse returns a git tree",
  14264. "type": "object",
  14265. "properties": {
  14266. "page": {
  14267. "type": "integer",
  14268. "format": "int64",
  14269. "x-go-name": "Page"
  14270. },
  14271. "sha": {
  14272. "type": "string",
  14273. "x-go-name": "SHA"
  14274. },
  14275. "total_count": {
  14276. "type": "integer",
  14277. "format": "int64",
  14278. "x-go-name": "TotalCount"
  14279. },
  14280. "tree": {
  14281. "type": "array",
  14282. "items": {
  14283. "$ref": "#/definitions/GitEntry"
  14284. },
  14285. "x-go-name": "Entries"
  14286. },
  14287. "truncated": {
  14288. "type": "boolean",
  14289. "x-go-name": "Truncated"
  14290. },
  14291. "url": {
  14292. "type": "string",
  14293. "x-go-name": "URL"
  14294. }
  14295. },
  14296. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14297. },
  14298. "Hook": {
  14299. "description": "Hook a hook is a web hook when one repository changed",
  14300. "type": "object",
  14301. "properties": {
  14302. "active": {
  14303. "type": "boolean",
  14304. "x-go-name": "Active"
  14305. },
  14306. "config": {
  14307. "type": "object",
  14308. "additionalProperties": {
  14309. "type": "string"
  14310. },
  14311. "x-go-name": "Config"
  14312. },
  14313. "created_at": {
  14314. "type": "string",
  14315. "format": "date-time",
  14316. "x-go-name": "Created"
  14317. },
  14318. "events": {
  14319. "type": "array",
  14320. "items": {
  14321. "type": "string"
  14322. },
  14323. "x-go-name": "Events"
  14324. },
  14325. "id": {
  14326. "type": "integer",
  14327. "format": "int64",
  14328. "x-go-name": "ID"
  14329. },
  14330. "type": {
  14331. "type": "string",
  14332. "x-go-name": "Type"
  14333. },
  14334. "updated_at": {
  14335. "type": "string",
  14336. "format": "date-time",
  14337. "x-go-name": "Updated"
  14338. }
  14339. },
  14340. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14341. },
  14342. "Identity": {
  14343. "description": "Identity for a person's identity like an author or committer",
  14344. "type": "object",
  14345. "properties": {
  14346. "email": {
  14347. "type": "string",
  14348. "format": "email",
  14349. "x-go-name": "Email"
  14350. },
  14351. "name": {
  14352. "type": "string",
  14353. "x-go-name": "Name"
  14354. }
  14355. },
  14356. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14357. },
  14358. "InternalTracker": {
  14359. "description": "InternalTracker represents settings for internal tracker",
  14360. "type": "object",
  14361. "properties": {
  14362. "allow_only_contributors_to_track_time": {
  14363. "description": "Let only contributors track time (Built-in issue tracker)",
  14364. "type": "boolean",
  14365. "x-go-name": "AllowOnlyContributorsToTrackTime"
  14366. },
  14367. "enable_issue_dependencies": {
  14368. "description": "Enable dependencies for issues and pull requests (Built-in issue tracker)",
  14369. "type": "boolean",
  14370. "x-go-name": "EnableIssueDependencies"
  14371. },
  14372. "enable_time_tracker": {
  14373. "description": "Enable time tracking (Built-in issue tracker)",
  14374. "type": "boolean",
  14375. "x-go-name": "EnableTimeTracker"
  14376. }
  14377. },
  14378. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14379. },
  14380. "Issue": {
  14381. "description": "Issue represents an issue in a repository",
  14382. "type": "object",
  14383. "properties": {
  14384. "assignee": {
  14385. "$ref": "#/definitions/User"
  14386. },
  14387. "assignees": {
  14388. "type": "array",
  14389. "items": {
  14390. "$ref": "#/definitions/User"
  14391. },
  14392. "x-go-name": "Assignees"
  14393. },
  14394. "body": {
  14395. "type": "string",
  14396. "x-go-name": "Body"
  14397. },
  14398. "closed_at": {
  14399. "type": "string",
  14400. "format": "date-time",
  14401. "x-go-name": "Closed"
  14402. },
  14403. "comments": {
  14404. "type": "integer",
  14405. "format": "int64",
  14406. "x-go-name": "Comments"
  14407. },
  14408. "created_at": {
  14409. "type": "string",
  14410. "format": "date-time",
  14411. "x-go-name": "Created"
  14412. },
  14413. "due_date": {
  14414. "type": "string",
  14415. "format": "date-time",
  14416. "x-go-name": "Deadline"
  14417. },
  14418. "html_url": {
  14419. "type": "string",
  14420. "x-go-name": "HTMLURL"
  14421. },
  14422. "id": {
  14423. "type": "integer",
  14424. "format": "int64",
  14425. "x-go-name": "ID"
  14426. },
  14427. "is_locked": {
  14428. "type": "boolean",
  14429. "x-go-name": "IsLocked"
  14430. },
  14431. "labels": {
  14432. "type": "array",
  14433. "items": {
  14434. "$ref": "#/definitions/Label"
  14435. },
  14436. "x-go-name": "Labels"
  14437. },
  14438. "milestone": {
  14439. "$ref": "#/definitions/Milestone"
  14440. },
  14441. "number": {
  14442. "type": "integer",
  14443. "format": "int64",
  14444. "x-go-name": "Index"
  14445. },
  14446. "original_author": {
  14447. "type": "string",
  14448. "x-go-name": "OriginalAuthor"
  14449. },
  14450. "original_author_id": {
  14451. "type": "integer",
  14452. "format": "int64",
  14453. "x-go-name": "OriginalAuthorID"
  14454. },
  14455. "pull_request": {
  14456. "$ref": "#/definitions/PullRequestMeta"
  14457. },
  14458. "ref": {
  14459. "type": "string",
  14460. "x-go-name": "Ref"
  14461. },
  14462. "repository": {
  14463. "$ref": "#/definitions/RepositoryMeta"
  14464. },
  14465. "state": {
  14466. "$ref": "#/definitions/StateType"
  14467. },
  14468. "title": {
  14469. "type": "string",
  14470. "x-go-name": "Title"
  14471. },
  14472. "updated_at": {
  14473. "type": "string",
  14474. "format": "date-time",
  14475. "x-go-name": "Updated"
  14476. },
  14477. "url": {
  14478. "type": "string",
  14479. "x-go-name": "URL"
  14480. },
  14481. "user": {
  14482. "$ref": "#/definitions/User"
  14483. }
  14484. },
  14485. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14486. },
  14487. "IssueDeadline": {
  14488. "description": "IssueDeadline represents an issue deadline",
  14489. "type": "object",
  14490. "properties": {
  14491. "due_date": {
  14492. "type": "string",
  14493. "format": "date-time",
  14494. "x-go-name": "Deadline"
  14495. }
  14496. },
  14497. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14498. },
  14499. "IssueLabelsOption": {
  14500. "description": "IssueLabelsOption a collection of labels",
  14501. "type": "object",
  14502. "properties": {
  14503. "labels": {
  14504. "description": "list of label IDs",
  14505. "type": "array",
  14506. "items": {
  14507. "type": "integer",
  14508. "format": "int64"
  14509. },
  14510. "x-go-name": "Labels"
  14511. }
  14512. },
  14513. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14514. },
  14515. "IssueTemplate": {
  14516. "description": "IssueTemplate represents an issue template for a repository",
  14517. "type": "object",
  14518. "properties": {
  14519. "about": {
  14520. "type": "string",
  14521. "x-go-name": "About"
  14522. },
  14523. "content": {
  14524. "type": "string",
  14525. "x-go-name": "Content"
  14526. },
  14527. "file_name": {
  14528. "type": "string",
  14529. "x-go-name": "FileName"
  14530. },
  14531. "labels": {
  14532. "type": "array",
  14533. "items": {
  14534. "type": "string"
  14535. },
  14536. "x-go-name": "Labels"
  14537. },
  14538. "name": {
  14539. "type": "string",
  14540. "x-go-name": "Name"
  14541. },
  14542. "title": {
  14543. "type": "string",
  14544. "x-go-name": "Title"
  14545. }
  14546. },
  14547. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14548. },
  14549. "Label": {
  14550. "description": "Label a label to an issue or a pr",
  14551. "type": "object",
  14552. "properties": {
  14553. "color": {
  14554. "type": "string",
  14555. "x-go-name": "Color",
  14556. "example": "00aabb"
  14557. },
  14558. "description": {
  14559. "type": "string",
  14560. "x-go-name": "Description"
  14561. },
  14562. "id": {
  14563. "type": "integer",
  14564. "format": "int64",
  14565. "x-go-name": "ID"
  14566. },
  14567. "name": {
  14568. "type": "string",
  14569. "x-go-name": "Name"
  14570. },
  14571. "url": {
  14572. "type": "string",
  14573. "x-go-name": "URL"
  14574. }
  14575. },
  14576. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14577. },
  14578. "MarkdownOption": {
  14579. "description": "MarkdownOption markdown options",
  14580. "type": "object",
  14581. "properties": {
  14582. "Context": {
  14583. "description": "Context to render\n\nin: body",
  14584. "type": "string"
  14585. },
  14586. "Mode": {
  14587. "description": "Mode to render\n\nin: body",
  14588. "type": "string"
  14589. },
  14590. "Text": {
  14591. "description": "Text markdown to render\n\nin: body",
  14592. "type": "string"
  14593. },
  14594. "Wiki": {
  14595. "description": "Is it a wiki page ?\n\nin: body",
  14596. "type": "boolean"
  14597. }
  14598. },
  14599. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14600. },
  14601. "MergePullRequestOption": {
  14602. "description": "MergePullRequestForm form for merging Pull Request",
  14603. "type": "object",
  14604. "required": [
  14605. "Do"
  14606. ],
  14607. "properties": {
  14608. "Do": {
  14609. "type": "string",
  14610. "enum": [
  14611. "merge",
  14612. "rebase",
  14613. "rebase-merge",
  14614. "squash",
  14615. "manually-merged"
  14616. ]
  14617. },
  14618. "MergeCommitID": {
  14619. "type": "string"
  14620. },
  14621. "MergeMessageField": {
  14622. "type": "string"
  14623. },
  14624. "MergeTitleField": {
  14625. "type": "string"
  14626. },
  14627. "force_merge": {
  14628. "type": "boolean",
  14629. "x-go-name": "ForceMerge"
  14630. }
  14631. },
  14632. "x-go-name": "MergePullRequestForm",
  14633. "x-go-package": "code.gitea.io/gitea/services/forms"
  14634. },
  14635. "MigrateRepoForm": {
  14636. "description": "MigrateRepoForm form for migrating repository\nthis is used to interact with web ui",
  14637. "type": "object",
  14638. "required": [
  14639. "clone_addr",
  14640. "uid",
  14641. "repo_name"
  14642. ],
  14643. "properties": {
  14644. "auth_password": {
  14645. "type": "string",
  14646. "x-go-name": "AuthPassword"
  14647. },
  14648. "auth_token": {
  14649. "type": "string",
  14650. "x-go-name": "AuthToken"
  14651. },
  14652. "auth_username": {
  14653. "type": "string",
  14654. "x-go-name": "AuthUsername"
  14655. },
  14656. "clone_addr": {
  14657. "type": "string",
  14658. "x-go-name": "CloneAddr"
  14659. },
  14660. "description": {
  14661. "type": "string",
  14662. "x-go-name": "Description"
  14663. },
  14664. "issues": {
  14665. "type": "boolean",
  14666. "x-go-name": "Issues"
  14667. },
  14668. "labels": {
  14669. "type": "boolean",
  14670. "x-go-name": "Labels"
  14671. },
  14672. "lfs": {
  14673. "type": "boolean",
  14674. "x-go-name": "LFS"
  14675. },
  14676. "lfs_endpoint": {
  14677. "type": "string",
  14678. "x-go-name": "LFSEndpoint"
  14679. },
  14680. "milestones": {
  14681. "type": "boolean",
  14682. "x-go-name": "Milestones"
  14683. },
  14684. "mirror": {
  14685. "type": "boolean",
  14686. "x-go-name": "Mirror"
  14687. },
  14688. "mirror_interval": {
  14689. "type": "string",
  14690. "x-go-name": "MirrorInterval"
  14691. },
  14692. "private": {
  14693. "type": "boolean",
  14694. "x-go-name": "Private"
  14695. },
  14696. "pull_requests": {
  14697. "type": "boolean",
  14698. "x-go-name": "PullRequests"
  14699. },
  14700. "releases": {
  14701. "type": "boolean",
  14702. "x-go-name": "Releases"
  14703. },
  14704. "repo_name": {
  14705. "type": "string",
  14706. "x-go-name": "RepoName"
  14707. },
  14708. "service": {
  14709. "$ref": "#/definitions/GitServiceType"
  14710. },
  14711. "uid": {
  14712. "type": "integer",
  14713. "format": "int64",
  14714. "x-go-name": "UID"
  14715. },
  14716. "wiki": {
  14717. "type": "boolean",
  14718. "x-go-name": "Wiki"
  14719. }
  14720. },
  14721. "x-go-package": "code.gitea.io/gitea/services/forms"
  14722. },
  14723. "MigrateRepoOptions": {
  14724. "description": "MigrateRepoOptions options for migrating repository's\nthis is used to interact with api v1",
  14725. "type": "object",
  14726. "required": [
  14727. "clone_addr",
  14728. "repo_name"
  14729. ],
  14730. "properties": {
  14731. "auth_password": {
  14732. "type": "string",
  14733. "x-go-name": "AuthPassword"
  14734. },
  14735. "auth_token": {
  14736. "type": "string",
  14737. "x-go-name": "AuthToken"
  14738. },
  14739. "auth_username": {
  14740. "type": "string",
  14741. "x-go-name": "AuthUsername"
  14742. },
  14743. "clone_addr": {
  14744. "type": "string",
  14745. "x-go-name": "CloneAddr"
  14746. },
  14747. "description": {
  14748. "type": "string",
  14749. "x-go-name": "Description"
  14750. },
  14751. "issues": {
  14752. "type": "boolean",
  14753. "x-go-name": "Issues"
  14754. },
  14755. "labels": {
  14756. "type": "boolean",
  14757. "x-go-name": "Labels"
  14758. },
  14759. "lfs": {
  14760. "type": "boolean",
  14761. "x-go-name": "LFS"
  14762. },
  14763. "lfs_endpoint": {
  14764. "type": "string",
  14765. "x-go-name": "LFSEndpoint"
  14766. },
  14767. "milestones": {
  14768. "type": "boolean",
  14769. "x-go-name": "Milestones"
  14770. },
  14771. "mirror": {
  14772. "type": "boolean",
  14773. "x-go-name": "Mirror"
  14774. },
  14775. "mirror_interval": {
  14776. "type": "string",
  14777. "x-go-name": "MirrorInterval"
  14778. },
  14779. "private": {
  14780. "type": "boolean",
  14781. "x-go-name": "Private"
  14782. },
  14783. "pull_requests": {
  14784. "type": "boolean",
  14785. "x-go-name": "PullRequests"
  14786. },
  14787. "releases": {
  14788. "type": "boolean",
  14789. "x-go-name": "Releases"
  14790. },
  14791. "repo_name": {
  14792. "type": "string",
  14793. "x-go-name": "RepoName"
  14794. },
  14795. "repo_owner": {
  14796. "description": "Name of User or Organisation who will own Repo after migration",
  14797. "type": "string",
  14798. "x-go-name": "RepoOwner"
  14799. },
  14800. "service": {
  14801. "type": "string",
  14802. "enum": [
  14803. "git",
  14804. "github",
  14805. "gitea",
  14806. "gitlab"
  14807. ],
  14808. "x-go-name": "Service"
  14809. },
  14810. "uid": {
  14811. "description": "deprecated (only for backwards compatibility)",
  14812. "type": "integer",
  14813. "format": "int64",
  14814. "x-go-name": "RepoOwnerID"
  14815. },
  14816. "wiki": {
  14817. "type": "boolean",
  14818. "x-go-name": "Wiki"
  14819. }
  14820. },
  14821. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14822. },
  14823. "Milestone": {
  14824. "description": "Milestone milestone is a collection of issues on one repository",
  14825. "type": "object",
  14826. "properties": {
  14827. "closed_at": {
  14828. "type": "string",
  14829. "format": "date-time",
  14830. "x-go-name": "Closed"
  14831. },
  14832. "closed_issues": {
  14833. "type": "integer",
  14834. "format": "int64",
  14835. "x-go-name": "ClosedIssues"
  14836. },
  14837. "created_at": {
  14838. "type": "string",
  14839. "format": "date-time",
  14840. "x-go-name": "Created"
  14841. },
  14842. "description": {
  14843. "type": "string",
  14844. "x-go-name": "Description"
  14845. },
  14846. "due_on": {
  14847. "type": "string",
  14848. "format": "date-time",
  14849. "x-go-name": "Deadline"
  14850. },
  14851. "id": {
  14852. "type": "integer",
  14853. "format": "int64",
  14854. "x-go-name": "ID"
  14855. },
  14856. "open_issues": {
  14857. "type": "integer",
  14858. "format": "int64",
  14859. "x-go-name": "OpenIssues"
  14860. },
  14861. "state": {
  14862. "$ref": "#/definitions/StateType"
  14863. },
  14864. "title": {
  14865. "type": "string",
  14866. "x-go-name": "Title"
  14867. },
  14868. "updated_at": {
  14869. "type": "string",
  14870. "format": "date-time",
  14871. "x-go-name": "Updated"
  14872. }
  14873. },
  14874. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14875. },
  14876. "NotificationCount": {
  14877. "description": "NotificationCount number of unread notifications",
  14878. "type": "object",
  14879. "properties": {
  14880. "new": {
  14881. "type": "integer",
  14882. "format": "int64",
  14883. "x-go-name": "New"
  14884. }
  14885. },
  14886. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14887. },
  14888. "NotificationSubject": {
  14889. "description": "NotificationSubject contains the notification subject (Issue/Pull/Commit)",
  14890. "type": "object",
  14891. "properties": {
  14892. "latest_comment_url": {
  14893. "type": "string",
  14894. "x-go-name": "LatestCommentURL"
  14895. },
  14896. "state": {
  14897. "$ref": "#/definitions/StateType"
  14898. },
  14899. "title": {
  14900. "type": "string",
  14901. "x-go-name": "Title"
  14902. },
  14903. "type": {
  14904. "type": "string",
  14905. "x-go-name": "Type"
  14906. },
  14907. "url": {
  14908. "type": "string",
  14909. "x-go-name": "URL"
  14910. }
  14911. },
  14912. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14913. },
  14914. "NotificationThread": {
  14915. "description": "NotificationThread expose Notification on API",
  14916. "type": "object",
  14917. "properties": {
  14918. "id": {
  14919. "type": "integer",
  14920. "format": "int64",
  14921. "x-go-name": "ID"
  14922. },
  14923. "pinned": {
  14924. "type": "boolean",
  14925. "x-go-name": "Pinned"
  14926. },
  14927. "repository": {
  14928. "$ref": "#/definitions/Repository"
  14929. },
  14930. "subject": {
  14931. "$ref": "#/definitions/NotificationSubject"
  14932. },
  14933. "unread": {
  14934. "type": "boolean",
  14935. "x-go-name": "Unread"
  14936. },
  14937. "updated_at": {
  14938. "type": "string",
  14939. "format": "date-time",
  14940. "x-go-name": "UpdatedAt"
  14941. },
  14942. "url": {
  14943. "type": "string",
  14944. "x-go-name": "URL"
  14945. }
  14946. },
  14947. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14948. },
  14949. "OAuth2Application": {
  14950. "type": "object",
  14951. "title": "OAuth2Application represents an OAuth2 application.",
  14952. "properties": {
  14953. "client_id": {
  14954. "type": "string",
  14955. "x-go-name": "ClientID"
  14956. },
  14957. "client_secret": {
  14958. "type": "string",
  14959. "x-go-name": "ClientSecret"
  14960. },
  14961. "created": {
  14962. "type": "string",
  14963. "format": "date-time",
  14964. "x-go-name": "Created"
  14965. },
  14966. "id": {
  14967. "type": "integer",
  14968. "format": "int64",
  14969. "x-go-name": "ID"
  14970. },
  14971. "name": {
  14972. "type": "string",
  14973. "x-go-name": "Name"
  14974. },
  14975. "redirect_uris": {
  14976. "type": "array",
  14977. "items": {
  14978. "type": "string"
  14979. },
  14980. "x-go-name": "RedirectURIs"
  14981. }
  14982. },
  14983. "x-go-package": "code.gitea.io/gitea/modules/structs"
  14984. },
  14985. "Organization": {
  14986. "description": "Organization represents an organization",
  14987. "type": "object",
  14988. "properties": {
  14989. "avatar_url": {
  14990. "type": "string",
  14991. "x-go-name": "AvatarURL"
  14992. },
  14993. "description": {
  14994. "type": "string",
  14995. "x-go-name": "Description"
  14996. },
  14997. "full_name": {
  14998. "type": "string",
  14999. "x-go-name": "FullName"
  15000. },
  15001. "id": {
  15002. "type": "integer",
  15003. "format": "int64",
  15004. "x-go-name": "ID"
  15005. },
  15006. "location": {
  15007. "type": "string",
  15008. "x-go-name": "Location"
  15009. },
  15010. "repo_admin_change_team_access": {
  15011. "type": "boolean",
  15012. "x-go-name": "RepoAdminChangeTeamAccess"
  15013. },
  15014. "username": {
  15015. "type": "string",
  15016. "x-go-name": "UserName"
  15017. },
  15018. "visibility": {
  15019. "type": "string",
  15020. "x-go-name": "Visibility"
  15021. },
  15022. "website": {
  15023. "type": "string",
  15024. "x-go-name": "Website"
  15025. }
  15026. },
  15027. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15028. },
  15029. "PRBranchInfo": {
  15030. "description": "PRBranchInfo information about a branch",
  15031. "type": "object",
  15032. "properties": {
  15033. "label": {
  15034. "type": "string",
  15035. "x-go-name": "Name"
  15036. },
  15037. "ref": {
  15038. "type": "string",
  15039. "x-go-name": "Ref"
  15040. },
  15041. "repo": {
  15042. "$ref": "#/definitions/Repository"
  15043. },
  15044. "repo_id": {
  15045. "type": "integer",
  15046. "format": "int64",
  15047. "x-go-name": "RepoID"
  15048. },
  15049. "sha": {
  15050. "type": "string",
  15051. "x-go-name": "Sha"
  15052. }
  15053. },
  15054. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15055. },
  15056. "PayloadCommit": {
  15057. "description": "PayloadCommit represents a commit",
  15058. "type": "object",
  15059. "properties": {
  15060. "added": {
  15061. "type": "array",
  15062. "items": {
  15063. "type": "string"
  15064. },
  15065. "x-go-name": "Added"
  15066. },
  15067. "author": {
  15068. "$ref": "#/definitions/PayloadUser"
  15069. },
  15070. "committer": {
  15071. "$ref": "#/definitions/PayloadUser"
  15072. },
  15073. "id": {
  15074. "description": "sha1 hash of the commit",
  15075. "type": "string",
  15076. "x-go-name": "ID"
  15077. },
  15078. "message": {
  15079. "type": "string",
  15080. "x-go-name": "Message"
  15081. },
  15082. "modified": {
  15083. "type": "array",
  15084. "items": {
  15085. "type": "string"
  15086. },
  15087. "x-go-name": "Modified"
  15088. },
  15089. "removed": {
  15090. "type": "array",
  15091. "items": {
  15092. "type": "string"
  15093. },
  15094. "x-go-name": "Removed"
  15095. },
  15096. "timestamp": {
  15097. "type": "string",
  15098. "format": "date-time",
  15099. "x-go-name": "Timestamp"
  15100. },
  15101. "url": {
  15102. "type": "string",
  15103. "x-go-name": "URL"
  15104. },
  15105. "verification": {
  15106. "$ref": "#/definitions/PayloadCommitVerification"
  15107. }
  15108. },
  15109. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15110. },
  15111. "PayloadCommitVerification": {
  15112. "description": "PayloadCommitVerification represents the GPG verification of a commit",
  15113. "type": "object",
  15114. "properties": {
  15115. "payload": {
  15116. "type": "string",
  15117. "x-go-name": "Payload"
  15118. },
  15119. "reason": {
  15120. "type": "string",
  15121. "x-go-name": "Reason"
  15122. },
  15123. "signature": {
  15124. "type": "string",
  15125. "x-go-name": "Signature"
  15126. },
  15127. "signer": {
  15128. "$ref": "#/definitions/PayloadUser"
  15129. },
  15130. "verified": {
  15131. "type": "boolean",
  15132. "x-go-name": "Verified"
  15133. }
  15134. },
  15135. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15136. },
  15137. "PayloadUser": {
  15138. "description": "PayloadUser represents the author or committer of a commit",
  15139. "type": "object",
  15140. "properties": {
  15141. "email": {
  15142. "type": "string",
  15143. "format": "email",
  15144. "x-go-name": "Email"
  15145. },
  15146. "name": {
  15147. "description": "Full name of the commit author",
  15148. "type": "string",
  15149. "x-go-name": "Name"
  15150. },
  15151. "username": {
  15152. "type": "string",
  15153. "x-go-name": "UserName"
  15154. }
  15155. },
  15156. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15157. },
  15158. "Permission": {
  15159. "description": "Permission represents a set of permissions",
  15160. "type": "object",
  15161. "properties": {
  15162. "admin": {
  15163. "type": "boolean",
  15164. "x-go-name": "Admin"
  15165. },
  15166. "pull": {
  15167. "type": "boolean",
  15168. "x-go-name": "Pull"
  15169. },
  15170. "push": {
  15171. "type": "boolean",
  15172. "x-go-name": "Push"
  15173. }
  15174. },
  15175. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15176. },
  15177. "PublicKey": {
  15178. "description": "PublicKey publickey is a user key to push code to repository",
  15179. "type": "object",
  15180. "properties": {
  15181. "created_at": {
  15182. "type": "string",
  15183. "format": "date-time",
  15184. "x-go-name": "Created"
  15185. },
  15186. "fingerprint": {
  15187. "type": "string",
  15188. "x-go-name": "Fingerprint"
  15189. },
  15190. "id": {
  15191. "type": "integer",
  15192. "format": "int64",
  15193. "x-go-name": "ID"
  15194. },
  15195. "key": {
  15196. "type": "string",
  15197. "x-go-name": "Key"
  15198. },
  15199. "key_type": {
  15200. "type": "string",
  15201. "x-go-name": "KeyType"
  15202. },
  15203. "read_only": {
  15204. "type": "boolean",
  15205. "x-go-name": "ReadOnly"
  15206. },
  15207. "title": {
  15208. "type": "string",
  15209. "x-go-name": "Title"
  15210. },
  15211. "url": {
  15212. "type": "string",
  15213. "x-go-name": "URL"
  15214. },
  15215. "user": {
  15216. "$ref": "#/definitions/User"
  15217. }
  15218. },
  15219. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15220. },
  15221. "PullRequest": {
  15222. "description": "PullRequest represents a pull request",
  15223. "type": "object",
  15224. "properties": {
  15225. "assignee": {
  15226. "$ref": "#/definitions/User"
  15227. },
  15228. "assignees": {
  15229. "type": "array",
  15230. "items": {
  15231. "$ref": "#/definitions/User"
  15232. },
  15233. "x-go-name": "Assignees"
  15234. },
  15235. "base": {
  15236. "$ref": "#/definitions/PRBranchInfo"
  15237. },
  15238. "body": {
  15239. "type": "string",
  15240. "x-go-name": "Body"
  15241. },
  15242. "closed_at": {
  15243. "type": "string",
  15244. "format": "date-time",
  15245. "x-go-name": "Closed"
  15246. },
  15247. "comments": {
  15248. "type": "integer",
  15249. "format": "int64",
  15250. "x-go-name": "Comments"
  15251. },
  15252. "created_at": {
  15253. "type": "string",
  15254. "format": "date-time",
  15255. "x-go-name": "Created"
  15256. },
  15257. "diff_url": {
  15258. "type": "string",
  15259. "x-go-name": "DiffURL"
  15260. },
  15261. "due_date": {
  15262. "type": "string",
  15263. "format": "date-time",
  15264. "x-go-name": "Deadline"
  15265. },
  15266. "head": {
  15267. "$ref": "#/definitions/PRBranchInfo"
  15268. },
  15269. "html_url": {
  15270. "type": "string",
  15271. "x-go-name": "HTMLURL"
  15272. },
  15273. "id": {
  15274. "type": "integer",
  15275. "format": "int64",
  15276. "x-go-name": "ID"
  15277. },
  15278. "is_locked": {
  15279. "type": "boolean",
  15280. "x-go-name": "IsLocked"
  15281. },
  15282. "labels": {
  15283. "type": "array",
  15284. "items": {
  15285. "$ref": "#/definitions/Label"
  15286. },
  15287. "x-go-name": "Labels"
  15288. },
  15289. "merge_base": {
  15290. "type": "string",
  15291. "x-go-name": "MergeBase"
  15292. },
  15293. "merge_commit_sha": {
  15294. "type": "string",
  15295. "x-go-name": "MergedCommitID"
  15296. },
  15297. "mergeable": {
  15298. "type": "boolean",
  15299. "x-go-name": "Mergeable"
  15300. },
  15301. "merged": {
  15302. "type": "boolean",
  15303. "x-go-name": "HasMerged"
  15304. },
  15305. "merged_at": {
  15306. "type": "string",
  15307. "format": "date-time",
  15308. "x-go-name": "Merged"
  15309. },
  15310. "merged_by": {
  15311. "$ref": "#/definitions/User"
  15312. },
  15313. "milestone": {
  15314. "$ref": "#/definitions/Milestone"
  15315. },
  15316. "number": {
  15317. "type": "integer",
  15318. "format": "int64",
  15319. "x-go-name": "Index"
  15320. },
  15321. "patch_url": {
  15322. "type": "string",
  15323. "x-go-name": "PatchURL"
  15324. },
  15325. "state": {
  15326. "$ref": "#/definitions/StateType"
  15327. },
  15328. "title": {
  15329. "type": "string",
  15330. "x-go-name": "Title"
  15331. },
  15332. "updated_at": {
  15333. "type": "string",
  15334. "format": "date-time",
  15335. "x-go-name": "Updated"
  15336. },
  15337. "url": {
  15338. "type": "string",
  15339. "x-go-name": "URL"
  15340. },
  15341. "user": {
  15342. "$ref": "#/definitions/User"
  15343. }
  15344. },
  15345. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15346. },
  15347. "PullRequestMeta": {
  15348. "description": "PullRequestMeta PR info if an issue is a PR",
  15349. "type": "object",
  15350. "properties": {
  15351. "merged": {
  15352. "type": "boolean",
  15353. "x-go-name": "HasMerged"
  15354. },
  15355. "merged_at": {
  15356. "type": "string",
  15357. "format": "date-time",
  15358. "x-go-name": "Merged"
  15359. }
  15360. },
  15361. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15362. },
  15363. "PullReview": {
  15364. "description": "PullReview represents a pull request review",
  15365. "type": "object",
  15366. "properties": {
  15367. "body": {
  15368. "type": "string",
  15369. "x-go-name": "Body"
  15370. },
  15371. "comments_count": {
  15372. "type": "integer",
  15373. "format": "int64",
  15374. "x-go-name": "CodeCommentsCount"
  15375. },
  15376. "commit_id": {
  15377. "type": "string",
  15378. "x-go-name": "CommitID"
  15379. },
  15380. "dismissed": {
  15381. "type": "boolean",
  15382. "x-go-name": "Dismissed"
  15383. },
  15384. "html_url": {
  15385. "type": "string",
  15386. "x-go-name": "HTMLURL"
  15387. },
  15388. "id": {
  15389. "type": "integer",
  15390. "format": "int64",
  15391. "x-go-name": "ID"
  15392. },
  15393. "official": {
  15394. "type": "boolean",
  15395. "x-go-name": "Official"
  15396. },
  15397. "pull_request_url": {
  15398. "type": "string",
  15399. "x-go-name": "HTMLPullURL"
  15400. },
  15401. "stale": {
  15402. "type": "boolean",
  15403. "x-go-name": "Stale"
  15404. },
  15405. "state": {
  15406. "$ref": "#/definitions/ReviewStateType"
  15407. },
  15408. "submitted_at": {
  15409. "type": "string",
  15410. "format": "date-time",
  15411. "x-go-name": "Submitted"
  15412. },
  15413. "team": {
  15414. "$ref": "#/definitions/Team"
  15415. },
  15416. "user": {
  15417. "$ref": "#/definitions/User"
  15418. }
  15419. },
  15420. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15421. },
  15422. "PullReviewComment": {
  15423. "description": "PullReviewComment represents a comment on a pull request review",
  15424. "type": "object",
  15425. "properties": {
  15426. "body": {
  15427. "type": "string",
  15428. "x-go-name": "Body"
  15429. },
  15430. "commit_id": {
  15431. "type": "string",
  15432. "x-go-name": "CommitID"
  15433. },
  15434. "created_at": {
  15435. "type": "string",
  15436. "format": "date-time",
  15437. "x-go-name": "Created"
  15438. },
  15439. "diff_hunk": {
  15440. "type": "string",
  15441. "x-go-name": "DiffHunk"
  15442. },
  15443. "html_url": {
  15444. "type": "string",
  15445. "x-go-name": "HTMLURL"
  15446. },
  15447. "id": {
  15448. "type": "integer",
  15449. "format": "int64",
  15450. "x-go-name": "ID"
  15451. },
  15452. "original_commit_id": {
  15453. "type": "string",
  15454. "x-go-name": "OrigCommitID"
  15455. },
  15456. "original_position": {
  15457. "type": "integer",
  15458. "format": "uint64",
  15459. "x-go-name": "OldLineNum"
  15460. },
  15461. "path": {
  15462. "type": "string",
  15463. "x-go-name": "Path"
  15464. },
  15465. "position": {
  15466. "type": "integer",
  15467. "format": "uint64",
  15468. "x-go-name": "LineNum"
  15469. },
  15470. "pull_request_review_id": {
  15471. "type": "integer",
  15472. "format": "int64",
  15473. "x-go-name": "ReviewID"
  15474. },
  15475. "pull_request_url": {
  15476. "type": "string",
  15477. "x-go-name": "HTMLPullURL"
  15478. },
  15479. "resolver": {
  15480. "$ref": "#/definitions/User"
  15481. },
  15482. "updated_at": {
  15483. "type": "string",
  15484. "format": "date-time",
  15485. "x-go-name": "Updated"
  15486. },
  15487. "user": {
  15488. "$ref": "#/definitions/User"
  15489. }
  15490. },
  15491. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15492. },
  15493. "PullReviewRequestOptions": {
  15494. "description": "PullReviewRequestOptions are options to add or remove pull review requests",
  15495. "type": "object",
  15496. "properties": {
  15497. "reviewers": {
  15498. "type": "array",
  15499. "items": {
  15500. "type": "string"
  15501. },
  15502. "x-go-name": "Reviewers"
  15503. },
  15504. "team_reviewers": {
  15505. "type": "array",
  15506. "items": {
  15507. "type": "string"
  15508. },
  15509. "x-go-name": "TeamReviewers"
  15510. }
  15511. },
  15512. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15513. },
  15514. "Reaction": {
  15515. "description": "Reaction contain one reaction",
  15516. "type": "object",
  15517. "properties": {
  15518. "content": {
  15519. "type": "string",
  15520. "x-go-name": "Reaction"
  15521. },
  15522. "created_at": {
  15523. "type": "string",
  15524. "format": "date-time",
  15525. "x-go-name": "Created"
  15526. },
  15527. "user": {
  15528. "$ref": "#/definitions/User"
  15529. }
  15530. },
  15531. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15532. },
  15533. "Reference": {
  15534. "type": "object",
  15535. "title": "Reference represents a Git reference.",
  15536. "properties": {
  15537. "object": {
  15538. "$ref": "#/definitions/GitObject"
  15539. },
  15540. "ref": {
  15541. "type": "string",
  15542. "x-go-name": "Ref"
  15543. },
  15544. "url": {
  15545. "type": "string",
  15546. "x-go-name": "URL"
  15547. }
  15548. },
  15549. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15550. },
  15551. "Release": {
  15552. "description": "Release represents a repository release",
  15553. "type": "object",
  15554. "properties": {
  15555. "assets": {
  15556. "type": "array",
  15557. "items": {
  15558. "$ref": "#/definitions/Attachment"
  15559. },
  15560. "x-go-name": "Attachments"
  15561. },
  15562. "author": {
  15563. "$ref": "#/definitions/User"
  15564. },
  15565. "body": {
  15566. "type": "string",
  15567. "x-go-name": "Note"
  15568. },
  15569. "created_at": {
  15570. "type": "string",
  15571. "format": "date-time",
  15572. "x-go-name": "CreatedAt"
  15573. },
  15574. "draft": {
  15575. "type": "boolean",
  15576. "x-go-name": "IsDraft"
  15577. },
  15578. "html_url": {
  15579. "type": "string",
  15580. "x-go-name": "HTMLURL"
  15581. },
  15582. "id": {
  15583. "type": "integer",
  15584. "format": "int64",
  15585. "x-go-name": "ID"
  15586. },
  15587. "name": {
  15588. "type": "string",
  15589. "x-go-name": "Title"
  15590. },
  15591. "prerelease": {
  15592. "type": "boolean",
  15593. "x-go-name": "IsPrerelease"
  15594. },
  15595. "published_at": {
  15596. "type": "string",
  15597. "format": "date-time",
  15598. "x-go-name": "PublishedAt"
  15599. },
  15600. "tag_name": {
  15601. "type": "string",
  15602. "x-go-name": "TagName"
  15603. },
  15604. "tarball_url": {
  15605. "type": "string",
  15606. "x-go-name": "TarURL"
  15607. },
  15608. "target_commitish": {
  15609. "type": "string",
  15610. "x-go-name": "Target"
  15611. },
  15612. "url": {
  15613. "type": "string",
  15614. "x-go-name": "URL"
  15615. },
  15616. "zipball_url": {
  15617. "type": "string",
  15618. "x-go-name": "ZipURL"
  15619. }
  15620. },
  15621. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15622. },
  15623. "RepoCommit": {
  15624. "type": "object",
  15625. "title": "RepoCommit contains information of a commit in the context of a repository.",
  15626. "properties": {
  15627. "author": {
  15628. "$ref": "#/definitions/CommitUser"
  15629. },
  15630. "committer": {
  15631. "$ref": "#/definitions/CommitUser"
  15632. },
  15633. "message": {
  15634. "type": "string",
  15635. "x-go-name": "Message"
  15636. },
  15637. "tree": {
  15638. "$ref": "#/definitions/CommitMeta"
  15639. },
  15640. "url": {
  15641. "type": "string",
  15642. "x-go-name": "URL"
  15643. }
  15644. },
  15645. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15646. },
  15647. "RepoTopicOptions": {
  15648. "description": "RepoTopicOptions a collection of repo topic names",
  15649. "type": "object",
  15650. "properties": {
  15651. "topics": {
  15652. "description": "list of topic names",
  15653. "type": "array",
  15654. "items": {
  15655. "type": "string"
  15656. },
  15657. "x-go-name": "Topics"
  15658. }
  15659. },
  15660. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15661. },
  15662. "Repository": {
  15663. "description": "Repository represents a repository",
  15664. "type": "object",
  15665. "properties": {
  15666. "allow_merge_commits": {
  15667. "type": "boolean",
  15668. "x-go-name": "AllowMerge"
  15669. },
  15670. "allow_rebase": {
  15671. "type": "boolean",
  15672. "x-go-name": "AllowRebase"
  15673. },
  15674. "allow_rebase_explicit": {
  15675. "type": "boolean",
  15676. "x-go-name": "AllowRebaseMerge"
  15677. },
  15678. "allow_squash_merge": {
  15679. "type": "boolean",
  15680. "x-go-name": "AllowSquash"
  15681. },
  15682. "archived": {
  15683. "type": "boolean",
  15684. "x-go-name": "Archived"
  15685. },
  15686. "avatar_url": {
  15687. "type": "string",
  15688. "x-go-name": "AvatarURL"
  15689. },
  15690. "clone_url": {
  15691. "type": "string",
  15692. "x-go-name": "CloneURL"
  15693. },
  15694. "created_at": {
  15695. "type": "string",
  15696. "format": "date-time",
  15697. "x-go-name": "Created"
  15698. },
  15699. "default_branch": {
  15700. "type": "string",
  15701. "x-go-name": "DefaultBranch"
  15702. },
  15703. "default_merge_style": {
  15704. "type": "string",
  15705. "x-go-name": "DefaultMergeStyle"
  15706. },
  15707. "description": {
  15708. "type": "string",
  15709. "x-go-name": "Description"
  15710. },
  15711. "empty": {
  15712. "type": "boolean",
  15713. "x-go-name": "Empty"
  15714. },
  15715. "external_tracker": {
  15716. "$ref": "#/definitions/ExternalTracker"
  15717. },
  15718. "external_wiki": {
  15719. "$ref": "#/definitions/ExternalWiki"
  15720. },
  15721. "fork": {
  15722. "type": "boolean",
  15723. "x-go-name": "Fork"
  15724. },
  15725. "forks_count": {
  15726. "type": "integer",
  15727. "format": "int64",
  15728. "x-go-name": "Forks"
  15729. },
  15730. "full_name": {
  15731. "type": "string",
  15732. "x-go-name": "FullName"
  15733. },
  15734. "has_issues": {
  15735. "type": "boolean",
  15736. "x-go-name": "HasIssues"
  15737. },
  15738. "has_projects": {
  15739. "type": "boolean",
  15740. "x-go-name": "HasProjects"
  15741. },
  15742. "has_pull_requests": {
  15743. "type": "boolean",
  15744. "x-go-name": "HasPullRequests"
  15745. },
  15746. "has_wiki": {
  15747. "type": "boolean",
  15748. "x-go-name": "HasWiki"
  15749. },
  15750. "html_url": {
  15751. "type": "string",
  15752. "x-go-name": "HTMLURL"
  15753. },
  15754. "id": {
  15755. "type": "integer",
  15756. "format": "int64",
  15757. "x-go-name": "ID"
  15758. },
  15759. "ignore_whitespace_conflicts": {
  15760. "type": "boolean",
  15761. "x-go-name": "IgnoreWhitespaceConflicts"
  15762. },
  15763. "internal": {
  15764. "type": "boolean",
  15765. "x-go-name": "Internal"
  15766. },
  15767. "internal_tracker": {
  15768. "$ref": "#/definitions/InternalTracker"
  15769. },
  15770. "mirror": {
  15771. "type": "boolean",
  15772. "x-go-name": "Mirror"
  15773. },
  15774. "mirror_interval": {
  15775. "type": "string",
  15776. "x-go-name": "MirrorInterval"
  15777. },
  15778. "name": {
  15779. "type": "string",
  15780. "x-go-name": "Name"
  15781. },
  15782. "open_issues_count": {
  15783. "type": "integer",
  15784. "format": "int64",
  15785. "x-go-name": "OpenIssues"
  15786. },
  15787. "open_pr_counter": {
  15788. "type": "integer",
  15789. "format": "int64",
  15790. "x-go-name": "OpenPulls"
  15791. },
  15792. "original_url": {
  15793. "type": "string",
  15794. "x-go-name": "OriginalURL"
  15795. },
  15796. "owner": {
  15797. "$ref": "#/definitions/User"
  15798. },
  15799. "parent": {
  15800. "$ref": "#/definitions/Repository"
  15801. },
  15802. "permissions": {
  15803. "$ref": "#/definitions/Permission"
  15804. },
  15805. "private": {
  15806. "type": "boolean",
  15807. "x-go-name": "Private"
  15808. },
  15809. "release_counter": {
  15810. "type": "integer",
  15811. "format": "int64",
  15812. "x-go-name": "Releases"
  15813. },
  15814. "size": {
  15815. "type": "integer",
  15816. "format": "int64",
  15817. "x-go-name": "Size"
  15818. },
  15819. "ssh_url": {
  15820. "type": "string",
  15821. "x-go-name": "SSHURL"
  15822. },
  15823. "stars_count": {
  15824. "type": "integer",
  15825. "format": "int64",
  15826. "x-go-name": "Stars"
  15827. },
  15828. "template": {
  15829. "type": "boolean",
  15830. "x-go-name": "Template"
  15831. },
  15832. "updated_at": {
  15833. "type": "string",
  15834. "format": "date-time",
  15835. "x-go-name": "Updated"
  15836. },
  15837. "watchers_count": {
  15838. "type": "integer",
  15839. "format": "int64",
  15840. "x-go-name": "Watchers"
  15841. },
  15842. "website": {
  15843. "type": "string",
  15844. "x-go-name": "Website"
  15845. }
  15846. },
  15847. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15848. },
  15849. "RepositoryMeta": {
  15850. "description": "RepositoryMeta basic repository information",
  15851. "type": "object",
  15852. "properties": {
  15853. "full_name": {
  15854. "type": "string",
  15855. "x-go-name": "FullName"
  15856. },
  15857. "id": {
  15858. "type": "integer",
  15859. "format": "int64",
  15860. "x-go-name": "ID"
  15861. },
  15862. "name": {
  15863. "type": "string",
  15864. "x-go-name": "Name"
  15865. },
  15866. "owner": {
  15867. "type": "string",
  15868. "x-go-name": "Owner"
  15869. }
  15870. },
  15871. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15872. },
  15873. "ReviewStateType": {
  15874. "description": "ReviewStateType review state type",
  15875. "type": "string",
  15876. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15877. },
  15878. "SearchResults": {
  15879. "description": "SearchResults results of a successful search",
  15880. "type": "object",
  15881. "properties": {
  15882. "data": {
  15883. "type": "array",
  15884. "items": {
  15885. "$ref": "#/definitions/Repository"
  15886. },
  15887. "x-go-name": "Data"
  15888. },
  15889. "ok": {
  15890. "type": "boolean",
  15891. "x-go-name": "OK"
  15892. }
  15893. },
  15894. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15895. },
  15896. "ServerVersion": {
  15897. "description": "ServerVersion wraps the version of the server",
  15898. "type": "object",
  15899. "properties": {
  15900. "version": {
  15901. "type": "string",
  15902. "x-go-name": "Version"
  15903. }
  15904. },
  15905. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15906. },
  15907. "StateType": {
  15908. "description": "StateType issue state type",
  15909. "type": "string",
  15910. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15911. },
  15912. "StopWatch": {
  15913. "description": "StopWatch represent a running stopwatch",
  15914. "type": "object",
  15915. "properties": {
  15916. "created": {
  15917. "type": "string",
  15918. "format": "date-time",
  15919. "x-go-name": "Created"
  15920. },
  15921. "duration": {
  15922. "type": "string",
  15923. "x-go-name": "Duration"
  15924. },
  15925. "issue_index": {
  15926. "type": "integer",
  15927. "format": "int64",
  15928. "x-go-name": "IssueIndex"
  15929. },
  15930. "issue_title": {
  15931. "type": "string",
  15932. "x-go-name": "IssueTitle"
  15933. },
  15934. "repo_name": {
  15935. "type": "string",
  15936. "x-go-name": "RepoName"
  15937. },
  15938. "repo_owner_name": {
  15939. "type": "string",
  15940. "x-go-name": "RepoOwnerName"
  15941. },
  15942. "seconds": {
  15943. "type": "integer",
  15944. "format": "int64",
  15945. "x-go-name": "Seconds"
  15946. }
  15947. },
  15948. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15949. },
  15950. "SubmitPullReviewOptions": {
  15951. "description": "SubmitPullReviewOptions are options to submit a pending pull review",
  15952. "type": "object",
  15953. "properties": {
  15954. "body": {
  15955. "type": "string",
  15956. "x-go-name": "Body"
  15957. },
  15958. "event": {
  15959. "$ref": "#/definitions/ReviewStateType"
  15960. }
  15961. },
  15962. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15963. },
  15964. "Tag": {
  15965. "description": "Tag represents a repository tag",
  15966. "type": "object",
  15967. "properties": {
  15968. "commit": {
  15969. "$ref": "#/definitions/CommitMeta"
  15970. },
  15971. "id": {
  15972. "type": "string",
  15973. "x-go-name": "ID"
  15974. },
  15975. "name": {
  15976. "type": "string",
  15977. "x-go-name": "Name"
  15978. },
  15979. "tarball_url": {
  15980. "type": "string",
  15981. "x-go-name": "TarballURL"
  15982. },
  15983. "zipball_url": {
  15984. "type": "string",
  15985. "x-go-name": "ZipballURL"
  15986. }
  15987. },
  15988. "x-go-package": "code.gitea.io/gitea/modules/structs"
  15989. },
  15990. "Team": {
  15991. "description": "Team represents a team in an organization",
  15992. "type": "object",
  15993. "properties": {
  15994. "can_create_org_repo": {
  15995. "type": "boolean",
  15996. "x-go-name": "CanCreateOrgRepo"
  15997. },
  15998. "description": {
  15999. "type": "string",
  16000. "x-go-name": "Description"
  16001. },
  16002. "id": {
  16003. "type": "integer",
  16004. "format": "int64",
  16005. "x-go-name": "ID"
  16006. },
  16007. "includes_all_repositories": {
  16008. "type": "boolean",
  16009. "x-go-name": "IncludesAllRepositories"
  16010. },
  16011. "name": {
  16012. "type": "string",
  16013. "x-go-name": "Name"
  16014. },
  16015. "organization": {
  16016. "$ref": "#/definitions/Organization"
  16017. },
  16018. "permission": {
  16019. "type": "string",
  16020. "enum": [
  16021. "none",
  16022. "read",
  16023. "write",
  16024. "admin",
  16025. "owner"
  16026. ],
  16027. "x-go-name": "Permission"
  16028. },
  16029. "units": {
  16030. "type": "array",
  16031. "items": {
  16032. "type": "string"
  16033. },
  16034. "x-go-name": "Units",
  16035. "example": [
  16036. "repo.code",
  16037. "repo.issues",
  16038. "repo.ext_issues",
  16039. "repo.wiki",
  16040. "repo.pulls",
  16041. "repo.releases",
  16042. "repo.projects",
  16043. "repo.ext_wiki"
  16044. ]
  16045. }
  16046. },
  16047. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16048. },
  16049. "TimeStamp": {
  16050. "description": "TimeStamp defines a timestamp",
  16051. "type": "integer",
  16052. "format": "int64",
  16053. "x-go-package": "code.gitea.io/gitea/modules/timeutil"
  16054. },
  16055. "TopicName": {
  16056. "description": "TopicName a list of repo topic names",
  16057. "type": "object",
  16058. "properties": {
  16059. "topics": {
  16060. "type": "array",
  16061. "items": {
  16062. "type": "string"
  16063. },
  16064. "x-go-name": "TopicNames"
  16065. }
  16066. },
  16067. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16068. },
  16069. "TopicResponse": {
  16070. "description": "TopicResponse for returning topics",
  16071. "type": "object",
  16072. "properties": {
  16073. "created": {
  16074. "type": "string",
  16075. "format": "date-time",
  16076. "x-go-name": "Created"
  16077. },
  16078. "id": {
  16079. "type": "integer",
  16080. "format": "int64",
  16081. "x-go-name": "ID"
  16082. },
  16083. "repo_count": {
  16084. "type": "integer",
  16085. "format": "int64",
  16086. "x-go-name": "RepoCount"
  16087. },
  16088. "topic_name": {
  16089. "type": "string",
  16090. "x-go-name": "Name"
  16091. },
  16092. "updated": {
  16093. "type": "string",
  16094. "format": "date-time",
  16095. "x-go-name": "Updated"
  16096. }
  16097. },
  16098. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16099. },
  16100. "TrackedTime": {
  16101. "description": "TrackedTime worked time for an issue / pr",
  16102. "type": "object",
  16103. "properties": {
  16104. "created": {
  16105. "type": "string",
  16106. "format": "date-time",
  16107. "x-go-name": "Created"
  16108. },
  16109. "id": {
  16110. "type": "integer",
  16111. "format": "int64",
  16112. "x-go-name": "ID"
  16113. },
  16114. "issue": {
  16115. "$ref": "#/definitions/Issue"
  16116. },
  16117. "issue_id": {
  16118. "description": "deprecated (only for backwards compatibility)",
  16119. "type": "integer",
  16120. "format": "int64",
  16121. "x-go-name": "IssueID"
  16122. },
  16123. "time": {
  16124. "description": "Time in seconds",
  16125. "type": "integer",
  16126. "format": "int64",
  16127. "x-go-name": "Time"
  16128. },
  16129. "user_id": {
  16130. "description": "deprecated (only for backwards compatibility)",
  16131. "type": "integer",
  16132. "format": "int64",
  16133. "x-go-name": "UserID"
  16134. },
  16135. "user_name": {
  16136. "type": "string",
  16137. "x-go-name": "UserName"
  16138. }
  16139. },
  16140. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16141. },
  16142. "TransferRepoOption": {
  16143. "description": "TransferRepoOption options when transfer a repository's ownership",
  16144. "type": "object",
  16145. "required": [
  16146. "new_owner"
  16147. ],
  16148. "properties": {
  16149. "new_owner": {
  16150. "type": "string",
  16151. "x-go-name": "NewOwner"
  16152. },
  16153. "team_ids": {
  16154. "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
  16155. "type": "array",
  16156. "items": {
  16157. "type": "integer",
  16158. "format": "int64"
  16159. },
  16160. "x-go-name": "TeamIDs"
  16161. }
  16162. },
  16163. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16164. },
  16165. "UpdateFileOptions": {
  16166. "description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
  16167. "type": "object",
  16168. "required": [
  16169. "sha",
  16170. "content"
  16171. ],
  16172. "properties": {
  16173. "author": {
  16174. "$ref": "#/definitions/Identity"
  16175. },
  16176. "branch": {
  16177. "description": "branch (optional) to base this file from. if not given, the default branch is used",
  16178. "type": "string",
  16179. "x-go-name": "BranchName"
  16180. },
  16181. "committer": {
  16182. "$ref": "#/definitions/Identity"
  16183. },
  16184. "content": {
  16185. "description": "content must be base64 encoded",
  16186. "type": "string",
  16187. "x-go-name": "Content"
  16188. },
  16189. "dates": {
  16190. "$ref": "#/definitions/CommitDateOptions"
  16191. },
  16192. "from_path": {
  16193. "description": "from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL",
  16194. "type": "string",
  16195. "x-go-name": "FromPath"
  16196. },
  16197. "message": {
  16198. "description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
  16199. "type": "string",
  16200. "x-go-name": "Message"
  16201. },
  16202. "new_branch": {
  16203. "description": "new_branch (optional) will make a new branch from `branch` before creating the file",
  16204. "type": "string",
  16205. "x-go-name": "NewBranchName"
  16206. },
  16207. "sha": {
  16208. "description": "sha is the SHA for the file that already exists",
  16209. "type": "string",
  16210. "x-go-name": "SHA"
  16211. },
  16212. "signoff": {
  16213. "description": "Add a Signed-off-by trailer by the committer at the end of the commit log message.",
  16214. "type": "boolean",
  16215. "x-go-name": "Signoff"
  16216. }
  16217. },
  16218. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16219. },
  16220. "User": {
  16221. "description": "User represents a user",
  16222. "type": "object",
  16223. "properties": {
  16224. "avatar_url": {
  16225. "description": "URL to the user's avatar",
  16226. "type": "string",
  16227. "x-go-name": "AvatarURL"
  16228. },
  16229. "created": {
  16230. "type": "string",
  16231. "format": "date-time",
  16232. "x-go-name": "Created"
  16233. },
  16234. "email": {
  16235. "type": "string",
  16236. "format": "email",
  16237. "x-go-name": "Email"
  16238. },
  16239. "full_name": {
  16240. "description": "the user's full name",
  16241. "type": "string",
  16242. "x-go-name": "FullName"
  16243. },
  16244. "id": {
  16245. "description": "the user's id",
  16246. "type": "integer",
  16247. "format": "int64",
  16248. "x-go-name": "ID"
  16249. },
  16250. "is_admin": {
  16251. "description": "Is the user an administrator",
  16252. "type": "boolean",
  16253. "x-go-name": "IsAdmin"
  16254. },
  16255. "language": {
  16256. "description": "User locale",
  16257. "type": "string",
  16258. "x-go-name": "Language"
  16259. },
  16260. "last_login": {
  16261. "type": "string",
  16262. "format": "date-time",
  16263. "x-go-name": "LastLogin"
  16264. },
  16265. "login": {
  16266. "description": "the user's username",
  16267. "type": "string",
  16268. "x-go-name": "UserName"
  16269. },
  16270. "restricted": {
  16271. "description": "Is user restricted",
  16272. "type": "boolean",
  16273. "x-go-name": "Restricted"
  16274. }
  16275. },
  16276. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16277. },
  16278. "UserHeatmapData": {
  16279. "description": "UserHeatmapData represents the data needed to create a heatmap",
  16280. "type": "object",
  16281. "properties": {
  16282. "contributions": {
  16283. "type": "integer",
  16284. "format": "int64",
  16285. "x-go-name": "Contributions"
  16286. },
  16287. "timestamp": {
  16288. "$ref": "#/definitions/TimeStamp"
  16289. }
  16290. },
  16291. "x-go-package": "code.gitea.io/gitea/models"
  16292. },
  16293. "WatchInfo": {
  16294. "description": "WatchInfo represents an API watch status of one repository",
  16295. "type": "object",
  16296. "properties": {
  16297. "created_at": {
  16298. "type": "string",
  16299. "format": "date-time",
  16300. "x-go-name": "CreatedAt"
  16301. },
  16302. "ignored": {
  16303. "type": "boolean",
  16304. "x-go-name": "Ignored"
  16305. },
  16306. "reason": {
  16307. "type": "object",
  16308. "x-go-name": "Reason"
  16309. },
  16310. "repository_url": {
  16311. "type": "string",
  16312. "x-go-name": "RepositoryURL"
  16313. },
  16314. "subscribed": {
  16315. "type": "boolean",
  16316. "x-go-name": "Subscribed"
  16317. },
  16318. "url": {
  16319. "type": "string",
  16320. "x-go-name": "URL"
  16321. }
  16322. },
  16323. "x-go-package": "code.gitea.io/gitea/modules/structs"
  16324. }
  16325. },
  16326. "responses": {
  16327. "AccessToken": {
  16328. "description": "AccessToken represents an API access token.",
  16329. "headers": {
  16330. "id": {
  16331. "type": "integer",
  16332. "format": "int64"
  16333. },
  16334. "name": {
  16335. "type": "string"
  16336. },
  16337. "sha1": {
  16338. "type": "string"
  16339. },
  16340. "token_last_eight": {
  16341. "type": "string"
  16342. }
  16343. }
  16344. },
  16345. "AccessTokenList": {
  16346. "description": "AccessTokenList represents a list of API access token.",
  16347. "schema": {
  16348. "type": "array",
  16349. "items": {
  16350. "$ref": "#/definitions/AccessToken"
  16351. }
  16352. }
  16353. },
  16354. "AnnotatedTag": {
  16355. "description": "AnnotatedTag",
  16356. "schema": {
  16357. "$ref": "#/definitions/AnnotatedTag"
  16358. }
  16359. },
  16360. "Attachment": {
  16361. "description": "Attachment",
  16362. "schema": {
  16363. "$ref": "#/definitions/Attachment"
  16364. }
  16365. },
  16366. "AttachmentList": {
  16367. "description": "AttachmentList",
  16368. "schema": {
  16369. "type": "array",
  16370. "items": {
  16371. "$ref": "#/definitions/Attachment"
  16372. }
  16373. }
  16374. },
  16375. "Branch": {
  16376. "description": "Branch",
  16377. "schema": {
  16378. "$ref": "#/definitions/Branch"
  16379. }
  16380. },
  16381. "BranchList": {
  16382. "description": "BranchList",
  16383. "schema": {
  16384. "type": "array",
  16385. "items": {
  16386. "$ref": "#/definitions/Branch"
  16387. }
  16388. }
  16389. },
  16390. "BranchProtection": {
  16391. "description": "BranchProtection",
  16392. "schema": {
  16393. "$ref": "#/definitions/BranchProtection"
  16394. }
  16395. },
  16396. "BranchProtectionList": {
  16397. "description": "BranchProtectionList",
  16398. "schema": {
  16399. "type": "array",
  16400. "items": {
  16401. "$ref": "#/definitions/BranchProtection"
  16402. }
  16403. }
  16404. },
  16405. "CombinedStatus": {
  16406. "description": "CombinedStatus",
  16407. "schema": {
  16408. "$ref": "#/definitions/CombinedStatus"
  16409. }
  16410. },
  16411. "Comment": {
  16412. "description": "Comment",
  16413. "schema": {
  16414. "$ref": "#/definitions/Comment"
  16415. }
  16416. },
  16417. "CommentList": {
  16418. "description": "CommentList",
  16419. "schema": {
  16420. "type": "array",
  16421. "items": {
  16422. "$ref": "#/definitions/Comment"
  16423. }
  16424. }
  16425. },
  16426. "Commit": {
  16427. "description": "Commit",
  16428. "schema": {
  16429. "$ref": "#/definitions/Commit"
  16430. }
  16431. },
  16432. "CommitList": {
  16433. "description": "CommitList",
  16434. "schema": {
  16435. "type": "array",
  16436. "items": {
  16437. "$ref": "#/definitions/Commit"
  16438. }
  16439. },
  16440. "headers": {
  16441. "X-HasMore": {
  16442. "type": "boolean",
  16443. "description": "True if there is another page"
  16444. },
  16445. "X-Page": {
  16446. "type": "integer",
  16447. "format": "int64",
  16448. "description": "The current page"
  16449. },
  16450. "X-PageCount": {
  16451. "type": "integer",
  16452. "format": "int64",
  16453. "description": "Total number of pages"
  16454. },
  16455. "X-PerPage": {
  16456. "type": "integer",
  16457. "format": "int64",
  16458. "description": "Commits per page"
  16459. },
  16460. "X-Total": {
  16461. "type": "integer",
  16462. "format": "int64",
  16463. "description": "Total commit count"
  16464. }
  16465. }
  16466. },
  16467. "CommitStatus": {
  16468. "description": "CommitStatus",
  16469. "schema": {
  16470. "$ref": "#/definitions/CommitStatus"
  16471. }
  16472. },
  16473. "CommitStatusList": {
  16474. "description": "CommitStatusList",
  16475. "schema": {
  16476. "type": "array",
  16477. "items": {
  16478. "$ref": "#/definitions/CommitStatus"
  16479. }
  16480. }
  16481. },
  16482. "ContentsListResponse": {
  16483. "description": "ContentsListResponse",
  16484. "schema": {
  16485. "type": "array",
  16486. "items": {
  16487. "$ref": "#/definitions/ContentsResponse"
  16488. }
  16489. }
  16490. },
  16491. "ContentsResponse": {
  16492. "description": "ContentsResponse",
  16493. "schema": {
  16494. "$ref": "#/definitions/ContentsResponse"
  16495. }
  16496. },
  16497. "CronList": {
  16498. "description": "CronList",
  16499. "schema": {
  16500. "type": "array",
  16501. "items": {
  16502. "$ref": "#/definitions/Cron"
  16503. }
  16504. }
  16505. },
  16506. "DeployKey": {
  16507. "description": "DeployKey",
  16508. "schema": {
  16509. "$ref": "#/definitions/DeployKey"
  16510. }
  16511. },
  16512. "DeployKeyList": {
  16513. "description": "DeployKeyList",
  16514. "schema": {
  16515. "type": "array",
  16516. "items": {
  16517. "$ref": "#/definitions/DeployKey"
  16518. }
  16519. }
  16520. },
  16521. "EmailList": {
  16522. "description": "EmailList",
  16523. "schema": {
  16524. "type": "array",
  16525. "items": {
  16526. "$ref": "#/definitions/Email"
  16527. }
  16528. }
  16529. },
  16530. "EmptyRepository": {
  16531. "description": "EmptyRepository",
  16532. "schema": {
  16533. "$ref": "#/definitions/APIError"
  16534. }
  16535. },
  16536. "FileDeleteResponse": {
  16537. "description": "FileDeleteResponse",
  16538. "schema": {
  16539. "$ref": "#/definitions/FileDeleteResponse"
  16540. }
  16541. },
  16542. "FileResponse": {
  16543. "description": "FileResponse",
  16544. "schema": {
  16545. "$ref": "#/definitions/FileResponse"
  16546. }
  16547. },
  16548. "GPGKey": {
  16549. "description": "GPGKey",
  16550. "schema": {
  16551. "$ref": "#/definitions/GPGKey"
  16552. }
  16553. },
  16554. "GPGKeyList": {
  16555. "description": "GPGKeyList",
  16556. "schema": {
  16557. "type": "array",
  16558. "items": {
  16559. "$ref": "#/definitions/GPGKey"
  16560. }
  16561. }
  16562. },
  16563. "GeneralAPISettings": {
  16564. "description": "GeneralAPISettings",
  16565. "schema": {
  16566. "$ref": "#/definitions/GeneralAPISettings"
  16567. }
  16568. },
  16569. "GeneralAttachmentSettings": {
  16570. "description": "GeneralAttachmentSettings",
  16571. "schema": {
  16572. "$ref": "#/definitions/GeneralAttachmentSettings"
  16573. }
  16574. },
  16575. "GeneralRepoSettings": {
  16576. "description": "GeneralRepoSettings",
  16577. "schema": {
  16578. "$ref": "#/definitions/GeneralRepoSettings"
  16579. }
  16580. },
  16581. "GeneralUISettings": {
  16582. "description": "GeneralUISettings",
  16583. "schema": {
  16584. "$ref": "#/definitions/GeneralUISettings"
  16585. }
  16586. },
  16587. "GitBlobResponse": {
  16588. "description": "GitBlobResponse",
  16589. "schema": {
  16590. "$ref": "#/definitions/GitBlobResponse"
  16591. }
  16592. },
  16593. "GitHook": {
  16594. "description": "GitHook",
  16595. "schema": {
  16596. "$ref": "#/definitions/GitHook"
  16597. }
  16598. },
  16599. "GitHookList": {
  16600. "description": "GitHookList",
  16601. "schema": {
  16602. "type": "array",
  16603. "items": {
  16604. "$ref": "#/definitions/GitHook"
  16605. }
  16606. }
  16607. },
  16608. "GitTreeResponse": {
  16609. "description": "GitTreeResponse",
  16610. "schema": {
  16611. "$ref": "#/definitions/GitTreeResponse"
  16612. }
  16613. },
  16614. "Hook": {
  16615. "description": "Hook",
  16616. "schema": {
  16617. "$ref": "#/definitions/Hook"
  16618. }
  16619. },
  16620. "HookList": {
  16621. "description": "HookList",
  16622. "schema": {
  16623. "type": "array",
  16624. "items": {
  16625. "$ref": "#/definitions/Hook"
  16626. }
  16627. }
  16628. },
  16629. "Issue": {
  16630. "description": "Issue",
  16631. "schema": {
  16632. "$ref": "#/definitions/Issue"
  16633. }
  16634. },
  16635. "IssueDeadline": {
  16636. "description": "IssueDeadline",
  16637. "schema": {
  16638. "$ref": "#/definitions/IssueDeadline"
  16639. }
  16640. },
  16641. "IssueList": {
  16642. "description": "IssueList",
  16643. "schema": {
  16644. "type": "array",
  16645. "items": {
  16646. "$ref": "#/definitions/Issue"
  16647. }
  16648. }
  16649. },
  16650. "IssueTemplates": {
  16651. "description": "IssueTemplates",
  16652. "schema": {
  16653. "type": "array",
  16654. "items": {
  16655. "$ref": "#/definitions/IssueTemplate"
  16656. }
  16657. }
  16658. },
  16659. "Label": {
  16660. "description": "Label",
  16661. "schema": {
  16662. "$ref": "#/definitions/Label"
  16663. }
  16664. },
  16665. "LabelList": {
  16666. "description": "LabelList",
  16667. "schema": {
  16668. "type": "array",
  16669. "items": {
  16670. "$ref": "#/definitions/Label"
  16671. }
  16672. }
  16673. },
  16674. "LanguageStatistics": {
  16675. "description": "LanguageStatistics",
  16676. "schema": {
  16677. "type": "object",
  16678. "additionalProperties": {
  16679. "type": "integer",
  16680. "format": "int64"
  16681. }
  16682. }
  16683. },
  16684. "MarkdownRender": {
  16685. "description": "MarkdownRender is a rendered markdown document",
  16686. "schema": {
  16687. "type": "string"
  16688. }
  16689. },
  16690. "Milestone": {
  16691. "description": "Milestone",
  16692. "schema": {
  16693. "$ref": "#/definitions/Milestone"
  16694. }
  16695. },
  16696. "MilestoneList": {
  16697. "description": "MilestoneList",
  16698. "schema": {
  16699. "type": "array",
  16700. "items": {
  16701. "$ref": "#/definitions/Milestone"
  16702. }
  16703. }
  16704. },
  16705. "NotificationCount": {
  16706. "description": "Number of unread notifications",
  16707. "schema": {
  16708. "$ref": "#/definitions/NotificationCount"
  16709. }
  16710. },
  16711. "NotificationThread": {
  16712. "description": "NotificationThread",
  16713. "schema": {
  16714. "$ref": "#/definitions/NotificationThread"
  16715. }
  16716. },
  16717. "NotificationThreadList": {
  16718. "description": "NotificationThreadList",
  16719. "schema": {
  16720. "type": "array",
  16721. "items": {
  16722. "$ref": "#/definitions/NotificationThread"
  16723. }
  16724. }
  16725. },
  16726. "OAuth2Application": {
  16727. "description": "OAuth2Application",
  16728. "schema": {
  16729. "$ref": "#/definitions/OAuth2Application"
  16730. }
  16731. },
  16732. "OAuth2ApplicationList": {
  16733. "description": "OAuth2ApplicationList represents a list of OAuth2 applications.",
  16734. "schema": {
  16735. "type": "array",
  16736. "items": {
  16737. "$ref": "#/definitions/OAuth2Application"
  16738. }
  16739. }
  16740. },
  16741. "Organization": {
  16742. "description": "Organization",
  16743. "schema": {
  16744. "$ref": "#/definitions/Organization"
  16745. }
  16746. },
  16747. "OrganizationList": {
  16748. "description": "OrganizationList",
  16749. "schema": {
  16750. "type": "array",
  16751. "items": {
  16752. "$ref": "#/definitions/Organization"
  16753. }
  16754. }
  16755. },
  16756. "PublicKey": {
  16757. "description": "PublicKey",
  16758. "schema": {
  16759. "$ref": "#/definitions/PublicKey"
  16760. }
  16761. },
  16762. "PublicKeyList": {
  16763. "description": "PublicKeyList",
  16764. "schema": {
  16765. "type": "array",
  16766. "items": {
  16767. "$ref": "#/definitions/PublicKey"
  16768. }
  16769. }
  16770. },
  16771. "PullRequest": {
  16772. "description": "PullRequest",
  16773. "schema": {
  16774. "$ref": "#/definitions/PullRequest"
  16775. }
  16776. },
  16777. "PullRequestList": {
  16778. "description": "PullRequestList",
  16779. "schema": {
  16780. "type": "array",
  16781. "items": {
  16782. "$ref": "#/definitions/PullRequest"
  16783. }
  16784. }
  16785. },
  16786. "PullReview": {
  16787. "description": "PullReview",
  16788. "schema": {
  16789. "$ref": "#/definitions/PullReview"
  16790. }
  16791. },
  16792. "PullReviewComment": {
  16793. "description": "PullComment",
  16794. "schema": {
  16795. "$ref": "#/definitions/PullReviewComment"
  16796. }
  16797. },
  16798. "PullReviewCommentList": {
  16799. "description": "PullCommentList",
  16800. "schema": {
  16801. "type": "array",
  16802. "items": {
  16803. "$ref": "#/definitions/PullReviewComment"
  16804. }
  16805. }
  16806. },
  16807. "PullReviewList": {
  16808. "description": "PullReviewList",
  16809. "schema": {
  16810. "type": "array",
  16811. "items": {
  16812. "$ref": "#/definitions/PullReview"
  16813. }
  16814. }
  16815. },
  16816. "Reaction": {
  16817. "description": "Reaction",
  16818. "schema": {
  16819. "$ref": "#/definitions/Reaction"
  16820. }
  16821. },
  16822. "ReactionList": {
  16823. "description": "ReactionList",
  16824. "schema": {
  16825. "type": "array",
  16826. "items": {
  16827. "$ref": "#/definitions/Reaction"
  16828. }
  16829. }
  16830. },
  16831. "Reference": {
  16832. "description": "Reference",
  16833. "schema": {
  16834. "$ref": "#/definitions/Reference"
  16835. }
  16836. },
  16837. "ReferenceList": {
  16838. "description": "ReferenceList",
  16839. "schema": {
  16840. "type": "array",
  16841. "items": {
  16842. "$ref": "#/definitions/Reference"
  16843. }
  16844. }
  16845. },
  16846. "Release": {
  16847. "description": "Release",
  16848. "schema": {
  16849. "$ref": "#/definitions/Release"
  16850. }
  16851. },
  16852. "ReleaseList": {
  16853. "description": "ReleaseList",
  16854. "schema": {
  16855. "type": "array",
  16856. "items": {
  16857. "$ref": "#/definitions/Release"
  16858. }
  16859. }
  16860. },
  16861. "Repository": {
  16862. "description": "Repository",
  16863. "schema": {
  16864. "$ref": "#/definitions/Repository"
  16865. }
  16866. },
  16867. "RepositoryList": {
  16868. "description": "RepositoryList",
  16869. "schema": {
  16870. "type": "array",
  16871. "items": {
  16872. "$ref": "#/definitions/Repository"
  16873. }
  16874. }
  16875. },
  16876. "SearchResults": {
  16877. "description": "SearchResults",
  16878. "schema": {
  16879. "$ref": "#/definitions/SearchResults"
  16880. }
  16881. },
  16882. "ServerVersion": {
  16883. "description": "ServerVersion",
  16884. "schema": {
  16885. "$ref": "#/definitions/ServerVersion"
  16886. }
  16887. },
  16888. "StopWatch": {
  16889. "description": "StopWatch",
  16890. "schema": {
  16891. "$ref": "#/definitions/StopWatch"
  16892. }
  16893. },
  16894. "StopWatchList": {
  16895. "description": "StopWatchList",
  16896. "schema": {
  16897. "type": "array",
  16898. "items": {
  16899. "$ref": "#/definitions/StopWatch"
  16900. }
  16901. }
  16902. },
  16903. "StringSlice": {
  16904. "description": "StringSlice",
  16905. "schema": {
  16906. "type": "array",
  16907. "items": {
  16908. "type": "string"
  16909. }
  16910. }
  16911. },
  16912. "Tag": {
  16913. "description": "Tag",
  16914. "schema": {
  16915. "$ref": "#/definitions/Tag"
  16916. }
  16917. },
  16918. "TagList": {
  16919. "description": "TagList",
  16920. "schema": {
  16921. "type": "array",
  16922. "items": {
  16923. "$ref": "#/definitions/Tag"
  16924. }
  16925. }
  16926. },
  16927. "Team": {
  16928. "description": "Team",
  16929. "schema": {
  16930. "$ref": "#/definitions/Team"
  16931. }
  16932. },
  16933. "TeamList": {
  16934. "description": "TeamList",
  16935. "schema": {
  16936. "type": "array",
  16937. "items": {
  16938. "$ref": "#/definitions/Team"
  16939. }
  16940. }
  16941. },
  16942. "TopicListResponse": {
  16943. "description": "TopicListResponse",
  16944. "schema": {
  16945. "type": "array",
  16946. "items": {
  16947. "$ref": "#/definitions/TopicResponse"
  16948. }
  16949. }
  16950. },
  16951. "TopicNames": {
  16952. "description": "TopicNames",
  16953. "schema": {
  16954. "$ref": "#/definitions/TopicName"
  16955. }
  16956. },
  16957. "TrackedTime": {
  16958. "description": "TrackedTime",
  16959. "schema": {
  16960. "$ref": "#/definitions/TrackedTime"
  16961. }
  16962. },
  16963. "TrackedTimeList": {
  16964. "description": "TrackedTimeList",
  16965. "schema": {
  16966. "type": "array",
  16967. "items": {
  16968. "$ref": "#/definitions/TrackedTime"
  16969. }
  16970. }
  16971. },
  16972. "User": {
  16973. "description": "User",
  16974. "schema": {
  16975. "$ref": "#/definitions/User"
  16976. }
  16977. },
  16978. "UserHeatmapData": {
  16979. "description": "UserHeatmapData",
  16980. "schema": {
  16981. "type": "array",
  16982. "items": {
  16983. "$ref": "#/definitions/UserHeatmapData"
  16984. }
  16985. }
  16986. },
  16987. "UserList": {
  16988. "description": "UserList",
  16989. "schema": {
  16990. "type": "array",
  16991. "items": {
  16992. "$ref": "#/definitions/User"
  16993. }
  16994. }
  16995. },
  16996. "WatchInfo": {
  16997. "description": "WatchInfo",
  16998. "schema": {
  16999. "$ref": "#/definitions/WatchInfo"
  17000. }
  17001. },
  17002. "conflict": {
  17003. "description": "APIConflict is a conflict empty response"
  17004. },
  17005. "empty": {
  17006. "description": "APIEmpty is an empty response"
  17007. },
  17008. "error": {
  17009. "description": "APIError is error format response",
  17010. "headers": {
  17011. "message": {
  17012. "type": "string"
  17013. },
  17014. "url": {
  17015. "type": "string"
  17016. }
  17017. }
  17018. },
  17019. "forbidden": {
  17020. "description": "APIForbiddenError is a forbidden error response",
  17021. "headers": {
  17022. "message": {
  17023. "type": "string"
  17024. },
  17025. "url": {
  17026. "type": "string"
  17027. }
  17028. }
  17029. },
  17030. "invalidTopicsError": {
  17031. "description": "APIInvalidTopicsError is error format response to invalid topics",
  17032. "headers": {
  17033. "invalidTopics": {
  17034. "type": "array",
  17035. "items": {
  17036. "type": "string"
  17037. }
  17038. },
  17039. "message": {
  17040. "type": "string"
  17041. }
  17042. }
  17043. },
  17044. "notFound": {
  17045. "description": "APINotFound is a not found empty response"
  17046. },
  17047. "parameterBodies": {
  17048. "description": "parameterBodies",
  17049. "schema": {
  17050. "$ref": "#/definitions/PullReviewRequestOptions"
  17051. }
  17052. },
  17053. "redirect": {
  17054. "description": "APIRedirect is a redirect response"
  17055. },
  17056. "string": {
  17057. "description": "APIString is a string response",
  17058. "schema": {
  17059. "type": "string"
  17060. }
  17061. },
  17062. "validationError": {
  17063. "description": "APIValidationError is error format response related to input validation",
  17064. "headers": {
  17065. "message": {
  17066. "type": "string"
  17067. },
  17068. "url": {
  17069. "type": "string"
  17070. }
  17071. }
  17072. }
  17073. },
  17074. "securityDefinitions": {
  17075. "AccessToken": {
  17076. "type": "apiKey",
  17077. "name": "access_token",
  17078. "in": "query"
  17079. },
  17080. "AuthorizationHeaderToken": {
  17081. "description": "API tokens must be prepended with \"token\" followed by a space.",
  17082. "type": "apiKey",
  17083. "name": "Authorization",
  17084. "in": "header"
  17085. },
  17086. "BasicAuth": {
  17087. "type": "basic"
  17088. },
  17089. "SudoHeader": {
  17090. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  17091. "type": "apiKey",
  17092. "name": "Sudo",
  17093. "in": "header"
  17094. },
  17095. "SudoParam": {
  17096. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  17097. "type": "apiKey",
  17098. "name": "sudo",
  17099. "in": "query"
  17100. },
  17101. "TOTPHeader": {
  17102. "description": "Must be used in combination with BasicAuth if two-factor authentication is enabled.",
  17103. "type": "apiKey",
  17104. "name": "X-GITEA-OTP",
  17105. "in": "header"
  17106. },
  17107. "Token": {
  17108. "type": "apiKey",
  17109. "name": "token",
  17110. "in": "query"
  17111. }
  17112. },
  17113. "security": [
  17114. {
  17115. "BasicAuth": []
  17116. },
  17117. {
  17118. "Token": []
  17119. },
  17120. {
  17121. "AccessToken": []
  17122. },
  17123. {
  17124. "AuthorizationHeaderToken": []
  17125. },
  17126. {
  17127. "SudoParam": []
  17128. },
  17129. {
  17130. "SudoHeader": []
  17131. },
  17132. {
  17133. "TOTPHeader": []
  17134. }
  17135. ]
  17136. }