wp-api-generated.js 311 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857
  1. /**
  2. * DO NOT EDIT
  3. * Auto-generated by test_build_wp_api_client_fixtures
  4. */
  5. var mockedApiResponse = {};
  6. /* jshint -W109 */
  7. mockedApiResponse.Schema = {
  8. "name": "Test Blog",
  9. "description": "Just another WordPress site",
  10. "url": "http://example.org",
  11. "home": "http://example.org",
  12. "gmt_offset": "0",
  13. "timezone_string": "",
  14. "namespaces": [
  15. "oembed/1.0",
  16. "wp/v2",
  17. "wp-site-health/v1"
  18. ],
  19. "authentication": [],
  20. "routes": {
  21. "/": {
  22. "namespace": "",
  23. "methods": [
  24. "GET"
  25. ],
  26. "endpoints": [
  27. {
  28. "methods": [
  29. "GET"
  30. ],
  31. "args": {
  32. "context": {
  33. "default": "view",
  34. "required": false
  35. }
  36. }
  37. }
  38. ],
  39. "_links": {
  40. "self": "http://example.org/index.php?rest_route=/"
  41. }
  42. },
  43. "/batch/v1": {
  44. "namespace": "",
  45. "methods": [
  46. "POST"
  47. ],
  48. "endpoints": [
  49. {
  50. "methods": [
  51. "POST"
  52. ],
  53. "args": {
  54. "validation": {
  55. "type": "string",
  56. "enum": [
  57. "require-all-validate",
  58. "normal"
  59. ],
  60. "default": "normal",
  61. "required": false
  62. },
  63. "requests": {
  64. "type": "array",
  65. "maxItems": 25,
  66. "items": {
  67. "type": "object",
  68. "properties": {
  69. "method": {
  70. "type": "string",
  71. "enum": [
  72. "POST",
  73. "PUT",
  74. "PATCH",
  75. "DELETE"
  76. ],
  77. "default": "POST"
  78. },
  79. "path": {
  80. "type": "string",
  81. "required": true
  82. },
  83. "body": {
  84. "type": "object",
  85. "properties": [],
  86. "additionalProperties": true
  87. },
  88. "headers": {
  89. "type": "object",
  90. "properties": [],
  91. "additionalProperties": {
  92. "type": [
  93. "string",
  94. "array"
  95. ],
  96. "items": {
  97. "type": "string"
  98. }
  99. }
  100. }
  101. }
  102. },
  103. "required": true
  104. }
  105. }
  106. }
  107. ],
  108. "_links": {
  109. "self": [
  110. {
  111. "href": "http://example.org/index.php?rest_route=/batch/v1"
  112. }
  113. ]
  114. }
  115. },
  116. "/oembed/1.0": {
  117. "namespace": "oembed/1.0",
  118. "methods": [
  119. "GET"
  120. ],
  121. "endpoints": [
  122. {
  123. "methods": [
  124. "GET"
  125. ],
  126. "args": {
  127. "namespace": {
  128. "default": "oembed/1.0",
  129. "required": false
  130. },
  131. "context": {
  132. "default": "view",
  133. "required": false
  134. }
  135. }
  136. }
  137. ],
  138. "_links": {
  139. "self": "http://example.org/index.php?rest_route=/oembed/1.0"
  140. }
  141. },
  142. "/oembed/1.0/embed": {
  143. "namespace": "oembed/1.0",
  144. "methods": [
  145. "GET"
  146. ],
  147. "endpoints": [
  148. {
  149. "methods": [
  150. "GET"
  151. ],
  152. "args": {
  153. "url": {
  154. "description": "The URL of the resource for which to fetch oEmbed data.",
  155. "type": "string",
  156. "format": "uri",
  157. "required": true
  158. },
  159. "format": {
  160. "default": "json",
  161. "required": false
  162. },
  163. "maxwidth": {
  164. "default": 600,
  165. "required": false
  166. }
  167. }
  168. }
  169. ],
  170. "_links": {
  171. "self": "http://example.org/index.php?rest_route=/oembed/1.0/embed"
  172. }
  173. },
  174. "/oembed/1.0/proxy": {
  175. "namespace": "oembed/1.0",
  176. "methods": [
  177. "GET"
  178. ],
  179. "endpoints": [
  180. {
  181. "methods": [
  182. "GET"
  183. ],
  184. "args": {
  185. "url": {
  186. "description": "The URL of the resource for which to fetch oEmbed data.",
  187. "type": "string",
  188. "format": "uri",
  189. "required": true
  190. },
  191. "format": {
  192. "description": "The oEmbed format to use.",
  193. "type": "string",
  194. "default": "json",
  195. "enum": [
  196. "json",
  197. "xml"
  198. ],
  199. "required": false
  200. },
  201. "maxwidth": {
  202. "description": "The maximum width of the embed frame in pixels.",
  203. "type": "integer",
  204. "default": 600,
  205. "required": false
  206. },
  207. "maxheight": {
  208. "description": "The maximum height of the embed frame in pixels.",
  209. "type": "integer",
  210. "required": false
  211. },
  212. "discover": {
  213. "description": "Whether to perform an oEmbed discovery request for unsanctioned providers.",
  214. "type": "boolean",
  215. "default": true,
  216. "required": false
  217. }
  218. }
  219. }
  220. ],
  221. "_links": {
  222. "self": "http://example.org/index.php?rest_route=/oembed/1.0/proxy"
  223. }
  224. },
  225. "/wp/v2": {
  226. "namespace": "wp/v2",
  227. "methods": [
  228. "GET"
  229. ],
  230. "endpoints": [
  231. {
  232. "methods": [
  233. "GET"
  234. ],
  235. "args": {
  236. "namespace": {
  237. "default": "wp/v2",
  238. "required": false
  239. },
  240. "context": {
  241. "default": "view",
  242. "required": false
  243. }
  244. }
  245. }
  246. ],
  247. "_links": {
  248. "self": "http://example.org/index.php?rest_route=/wp/v2"
  249. }
  250. },
  251. "/wp/v2/posts": {
  252. "namespace": "wp/v2",
  253. "methods": [
  254. "GET",
  255. "POST"
  256. ],
  257. "endpoints": [
  258. {
  259. "methods": [
  260. "GET"
  261. ],
  262. "args": {
  263. "context": {
  264. "description": "Scope under which the request is made; determines fields present in response.",
  265. "type": "string",
  266. "enum": [
  267. "view",
  268. "embed",
  269. "edit"
  270. ],
  271. "default": "view",
  272. "required": false
  273. },
  274. "page": {
  275. "description": "Current page of the collection.",
  276. "type": "integer",
  277. "default": 1,
  278. "minimum": 1,
  279. "required": false
  280. },
  281. "per_page": {
  282. "description": "Maximum number of items to be returned in result set.",
  283. "type": "integer",
  284. "default": 10,
  285. "minimum": 1,
  286. "maximum": 100,
  287. "required": false
  288. },
  289. "search": {
  290. "description": "Limit results to those matching a string.",
  291. "type": "string",
  292. "required": false
  293. },
  294. "after": {
  295. "description": "Limit response to posts published after a given ISO8601 compliant date.",
  296. "type": "string",
  297. "format": "date-time",
  298. "required": false
  299. },
  300. "modified_after": {
  301. "description": "Limit response to posts modified after a given ISO8601 compliant date.",
  302. "type": "string",
  303. "format": "date-time",
  304. "required": false
  305. },
  306. "author": {
  307. "description": "Limit result set to posts assigned to specific authors.",
  308. "type": "array",
  309. "items": {
  310. "type": "integer"
  311. },
  312. "default": [],
  313. "required": false
  314. },
  315. "author_exclude": {
  316. "description": "Ensure result set excludes posts assigned to specific authors.",
  317. "type": "array",
  318. "items": {
  319. "type": "integer"
  320. },
  321. "default": [],
  322. "required": false
  323. },
  324. "before": {
  325. "description": "Limit response to posts published before a given ISO8601 compliant date.",
  326. "type": "string",
  327. "format": "date-time",
  328. "required": false
  329. },
  330. "modified_before": {
  331. "description": "Limit response to posts modified before a given ISO8601 compliant date.",
  332. "type": "string",
  333. "format": "date-time",
  334. "required": false
  335. },
  336. "exclude": {
  337. "description": "Ensure result set excludes specific IDs.",
  338. "type": "array",
  339. "items": {
  340. "type": "integer"
  341. },
  342. "default": [],
  343. "required": false
  344. },
  345. "include": {
  346. "description": "Limit result set to specific IDs.",
  347. "type": "array",
  348. "items": {
  349. "type": "integer"
  350. },
  351. "default": [],
  352. "required": false
  353. },
  354. "offset": {
  355. "description": "Offset the result set by a specific number of items.",
  356. "type": "integer",
  357. "required": false
  358. },
  359. "order": {
  360. "description": "Order sort attribute ascending or descending.",
  361. "type": "string",
  362. "default": "desc",
  363. "enum": [
  364. "asc",
  365. "desc"
  366. ],
  367. "required": false
  368. },
  369. "orderby": {
  370. "description": "Sort collection by object attribute.",
  371. "type": "string",
  372. "default": "date",
  373. "enum": [
  374. "author",
  375. "date",
  376. "id",
  377. "include",
  378. "modified",
  379. "parent",
  380. "relevance",
  381. "slug",
  382. "include_slugs",
  383. "title"
  384. ],
  385. "required": false
  386. },
  387. "slug": {
  388. "description": "Limit result set to posts with one or more specific slugs.",
  389. "type": "array",
  390. "items": {
  391. "type": "string"
  392. },
  393. "required": false
  394. },
  395. "status": {
  396. "default": "publish",
  397. "description": "Limit result set to posts assigned one or more statuses.",
  398. "type": "array",
  399. "items": {
  400. "enum": [
  401. "publish",
  402. "future",
  403. "draft",
  404. "pending",
  405. "private",
  406. "trash",
  407. "auto-draft",
  408. "inherit",
  409. "request-pending",
  410. "request-confirmed",
  411. "request-failed",
  412. "request-completed",
  413. "any"
  414. ],
  415. "type": "string"
  416. },
  417. "required": false
  418. },
  419. "tax_relation": {
  420. "description": "Limit result set based on relationship between multiple taxonomies.",
  421. "type": "string",
  422. "enum": [
  423. "AND",
  424. "OR"
  425. ],
  426. "required": false
  427. },
  428. "categories": {
  429. "description": "Limit result set to items with specific terms assigned in the categories taxonomy.",
  430. "type": [
  431. "object",
  432. "array"
  433. ],
  434. "oneOf": [
  435. {
  436. "title": "Term ID List",
  437. "description": "Match terms with the listed IDs.",
  438. "type": "array",
  439. "items": {
  440. "type": "integer"
  441. }
  442. },
  443. {
  444. "title": "Term ID Taxonomy Query",
  445. "description": "Perform an advanced term query.",
  446. "type": "object",
  447. "properties": {
  448. "terms": {
  449. "description": "Term IDs.",
  450. "type": "array",
  451. "items": {
  452. "type": "integer"
  453. },
  454. "default": []
  455. },
  456. "include_children": {
  457. "description": "Whether to include child terms in the terms limiting the result set.",
  458. "type": "boolean",
  459. "default": false
  460. }
  461. },
  462. "additionalProperties": false
  463. }
  464. ],
  465. "required": false
  466. },
  467. "categories_exclude": {
  468. "description": "Limit result set to items except those with specific terms assigned in the categories taxonomy.",
  469. "type": [
  470. "object",
  471. "array"
  472. ],
  473. "oneOf": [
  474. {
  475. "title": "Term ID List",
  476. "description": "Match terms with the listed IDs.",
  477. "type": "array",
  478. "items": {
  479. "type": "integer"
  480. }
  481. },
  482. {
  483. "title": "Term ID Taxonomy Query",
  484. "description": "Perform an advanced term query.",
  485. "type": "object",
  486. "properties": {
  487. "terms": {
  488. "description": "Term IDs.",
  489. "type": "array",
  490. "items": {
  491. "type": "integer"
  492. },
  493. "default": []
  494. },
  495. "include_children": {
  496. "description": "Whether to include child terms in the terms limiting the result set.",
  497. "type": "boolean",
  498. "default": false
  499. }
  500. },
  501. "additionalProperties": false
  502. }
  503. ],
  504. "required": false
  505. },
  506. "tags": {
  507. "description": "Limit result set to items with specific terms assigned in the tags taxonomy.",
  508. "type": [
  509. "object",
  510. "array"
  511. ],
  512. "oneOf": [
  513. {
  514. "title": "Term ID List",
  515. "description": "Match terms with the listed IDs.",
  516. "type": "array",
  517. "items": {
  518. "type": "integer"
  519. }
  520. },
  521. {
  522. "title": "Term ID Taxonomy Query",
  523. "description": "Perform an advanced term query.",
  524. "type": "object",
  525. "properties": {
  526. "terms": {
  527. "description": "Term IDs.",
  528. "type": "array",
  529. "items": {
  530. "type": "integer"
  531. },
  532. "default": []
  533. }
  534. },
  535. "additionalProperties": false
  536. }
  537. ],
  538. "required": false
  539. },
  540. "tags_exclude": {
  541. "description": "Limit result set to items except those with specific terms assigned in the tags taxonomy.",
  542. "type": [
  543. "object",
  544. "array"
  545. ],
  546. "oneOf": [
  547. {
  548. "title": "Term ID List",
  549. "description": "Match terms with the listed IDs.",
  550. "type": "array",
  551. "items": {
  552. "type": "integer"
  553. }
  554. },
  555. {
  556. "title": "Term ID Taxonomy Query",
  557. "description": "Perform an advanced term query.",
  558. "type": "object",
  559. "properties": {
  560. "terms": {
  561. "description": "Term IDs.",
  562. "type": "array",
  563. "items": {
  564. "type": "integer"
  565. },
  566. "default": []
  567. }
  568. },
  569. "additionalProperties": false
  570. }
  571. ],
  572. "required": false
  573. },
  574. "sticky": {
  575. "description": "Limit result set to items that are sticky.",
  576. "type": "boolean",
  577. "required": false
  578. }
  579. }
  580. },
  581. {
  582. "methods": [
  583. "POST"
  584. ],
  585. "args": {
  586. "date": {
  587. "description": "The date the object was published, in the site's timezone.",
  588. "type": [
  589. "string",
  590. "null"
  591. ],
  592. "format": "date-time",
  593. "required": false
  594. },
  595. "date_gmt": {
  596. "description": "The date the object was published, as GMT.",
  597. "type": [
  598. "string",
  599. "null"
  600. ],
  601. "format": "date-time",
  602. "required": false
  603. },
  604. "slug": {
  605. "description": "An alphanumeric identifier for the object unique to its type.",
  606. "type": "string",
  607. "required": false
  608. },
  609. "status": {
  610. "description": "A named status for the object.",
  611. "type": "string",
  612. "enum": [
  613. "publish",
  614. "future",
  615. "draft",
  616. "pending",
  617. "private"
  618. ],
  619. "required": false
  620. },
  621. "password": {
  622. "description": "A password to protect access to the content and excerpt.",
  623. "type": "string",
  624. "required": false
  625. },
  626. "title": {
  627. "description": "The title for the object.",
  628. "type": "object",
  629. "properties": {
  630. "raw": {
  631. "description": "Title for the object, as it exists in the database.",
  632. "type": "string",
  633. "context": [
  634. "edit"
  635. ]
  636. },
  637. "rendered": {
  638. "description": "HTML title for the object, transformed for display.",
  639. "type": "string",
  640. "context": [
  641. "view",
  642. "edit",
  643. "embed"
  644. ],
  645. "readonly": true
  646. }
  647. },
  648. "required": false
  649. },
  650. "content": {
  651. "description": "The content for the object.",
  652. "type": "object",
  653. "properties": {
  654. "raw": {
  655. "description": "Content for the object, as it exists in the database.",
  656. "type": "string",
  657. "context": [
  658. "edit"
  659. ]
  660. },
  661. "rendered": {
  662. "description": "HTML content for the object, transformed for display.",
  663. "type": "string",
  664. "context": [
  665. "view",
  666. "edit"
  667. ],
  668. "readonly": true
  669. },
  670. "block_version": {
  671. "description": "Version of the content block format used by the object.",
  672. "type": "integer",
  673. "context": [
  674. "edit"
  675. ],
  676. "readonly": true
  677. },
  678. "protected": {
  679. "description": "Whether the content is protected with a password.",
  680. "type": "boolean",
  681. "context": [
  682. "view",
  683. "edit",
  684. "embed"
  685. ],
  686. "readonly": true
  687. }
  688. },
  689. "required": false
  690. },
  691. "author": {
  692. "description": "The ID for the author of the object.",
  693. "type": "integer",
  694. "required": false
  695. },
  696. "excerpt": {
  697. "description": "The excerpt for the object.",
  698. "type": "object",
  699. "properties": {
  700. "raw": {
  701. "description": "Excerpt for the object, as it exists in the database.",
  702. "type": "string",
  703. "context": [
  704. "edit"
  705. ]
  706. },
  707. "rendered": {
  708. "description": "HTML excerpt for the object, transformed for display.",
  709. "type": "string",
  710. "context": [
  711. "view",
  712. "edit",
  713. "embed"
  714. ],
  715. "readonly": true
  716. },
  717. "protected": {
  718. "description": "Whether the excerpt is protected with a password.",
  719. "type": "boolean",
  720. "context": [
  721. "view",
  722. "edit",
  723. "embed"
  724. ],
  725. "readonly": true
  726. }
  727. },
  728. "required": false
  729. },
  730. "featured_media": {
  731. "description": "The ID of the featured media for the object.",
  732. "type": "integer",
  733. "required": false
  734. },
  735. "comment_status": {
  736. "description": "Whether or not comments are open on the object.",
  737. "type": "string",
  738. "enum": [
  739. "open",
  740. "closed"
  741. ],
  742. "required": false
  743. },
  744. "ping_status": {
  745. "description": "Whether or not the object can be pinged.",
  746. "type": "string",
  747. "enum": [
  748. "open",
  749. "closed"
  750. ],
  751. "required": false
  752. },
  753. "format": {
  754. "description": "The format for the object.",
  755. "type": "string",
  756. "enum": [
  757. "standard",
  758. "aside",
  759. "chat",
  760. "gallery",
  761. "link",
  762. "image",
  763. "quote",
  764. "status",
  765. "video",
  766. "audio"
  767. ],
  768. "required": false
  769. },
  770. "meta": {
  771. "description": "Meta fields.",
  772. "type": "object",
  773. "properties": [],
  774. "required": false
  775. },
  776. "sticky": {
  777. "description": "Whether or not the object should be treated as sticky.",
  778. "type": "boolean",
  779. "required": false
  780. },
  781. "template": {
  782. "description": "The theme file to use to display the object.",
  783. "type": "string",
  784. "required": false
  785. },
  786. "categories": {
  787. "description": "The terms assigned to the object in the category taxonomy.",
  788. "type": "array",
  789. "items": {
  790. "type": "integer"
  791. },
  792. "required": false
  793. },
  794. "tags": {
  795. "description": "The terms assigned to the object in the post_tag taxonomy.",
  796. "type": "array",
  797. "items": {
  798. "type": "integer"
  799. },
  800. "required": false
  801. }
  802. }
  803. }
  804. ],
  805. "_links": {
  806. "self": "http://example.org/index.php?rest_route=/wp/v2/posts"
  807. }
  808. },
  809. "/wp/v2/posts/(?P<id>[\\d]+)": {
  810. "namespace": "wp/v2",
  811. "methods": [
  812. "GET",
  813. "POST",
  814. "PUT",
  815. "PATCH",
  816. "DELETE"
  817. ],
  818. "endpoints": [
  819. {
  820. "methods": [
  821. "GET"
  822. ],
  823. "args": {
  824. "id": {
  825. "description": "Unique identifier for the object.",
  826. "type": "integer",
  827. "required": false
  828. },
  829. "context": {
  830. "description": "Scope under which the request is made; determines fields present in response.",
  831. "type": "string",
  832. "enum": [
  833. "view",
  834. "embed",
  835. "edit"
  836. ],
  837. "default": "view",
  838. "required": false
  839. },
  840. "password": {
  841. "description": "The password for the post if it is password protected.",
  842. "type": "string",
  843. "required": false
  844. }
  845. }
  846. },
  847. {
  848. "methods": [
  849. "POST",
  850. "PUT",
  851. "PATCH"
  852. ],
  853. "args": {
  854. "id": {
  855. "description": "Unique identifier for the object.",
  856. "type": "integer",
  857. "required": false
  858. },
  859. "date": {
  860. "description": "The date the object was published, in the site's timezone.",
  861. "type": [
  862. "string",
  863. "null"
  864. ],
  865. "format": "date-time",
  866. "required": false
  867. },
  868. "date_gmt": {
  869. "description": "The date the object was published, as GMT.",
  870. "type": [
  871. "string",
  872. "null"
  873. ],
  874. "format": "date-time",
  875. "required": false
  876. },
  877. "slug": {
  878. "description": "An alphanumeric identifier for the object unique to its type.",
  879. "type": "string",
  880. "required": false
  881. },
  882. "status": {
  883. "description": "A named status for the object.",
  884. "type": "string",
  885. "enum": [
  886. "publish",
  887. "future",
  888. "draft",
  889. "pending",
  890. "private"
  891. ],
  892. "required": false
  893. },
  894. "password": {
  895. "description": "A password to protect access to the content and excerpt.",
  896. "type": "string",
  897. "required": false
  898. },
  899. "title": {
  900. "description": "The title for the object.",
  901. "type": "object",
  902. "properties": {
  903. "raw": {
  904. "description": "Title for the object, as it exists in the database.",
  905. "type": "string",
  906. "context": [
  907. "edit"
  908. ]
  909. },
  910. "rendered": {
  911. "description": "HTML title for the object, transformed for display.",
  912. "type": "string",
  913. "context": [
  914. "view",
  915. "edit",
  916. "embed"
  917. ],
  918. "readonly": true
  919. }
  920. },
  921. "required": false
  922. },
  923. "content": {
  924. "description": "The content for the object.",
  925. "type": "object",
  926. "properties": {
  927. "raw": {
  928. "description": "Content for the object, as it exists in the database.",
  929. "type": "string",
  930. "context": [
  931. "edit"
  932. ]
  933. },
  934. "rendered": {
  935. "description": "HTML content for the object, transformed for display.",
  936. "type": "string",
  937. "context": [
  938. "view",
  939. "edit"
  940. ],
  941. "readonly": true
  942. },
  943. "block_version": {
  944. "description": "Version of the content block format used by the object.",
  945. "type": "integer",
  946. "context": [
  947. "edit"
  948. ],
  949. "readonly": true
  950. },
  951. "protected": {
  952. "description": "Whether the content is protected with a password.",
  953. "type": "boolean",
  954. "context": [
  955. "view",
  956. "edit",
  957. "embed"
  958. ],
  959. "readonly": true
  960. }
  961. },
  962. "required": false
  963. },
  964. "author": {
  965. "description": "The ID for the author of the object.",
  966. "type": "integer",
  967. "required": false
  968. },
  969. "excerpt": {
  970. "description": "The excerpt for the object.",
  971. "type": "object",
  972. "properties": {
  973. "raw": {
  974. "description": "Excerpt for the object, as it exists in the database.",
  975. "type": "string",
  976. "context": [
  977. "edit"
  978. ]
  979. },
  980. "rendered": {
  981. "description": "HTML excerpt for the object, transformed for display.",
  982. "type": "string",
  983. "context": [
  984. "view",
  985. "edit",
  986. "embed"
  987. ],
  988. "readonly": true
  989. },
  990. "protected": {
  991. "description": "Whether the excerpt is protected with a password.",
  992. "type": "boolean",
  993. "context": [
  994. "view",
  995. "edit",
  996. "embed"
  997. ],
  998. "readonly": true
  999. }
  1000. },
  1001. "required": false
  1002. },
  1003. "featured_media": {
  1004. "description": "The ID of the featured media for the object.",
  1005. "type": "integer",
  1006. "required": false
  1007. },
  1008. "comment_status": {
  1009. "description": "Whether or not comments are open on the object.",
  1010. "type": "string",
  1011. "enum": [
  1012. "open",
  1013. "closed"
  1014. ],
  1015. "required": false
  1016. },
  1017. "ping_status": {
  1018. "description": "Whether or not the object can be pinged.",
  1019. "type": "string",
  1020. "enum": [
  1021. "open",
  1022. "closed"
  1023. ],
  1024. "required": false
  1025. },
  1026. "format": {
  1027. "description": "The format for the object.",
  1028. "type": "string",
  1029. "enum": [
  1030. "standard",
  1031. "aside",
  1032. "chat",
  1033. "gallery",
  1034. "link",
  1035. "image",
  1036. "quote",
  1037. "status",
  1038. "video",
  1039. "audio"
  1040. ],
  1041. "required": false
  1042. },
  1043. "meta": {
  1044. "description": "Meta fields.",
  1045. "type": "object",
  1046. "properties": [],
  1047. "required": false
  1048. },
  1049. "sticky": {
  1050. "description": "Whether or not the object should be treated as sticky.",
  1051. "type": "boolean",
  1052. "required": false
  1053. },
  1054. "template": {
  1055. "description": "The theme file to use to display the object.",
  1056. "type": "string",
  1057. "required": false
  1058. },
  1059. "categories": {
  1060. "description": "The terms assigned to the object in the category taxonomy.",
  1061. "type": "array",
  1062. "items": {
  1063. "type": "integer"
  1064. },
  1065. "required": false
  1066. },
  1067. "tags": {
  1068. "description": "The terms assigned to the object in the post_tag taxonomy.",
  1069. "type": "array",
  1070. "items": {
  1071. "type": "integer"
  1072. },
  1073. "required": false
  1074. }
  1075. }
  1076. },
  1077. {
  1078. "methods": [
  1079. "DELETE"
  1080. ],
  1081. "args": {
  1082. "id": {
  1083. "description": "Unique identifier for the object.",
  1084. "type": "integer",
  1085. "required": false
  1086. },
  1087. "force": {
  1088. "type": "boolean",
  1089. "default": false,
  1090. "description": "Whether to bypass Trash and force deletion.",
  1091. "required": false
  1092. }
  1093. }
  1094. }
  1095. ]
  1096. },
  1097. "/wp/v2/posts/(?P<parent>[\\d]+)/revisions": {
  1098. "namespace": "wp/v2",
  1099. "methods": [
  1100. "GET"
  1101. ],
  1102. "endpoints": [
  1103. {
  1104. "methods": [
  1105. "GET"
  1106. ],
  1107. "args": {
  1108. "parent": {
  1109. "description": "The ID for the parent of the object.",
  1110. "type": "integer",
  1111. "required": false
  1112. },
  1113. "context": {
  1114. "description": "Scope under which the request is made; determines fields present in response.",
  1115. "type": "string",
  1116. "enum": [
  1117. "view",
  1118. "embed",
  1119. "edit"
  1120. ],
  1121. "default": "view",
  1122. "required": false
  1123. },
  1124. "page": {
  1125. "description": "Current page of the collection.",
  1126. "type": "integer",
  1127. "default": 1,
  1128. "minimum": 1,
  1129. "required": false
  1130. },
  1131. "per_page": {
  1132. "description": "Maximum number of items to be returned in result set.",
  1133. "type": "integer",
  1134. "minimum": 1,
  1135. "maximum": 100,
  1136. "required": false
  1137. },
  1138. "search": {
  1139. "description": "Limit results to those matching a string.",
  1140. "type": "string",
  1141. "required": false
  1142. },
  1143. "exclude": {
  1144. "description": "Ensure result set excludes specific IDs.",
  1145. "type": "array",
  1146. "items": {
  1147. "type": "integer"
  1148. },
  1149. "default": [],
  1150. "required": false
  1151. },
  1152. "include": {
  1153. "description": "Limit result set to specific IDs.",
  1154. "type": "array",
  1155. "items": {
  1156. "type": "integer"
  1157. },
  1158. "default": [],
  1159. "required": false
  1160. },
  1161. "offset": {
  1162. "description": "Offset the result set by a specific number of items.",
  1163. "type": "integer",
  1164. "required": false
  1165. },
  1166. "order": {
  1167. "description": "Order sort attribute ascending or descending.",
  1168. "type": "string",
  1169. "default": "desc",
  1170. "enum": [
  1171. "asc",
  1172. "desc"
  1173. ],
  1174. "required": false
  1175. },
  1176. "orderby": {
  1177. "description": "Sort collection by object attribute.",
  1178. "type": "string",
  1179. "default": "date",
  1180. "enum": [
  1181. "date",
  1182. "id",
  1183. "include",
  1184. "relevance",
  1185. "slug",
  1186. "include_slugs",
  1187. "title"
  1188. ],
  1189. "required": false
  1190. }
  1191. }
  1192. }
  1193. ]
  1194. },
  1195. "/wp/v2/posts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
  1196. "namespace": "wp/v2",
  1197. "methods": [
  1198. "GET",
  1199. "DELETE"
  1200. ],
  1201. "endpoints": [
  1202. {
  1203. "methods": [
  1204. "GET"
  1205. ],
  1206. "args": {
  1207. "parent": {
  1208. "description": "The ID for the parent of the object.",
  1209. "type": "integer",
  1210. "required": false
  1211. },
  1212. "id": {
  1213. "description": "Unique identifier for the object.",
  1214. "type": "integer",
  1215. "required": false
  1216. },
  1217. "context": {
  1218. "description": "Scope under which the request is made; determines fields present in response.",
  1219. "type": "string",
  1220. "enum": [
  1221. "view",
  1222. "embed",
  1223. "edit"
  1224. ],
  1225. "default": "view",
  1226. "required": false
  1227. }
  1228. }
  1229. },
  1230. {
  1231. "methods": [
  1232. "DELETE"
  1233. ],
  1234. "args": {
  1235. "parent": {
  1236. "description": "The ID for the parent of the object.",
  1237. "type": "integer",
  1238. "required": false
  1239. },
  1240. "id": {
  1241. "description": "Unique identifier for the object.",
  1242. "type": "integer",
  1243. "required": false
  1244. },
  1245. "force": {
  1246. "type": "boolean",
  1247. "default": false,
  1248. "description": "Required to be true, as revisions do not support trashing.",
  1249. "required": false
  1250. }
  1251. }
  1252. }
  1253. ]
  1254. },
  1255. "/wp/v2/posts/(?P<id>[\\d]+)/autosaves": {
  1256. "namespace": "wp/v2",
  1257. "methods": [
  1258. "GET",
  1259. "POST"
  1260. ],
  1261. "endpoints": [
  1262. {
  1263. "methods": [
  1264. "GET"
  1265. ],
  1266. "args": {
  1267. "parent": {
  1268. "description": "The ID for the parent of the object.",
  1269. "type": "integer",
  1270. "required": false
  1271. },
  1272. "context": {
  1273. "description": "Scope under which the request is made; determines fields present in response.",
  1274. "type": "string",
  1275. "enum": [
  1276. "view",
  1277. "embed",
  1278. "edit"
  1279. ],
  1280. "default": "view",
  1281. "required": false
  1282. }
  1283. }
  1284. },
  1285. {
  1286. "methods": [
  1287. "POST"
  1288. ],
  1289. "args": {
  1290. "parent": {
  1291. "description": "The ID for the parent of the object.",
  1292. "type": "integer",
  1293. "required": false
  1294. },
  1295. "date": {
  1296. "description": "The date the object was published, in the site's timezone.",
  1297. "type": [
  1298. "string",
  1299. "null"
  1300. ],
  1301. "format": "date-time",
  1302. "required": false
  1303. },
  1304. "date_gmt": {
  1305. "description": "The date the object was published, as GMT.",
  1306. "type": [
  1307. "string",
  1308. "null"
  1309. ],
  1310. "format": "date-time",
  1311. "required": false
  1312. },
  1313. "slug": {
  1314. "description": "An alphanumeric identifier for the object unique to its type.",
  1315. "type": "string",
  1316. "required": false
  1317. },
  1318. "status": {
  1319. "description": "A named status for the object.",
  1320. "type": "string",
  1321. "enum": [
  1322. "publish",
  1323. "future",
  1324. "draft",
  1325. "pending",
  1326. "private"
  1327. ],
  1328. "required": false
  1329. },
  1330. "password": {
  1331. "description": "A password to protect access to the content and excerpt.",
  1332. "type": "string",
  1333. "required": false
  1334. },
  1335. "title": {
  1336. "description": "The title for the object.",
  1337. "type": "object",
  1338. "properties": {
  1339. "raw": {
  1340. "description": "Title for the object, as it exists in the database.",
  1341. "type": "string",
  1342. "context": [
  1343. "edit"
  1344. ]
  1345. },
  1346. "rendered": {
  1347. "description": "HTML title for the object, transformed for display.",
  1348. "type": "string",
  1349. "context": [
  1350. "view",
  1351. "edit",
  1352. "embed"
  1353. ],
  1354. "readonly": true
  1355. }
  1356. },
  1357. "required": false
  1358. },
  1359. "content": {
  1360. "description": "The content for the object.",
  1361. "type": "object",
  1362. "properties": {
  1363. "raw": {
  1364. "description": "Content for the object, as it exists in the database.",
  1365. "type": "string",
  1366. "context": [
  1367. "edit"
  1368. ]
  1369. },
  1370. "rendered": {
  1371. "description": "HTML content for the object, transformed for display.",
  1372. "type": "string",
  1373. "context": [
  1374. "view",
  1375. "edit"
  1376. ],
  1377. "readonly": true
  1378. },
  1379. "block_version": {
  1380. "description": "Version of the content block format used by the object.",
  1381. "type": "integer",
  1382. "context": [
  1383. "edit"
  1384. ],
  1385. "readonly": true
  1386. },
  1387. "protected": {
  1388. "description": "Whether the content is protected with a password.",
  1389. "type": "boolean",
  1390. "context": [
  1391. "view",
  1392. "edit",
  1393. "embed"
  1394. ],
  1395. "readonly": true
  1396. }
  1397. },
  1398. "required": false
  1399. },
  1400. "author": {
  1401. "description": "The ID for the author of the object.",
  1402. "type": "integer",
  1403. "required": false
  1404. },
  1405. "excerpt": {
  1406. "description": "The excerpt for the object.",
  1407. "type": "object",
  1408. "properties": {
  1409. "raw": {
  1410. "description": "Excerpt for the object, as it exists in the database.",
  1411. "type": "string",
  1412. "context": [
  1413. "edit"
  1414. ]
  1415. },
  1416. "rendered": {
  1417. "description": "HTML excerpt for the object, transformed for display.",
  1418. "type": "string",
  1419. "context": [
  1420. "view",
  1421. "edit",
  1422. "embed"
  1423. ],
  1424. "readonly": true
  1425. },
  1426. "protected": {
  1427. "description": "Whether the excerpt is protected with a password.",
  1428. "type": "boolean",
  1429. "context": [
  1430. "view",
  1431. "edit",
  1432. "embed"
  1433. ],
  1434. "readonly": true
  1435. }
  1436. },
  1437. "required": false
  1438. },
  1439. "featured_media": {
  1440. "description": "The ID of the featured media for the object.",
  1441. "type": "integer",
  1442. "required": false
  1443. },
  1444. "comment_status": {
  1445. "description": "Whether or not comments are open on the object.",
  1446. "type": "string",
  1447. "enum": [
  1448. "open",
  1449. "closed"
  1450. ],
  1451. "required": false
  1452. },
  1453. "ping_status": {
  1454. "description": "Whether or not the object can be pinged.",
  1455. "type": "string",
  1456. "enum": [
  1457. "open",
  1458. "closed"
  1459. ],
  1460. "required": false
  1461. },
  1462. "format": {
  1463. "description": "The format for the object.",
  1464. "type": "string",
  1465. "enum": [
  1466. "standard",
  1467. "aside",
  1468. "chat",
  1469. "gallery",
  1470. "link",
  1471. "image",
  1472. "quote",
  1473. "status",
  1474. "video",
  1475. "audio"
  1476. ],
  1477. "required": false
  1478. },
  1479. "meta": {
  1480. "description": "Meta fields.",
  1481. "type": "object",
  1482. "properties": [],
  1483. "required": false
  1484. },
  1485. "sticky": {
  1486. "description": "Whether or not the object should be treated as sticky.",
  1487. "type": "boolean",
  1488. "required": false
  1489. },
  1490. "template": {
  1491. "description": "The theme file to use to display the object.",
  1492. "type": "string",
  1493. "required": false
  1494. },
  1495. "categories": {
  1496. "description": "The terms assigned to the object in the category taxonomy.",
  1497. "type": "array",
  1498. "items": {
  1499. "type": "integer"
  1500. },
  1501. "required": false
  1502. },
  1503. "tags": {
  1504. "description": "The terms assigned to the object in the post_tag taxonomy.",
  1505. "type": "array",
  1506. "items": {
  1507. "type": "integer"
  1508. },
  1509. "required": false
  1510. }
  1511. }
  1512. }
  1513. ]
  1514. },
  1515. "/wp/v2/posts/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {
  1516. "namespace": "wp/v2",
  1517. "methods": [
  1518. "GET"
  1519. ],
  1520. "endpoints": [
  1521. {
  1522. "methods": [
  1523. "GET"
  1524. ],
  1525. "args": {
  1526. "parent": {
  1527. "description": "The ID for the parent of the object.",
  1528. "type": "integer",
  1529. "required": false
  1530. },
  1531. "id": {
  1532. "description": "The ID for the object.",
  1533. "type": "integer",
  1534. "required": false
  1535. },
  1536. "context": {
  1537. "description": "Scope under which the request is made; determines fields present in response.",
  1538. "type": "string",
  1539. "enum": [
  1540. "view",
  1541. "embed",
  1542. "edit"
  1543. ],
  1544. "default": "view",
  1545. "required": false
  1546. }
  1547. }
  1548. }
  1549. ]
  1550. },
  1551. "/wp/v2/pages": {
  1552. "namespace": "wp/v2",
  1553. "methods": [
  1554. "GET",
  1555. "POST"
  1556. ],
  1557. "endpoints": [
  1558. {
  1559. "methods": [
  1560. "GET"
  1561. ],
  1562. "args": {
  1563. "context": {
  1564. "description": "Scope under which the request is made; determines fields present in response.",
  1565. "type": "string",
  1566. "enum": [
  1567. "view",
  1568. "embed",
  1569. "edit"
  1570. ],
  1571. "default": "view",
  1572. "required": false
  1573. },
  1574. "page": {
  1575. "description": "Current page of the collection.",
  1576. "type": "integer",
  1577. "default": 1,
  1578. "minimum": 1,
  1579. "required": false
  1580. },
  1581. "per_page": {
  1582. "description": "Maximum number of items to be returned in result set.",
  1583. "type": "integer",
  1584. "default": 10,
  1585. "minimum": 1,
  1586. "maximum": 100,
  1587. "required": false
  1588. },
  1589. "search": {
  1590. "description": "Limit results to those matching a string.",
  1591. "type": "string",
  1592. "required": false
  1593. },
  1594. "after": {
  1595. "description": "Limit response to posts published after a given ISO8601 compliant date.",
  1596. "type": "string",
  1597. "format": "date-time",
  1598. "required": false
  1599. },
  1600. "modified_after": {
  1601. "description": "Limit response to posts modified after a given ISO8601 compliant date.",
  1602. "type": "string",
  1603. "format": "date-time",
  1604. "required": false
  1605. },
  1606. "author": {
  1607. "description": "Limit result set to posts assigned to specific authors.",
  1608. "type": "array",
  1609. "items": {
  1610. "type": "integer"
  1611. },
  1612. "default": [],
  1613. "required": false
  1614. },
  1615. "author_exclude": {
  1616. "description": "Ensure result set excludes posts assigned to specific authors.",
  1617. "type": "array",
  1618. "items": {
  1619. "type": "integer"
  1620. },
  1621. "default": [],
  1622. "required": false
  1623. },
  1624. "before": {
  1625. "description": "Limit response to posts published before a given ISO8601 compliant date.",
  1626. "type": "string",
  1627. "format": "date-time",
  1628. "required": false
  1629. },
  1630. "modified_before": {
  1631. "description": "Limit response to posts modified before a given ISO8601 compliant date.",
  1632. "type": "string",
  1633. "format": "date-time",
  1634. "required": false
  1635. },
  1636. "exclude": {
  1637. "description": "Ensure result set excludes specific IDs.",
  1638. "type": "array",
  1639. "items": {
  1640. "type": "integer"
  1641. },
  1642. "default": [],
  1643. "required": false
  1644. },
  1645. "include": {
  1646. "description": "Limit result set to specific IDs.",
  1647. "type": "array",
  1648. "items": {
  1649. "type": "integer"
  1650. },
  1651. "default": [],
  1652. "required": false
  1653. },
  1654. "menu_order": {
  1655. "description": "Limit result set to posts with a specific menu_order value.",
  1656. "type": "integer",
  1657. "required": false
  1658. },
  1659. "offset": {
  1660. "description": "Offset the result set by a specific number of items.",
  1661. "type": "integer",
  1662. "required": false
  1663. },
  1664. "order": {
  1665. "description": "Order sort attribute ascending or descending.",
  1666. "type": "string",
  1667. "default": "desc",
  1668. "enum": [
  1669. "asc",
  1670. "desc"
  1671. ],
  1672. "required": false
  1673. },
  1674. "orderby": {
  1675. "description": "Sort collection by object attribute.",
  1676. "type": "string",
  1677. "default": "date",
  1678. "enum": [
  1679. "author",
  1680. "date",
  1681. "id",
  1682. "include",
  1683. "modified",
  1684. "parent",
  1685. "relevance",
  1686. "slug",
  1687. "include_slugs",
  1688. "title",
  1689. "menu_order"
  1690. ],
  1691. "required": false
  1692. },
  1693. "parent": {
  1694. "description": "Limit result set to items with particular parent IDs.",
  1695. "type": "array",
  1696. "items": {
  1697. "type": "integer"
  1698. },
  1699. "default": [],
  1700. "required": false
  1701. },
  1702. "parent_exclude": {
  1703. "description": "Limit result set to all items except those of a particular parent ID.",
  1704. "type": "array",
  1705. "items": {
  1706. "type": "integer"
  1707. },
  1708. "default": [],
  1709. "required": false
  1710. },
  1711. "slug": {
  1712. "description": "Limit result set to posts with one or more specific slugs.",
  1713. "type": "array",
  1714. "items": {
  1715. "type": "string"
  1716. },
  1717. "required": false
  1718. },
  1719. "status": {
  1720. "default": "publish",
  1721. "description": "Limit result set to posts assigned one or more statuses.",
  1722. "type": "array",
  1723. "items": {
  1724. "enum": [
  1725. "publish",
  1726. "future",
  1727. "draft",
  1728. "pending",
  1729. "private",
  1730. "trash",
  1731. "auto-draft",
  1732. "inherit",
  1733. "request-pending",
  1734. "request-confirmed",
  1735. "request-failed",
  1736. "request-completed",
  1737. "any"
  1738. ],
  1739. "type": "string"
  1740. },
  1741. "required": false
  1742. }
  1743. }
  1744. },
  1745. {
  1746. "methods": [
  1747. "POST"
  1748. ],
  1749. "args": {
  1750. "date": {
  1751. "description": "The date the object was published, in the site's timezone.",
  1752. "type": [
  1753. "string",
  1754. "null"
  1755. ],
  1756. "format": "date-time",
  1757. "required": false
  1758. },
  1759. "date_gmt": {
  1760. "description": "The date the object was published, as GMT.",
  1761. "type": [
  1762. "string",
  1763. "null"
  1764. ],
  1765. "format": "date-time",
  1766. "required": false
  1767. },
  1768. "slug": {
  1769. "description": "An alphanumeric identifier for the object unique to its type.",
  1770. "type": "string",
  1771. "required": false
  1772. },
  1773. "status": {
  1774. "description": "A named status for the object.",
  1775. "type": "string",
  1776. "enum": [
  1777. "publish",
  1778. "future",
  1779. "draft",
  1780. "pending",
  1781. "private"
  1782. ],
  1783. "required": false
  1784. },
  1785. "password": {
  1786. "description": "A password to protect access to the content and excerpt.",
  1787. "type": "string",
  1788. "required": false
  1789. },
  1790. "parent": {
  1791. "description": "The ID for the parent of the object.",
  1792. "type": "integer",
  1793. "required": false
  1794. },
  1795. "title": {
  1796. "description": "The title for the object.",
  1797. "type": "object",
  1798. "properties": {
  1799. "raw": {
  1800. "description": "Title for the object, as it exists in the database.",
  1801. "type": "string",
  1802. "context": [
  1803. "edit"
  1804. ]
  1805. },
  1806. "rendered": {
  1807. "description": "HTML title for the object, transformed for display.",
  1808. "type": "string",
  1809. "context": [
  1810. "view",
  1811. "edit",
  1812. "embed"
  1813. ],
  1814. "readonly": true
  1815. }
  1816. },
  1817. "required": false
  1818. },
  1819. "content": {
  1820. "description": "The content for the object.",
  1821. "type": "object",
  1822. "properties": {
  1823. "raw": {
  1824. "description": "Content for the object, as it exists in the database.",
  1825. "type": "string",
  1826. "context": [
  1827. "edit"
  1828. ]
  1829. },
  1830. "rendered": {
  1831. "description": "HTML content for the object, transformed for display.",
  1832. "type": "string",
  1833. "context": [
  1834. "view",
  1835. "edit"
  1836. ],
  1837. "readonly": true
  1838. },
  1839. "block_version": {
  1840. "description": "Version of the content block format used by the object.",
  1841. "type": "integer",
  1842. "context": [
  1843. "edit"
  1844. ],
  1845. "readonly": true
  1846. },
  1847. "protected": {
  1848. "description": "Whether the content is protected with a password.",
  1849. "type": "boolean",
  1850. "context": [
  1851. "view",
  1852. "edit",
  1853. "embed"
  1854. ],
  1855. "readonly": true
  1856. }
  1857. },
  1858. "required": false
  1859. },
  1860. "author": {
  1861. "description": "The ID for the author of the object.",
  1862. "type": "integer",
  1863. "required": false
  1864. },
  1865. "excerpt": {
  1866. "description": "The excerpt for the object.",
  1867. "type": "object",
  1868. "properties": {
  1869. "raw": {
  1870. "description": "Excerpt for the object, as it exists in the database.",
  1871. "type": "string",
  1872. "context": [
  1873. "edit"
  1874. ]
  1875. },
  1876. "rendered": {
  1877. "description": "HTML excerpt for the object, transformed for display.",
  1878. "type": "string",
  1879. "context": [
  1880. "view",
  1881. "edit",
  1882. "embed"
  1883. ],
  1884. "readonly": true
  1885. },
  1886. "protected": {
  1887. "description": "Whether the excerpt is protected with a password.",
  1888. "type": "boolean",
  1889. "context": [
  1890. "view",
  1891. "edit",
  1892. "embed"
  1893. ],
  1894. "readonly": true
  1895. }
  1896. },
  1897. "required": false
  1898. },
  1899. "featured_media": {
  1900. "description": "The ID of the featured media for the object.",
  1901. "type": "integer",
  1902. "required": false
  1903. },
  1904. "comment_status": {
  1905. "description": "Whether or not comments are open on the object.",
  1906. "type": "string",
  1907. "enum": [
  1908. "open",
  1909. "closed"
  1910. ],
  1911. "required": false
  1912. },
  1913. "ping_status": {
  1914. "description": "Whether or not the object can be pinged.",
  1915. "type": "string",
  1916. "enum": [
  1917. "open",
  1918. "closed"
  1919. ],
  1920. "required": false
  1921. },
  1922. "menu_order": {
  1923. "description": "The order of the object in relation to other object of its type.",
  1924. "type": "integer",
  1925. "required": false
  1926. },
  1927. "meta": {
  1928. "description": "Meta fields.",
  1929. "type": "object",
  1930. "properties": [],
  1931. "required": false
  1932. },
  1933. "template": {
  1934. "description": "The theme file to use to display the object.",
  1935. "type": "string",
  1936. "required": false
  1937. }
  1938. }
  1939. }
  1940. ],
  1941. "_links": {
  1942. "self": "http://example.org/index.php?rest_route=/wp/v2/pages"
  1943. }
  1944. },
  1945. "/wp/v2/pages/(?P<id>[\\d]+)": {
  1946. "namespace": "wp/v2",
  1947. "methods": [
  1948. "GET",
  1949. "POST",
  1950. "PUT",
  1951. "PATCH",
  1952. "DELETE"
  1953. ],
  1954. "endpoints": [
  1955. {
  1956. "methods": [
  1957. "GET"
  1958. ],
  1959. "args": {
  1960. "id": {
  1961. "description": "Unique identifier for the object.",
  1962. "type": "integer",
  1963. "required": false
  1964. },
  1965. "context": {
  1966. "description": "Scope under which the request is made; determines fields present in response.",
  1967. "type": "string",
  1968. "enum": [
  1969. "view",
  1970. "embed",
  1971. "edit"
  1972. ],
  1973. "default": "view",
  1974. "required": false
  1975. },
  1976. "password": {
  1977. "description": "The password for the post if it is password protected.",
  1978. "type": "string",
  1979. "required": false
  1980. }
  1981. }
  1982. },
  1983. {
  1984. "methods": [
  1985. "POST",
  1986. "PUT",
  1987. "PATCH"
  1988. ],
  1989. "args": {
  1990. "id": {
  1991. "description": "Unique identifier for the object.",
  1992. "type": "integer",
  1993. "required": false
  1994. },
  1995. "date": {
  1996. "description": "The date the object was published, in the site's timezone.",
  1997. "type": [
  1998. "string",
  1999. "null"
  2000. ],
  2001. "format": "date-time",
  2002. "required": false
  2003. },
  2004. "date_gmt": {
  2005. "description": "The date the object was published, as GMT.",
  2006. "type": [
  2007. "string",
  2008. "null"
  2009. ],
  2010. "format": "date-time",
  2011. "required": false
  2012. },
  2013. "slug": {
  2014. "description": "An alphanumeric identifier for the object unique to its type.",
  2015. "type": "string",
  2016. "required": false
  2017. },
  2018. "status": {
  2019. "description": "A named status for the object.",
  2020. "type": "string",
  2021. "enum": [
  2022. "publish",
  2023. "future",
  2024. "draft",
  2025. "pending",
  2026. "private"
  2027. ],
  2028. "required": false
  2029. },
  2030. "password": {
  2031. "description": "A password to protect access to the content and excerpt.",
  2032. "type": "string",
  2033. "required": false
  2034. },
  2035. "parent": {
  2036. "description": "The ID for the parent of the object.",
  2037. "type": "integer",
  2038. "required": false
  2039. },
  2040. "title": {
  2041. "description": "The title for the object.",
  2042. "type": "object",
  2043. "properties": {
  2044. "raw": {
  2045. "description": "Title for the object, as it exists in the database.",
  2046. "type": "string",
  2047. "context": [
  2048. "edit"
  2049. ]
  2050. },
  2051. "rendered": {
  2052. "description": "HTML title for the object, transformed for display.",
  2053. "type": "string",
  2054. "context": [
  2055. "view",
  2056. "edit",
  2057. "embed"
  2058. ],
  2059. "readonly": true
  2060. }
  2061. },
  2062. "required": false
  2063. },
  2064. "content": {
  2065. "description": "The content for the object.",
  2066. "type": "object",
  2067. "properties": {
  2068. "raw": {
  2069. "description": "Content for the object, as it exists in the database.",
  2070. "type": "string",
  2071. "context": [
  2072. "edit"
  2073. ]
  2074. },
  2075. "rendered": {
  2076. "description": "HTML content for the object, transformed for display.",
  2077. "type": "string",
  2078. "context": [
  2079. "view",
  2080. "edit"
  2081. ],
  2082. "readonly": true
  2083. },
  2084. "block_version": {
  2085. "description": "Version of the content block format used by the object.",
  2086. "type": "integer",
  2087. "context": [
  2088. "edit"
  2089. ],
  2090. "readonly": true
  2091. },
  2092. "protected": {
  2093. "description": "Whether the content is protected with a password.",
  2094. "type": "boolean",
  2095. "context": [
  2096. "view",
  2097. "edit",
  2098. "embed"
  2099. ],
  2100. "readonly": true
  2101. }
  2102. },
  2103. "required": false
  2104. },
  2105. "author": {
  2106. "description": "The ID for the author of the object.",
  2107. "type": "integer",
  2108. "required": false
  2109. },
  2110. "excerpt": {
  2111. "description": "The excerpt for the object.",
  2112. "type": "object",
  2113. "properties": {
  2114. "raw": {
  2115. "description": "Excerpt for the object, as it exists in the database.",
  2116. "type": "string",
  2117. "context": [
  2118. "edit"
  2119. ]
  2120. },
  2121. "rendered": {
  2122. "description": "HTML excerpt for the object, transformed for display.",
  2123. "type": "string",
  2124. "context": [
  2125. "view",
  2126. "edit",
  2127. "embed"
  2128. ],
  2129. "readonly": true
  2130. },
  2131. "protected": {
  2132. "description": "Whether the excerpt is protected with a password.",
  2133. "type": "boolean",
  2134. "context": [
  2135. "view",
  2136. "edit",
  2137. "embed"
  2138. ],
  2139. "readonly": true
  2140. }
  2141. },
  2142. "required": false
  2143. },
  2144. "featured_media": {
  2145. "description": "The ID of the featured media for the object.",
  2146. "type": "integer",
  2147. "required": false
  2148. },
  2149. "comment_status": {
  2150. "description": "Whether or not comments are open on the object.",
  2151. "type": "string",
  2152. "enum": [
  2153. "open",
  2154. "closed"
  2155. ],
  2156. "required": false
  2157. },
  2158. "ping_status": {
  2159. "description": "Whether or not the object can be pinged.",
  2160. "type": "string",
  2161. "enum": [
  2162. "open",
  2163. "closed"
  2164. ],
  2165. "required": false
  2166. },
  2167. "menu_order": {
  2168. "description": "The order of the object in relation to other object of its type.",
  2169. "type": "integer",
  2170. "required": false
  2171. },
  2172. "meta": {
  2173. "description": "Meta fields.",
  2174. "type": "object",
  2175. "properties": [],
  2176. "required": false
  2177. },
  2178. "template": {
  2179. "description": "The theme file to use to display the object.",
  2180. "type": "string",
  2181. "required": false
  2182. }
  2183. }
  2184. },
  2185. {
  2186. "methods": [
  2187. "DELETE"
  2188. ],
  2189. "args": {
  2190. "id": {
  2191. "description": "Unique identifier for the object.",
  2192. "type": "integer",
  2193. "required": false
  2194. },
  2195. "force": {
  2196. "type": "boolean",
  2197. "default": false,
  2198. "description": "Whether to bypass Trash and force deletion.",
  2199. "required": false
  2200. }
  2201. }
  2202. }
  2203. ]
  2204. },
  2205. "/wp/v2/pages/(?P<parent>[\\d]+)/revisions": {
  2206. "namespace": "wp/v2",
  2207. "methods": [
  2208. "GET"
  2209. ],
  2210. "endpoints": [
  2211. {
  2212. "methods": [
  2213. "GET"
  2214. ],
  2215. "args": {
  2216. "parent": {
  2217. "description": "The ID for the parent of the object.",
  2218. "type": "integer",
  2219. "required": false
  2220. },
  2221. "context": {
  2222. "description": "Scope under which the request is made; determines fields present in response.",
  2223. "type": "string",
  2224. "enum": [
  2225. "view",
  2226. "embed",
  2227. "edit"
  2228. ],
  2229. "default": "view",
  2230. "required": false
  2231. },
  2232. "page": {
  2233. "description": "Current page of the collection.",
  2234. "type": "integer",
  2235. "default": 1,
  2236. "minimum": 1,
  2237. "required": false
  2238. },
  2239. "per_page": {
  2240. "description": "Maximum number of items to be returned in result set.",
  2241. "type": "integer",
  2242. "minimum": 1,
  2243. "maximum": 100,
  2244. "required": false
  2245. },
  2246. "search": {
  2247. "description": "Limit results to those matching a string.",
  2248. "type": "string",
  2249. "required": false
  2250. },
  2251. "exclude": {
  2252. "description": "Ensure result set excludes specific IDs.",
  2253. "type": "array",
  2254. "items": {
  2255. "type": "integer"
  2256. },
  2257. "default": [],
  2258. "required": false
  2259. },
  2260. "include": {
  2261. "description": "Limit result set to specific IDs.",
  2262. "type": "array",
  2263. "items": {
  2264. "type": "integer"
  2265. },
  2266. "default": [],
  2267. "required": false
  2268. },
  2269. "offset": {
  2270. "description": "Offset the result set by a specific number of items.",
  2271. "type": "integer",
  2272. "required": false
  2273. },
  2274. "order": {
  2275. "description": "Order sort attribute ascending or descending.",
  2276. "type": "string",
  2277. "default": "desc",
  2278. "enum": [
  2279. "asc",
  2280. "desc"
  2281. ],
  2282. "required": false
  2283. },
  2284. "orderby": {
  2285. "description": "Sort collection by object attribute.",
  2286. "type": "string",
  2287. "default": "date",
  2288. "enum": [
  2289. "date",
  2290. "id",
  2291. "include",
  2292. "relevance",
  2293. "slug",
  2294. "include_slugs",
  2295. "title"
  2296. ],
  2297. "required": false
  2298. }
  2299. }
  2300. }
  2301. ]
  2302. },
  2303. "/wp/v2/pages/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
  2304. "namespace": "wp/v2",
  2305. "methods": [
  2306. "GET",
  2307. "DELETE"
  2308. ],
  2309. "endpoints": [
  2310. {
  2311. "methods": [
  2312. "GET"
  2313. ],
  2314. "args": {
  2315. "parent": {
  2316. "description": "The ID for the parent of the object.",
  2317. "type": "integer",
  2318. "required": false
  2319. },
  2320. "id": {
  2321. "description": "Unique identifier for the object.",
  2322. "type": "integer",
  2323. "required": false
  2324. },
  2325. "context": {
  2326. "description": "Scope under which the request is made; determines fields present in response.",
  2327. "type": "string",
  2328. "enum": [
  2329. "view",
  2330. "embed",
  2331. "edit"
  2332. ],
  2333. "default": "view",
  2334. "required": false
  2335. }
  2336. }
  2337. },
  2338. {
  2339. "methods": [
  2340. "DELETE"
  2341. ],
  2342. "args": {
  2343. "parent": {
  2344. "description": "The ID for the parent of the object.",
  2345. "type": "integer",
  2346. "required": false
  2347. },
  2348. "id": {
  2349. "description": "Unique identifier for the object.",
  2350. "type": "integer",
  2351. "required": false
  2352. },
  2353. "force": {
  2354. "type": "boolean",
  2355. "default": false,
  2356. "description": "Required to be true, as revisions do not support trashing.",
  2357. "required": false
  2358. }
  2359. }
  2360. }
  2361. ]
  2362. },
  2363. "/wp/v2/pages/(?P<id>[\\d]+)/autosaves": {
  2364. "namespace": "wp/v2",
  2365. "methods": [
  2366. "GET",
  2367. "POST"
  2368. ],
  2369. "endpoints": [
  2370. {
  2371. "methods": [
  2372. "GET"
  2373. ],
  2374. "args": {
  2375. "parent": {
  2376. "description": "The ID for the parent of the object.",
  2377. "type": "integer",
  2378. "required": false
  2379. },
  2380. "context": {
  2381. "description": "Scope under which the request is made; determines fields present in response.",
  2382. "type": "string",
  2383. "enum": [
  2384. "view",
  2385. "embed",
  2386. "edit"
  2387. ],
  2388. "default": "view",
  2389. "required": false
  2390. }
  2391. }
  2392. },
  2393. {
  2394. "methods": [
  2395. "POST"
  2396. ],
  2397. "args": {
  2398. "parent": {
  2399. "description": "The ID for the parent of the object.",
  2400. "type": "integer",
  2401. "required": false
  2402. },
  2403. "date": {
  2404. "description": "The date the object was published, in the site's timezone.",
  2405. "type": [
  2406. "string",
  2407. "null"
  2408. ],
  2409. "format": "date-time",
  2410. "required": false
  2411. },
  2412. "date_gmt": {
  2413. "description": "The date the object was published, as GMT.",
  2414. "type": [
  2415. "string",
  2416. "null"
  2417. ],
  2418. "format": "date-time",
  2419. "required": false
  2420. },
  2421. "slug": {
  2422. "description": "An alphanumeric identifier for the object unique to its type.",
  2423. "type": "string",
  2424. "required": false
  2425. },
  2426. "status": {
  2427. "description": "A named status for the object.",
  2428. "type": "string",
  2429. "enum": [
  2430. "publish",
  2431. "future",
  2432. "draft",
  2433. "pending",
  2434. "private"
  2435. ],
  2436. "required": false
  2437. },
  2438. "password": {
  2439. "description": "A password to protect access to the content and excerpt.",
  2440. "type": "string",
  2441. "required": false
  2442. },
  2443. "title": {
  2444. "description": "The title for the object.",
  2445. "type": "object",
  2446. "properties": {
  2447. "raw": {
  2448. "description": "Title for the object, as it exists in the database.",
  2449. "type": "string",
  2450. "context": [
  2451. "edit"
  2452. ]
  2453. },
  2454. "rendered": {
  2455. "description": "HTML title for the object, transformed for display.",
  2456. "type": "string",
  2457. "context": [
  2458. "view",
  2459. "edit",
  2460. "embed"
  2461. ],
  2462. "readonly": true
  2463. }
  2464. },
  2465. "required": false
  2466. },
  2467. "content": {
  2468. "description": "The content for the object.",
  2469. "type": "object",
  2470. "properties": {
  2471. "raw": {
  2472. "description": "Content for the object, as it exists in the database.",
  2473. "type": "string",
  2474. "context": [
  2475. "edit"
  2476. ]
  2477. },
  2478. "rendered": {
  2479. "description": "HTML content for the object, transformed for display.",
  2480. "type": "string",
  2481. "context": [
  2482. "view",
  2483. "edit"
  2484. ],
  2485. "readonly": true
  2486. },
  2487. "block_version": {
  2488. "description": "Version of the content block format used by the object.",
  2489. "type": "integer",
  2490. "context": [
  2491. "edit"
  2492. ],
  2493. "readonly": true
  2494. },
  2495. "protected": {
  2496. "description": "Whether the content is protected with a password.",
  2497. "type": "boolean",
  2498. "context": [
  2499. "view",
  2500. "edit",
  2501. "embed"
  2502. ],
  2503. "readonly": true
  2504. }
  2505. },
  2506. "required": false
  2507. },
  2508. "author": {
  2509. "description": "The ID for the author of the object.",
  2510. "type": "integer",
  2511. "required": false
  2512. },
  2513. "excerpt": {
  2514. "description": "The excerpt for the object.",
  2515. "type": "object",
  2516. "properties": {
  2517. "raw": {
  2518. "description": "Excerpt for the object, as it exists in the database.",
  2519. "type": "string",
  2520. "context": [
  2521. "edit"
  2522. ]
  2523. },
  2524. "rendered": {
  2525. "description": "HTML excerpt for the object, transformed for display.",
  2526. "type": "string",
  2527. "context": [
  2528. "view",
  2529. "edit",
  2530. "embed"
  2531. ],
  2532. "readonly": true
  2533. },
  2534. "protected": {
  2535. "description": "Whether the excerpt is protected with a password.",
  2536. "type": "boolean",
  2537. "context": [
  2538. "view",
  2539. "edit",
  2540. "embed"
  2541. ],
  2542. "readonly": true
  2543. }
  2544. },
  2545. "required": false
  2546. },
  2547. "featured_media": {
  2548. "description": "The ID of the featured media for the object.",
  2549. "type": "integer",
  2550. "required": false
  2551. },
  2552. "comment_status": {
  2553. "description": "Whether or not comments are open on the object.",
  2554. "type": "string",
  2555. "enum": [
  2556. "open",
  2557. "closed"
  2558. ],
  2559. "required": false
  2560. },
  2561. "ping_status": {
  2562. "description": "Whether or not the object can be pinged.",
  2563. "type": "string",
  2564. "enum": [
  2565. "open",
  2566. "closed"
  2567. ],
  2568. "required": false
  2569. },
  2570. "menu_order": {
  2571. "description": "The order of the object in relation to other object of its type.",
  2572. "type": "integer",
  2573. "required": false
  2574. },
  2575. "meta": {
  2576. "description": "Meta fields.",
  2577. "type": "object",
  2578. "properties": [],
  2579. "required": false
  2580. },
  2581. "template": {
  2582. "description": "The theme file to use to display the object.",
  2583. "type": "string",
  2584. "required": false
  2585. }
  2586. }
  2587. }
  2588. ]
  2589. },
  2590. "/wp/v2/pages/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {
  2591. "namespace": "wp/v2",
  2592. "methods": [
  2593. "GET"
  2594. ],
  2595. "endpoints": [
  2596. {
  2597. "methods": [
  2598. "GET"
  2599. ],
  2600. "args": {
  2601. "parent": {
  2602. "description": "The ID for the parent of the object.",
  2603. "type": "integer",
  2604. "required": false
  2605. },
  2606. "id": {
  2607. "description": "The ID for the object.",
  2608. "type": "integer",
  2609. "required": false
  2610. },
  2611. "context": {
  2612. "description": "Scope under which the request is made; determines fields present in response.",
  2613. "type": "string",
  2614. "enum": [
  2615. "view",
  2616. "embed",
  2617. "edit"
  2618. ],
  2619. "default": "view",
  2620. "required": false
  2621. }
  2622. }
  2623. }
  2624. ]
  2625. },
  2626. "/wp/v2/media": {
  2627. "namespace": "wp/v2",
  2628. "methods": [
  2629. "GET",
  2630. "POST"
  2631. ],
  2632. "endpoints": [
  2633. {
  2634. "methods": [
  2635. "GET"
  2636. ],
  2637. "args": {
  2638. "context": {
  2639. "description": "Scope under which the request is made; determines fields present in response.",
  2640. "type": "string",
  2641. "enum": [
  2642. "view",
  2643. "embed",
  2644. "edit"
  2645. ],
  2646. "default": "view",
  2647. "required": false
  2648. },
  2649. "page": {
  2650. "description": "Current page of the collection.",
  2651. "type": "integer",
  2652. "default": 1,
  2653. "minimum": 1,
  2654. "required": false
  2655. },
  2656. "per_page": {
  2657. "description": "Maximum number of items to be returned in result set.",
  2658. "type": "integer",
  2659. "default": 10,
  2660. "minimum": 1,
  2661. "maximum": 100,
  2662. "required": false
  2663. },
  2664. "search": {
  2665. "description": "Limit results to those matching a string.",
  2666. "type": "string",
  2667. "required": false
  2668. },
  2669. "after": {
  2670. "description": "Limit response to posts published after a given ISO8601 compliant date.",
  2671. "type": "string",
  2672. "format": "date-time",
  2673. "required": false
  2674. },
  2675. "modified_after": {
  2676. "description": "Limit response to posts modified after a given ISO8601 compliant date.",
  2677. "type": "string",
  2678. "format": "date-time",
  2679. "required": false
  2680. },
  2681. "author": {
  2682. "description": "Limit result set to posts assigned to specific authors.",
  2683. "type": "array",
  2684. "items": {
  2685. "type": "integer"
  2686. },
  2687. "default": [],
  2688. "required": false
  2689. },
  2690. "author_exclude": {
  2691. "description": "Ensure result set excludes posts assigned to specific authors.",
  2692. "type": "array",
  2693. "items": {
  2694. "type": "integer"
  2695. },
  2696. "default": [],
  2697. "required": false
  2698. },
  2699. "before": {
  2700. "description": "Limit response to posts published before a given ISO8601 compliant date.",
  2701. "type": "string",
  2702. "format": "date-time",
  2703. "required": false
  2704. },
  2705. "modified_before": {
  2706. "description": "Limit response to posts modified before a given ISO8601 compliant date.",
  2707. "type": "string",
  2708. "format": "date-time",
  2709. "required": false
  2710. },
  2711. "exclude": {
  2712. "description": "Ensure result set excludes specific IDs.",
  2713. "type": "array",
  2714. "items": {
  2715. "type": "integer"
  2716. },
  2717. "default": [],
  2718. "required": false
  2719. },
  2720. "include": {
  2721. "description": "Limit result set to specific IDs.",
  2722. "type": "array",
  2723. "items": {
  2724. "type": "integer"
  2725. },
  2726. "default": [],
  2727. "required": false
  2728. },
  2729. "offset": {
  2730. "description": "Offset the result set by a specific number of items.",
  2731. "type": "integer",
  2732. "required": false
  2733. },
  2734. "order": {
  2735. "description": "Order sort attribute ascending or descending.",
  2736. "type": "string",
  2737. "default": "desc",
  2738. "enum": [
  2739. "asc",
  2740. "desc"
  2741. ],
  2742. "required": false
  2743. },
  2744. "orderby": {
  2745. "description": "Sort collection by object attribute.",
  2746. "type": "string",
  2747. "default": "date",
  2748. "enum": [
  2749. "author",
  2750. "date",
  2751. "id",
  2752. "include",
  2753. "modified",
  2754. "parent",
  2755. "relevance",
  2756. "slug",
  2757. "include_slugs",
  2758. "title"
  2759. ],
  2760. "required": false
  2761. },
  2762. "parent": {
  2763. "description": "Limit result set to items with particular parent IDs.",
  2764. "type": "array",
  2765. "items": {
  2766. "type": "integer"
  2767. },
  2768. "default": [],
  2769. "required": false
  2770. },
  2771. "parent_exclude": {
  2772. "description": "Limit result set to all items except those of a particular parent ID.",
  2773. "type": "array",
  2774. "items": {
  2775. "type": "integer"
  2776. },
  2777. "default": [],
  2778. "required": false
  2779. },
  2780. "slug": {
  2781. "description": "Limit result set to posts with one or more specific slugs.",
  2782. "type": "array",
  2783. "items": {
  2784. "type": "string"
  2785. },
  2786. "required": false
  2787. },
  2788. "status": {
  2789. "default": "inherit",
  2790. "description": "Limit result set to posts assigned one or more statuses.",
  2791. "type": "array",
  2792. "items": {
  2793. "enum": [
  2794. "inherit",
  2795. "private",
  2796. "trash"
  2797. ],
  2798. "type": "string"
  2799. },
  2800. "required": false
  2801. },
  2802. "media_type": {
  2803. "default": null,
  2804. "description": "Limit result set to attachments of a particular media type.",
  2805. "type": "string",
  2806. "enum": [
  2807. "image",
  2808. "video",
  2809. "text",
  2810. "application",
  2811. "audio"
  2812. ],
  2813. "required": false
  2814. },
  2815. "mime_type": {
  2816. "default": null,
  2817. "description": "Limit result set to attachments of a particular MIME type.",
  2818. "type": "string",
  2819. "required": false
  2820. }
  2821. }
  2822. },
  2823. {
  2824. "methods": [
  2825. "POST"
  2826. ],
  2827. "args": {
  2828. "date": {
  2829. "description": "The date the object was published, in the site's timezone.",
  2830. "type": [
  2831. "string",
  2832. "null"
  2833. ],
  2834. "format": "date-time",
  2835. "required": false
  2836. },
  2837. "date_gmt": {
  2838. "description": "The date the object was published, as GMT.",
  2839. "type": [
  2840. "string",
  2841. "null"
  2842. ],
  2843. "format": "date-time",
  2844. "required": false
  2845. },
  2846. "slug": {
  2847. "description": "An alphanumeric identifier for the object unique to its type.",
  2848. "type": "string",
  2849. "required": false
  2850. },
  2851. "status": {
  2852. "description": "A named status for the object.",
  2853. "type": "string",
  2854. "enum": [
  2855. "publish",
  2856. "future",
  2857. "draft",
  2858. "pending",
  2859. "private"
  2860. ],
  2861. "required": false
  2862. },
  2863. "title": {
  2864. "description": "The title for the object.",
  2865. "type": "object",
  2866. "properties": {
  2867. "raw": {
  2868. "description": "Title for the object, as it exists in the database.",
  2869. "type": "string",
  2870. "context": [
  2871. "edit"
  2872. ]
  2873. },
  2874. "rendered": {
  2875. "description": "HTML title for the object, transformed for display.",
  2876. "type": "string",
  2877. "context": [
  2878. "view",
  2879. "edit",
  2880. "embed"
  2881. ],
  2882. "readonly": true
  2883. }
  2884. },
  2885. "required": false
  2886. },
  2887. "author": {
  2888. "description": "The ID for the author of the object.",
  2889. "type": "integer",
  2890. "required": false
  2891. },
  2892. "comment_status": {
  2893. "description": "Whether or not comments are open on the object.",
  2894. "type": "string",
  2895. "enum": [
  2896. "open",
  2897. "closed"
  2898. ],
  2899. "required": false
  2900. },
  2901. "ping_status": {
  2902. "description": "Whether or not the object can be pinged.",
  2903. "type": "string",
  2904. "enum": [
  2905. "open",
  2906. "closed"
  2907. ],
  2908. "required": false
  2909. },
  2910. "meta": {
  2911. "description": "Meta fields.",
  2912. "type": "object",
  2913. "properties": [],
  2914. "required": false
  2915. },
  2916. "template": {
  2917. "description": "The theme file to use to display the object.",
  2918. "type": "string",
  2919. "required": false
  2920. },
  2921. "alt_text": {
  2922. "description": "Alternative text to display when attachment is not displayed.",
  2923. "type": "string",
  2924. "required": false
  2925. },
  2926. "caption": {
  2927. "description": "The attachment caption.",
  2928. "type": "object",
  2929. "properties": {
  2930. "raw": {
  2931. "description": "Caption for the attachment, as it exists in the database.",
  2932. "type": "string",
  2933. "context": [
  2934. "edit"
  2935. ]
  2936. },
  2937. "rendered": {
  2938. "description": "HTML caption for the attachment, transformed for display.",
  2939. "type": "string",
  2940. "context": [
  2941. "view",
  2942. "edit",
  2943. "embed"
  2944. ],
  2945. "readonly": true
  2946. }
  2947. },
  2948. "required": false
  2949. },
  2950. "description": {
  2951. "description": "The attachment description.",
  2952. "type": "object",
  2953. "properties": {
  2954. "raw": {
  2955. "description": "Description for the object, as it exists in the database.",
  2956. "type": "string",
  2957. "context": [
  2958. "edit"
  2959. ]
  2960. },
  2961. "rendered": {
  2962. "description": "HTML description for the object, transformed for display.",
  2963. "type": "string",
  2964. "context": [
  2965. "view",
  2966. "edit"
  2967. ],
  2968. "readonly": true
  2969. }
  2970. },
  2971. "required": false
  2972. },
  2973. "post": {
  2974. "description": "The ID for the associated post of the attachment.",
  2975. "type": "integer",
  2976. "required": false
  2977. }
  2978. }
  2979. }
  2980. ],
  2981. "_links": {
  2982. "self": "http://example.org/index.php?rest_route=/wp/v2/media"
  2983. }
  2984. },
  2985. "/wp/v2/media/(?P<id>[\\d]+)": {
  2986. "namespace": "wp/v2",
  2987. "methods": [
  2988. "GET",
  2989. "POST",
  2990. "PUT",
  2991. "PATCH",
  2992. "DELETE"
  2993. ],
  2994. "endpoints": [
  2995. {
  2996. "methods": [
  2997. "GET"
  2998. ],
  2999. "args": {
  3000. "id": {
  3001. "description": "Unique identifier for the object.",
  3002. "type": "integer",
  3003. "required": false
  3004. },
  3005. "context": {
  3006. "description": "Scope under which the request is made; determines fields present in response.",
  3007. "type": "string",
  3008. "enum": [
  3009. "view",
  3010. "embed",
  3011. "edit"
  3012. ],
  3013. "default": "view",
  3014. "required": false
  3015. }
  3016. }
  3017. },
  3018. {
  3019. "methods": [
  3020. "POST",
  3021. "PUT",
  3022. "PATCH"
  3023. ],
  3024. "args": {
  3025. "id": {
  3026. "description": "Unique identifier for the object.",
  3027. "type": "integer",
  3028. "required": false
  3029. },
  3030. "date": {
  3031. "description": "The date the object was published, in the site's timezone.",
  3032. "type": [
  3033. "string",
  3034. "null"
  3035. ],
  3036. "format": "date-time",
  3037. "required": false
  3038. },
  3039. "date_gmt": {
  3040. "description": "The date the object was published, as GMT.",
  3041. "type": [
  3042. "string",
  3043. "null"
  3044. ],
  3045. "format": "date-time",
  3046. "required": false
  3047. },
  3048. "slug": {
  3049. "description": "An alphanumeric identifier for the object unique to its type.",
  3050. "type": "string",
  3051. "required": false
  3052. },
  3053. "status": {
  3054. "description": "A named status for the object.",
  3055. "type": "string",
  3056. "enum": [
  3057. "publish",
  3058. "future",
  3059. "draft",
  3060. "pending",
  3061. "private"
  3062. ],
  3063. "required": false
  3064. },
  3065. "title": {
  3066. "description": "The title for the object.",
  3067. "type": "object",
  3068. "properties": {
  3069. "raw": {
  3070. "description": "Title for the object, as it exists in the database.",
  3071. "type": "string",
  3072. "context": [
  3073. "edit"
  3074. ]
  3075. },
  3076. "rendered": {
  3077. "description": "HTML title for the object, transformed for display.",
  3078. "type": "string",
  3079. "context": [
  3080. "view",
  3081. "edit",
  3082. "embed"
  3083. ],
  3084. "readonly": true
  3085. }
  3086. },
  3087. "required": false
  3088. },
  3089. "author": {
  3090. "description": "The ID for the author of the object.",
  3091. "type": "integer",
  3092. "required": false
  3093. },
  3094. "comment_status": {
  3095. "description": "Whether or not comments are open on the object.",
  3096. "type": "string",
  3097. "enum": [
  3098. "open",
  3099. "closed"
  3100. ],
  3101. "required": false
  3102. },
  3103. "ping_status": {
  3104. "description": "Whether or not the object can be pinged.",
  3105. "type": "string",
  3106. "enum": [
  3107. "open",
  3108. "closed"
  3109. ],
  3110. "required": false
  3111. },
  3112. "meta": {
  3113. "description": "Meta fields.",
  3114. "type": "object",
  3115. "properties": [],
  3116. "required": false
  3117. },
  3118. "template": {
  3119. "description": "The theme file to use to display the object.",
  3120. "type": "string",
  3121. "required": false
  3122. },
  3123. "alt_text": {
  3124. "description": "Alternative text to display when attachment is not displayed.",
  3125. "type": "string",
  3126. "required": false
  3127. },
  3128. "caption": {
  3129. "description": "The attachment caption.",
  3130. "type": "object",
  3131. "properties": {
  3132. "raw": {
  3133. "description": "Caption for the attachment, as it exists in the database.",
  3134. "type": "string",
  3135. "context": [
  3136. "edit"
  3137. ]
  3138. },
  3139. "rendered": {
  3140. "description": "HTML caption for the attachment, transformed for display.",
  3141. "type": "string",
  3142. "context": [
  3143. "view",
  3144. "edit",
  3145. "embed"
  3146. ],
  3147. "readonly": true
  3148. }
  3149. },
  3150. "required": false
  3151. },
  3152. "description": {
  3153. "description": "The attachment description.",
  3154. "type": "object",
  3155. "properties": {
  3156. "raw": {
  3157. "description": "Description for the object, as it exists in the database.",
  3158. "type": "string",
  3159. "context": [
  3160. "edit"
  3161. ]
  3162. },
  3163. "rendered": {
  3164. "description": "HTML description for the object, transformed for display.",
  3165. "type": "string",
  3166. "context": [
  3167. "view",
  3168. "edit"
  3169. ],
  3170. "readonly": true
  3171. }
  3172. },
  3173. "required": false
  3174. },
  3175. "post": {
  3176. "description": "The ID for the associated post of the attachment.",
  3177. "type": "integer",
  3178. "required": false
  3179. }
  3180. }
  3181. },
  3182. {
  3183. "methods": [
  3184. "DELETE"
  3185. ],
  3186. "args": {
  3187. "id": {
  3188. "description": "Unique identifier for the object.",
  3189. "type": "integer",
  3190. "required": false
  3191. },
  3192. "force": {
  3193. "type": "boolean",
  3194. "default": false,
  3195. "description": "Whether to bypass Trash and force deletion.",
  3196. "required": false
  3197. }
  3198. }
  3199. }
  3200. ]
  3201. },
  3202. "/wp/v2/media/(?P<id>[\\d]+)/post-process": {
  3203. "namespace": "wp/v2",
  3204. "methods": [
  3205. "POST"
  3206. ],
  3207. "endpoints": [
  3208. {
  3209. "methods": [
  3210. "POST"
  3211. ],
  3212. "args": {
  3213. "id": {
  3214. "description": "Unique identifier for the object.",
  3215. "type": "integer",
  3216. "required": false
  3217. },
  3218. "action": {
  3219. "type": "string",
  3220. "enum": [
  3221. "create-image-subsizes"
  3222. ],
  3223. "required": true
  3224. }
  3225. }
  3226. }
  3227. ]
  3228. },
  3229. "/wp/v2/media/(?P<id>[\\d]+)/edit": {
  3230. "namespace": "wp/v2",
  3231. "methods": [
  3232. "POST"
  3233. ],
  3234. "endpoints": [
  3235. {
  3236. "methods": [
  3237. "POST"
  3238. ],
  3239. "args": {
  3240. "src": {
  3241. "description": "URL to the edited image file.",
  3242. "type": "string",
  3243. "format": "uri",
  3244. "required": true
  3245. },
  3246. "modifiers": {
  3247. "description": "Array of image edits.",
  3248. "type": "array",
  3249. "minItems": 1,
  3250. "items": {
  3251. "description": "Image edit.",
  3252. "type": "object",
  3253. "required": [
  3254. "type",
  3255. "args"
  3256. ],
  3257. "oneOf": [
  3258. {
  3259. "title": "Rotation",
  3260. "properties": {
  3261. "type": {
  3262. "description": "Rotation type.",
  3263. "type": "string",
  3264. "enum": [
  3265. "rotate"
  3266. ]
  3267. },
  3268. "args": {
  3269. "description": "Rotation arguments.",
  3270. "type": "object",
  3271. "required": [
  3272. "angle"
  3273. ],
  3274. "properties": {
  3275. "angle": {
  3276. "description": "Angle to rotate clockwise in degrees.",
  3277. "type": "number"
  3278. }
  3279. }
  3280. }
  3281. }
  3282. },
  3283. {
  3284. "title": "Crop",
  3285. "properties": {
  3286. "type": {
  3287. "description": "Crop type.",
  3288. "type": "string",
  3289. "enum": [
  3290. "crop"
  3291. ]
  3292. },
  3293. "args": {
  3294. "description": "Crop arguments.",
  3295. "type": "object",
  3296. "required": [
  3297. "left",
  3298. "top",
  3299. "width",
  3300. "height"
  3301. ],
  3302. "properties": {
  3303. "left": {
  3304. "description": "Horizontal position from the left to begin the crop as a percentage of the image width.",
  3305. "type": "number"
  3306. },
  3307. "top": {
  3308. "description": "Vertical position from the top to begin the crop as a percentage of the image height.",
  3309. "type": "number"
  3310. },
  3311. "width": {
  3312. "description": "Width of the crop as a percentage of the image width.",
  3313. "type": "number"
  3314. },
  3315. "height": {
  3316. "description": "Height of the crop as a percentage of the image height.",
  3317. "type": "number"
  3318. }
  3319. }
  3320. }
  3321. }
  3322. }
  3323. ]
  3324. },
  3325. "required": false
  3326. },
  3327. "rotation": {
  3328. "description": "The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead.",
  3329. "type": "integer",
  3330. "minimum": 0,
  3331. "exclusiveMinimum": true,
  3332. "maximum": 360,
  3333. "exclusiveMaximum": true,
  3334. "required": false
  3335. },
  3336. "x": {
  3337. "description": "As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead.",
  3338. "type": "number",
  3339. "minimum": 0,
  3340. "maximum": 100,
  3341. "required": false
  3342. },
  3343. "y": {
  3344. "description": "As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead.",
  3345. "type": "number",
  3346. "minimum": 0,
  3347. "maximum": 100,
  3348. "required": false
  3349. },
  3350. "width": {
  3351. "description": "As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead.",
  3352. "type": "number",
  3353. "minimum": 0,
  3354. "maximum": 100,
  3355. "required": false
  3356. },
  3357. "height": {
  3358. "description": "As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead.",
  3359. "type": "number",
  3360. "minimum": 0,
  3361. "maximum": 100,
  3362. "required": false
  3363. }
  3364. }
  3365. }
  3366. ]
  3367. },
  3368. "/wp/v2/blocks": {
  3369. "namespace": "wp/v2",
  3370. "methods": [
  3371. "GET",
  3372. "POST"
  3373. ],
  3374. "endpoints": [
  3375. {
  3376. "methods": [
  3377. "GET"
  3378. ],
  3379. "args": {
  3380. "context": {
  3381. "description": "Scope under which the request is made; determines fields present in response.",
  3382. "type": "string",
  3383. "enum": [
  3384. "view",
  3385. "embed",
  3386. "edit"
  3387. ],
  3388. "default": "view",
  3389. "required": false
  3390. },
  3391. "page": {
  3392. "description": "Current page of the collection.",
  3393. "type": "integer",
  3394. "default": 1,
  3395. "minimum": 1,
  3396. "required": false
  3397. },
  3398. "per_page": {
  3399. "description": "Maximum number of items to be returned in result set.",
  3400. "type": "integer",
  3401. "default": 10,
  3402. "minimum": 1,
  3403. "maximum": 100,
  3404. "required": false
  3405. },
  3406. "search": {
  3407. "description": "Limit results to those matching a string.",
  3408. "type": "string",
  3409. "required": false
  3410. },
  3411. "after": {
  3412. "description": "Limit response to posts published after a given ISO8601 compliant date.",
  3413. "type": "string",
  3414. "format": "date-time",
  3415. "required": false
  3416. },
  3417. "modified_after": {
  3418. "description": "Limit response to posts modified after a given ISO8601 compliant date.",
  3419. "type": "string",
  3420. "format": "date-time",
  3421. "required": false
  3422. },
  3423. "before": {
  3424. "description": "Limit response to posts published before a given ISO8601 compliant date.",
  3425. "type": "string",
  3426. "format": "date-time",
  3427. "required": false
  3428. },
  3429. "modified_before": {
  3430. "description": "Limit response to posts modified before a given ISO8601 compliant date.",
  3431. "type": "string",
  3432. "format": "date-time",
  3433. "required": false
  3434. },
  3435. "exclude": {
  3436. "description": "Ensure result set excludes specific IDs.",
  3437. "type": "array",
  3438. "items": {
  3439. "type": "integer"
  3440. },
  3441. "default": [],
  3442. "required": false
  3443. },
  3444. "include": {
  3445. "description": "Limit result set to specific IDs.",
  3446. "type": "array",
  3447. "items": {
  3448. "type": "integer"
  3449. },
  3450. "default": [],
  3451. "required": false
  3452. },
  3453. "offset": {
  3454. "description": "Offset the result set by a specific number of items.",
  3455. "type": "integer",
  3456. "required": false
  3457. },
  3458. "order": {
  3459. "description": "Order sort attribute ascending or descending.",
  3460. "type": "string",
  3461. "default": "desc",
  3462. "enum": [
  3463. "asc",
  3464. "desc"
  3465. ],
  3466. "required": false
  3467. },
  3468. "orderby": {
  3469. "description": "Sort collection by object attribute.",
  3470. "type": "string",
  3471. "default": "date",
  3472. "enum": [
  3473. "author",
  3474. "date",
  3475. "id",
  3476. "include",
  3477. "modified",
  3478. "parent",
  3479. "relevance",
  3480. "slug",
  3481. "include_slugs",
  3482. "title"
  3483. ],
  3484. "required": false
  3485. },
  3486. "slug": {
  3487. "description": "Limit result set to posts with one or more specific slugs.",
  3488. "type": "array",
  3489. "items": {
  3490. "type": "string"
  3491. },
  3492. "required": false
  3493. },
  3494. "status": {
  3495. "default": "publish",
  3496. "description": "Limit result set to posts assigned one or more statuses.",
  3497. "type": "array",
  3498. "items": {
  3499. "enum": [
  3500. "publish",
  3501. "future",
  3502. "draft",
  3503. "pending",
  3504. "private",
  3505. "trash",
  3506. "auto-draft",
  3507. "inherit",
  3508. "request-pending",
  3509. "request-confirmed",
  3510. "request-failed",
  3511. "request-completed",
  3512. "any"
  3513. ],
  3514. "type": "string"
  3515. },
  3516. "required": false
  3517. }
  3518. }
  3519. },
  3520. {
  3521. "methods": [
  3522. "POST"
  3523. ],
  3524. "args": {
  3525. "date": {
  3526. "description": "The date the object was published, in the site's timezone.",
  3527. "type": [
  3528. "string",
  3529. "null"
  3530. ],
  3531. "format": "date-time",
  3532. "required": false
  3533. },
  3534. "date_gmt": {
  3535. "description": "The date the object was published, as GMT.",
  3536. "type": [
  3537. "string",
  3538. "null"
  3539. ],
  3540. "format": "date-time",
  3541. "required": false
  3542. },
  3543. "slug": {
  3544. "description": "An alphanumeric identifier for the object unique to its type.",
  3545. "type": "string",
  3546. "required": false
  3547. },
  3548. "status": {
  3549. "description": "A named status for the object.",
  3550. "type": "string",
  3551. "enum": [
  3552. "publish",
  3553. "future",
  3554. "draft",
  3555. "pending",
  3556. "private"
  3557. ],
  3558. "required": false
  3559. },
  3560. "password": {
  3561. "description": "A password to protect access to the content and excerpt.",
  3562. "type": "string",
  3563. "required": false
  3564. },
  3565. "title": {
  3566. "description": "The title for the object.",
  3567. "type": "object",
  3568. "properties": {
  3569. "raw": {
  3570. "description": "Title for the object, as it exists in the database.",
  3571. "type": "string",
  3572. "context": [
  3573. "view",
  3574. "edit"
  3575. ]
  3576. }
  3577. },
  3578. "required": false
  3579. },
  3580. "content": {
  3581. "description": "The content for the object.",
  3582. "type": "object",
  3583. "properties": {
  3584. "raw": {
  3585. "description": "Content for the object, as it exists in the database.",
  3586. "type": "string",
  3587. "context": [
  3588. "view",
  3589. "edit"
  3590. ]
  3591. },
  3592. "block_version": {
  3593. "description": "Version of the content block format used by the object.",
  3594. "type": "integer",
  3595. "context": [
  3596. "edit"
  3597. ],
  3598. "readonly": true
  3599. },
  3600. "protected": {
  3601. "description": "Whether the content is protected with a password.",
  3602. "type": "boolean",
  3603. "context": [
  3604. "view",
  3605. "edit",
  3606. "embed"
  3607. ],
  3608. "readonly": true
  3609. }
  3610. },
  3611. "required": false
  3612. },
  3613. "template": {
  3614. "description": "The theme file to use to display the object.",
  3615. "type": "string",
  3616. "required": false
  3617. }
  3618. }
  3619. }
  3620. ],
  3621. "_links": {
  3622. "self": "http://example.org/index.php?rest_route=/wp/v2/blocks"
  3623. }
  3624. },
  3625. "/wp/v2/blocks/(?P<id>[\\d]+)": {
  3626. "namespace": "wp/v2",
  3627. "methods": [
  3628. "GET",
  3629. "POST",
  3630. "PUT",
  3631. "PATCH",
  3632. "DELETE"
  3633. ],
  3634. "endpoints": [
  3635. {
  3636. "methods": [
  3637. "GET"
  3638. ],
  3639. "args": {
  3640. "id": {
  3641. "description": "Unique identifier for the object.",
  3642. "type": "integer",
  3643. "required": false
  3644. },
  3645. "context": {
  3646. "description": "Scope under which the request is made; determines fields present in response.",
  3647. "type": "string",
  3648. "enum": [
  3649. "view",
  3650. "embed",
  3651. "edit"
  3652. ],
  3653. "default": "view",
  3654. "required": false
  3655. },
  3656. "password": {
  3657. "description": "The password for the post if it is password protected.",
  3658. "type": "string",
  3659. "required": false
  3660. }
  3661. }
  3662. },
  3663. {
  3664. "methods": [
  3665. "POST",
  3666. "PUT",
  3667. "PATCH"
  3668. ],
  3669. "args": {
  3670. "id": {
  3671. "description": "Unique identifier for the object.",
  3672. "type": "integer",
  3673. "required": false
  3674. },
  3675. "date": {
  3676. "description": "The date the object was published, in the site's timezone.",
  3677. "type": [
  3678. "string",
  3679. "null"
  3680. ],
  3681. "format": "date-time",
  3682. "required": false
  3683. },
  3684. "date_gmt": {
  3685. "description": "The date the object was published, as GMT.",
  3686. "type": [
  3687. "string",
  3688. "null"
  3689. ],
  3690. "format": "date-time",
  3691. "required": false
  3692. },
  3693. "slug": {
  3694. "description": "An alphanumeric identifier for the object unique to its type.",
  3695. "type": "string",
  3696. "required": false
  3697. },
  3698. "status": {
  3699. "description": "A named status for the object.",
  3700. "type": "string",
  3701. "enum": [
  3702. "publish",
  3703. "future",
  3704. "draft",
  3705. "pending",
  3706. "private"
  3707. ],
  3708. "required": false
  3709. },
  3710. "password": {
  3711. "description": "A password to protect access to the content and excerpt.",
  3712. "type": "string",
  3713. "required": false
  3714. },
  3715. "title": {
  3716. "description": "The title for the object.",
  3717. "type": "object",
  3718. "properties": {
  3719. "raw": {
  3720. "description": "Title for the object, as it exists in the database.",
  3721. "type": "string",
  3722. "context": [
  3723. "view",
  3724. "edit"
  3725. ]
  3726. }
  3727. },
  3728. "required": false
  3729. },
  3730. "content": {
  3731. "description": "The content for the object.",
  3732. "type": "object",
  3733. "properties": {
  3734. "raw": {
  3735. "description": "Content for the object, as it exists in the database.",
  3736. "type": "string",
  3737. "context": [
  3738. "view",
  3739. "edit"
  3740. ]
  3741. },
  3742. "block_version": {
  3743. "description": "Version of the content block format used by the object.",
  3744. "type": "integer",
  3745. "context": [
  3746. "edit"
  3747. ],
  3748. "readonly": true
  3749. },
  3750. "protected": {
  3751. "description": "Whether the content is protected with a password.",
  3752. "type": "boolean",
  3753. "context": [
  3754. "view",
  3755. "edit",
  3756. "embed"
  3757. ],
  3758. "readonly": true
  3759. }
  3760. },
  3761. "required": false
  3762. },
  3763. "template": {
  3764. "description": "The theme file to use to display the object.",
  3765. "type": "string",
  3766. "required": false
  3767. }
  3768. }
  3769. },
  3770. {
  3771. "methods": [
  3772. "DELETE"
  3773. ],
  3774. "args": {
  3775. "id": {
  3776. "description": "Unique identifier for the object.",
  3777. "type": "integer",
  3778. "required": false
  3779. },
  3780. "force": {
  3781. "type": "boolean",
  3782. "default": false,
  3783. "description": "Whether to bypass Trash and force deletion.",
  3784. "required": false
  3785. }
  3786. }
  3787. }
  3788. ]
  3789. },
  3790. "/wp/v2/blocks/(?P<id>[\\d]+)/autosaves": {
  3791. "namespace": "wp/v2",
  3792. "methods": [
  3793. "GET",
  3794. "POST"
  3795. ],
  3796. "endpoints": [
  3797. {
  3798. "methods": [
  3799. "GET"
  3800. ],
  3801. "args": {
  3802. "parent": {
  3803. "description": "The ID for the parent of the object.",
  3804. "type": "integer",
  3805. "required": false
  3806. },
  3807. "context": {
  3808. "description": "Scope under which the request is made; determines fields present in response.",
  3809. "type": "string",
  3810. "enum": [
  3811. "view",
  3812. "embed",
  3813. "edit"
  3814. ],
  3815. "default": "view",
  3816. "required": false
  3817. }
  3818. }
  3819. },
  3820. {
  3821. "methods": [
  3822. "POST"
  3823. ],
  3824. "args": {
  3825. "parent": {
  3826. "description": "The ID for the parent of the object.",
  3827. "type": "integer",
  3828. "required": false
  3829. },
  3830. "date": {
  3831. "description": "The date the object was published, in the site's timezone.",
  3832. "type": [
  3833. "string",
  3834. "null"
  3835. ],
  3836. "format": "date-time",
  3837. "required": false
  3838. },
  3839. "date_gmt": {
  3840. "description": "The date the object was published, as GMT.",
  3841. "type": [
  3842. "string",
  3843. "null"
  3844. ],
  3845. "format": "date-time",
  3846. "required": false
  3847. },
  3848. "slug": {
  3849. "description": "An alphanumeric identifier for the object unique to its type.",
  3850. "type": "string",
  3851. "required": false
  3852. },
  3853. "status": {
  3854. "description": "A named status for the object.",
  3855. "type": "string",
  3856. "enum": [
  3857. "publish",
  3858. "future",
  3859. "draft",
  3860. "pending",
  3861. "private"
  3862. ],
  3863. "required": false
  3864. },
  3865. "password": {
  3866. "description": "A password to protect access to the content and excerpt.",
  3867. "type": "string",
  3868. "required": false
  3869. },
  3870. "title": {
  3871. "description": "The title for the object.",
  3872. "type": "object",
  3873. "properties": {
  3874. "raw": {
  3875. "description": "Title for the object, as it exists in the database.",
  3876. "type": "string",
  3877. "context": [
  3878. "view",
  3879. "edit"
  3880. ]
  3881. }
  3882. },
  3883. "required": false
  3884. },
  3885. "content": {
  3886. "description": "The content for the object.",
  3887. "type": "object",
  3888. "properties": {
  3889. "raw": {
  3890. "description": "Content for the object, as it exists in the database.",
  3891. "type": "string",
  3892. "context": [
  3893. "view",
  3894. "edit"
  3895. ]
  3896. },
  3897. "block_version": {
  3898. "description": "Version of the content block format used by the object.",
  3899. "type": "integer",
  3900. "context": [
  3901. "edit"
  3902. ],
  3903. "readonly": true
  3904. },
  3905. "protected": {
  3906. "description": "Whether the content is protected with a password.",
  3907. "type": "boolean",
  3908. "context": [
  3909. "view",
  3910. "edit",
  3911. "embed"
  3912. ],
  3913. "readonly": true
  3914. }
  3915. },
  3916. "required": false
  3917. },
  3918. "template": {
  3919. "description": "The theme file to use to display the object.",
  3920. "type": "string",
  3921. "required": false
  3922. }
  3923. }
  3924. }
  3925. ]
  3926. },
  3927. "/wp/v2/blocks/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {
  3928. "namespace": "wp/v2",
  3929. "methods": [
  3930. "GET"
  3931. ],
  3932. "endpoints": [
  3933. {
  3934. "methods": [
  3935. "GET"
  3936. ],
  3937. "args": {
  3938. "parent": {
  3939. "description": "The ID for the parent of the object.",
  3940. "type": "integer",
  3941. "required": false
  3942. },
  3943. "id": {
  3944. "description": "The ID for the object.",
  3945. "type": "integer",
  3946. "required": false
  3947. },
  3948. "context": {
  3949. "description": "Scope under which the request is made; determines fields present in response.",
  3950. "type": "string",
  3951. "enum": [
  3952. "view",
  3953. "embed",
  3954. "edit"
  3955. ],
  3956. "default": "view",
  3957. "required": false
  3958. }
  3959. }
  3960. }
  3961. ]
  3962. },
  3963. "/wp/v2/types": {
  3964. "namespace": "wp/v2",
  3965. "methods": [
  3966. "GET"
  3967. ],
  3968. "endpoints": [
  3969. {
  3970. "methods": [
  3971. "GET"
  3972. ],
  3973. "args": {
  3974. "context": {
  3975. "description": "Scope under which the request is made; determines fields present in response.",
  3976. "type": "string",
  3977. "enum": [
  3978. "view",
  3979. "embed",
  3980. "edit"
  3981. ],
  3982. "default": "view",
  3983. "required": false
  3984. }
  3985. }
  3986. }
  3987. ],
  3988. "_links": {
  3989. "self": "http://example.org/index.php?rest_route=/wp/v2/types"
  3990. }
  3991. },
  3992. "/wp/v2/types/(?P<type>[\\w-]+)": {
  3993. "namespace": "wp/v2",
  3994. "methods": [
  3995. "GET"
  3996. ],
  3997. "endpoints": [
  3998. {
  3999. "methods": [
  4000. "GET"
  4001. ],
  4002. "args": {
  4003. "type": {
  4004. "description": "An alphanumeric identifier for the post type.",
  4005. "type": "string",
  4006. "required": false
  4007. },
  4008. "context": {
  4009. "description": "Scope under which the request is made; determines fields present in response.",
  4010. "type": "string",
  4011. "enum": [
  4012. "view",
  4013. "embed",
  4014. "edit"
  4015. ],
  4016. "default": "view",
  4017. "required": false
  4018. }
  4019. }
  4020. }
  4021. ]
  4022. },
  4023. "/wp/v2/statuses": {
  4024. "namespace": "wp/v2",
  4025. "methods": [
  4026. "GET"
  4027. ],
  4028. "endpoints": [
  4029. {
  4030. "methods": [
  4031. "GET"
  4032. ],
  4033. "args": {
  4034. "context": {
  4035. "description": "Scope under which the request is made; determines fields present in response.",
  4036. "type": "string",
  4037. "enum": [
  4038. "view",
  4039. "embed",
  4040. "edit"
  4041. ],
  4042. "default": "view",
  4043. "required": false
  4044. }
  4045. }
  4046. }
  4047. ],
  4048. "_links": {
  4049. "self": "http://example.org/index.php?rest_route=/wp/v2/statuses"
  4050. }
  4051. },
  4052. "/wp/v2/statuses/(?P<status>[\\w-]+)": {
  4053. "namespace": "wp/v2",
  4054. "methods": [
  4055. "GET"
  4056. ],
  4057. "endpoints": [
  4058. {
  4059. "methods": [
  4060. "GET"
  4061. ],
  4062. "args": {
  4063. "status": {
  4064. "description": "An alphanumeric identifier for the status.",
  4065. "type": "string",
  4066. "required": false
  4067. },
  4068. "context": {
  4069. "description": "Scope under which the request is made; determines fields present in response.",
  4070. "type": "string",
  4071. "enum": [
  4072. "view",
  4073. "embed",
  4074. "edit"
  4075. ],
  4076. "default": "view",
  4077. "required": false
  4078. }
  4079. }
  4080. }
  4081. ]
  4082. },
  4083. "/wp/v2/taxonomies": {
  4084. "namespace": "wp/v2",
  4085. "methods": [
  4086. "GET"
  4087. ],
  4088. "endpoints": [
  4089. {
  4090. "methods": [
  4091. "GET"
  4092. ],
  4093. "args": {
  4094. "context": {
  4095. "description": "Scope under which the request is made; determines fields present in response.",
  4096. "type": "string",
  4097. "enum": [
  4098. "view",
  4099. "embed",
  4100. "edit"
  4101. ],
  4102. "default": "view",
  4103. "required": false
  4104. },
  4105. "type": {
  4106. "description": "Limit results to taxonomies associated with a specific post type.",
  4107. "type": "string",
  4108. "required": false
  4109. }
  4110. }
  4111. }
  4112. ],
  4113. "_links": {
  4114. "self": "http://example.org/index.php?rest_route=/wp/v2/taxonomies"
  4115. }
  4116. },
  4117. "/wp/v2/taxonomies/(?P<taxonomy>[\\w-]+)": {
  4118. "namespace": "wp/v2",
  4119. "methods": [
  4120. "GET"
  4121. ],
  4122. "endpoints": [
  4123. {
  4124. "methods": [
  4125. "GET"
  4126. ],
  4127. "args": {
  4128. "taxonomy": {
  4129. "description": "An alphanumeric identifier for the taxonomy.",
  4130. "type": "string",
  4131. "required": false
  4132. },
  4133. "context": {
  4134. "description": "Scope under which the request is made; determines fields present in response.",
  4135. "type": "string",
  4136. "enum": [
  4137. "view",
  4138. "embed",
  4139. "edit"
  4140. ],
  4141. "default": "view",
  4142. "required": false
  4143. }
  4144. }
  4145. }
  4146. ]
  4147. },
  4148. "/wp/v2/categories": {
  4149. "namespace": "wp/v2",
  4150. "methods": [
  4151. "GET",
  4152. "POST"
  4153. ],
  4154. "endpoints": [
  4155. {
  4156. "methods": [
  4157. "GET"
  4158. ],
  4159. "args": {
  4160. "context": {
  4161. "description": "Scope under which the request is made; determines fields present in response.",
  4162. "type": "string",
  4163. "enum": [
  4164. "view",
  4165. "embed",
  4166. "edit"
  4167. ],
  4168. "default": "view",
  4169. "required": false
  4170. },
  4171. "page": {
  4172. "description": "Current page of the collection.",
  4173. "type": "integer",
  4174. "default": 1,
  4175. "minimum": 1,
  4176. "required": false
  4177. },
  4178. "per_page": {
  4179. "description": "Maximum number of items to be returned in result set.",
  4180. "type": "integer",
  4181. "default": 10,
  4182. "minimum": 1,
  4183. "maximum": 100,
  4184. "required": false
  4185. },
  4186. "search": {
  4187. "description": "Limit results to those matching a string.",
  4188. "type": "string",
  4189. "required": false
  4190. },
  4191. "exclude": {
  4192. "description": "Ensure result set excludes specific IDs.",
  4193. "type": "array",
  4194. "items": {
  4195. "type": "integer"
  4196. },
  4197. "default": [],
  4198. "required": false
  4199. },
  4200. "include": {
  4201. "description": "Limit result set to specific IDs.",
  4202. "type": "array",
  4203. "items": {
  4204. "type": "integer"
  4205. },
  4206. "default": [],
  4207. "required": false
  4208. },
  4209. "order": {
  4210. "description": "Order sort attribute ascending or descending.",
  4211. "type": "string",
  4212. "default": "asc",
  4213. "enum": [
  4214. "asc",
  4215. "desc"
  4216. ],
  4217. "required": false
  4218. },
  4219. "orderby": {
  4220. "description": "Sort collection by term attribute.",
  4221. "type": "string",
  4222. "default": "name",
  4223. "enum": [
  4224. "id",
  4225. "include",
  4226. "name",
  4227. "slug",
  4228. "include_slugs",
  4229. "term_group",
  4230. "description",
  4231. "count"
  4232. ],
  4233. "required": false
  4234. },
  4235. "hide_empty": {
  4236. "description": "Whether to hide terms not assigned to any posts.",
  4237. "type": "boolean",
  4238. "default": false,
  4239. "required": false
  4240. },
  4241. "parent": {
  4242. "description": "Limit result set to terms assigned to a specific parent.",
  4243. "type": "integer",
  4244. "required": false
  4245. },
  4246. "post": {
  4247. "description": "Limit result set to terms assigned to a specific post.",
  4248. "type": "integer",
  4249. "default": null,
  4250. "required": false
  4251. },
  4252. "slug": {
  4253. "description": "Limit result set to terms with one or more specific slugs.",
  4254. "type": "array",
  4255. "items": {
  4256. "type": "string"
  4257. },
  4258. "required": false
  4259. }
  4260. }
  4261. },
  4262. {
  4263. "methods": [
  4264. "POST"
  4265. ],
  4266. "args": {
  4267. "description": {
  4268. "description": "HTML description of the term.",
  4269. "type": "string",
  4270. "required": false
  4271. },
  4272. "name": {
  4273. "description": "HTML title for the term.",
  4274. "type": "string",
  4275. "required": true
  4276. },
  4277. "slug": {
  4278. "description": "An alphanumeric identifier for the term unique to its type.",
  4279. "type": "string",
  4280. "required": false
  4281. },
  4282. "parent": {
  4283. "description": "The parent term ID.",
  4284. "type": "integer",
  4285. "required": false
  4286. },
  4287. "meta": {
  4288. "description": "Meta fields.",
  4289. "type": "object",
  4290. "properties": [],
  4291. "required": false
  4292. }
  4293. }
  4294. }
  4295. ],
  4296. "_links": {
  4297. "self": "http://example.org/index.php?rest_route=/wp/v2/categories"
  4298. }
  4299. },
  4300. "/wp/v2/categories/(?P<id>[\\d]+)": {
  4301. "namespace": "wp/v2",
  4302. "methods": [
  4303. "GET",
  4304. "POST",
  4305. "PUT",
  4306. "PATCH",
  4307. "DELETE"
  4308. ],
  4309. "endpoints": [
  4310. {
  4311. "methods": [
  4312. "GET"
  4313. ],
  4314. "args": {
  4315. "id": {
  4316. "description": "Unique identifier for the term.",
  4317. "type": "integer",
  4318. "required": false
  4319. },
  4320. "context": {
  4321. "description": "Scope under which the request is made; determines fields present in response.",
  4322. "type": "string",
  4323. "enum": [
  4324. "view",
  4325. "embed",
  4326. "edit"
  4327. ],
  4328. "default": "view",
  4329. "required": false
  4330. }
  4331. }
  4332. },
  4333. {
  4334. "methods": [
  4335. "POST",
  4336. "PUT",
  4337. "PATCH"
  4338. ],
  4339. "args": {
  4340. "id": {
  4341. "description": "Unique identifier for the term.",
  4342. "type": "integer",
  4343. "required": false
  4344. },
  4345. "description": {
  4346. "description": "HTML description of the term.",
  4347. "type": "string",
  4348. "required": false
  4349. },
  4350. "name": {
  4351. "description": "HTML title for the term.",
  4352. "type": "string",
  4353. "required": false
  4354. },
  4355. "slug": {
  4356. "description": "An alphanumeric identifier for the term unique to its type.",
  4357. "type": "string",
  4358. "required": false
  4359. },
  4360. "parent": {
  4361. "description": "The parent term ID.",
  4362. "type": "integer",
  4363. "required": false
  4364. },
  4365. "meta": {
  4366. "description": "Meta fields.",
  4367. "type": "object",
  4368. "properties": [],
  4369. "required": false
  4370. }
  4371. }
  4372. },
  4373. {
  4374. "methods": [
  4375. "DELETE"
  4376. ],
  4377. "args": {
  4378. "id": {
  4379. "description": "Unique identifier for the term.",
  4380. "type": "integer",
  4381. "required": false
  4382. },
  4383. "force": {
  4384. "type": "boolean",
  4385. "default": false,
  4386. "description": "Required to be true, as terms do not support trashing.",
  4387. "required": false
  4388. }
  4389. }
  4390. }
  4391. ]
  4392. },
  4393. "/wp/v2/tags": {
  4394. "namespace": "wp/v2",
  4395. "methods": [
  4396. "GET",
  4397. "POST"
  4398. ],
  4399. "endpoints": [
  4400. {
  4401. "methods": [
  4402. "GET"
  4403. ],
  4404. "args": {
  4405. "context": {
  4406. "description": "Scope under which the request is made; determines fields present in response.",
  4407. "type": "string",
  4408. "enum": [
  4409. "view",
  4410. "embed",
  4411. "edit"
  4412. ],
  4413. "default": "view",
  4414. "required": false
  4415. },
  4416. "page": {
  4417. "description": "Current page of the collection.",
  4418. "type": "integer",
  4419. "default": 1,
  4420. "minimum": 1,
  4421. "required": false
  4422. },
  4423. "per_page": {
  4424. "description": "Maximum number of items to be returned in result set.",
  4425. "type": "integer",
  4426. "default": 10,
  4427. "minimum": 1,
  4428. "maximum": 100,
  4429. "required": false
  4430. },
  4431. "search": {
  4432. "description": "Limit results to those matching a string.",
  4433. "type": "string",
  4434. "required": false
  4435. },
  4436. "exclude": {
  4437. "description": "Ensure result set excludes specific IDs.",
  4438. "type": "array",
  4439. "items": {
  4440. "type": "integer"
  4441. },
  4442. "default": [],
  4443. "required": false
  4444. },
  4445. "include": {
  4446. "description": "Limit result set to specific IDs.",
  4447. "type": "array",
  4448. "items": {
  4449. "type": "integer"
  4450. },
  4451. "default": [],
  4452. "required": false
  4453. },
  4454. "offset": {
  4455. "description": "Offset the result set by a specific number of items.",
  4456. "type": "integer",
  4457. "required": false
  4458. },
  4459. "order": {
  4460. "description": "Order sort attribute ascending or descending.",
  4461. "type": "string",
  4462. "default": "asc",
  4463. "enum": [
  4464. "asc",
  4465. "desc"
  4466. ],
  4467. "required": false
  4468. },
  4469. "orderby": {
  4470. "description": "Sort collection by term attribute.",
  4471. "type": "string",
  4472. "default": "name",
  4473. "enum": [
  4474. "id",
  4475. "include",
  4476. "name",
  4477. "slug",
  4478. "include_slugs",
  4479. "term_group",
  4480. "description",
  4481. "count"
  4482. ],
  4483. "required": false
  4484. },
  4485. "hide_empty": {
  4486. "description": "Whether to hide terms not assigned to any posts.",
  4487. "type": "boolean",
  4488. "default": false,
  4489. "required": false
  4490. },
  4491. "post": {
  4492. "description": "Limit result set to terms assigned to a specific post.",
  4493. "type": "integer",
  4494. "default": null,
  4495. "required": false
  4496. },
  4497. "slug": {
  4498. "description": "Limit result set to terms with one or more specific slugs.",
  4499. "type": "array",
  4500. "items": {
  4501. "type": "string"
  4502. },
  4503. "required": false
  4504. }
  4505. }
  4506. },
  4507. {
  4508. "methods": [
  4509. "POST"
  4510. ],
  4511. "args": {
  4512. "description": {
  4513. "description": "HTML description of the term.",
  4514. "type": "string",
  4515. "required": false
  4516. },
  4517. "name": {
  4518. "description": "HTML title for the term.",
  4519. "type": "string",
  4520. "required": true
  4521. },
  4522. "slug": {
  4523. "description": "An alphanumeric identifier for the term unique to its type.",
  4524. "type": "string",
  4525. "required": false
  4526. },
  4527. "meta": {
  4528. "description": "Meta fields.",
  4529. "type": "object",
  4530. "properties": [],
  4531. "required": false
  4532. }
  4533. }
  4534. }
  4535. ],
  4536. "_links": {
  4537. "self": "http://example.org/index.php?rest_route=/wp/v2/tags"
  4538. }
  4539. },
  4540. "/wp/v2/tags/(?P<id>[\\d]+)": {
  4541. "namespace": "wp/v2",
  4542. "methods": [
  4543. "GET",
  4544. "POST",
  4545. "PUT",
  4546. "PATCH",
  4547. "DELETE"
  4548. ],
  4549. "endpoints": [
  4550. {
  4551. "methods": [
  4552. "GET"
  4553. ],
  4554. "args": {
  4555. "id": {
  4556. "description": "Unique identifier for the term.",
  4557. "type": "integer",
  4558. "required": false
  4559. },
  4560. "context": {
  4561. "description": "Scope under which the request is made; determines fields present in response.",
  4562. "type": "string",
  4563. "enum": [
  4564. "view",
  4565. "embed",
  4566. "edit"
  4567. ],
  4568. "default": "view",
  4569. "required": false
  4570. }
  4571. }
  4572. },
  4573. {
  4574. "methods": [
  4575. "POST",
  4576. "PUT",
  4577. "PATCH"
  4578. ],
  4579. "args": {
  4580. "id": {
  4581. "description": "Unique identifier for the term.",
  4582. "type": "integer",
  4583. "required": false
  4584. },
  4585. "description": {
  4586. "description": "HTML description of the term.",
  4587. "type": "string",
  4588. "required": false
  4589. },
  4590. "name": {
  4591. "description": "HTML title for the term.",
  4592. "type": "string",
  4593. "required": false
  4594. },
  4595. "slug": {
  4596. "description": "An alphanumeric identifier for the term unique to its type.",
  4597. "type": "string",
  4598. "required": false
  4599. },
  4600. "meta": {
  4601. "description": "Meta fields.",
  4602. "type": "object",
  4603. "properties": [],
  4604. "required": false
  4605. }
  4606. }
  4607. },
  4608. {
  4609. "methods": [
  4610. "DELETE"
  4611. ],
  4612. "args": {
  4613. "id": {
  4614. "description": "Unique identifier for the term.",
  4615. "type": "integer",
  4616. "required": false
  4617. },
  4618. "force": {
  4619. "type": "boolean",
  4620. "default": false,
  4621. "description": "Required to be true, as terms do not support trashing.",
  4622. "required": false
  4623. }
  4624. }
  4625. }
  4626. ]
  4627. },
  4628. "/wp/v2/users": {
  4629. "namespace": "wp/v2",
  4630. "methods": [
  4631. "GET",
  4632. "POST"
  4633. ],
  4634. "endpoints": [
  4635. {
  4636. "methods": [
  4637. "GET"
  4638. ],
  4639. "args": {
  4640. "context": {
  4641. "description": "Scope under which the request is made; determines fields present in response.",
  4642. "type": "string",
  4643. "enum": [
  4644. "view",
  4645. "embed",
  4646. "edit"
  4647. ],
  4648. "default": "view",
  4649. "required": false
  4650. },
  4651. "page": {
  4652. "description": "Current page of the collection.",
  4653. "type": "integer",
  4654. "default": 1,
  4655. "minimum": 1,
  4656. "required": false
  4657. },
  4658. "per_page": {
  4659. "description": "Maximum number of items to be returned in result set.",
  4660. "type": "integer",
  4661. "default": 10,
  4662. "minimum": 1,
  4663. "maximum": 100,
  4664. "required": false
  4665. },
  4666. "search": {
  4667. "description": "Limit results to those matching a string.",
  4668. "type": "string",
  4669. "required": false
  4670. },
  4671. "exclude": {
  4672. "description": "Ensure result set excludes specific IDs.",
  4673. "type": "array",
  4674. "items": {
  4675. "type": "integer"
  4676. },
  4677. "default": [],
  4678. "required": false
  4679. },
  4680. "include": {
  4681. "description": "Limit result set to specific IDs.",
  4682. "type": "array",
  4683. "items": {
  4684. "type": "integer"
  4685. },
  4686. "default": [],
  4687. "required": false
  4688. },
  4689. "offset": {
  4690. "description": "Offset the result set by a specific number of items.",
  4691. "type": "integer",
  4692. "required": false
  4693. },
  4694. "order": {
  4695. "default": "asc",
  4696. "description": "Order sort attribute ascending or descending.",
  4697. "enum": [
  4698. "asc",
  4699. "desc"
  4700. ],
  4701. "type": "string",
  4702. "required": false
  4703. },
  4704. "orderby": {
  4705. "default": "name",
  4706. "description": "Sort collection by object attribute.",
  4707. "enum": [
  4708. "id",
  4709. "include",
  4710. "name",
  4711. "registered_date",
  4712. "slug",
  4713. "include_slugs",
  4714. "email",
  4715. "url"
  4716. ],
  4717. "type": "string",
  4718. "required": false
  4719. },
  4720. "slug": {
  4721. "description": "Limit result set to users with one or more specific slugs.",
  4722. "type": "array",
  4723. "items": {
  4724. "type": "string"
  4725. },
  4726. "required": false
  4727. },
  4728. "roles": {
  4729. "description": "Limit result set to users matching at least one specific role provided. Accepts csv list or single role.",
  4730. "type": "array",
  4731. "items": {
  4732. "type": "string"
  4733. },
  4734. "required": false
  4735. },
  4736. "who": {
  4737. "description": "Limit result set to users who are considered authors.",
  4738. "type": "string",
  4739. "enum": [
  4740. "authors"
  4741. ],
  4742. "required": false
  4743. }
  4744. }
  4745. },
  4746. {
  4747. "methods": [
  4748. "POST"
  4749. ],
  4750. "args": {
  4751. "username": {
  4752. "description": "Login name for the user.",
  4753. "type": "string",
  4754. "required": true
  4755. },
  4756. "name": {
  4757. "description": "Display name for the user.",
  4758. "type": "string",
  4759. "required": false
  4760. },
  4761. "first_name": {
  4762. "description": "First name for the user.",
  4763. "type": "string",
  4764. "required": false
  4765. },
  4766. "last_name": {
  4767. "description": "Last name for the user.",
  4768. "type": "string",
  4769. "required": false
  4770. },
  4771. "email": {
  4772. "description": "The email address for the user.",
  4773. "type": "string",
  4774. "format": "email",
  4775. "required": true
  4776. },
  4777. "url": {
  4778. "description": "URL of the user.",
  4779. "type": "string",
  4780. "format": "uri",
  4781. "required": false
  4782. },
  4783. "description": {
  4784. "description": "Description of the user.",
  4785. "type": "string",
  4786. "required": false
  4787. },
  4788. "locale": {
  4789. "description": "Locale for the user.",
  4790. "type": "string",
  4791. "enum": [
  4792. "",
  4793. "en_US",
  4794. "de_DE",
  4795. "en_GB",
  4796. "es_ES",
  4797. "ja_JP"
  4798. ],
  4799. "required": false
  4800. },
  4801. "nickname": {
  4802. "description": "The nickname for the user.",
  4803. "type": "string",
  4804. "required": false
  4805. },
  4806. "slug": {
  4807. "description": "An alphanumeric identifier for the user.",
  4808. "type": "string",
  4809. "required": false
  4810. },
  4811. "roles": {
  4812. "description": "Roles assigned to the user.",
  4813. "type": "array",
  4814. "items": {
  4815. "type": "string"
  4816. },
  4817. "required": false
  4818. },
  4819. "password": {
  4820. "description": "Password for the user (never included).",
  4821. "type": "string",
  4822. "required": true
  4823. },
  4824. "meta": {
  4825. "description": "Meta fields.",
  4826. "type": "object",
  4827. "properties": [],
  4828. "required": false
  4829. }
  4830. }
  4831. }
  4832. ],
  4833. "_links": {
  4834. "self": "http://example.org/index.php?rest_route=/wp/v2/users"
  4835. }
  4836. },
  4837. "/wp/v2/users/(?P<id>[\\d]+)": {
  4838. "namespace": "wp/v2",
  4839. "methods": [
  4840. "GET",
  4841. "POST",
  4842. "PUT",
  4843. "PATCH",
  4844. "DELETE"
  4845. ],
  4846. "endpoints": [
  4847. {
  4848. "methods": [
  4849. "GET"
  4850. ],
  4851. "args": {
  4852. "id": {
  4853. "description": "Unique identifier for the user.",
  4854. "type": "integer",
  4855. "required": false
  4856. },
  4857. "context": {
  4858. "description": "Scope under which the request is made; determines fields present in response.",
  4859. "type": "string",
  4860. "enum": [
  4861. "view",
  4862. "embed",
  4863. "edit"
  4864. ],
  4865. "default": "view",
  4866. "required": false
  4867. }
  4868. }
  4869. },
  4870. {
  4871. "methods": [
  4872. "POST",
  4873. "PUT",
  4874. "PATCH"
  4875. ],
  4876. "args": {
  4877. "id": {
  4878. "description": "Unique identifier for the user.",
  4879. "type": "integer",
  4880. "required": false
  4881. },
  4882. "username": {
  4883. "description": "Login name for the user.",
  4884. "type": "string",
  4885. "required": false
  4886. },
  4887. "name": {
  4888. "description": "Display name for the user.",
  4889. "type": "string",
  4890. "required": false
  4891. },
  4892. "first_name": {
  4893. "description": "First name for the user.",
  4894. "type": "string",
  4895. "required": false
  4896. },
  4897. "last_name": {
  4898. "description": "Last name for the user.",
  4899. "type": "string",
  4900. "required": false
  4901. },
  4902. "email": {
  4903. "description": "The email address for the user.",
  4904. "type": "string",
  4905. "format": "email",
  4906. "required": false
  4907. },
  4908. "url": {
  4909. "description": "URL of the user.",
  4910. "type": "string",
  4911. "format": "uri",
  4912. "required": false
  4913. },
  4914. "description": {
  4915. "description": "Description of the user.",
  4916. "type": "string",
  4917. "required": false
  4918. },
  4919. "locale": {
  4920. "description": "Locale for the user.",
  4921. "type": "string",
  4922. "enum": [
  4923. "",
  4924. "en_US",
  4925. "de_DE",
  4926. "en_GB",
  4927. "es_ES",
  4928. "ja_JP"
  4929. ],
  4930. "required": false
  4931. },
  4932. "nickname": {
  4933. "description": "The nickname for the user.",
  4934. "type": "string",
  4935. "required": false
  4936. },
  4937. "slug": {
  4938. "description": "An alphanumeric identifier for the user.",
  4939. "type": "string",
  4940. "required": false
  4941. },
  4942. "roles": {
  4943. "description": "Roles assigned to the user.",
  4944. "type": "array",
  4945. "items": {
  4946. "type": "string"
  4947. },
  4948. "required": false
  4949. },
  4950. "password": {
  4951. "description": "Password for the user (never included).",
  4952. "type": "string",
  4953. "required": false
  4954. },
  4955. "meta": {
  4956. "description": "Meta fields.",
  4957. "type": "object",
  4958. "properties": [],
  4959. "required": false
  4960. }
  4961. }
  4962. },
  4963. {
  4964. "methods": [
  4965. "DELETE"
  4966. ],
  4967. "args": {
  4968. "id": {
  4969. "description": "Unique identifier for the user.",
  4970. "type": "integer",
  4971. "required": false
  4972. },
  4973. "force": {
  4974. "type": "boolean",
  4975. "default": false,
  4976. "description": "Required to be true, as users do not support trashing.",
  4977. "required": false
  4978. },
  4979. "reassign": {
  4980. "type": "integer",
  4981. "description": "Reassign the deleted user's posts and links to this user ID.",
  4982. "required": true
  4983. }
  4984. }
  4985. }
  4986. ]
  4987. },
  4988. "/wp/v2/users/me": {
  4989. "namespace": "wp/v2",
  4990. "methods": [
  4991. "GET",
  4992. "POST",
  4993. "PUT",
  4994. "PATCH",
  4995. "DELETE"
  4996. ],
  4997. "endpoints": [
  4998. {
  4999. "methods": [
  5000. "GET"
  5001. ],
  5002. "args": {
  5003. "context": {
  5004. "description": "Scope under which the request is made; determines fields present in response.",
  5005. "type": "string",
  5006. "enum": [
  5007. "view",
  5008. "embed",
  5009. "edit"
  5010. ],
  5011. "default": "view",
  5012. "required": false
  5013. }
  5014. }
  5015. },
  5016. {
  5017. "methods": [
  5018. "POST",
  5019. "PUT",
  5020. "PATCH"
  5021. ],
  5022. "args": {
  5023. "username": {
  5024. "description": "Login name for the user.",
  5025. "type": "string",
  5026. "required": false
  5027. },
  5028. "name": {
  5029. "description": "Display name for the user.",
  5030. "type": "string",
  5031. "required": false
  5032. },
  5033. "first_name": {
  5034. "description": "First name for the user.",
  5035. "type": "string",
  5036. "required": false
  5037. },
  5038. "last_name": {
  5039. "description": "Last name for the user.",
  5040. "type": "string",
  5041. "required": false
  5042. },
  5043. "email": {
  5044. "description": "The email address for the user.",
  5045. "type": "string",
  5046. "format": "email",
  5047. "required": false
  5048. },
  5049. "url": {
  5050. "description": "URL of the user.",
  5051. "type": "string",
  5052. "format": "uri",
  5053. "required": false
  5054. },
  5055. "description": {
  5056. "description": "Description of the user.",
  5057. "type": "string",
  5058. "required": false
  5059. },
  5060. "locale": {
  5061. "description": "Locale for the user.",
  5062. "type": "string",
  5063. "enum": [
  5064. "",
  5065. "en_US",
  5066. "de_DE",
  5067. "en_GB",
  5068. "es_ES",
  5069. "ja_JP"
  5070. ],
  5071. "required": false
  5072. },
  5073. "nickname": {
  5074. "description": "The nickname for the user.",
  5075. "type": "string",
  5076. "required": false
  5077. },
  5078. "slug": {
  5079. "description": "An alphanumeric identifier for the user.",
  5080. "type": "string",
  5081. "required": false
  5082. },
  5083. "roles": {
  5084. "description": "Roles assigned to the user.",
  5085. "type": "array",
  5086. "items": {
  5087. "type": "string"
  5088. },
  5089. "required": false
  5090. },
  5091. "password": {
  5092. "description": "Password for the user (never included).",
  5093. "type": "string",
  5094. "required": false
  5095. },
  5096. "meta": {
  5097. "description": "Meta fields.",
  5098. "type": "object",
  5099. "properties": [],
  5100. "required": false
  5101. }
  5102. }
  5103. },
  5104. {
  5105. "methods": [
  5106. "DELETE"
  5107. ],
  5108. "args": {
  5109. "force": {
  5110. "type": "boolean",
  5111. "default": false,
  5112. "description": "Required to be true, as users do not support trashing.",
  5113. "required": false
  5114. },
  5115. "reassign": {
  5116. "type": "integer",
  5117. "description": "Reassign the deleted user's posts and links to this user ID.",
  5118. "required": true
  5119. }
  5120. }
  5121. }
  5122. ],
  5123. "_links": {
  5124. "self": "http://example.org/index.php?rest_route=/wp/v2/users/me"
  5125. }
  5126. },
  5127. "/wp/v2/users/(?P<user_id>(?:[\\d]+|me))/application-passwords": {
  5128. "namespace": "wp/v2",
  5129. "methods": [
  5130. "GET",
  5131. "POST",
  5132. "DELETE"
  5133. ],
  5134. "endpoints": [
  5135. {
  5136. "methods": [
  5137. "GET"
  5138. ],
  5139. "args": {
  5140. "context": {
  5141. "description": "Scope under which the request is made; determines fields present in response.",
  5142. "type": "string",
  5143. "enum": [
  5144. "view",
  5145. "embed",
  5146. "edit"
  5147. ],
  5148. "default": "view",
  5149. "required": false
  5150. }
  5151. }
  5152. },
  5153. {
  5154. "methods": [
  5155. "POST"
  5156. ],
  5157. "args": {
  5158. "app_id": {
  5159. "description": "A uuid provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.",
  5160. "type": "string",
  5161. "format": "uuid",
  5162. "required": false
  5163. },
  5164. "name": {
  5165. "description": "The name of the application password.",
  5166. "type": "string",
  5167. "minLength": 1,
  5168. "pattern": ".*\\S.*",
  5169. "required": true
  5170. }
  5171. }
  5172. },
  5173. {
  5174. "methods": [
  5175. "DELETE"
  5176. ],
  5177. "args": []
  5178. }
  5179. ]
  5180. },
  5181. "/wp/v2/users/(?P<user_id>(?:[\\d]+|me))/application-passwords/introspect": {
  5182. "namespace": "wp/v2",
  5183. "methods": [
  5184. "GET"
  5185. ],
  5186. "endpoints": [
  5187. {
  5188. "methods": [
  5189. "GET"
  5190. ],
  5191. "args": {
  5192. "context": {
  5193. "description": "Scope under which the request is made; determines fields present in response.",
  5194. "type": "string",
  5195. "enum": [
  5196. "view",
  5197. "embed",
  5198. "edit"
  5199. ],
  5200. "default": "view",
  5201. "required": false
  5202. }
  5203. }
  5204. }
  5205. ]
  5206. },
  5207. "/wp/v2/users/(?P<user_id>(?:[\\d]+|me))/application-passwords/(?P<uuid>[\\w\\-]+)": {
  5208. "namespace": "wp/v2",
  5209. "methods": [
  5210. "GET",
  5211. "POST",
  5212. "PUT",
  5213. "PATCH",
  5214. "DELETE"
  5215. ],
  5216. "endpoints": [
  5217. {
  5218. "methods": [
  5219. "GET"
  5220. ],
  5221. "args": {
  5222. "context": {
  5223. "description": "Scope under which the request is made; determines fields present in response.",
  5224. "type": "string",
  5225. "enum": [
  5226. "view",
  5227. "embed",
  5228. "edit"
  5229. ],
  5230. "default": "view",
  5231. "required": false
  5232. }
  5233. }
  5234. },
  5235. {
  5236. "methods": [
  5237. "POST",
  5238. "PUT",
  5239. "PATCH"
  5240. ],
  5241. "args": {
  5242. "app_id": {
  5243. "description": "A uuid provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.",
  5244. "type": "string",
  5245. "format": "uuid",
  5246. "required": false
  5247. },
  5248. "name": {
  5249. "description": "The name of the application password.",
  5250. "type": "string",
  5251. "minLength": 1,
  5252. "pattern": ".*\\S.*",
  5253. "required": false
  5254. }
  5255. }
  5256. },
  5257. {
  5258. "methods": [
  5259. "DELETE"
  5260. ],
  5261. "args": []
  5262. }
  5263. ]
  5264. },
  5265. "/wp/v2/comments": {
  5266. "namespace": "wp/v2",
  5267. "methods": [
  5268. "GET",
  5269. "POST"
  5270. ],
  5271. "endpoints": [
  5272. {
  5273. "methods": [
  5274. "GET"
  5275. ],
  5276. "args": {
  5277. "context": {
  5278. "description": "Scope under which the request is made; determines fields present in response.",
  5279. "type": "string",
  5280. "enum": [
  5281. "view",
  5282. "embed",
  5283. "edit"
  5284. ],
  5285. "default": "view",
  5286. "required": false
  5287. },
  5288. "page": {
  5289. "description": "Current page of the collection.",
  5290. "type": "integer",
  5291. "default": 1,
  5292. "minimum": 1,
  5293. "required": false
  5294. },
  5295. "per_page": {
  5296. "description": "Maximum number of items to be returned in result set.",
  5297. "type": "integer",
  5298. "default": 10,
  5299. "minimum": 1,
  5300. "maximum": 100,
  5301. "required": false
  5302. },
  5303. "search": {
  5304. "description": "Limit results to those matching a string.",
  5305. "type": "string",
  5306. "required": false
  5307. },
  5308. "after": {
  5309. "description": "Limit response to comments published after a given ISO8601 compliant date.",
  5310. "type": "string",
  5311. "format": "date-time",
  5312. "required": false
  5313. },
  5314. "author": {
  5315. "description": "Limit result set to comments assigned to specific user IDs. Requires authorization.",
  5316. "type": "array",
  5317. "items": {
  5318. "type": "integer"
  5319. },
  5320. "required": false
  5321. },
  5322. "author_exclude": {
  5323. "description": "Ensure result set excludes comments assigned to specific user IDs. Requires authorization.",
  5324. "type": "array",
  5325. "items": {
  5326. "type": "integer"
  5327. },
  5328. "required": false
  5329. },
  5330. "author_email": {
  5331. "default": null,
  5332. "description": "Limit result set to that from a specific author email. Requires authorization.",
  5333. "format": "email",
  5334. "type": "string",
  5335. "required": false
  5336. },
  5337. "before": {
  5338. "description": "Limit response to comments published before a given ISO8601 compliant date.",
  5339. "type": "string",
  5340. "format": "date-time",
  5341. "required": false
  5342. },
  5343. "exclude": {
  5344. "description": "Ensure result set excludes specific IDs.",
  5345. "type": "array",
  5346. "items": {
  5347. "type": "integer"
  5348. },
  5349. "default": [],
  5350. "required": false
  5351. },
  5352. "include": {
  5353. "description": "Limit result set to specific IDs.",
  5354. "type": "array",
  5355. "items": {
  5356. "type": "integer"
  5357. },
  5358. "default": [],
  5359. "required": false
  5360. },
  5361. "offset": {
  5362. "description": "Offset the result set by a specific number of items.",
  5363. "type": "integer",
  5364. "required": false
  5365. },
  5366. "order": {
  5367. "description": "Order sort attribute ascending or descending.",
  5368. "type": "string",
  5369. "default": "desc",
  5370. "enum": [
  5371. "asc",
  5372. "desc"
  5373. ],
  5374. "required": false
  5375. },
  5376. "orderby": {
  5377. "description": "Sort collection by object attribute.",
  5378. "type": "string",
  5379. "default": "date_gmt",
  5380. "enum": [
  5381. "date",
  5382. "date_gmt",
  5383. "id",
  5384. "include",
  5385. "post",
  5386. "parent",
  5387. "type"
  5388. ],
  5389. "required": false
  5390. },
  5391. "parent": {
  5392. "default": [],
  5393. "description": "Limit result set to comments of specific parent IDs.",
  5394. "type": "array",
  5395. "items": {
  5396. "type": "integer"
  5397. },
  5398. "required": false
  5399. },
  5400. "parent_exclude": {
  5401. "default": [],
  5402. "description": "Ensure result set excludes specific parent IDs.",
  5403. "type": "array",
  5404. "items": {
  5405. "type": "integer"
  5406. },
  5407. "required": false
  5408. },
  5409. "post": {
  5410. "default": [],
  5411. "description": "Limit result set to comments assigned to specific post IDs.",
  5412. "type": "array",
  5413. "items": {
  5414. "type": "integer"
  5415. },
  5416. "required": false
  5417. },
  5418. "status": {
  5419. "default": "approve",
  5420. "description": "Limit result set to comments assigned a specific status. Requires authorization.",
  5421. "type": "string",
  5422. "required": false
  5423. },
  5424. "type": {
  5425. "default": "comment",
  5426. "description": "Limit result set to comments assigned a specific type. Requires authorization.",
  5427. "type": "string",
  5428. "required": false
  5429. },
  5430. "password": {
  5431. "description": "The password for the post if it is password protected.",
  5432. "type": "string",
  5433. "required": false
  5434. }
  5435. }
  5436. },
  5437. {
  5438. "methods": [
  5439. "POST"
  5440. ],
  5441. "args": {
  5442. "author": {
  5443. "description": "The ID of the user object, if author was a user.",
  5444. "type": "integer",
  5445. "required": false
  5446. },
  5447. "author_email": {
  5448. "description": "Email address for the object author.",
  5449. "type": "string",
  5450. "format": "email",
  5451. "required": false
  5452. },
  5453. "author_ip": {
  5454. "description": "IP address for the object author.",
  5455. "type": "string",
  5456. "format": "ip",
  5457. "required": false
  5458. },
  5459. "author_name": {
  5460. "description": "Display name for the object author.",
  5461. "type": "string",
  5462. "required": false
  5463. },
  5464. "author_url": {
  5465. "description": "URL for the object author.",
  5466. "type": "string",
  5467. "format": "uri",
  5468. "required": false
  5469. },
  5470. "author_user_agent": {
  5471. "description": "User agent for the object author.",
  5472. "type": "string",
  5473. "required": false
  5474. },
  5475. "content": {
  5476. "description": "The content for the object.",
  5477. "type": "object",
  5478. "properties": {
  5479. "raw": {
  5480. "description": "Content for the object, as it exists in the database.",
  5481. "type": "string",
  5482. "context": [
  5483. "edit"
  5484. ]
  5485. },
  5486. "rendered": {
  5487. "description": "HTML content for the object, transformed for display.",
  5488. "type": "string",
  5489. "context": [
  5490. "view",
  5491. "edit",
  5492. "embed"
  5493. ],
  5494. "readonly": true
  5495. }
  5496. },
  5497. "required": false
  5498. },
  5499. "date": {
  5500. "description": "The date the object was published, in the site's timezone.",
  5501. "type": "string",
  5502. "format": "date-time",
  5503. "required": false
  5504. },
  5505. "date_gmt": {
  5506. "description": "The date the object was published, as GMT.",
  5507. "type": "string",
  5508. "format": "date-time",
  5509. "required": false
  5510. },
  5511. "parent": {
  5512. "default": 0,
  5513. "description": "The ID for the parent of the object.",
  5514. "type": "integer",
  5515. "required": false
  5516. },
  5517. "post": {
  5518. "default": 0,
  5519. "description": "The ID of the associated post object.",
  5520. "type": "integer",
  5521. "required": false
  5522. },
  5523. "status": {
  5524. "description": "State of the object.",
  5525. "type": "string",
  5526. "required": false
  5527. },
  5528. "meta": {
  5529. "description": "Meta fields.",
  5530. "type": "object",
  5531. "properties": [],
  5532. "required": false
  5533. }
  5534. }
  5535. }
  5536. ],
  5537. "_links": {
  5538. "self": "http://example.org/index.php?rest_route=/wp/v2/comments"
  5539. }
  5540. },
  5541. "/wp/v2/comments/(?P<id>[\\d]+)": {
  5542. "namespace": "wp/v2",
  5543. "methods": [
  5544. "GET",
  5545. "POST",
  5546. "PUT",
  5547. "PATCH",
  5548. "DELETE"
  5549. ],
  5550. "endpoints": [
  5551. {
  5552. "methods": [
  5553. "GET"
  5554. ],
  5555. "args": {
  5556. "id": {
  5557. "description": "Unique identifier for the object.",
  5558. "type": "integer",
  5559. "required": false
  5560. },
  5561. "context": {
  5562. "description": "Scope under which the request is made; determines fields present in response.",
  5563. "type": "string",
  5564. "enum": [
  5565. "view",
  5566. "embed",
  5567. "edit"
  5568. ],
  5569. "default": "view",
  5570. "required": false
  5571. },
  5572. "password": {
  5573. "description": "The password for the parent post of the comment (if the post is password protected).",
  5574. "type": "string",
  5575. "required": false
  5576. }
  5577. }
  5578. },
  5579. {
  5580. "methods": [
  5581. "POST",
  5582. "PUT",
  5583. "PATCH"
  5584. ],
  5585. "args": {
  5586. "id": {
  5587. "description": "Unique identifier for the object.",
  5588. "type": "integer",
  5589. "required": false
  5590. },
  5591. "author": {
  5592. "description": "The ID of the user object, if author was a user.",
  5593. "type": "integer",
  5594. "required": false
  5595. },
  5596. "author_email": {
  5597. "description": "Email address for the object author.",
  5598. "type": "string",
  5599. "format": "email",
  5600. "required": false
  5601. },
  5602. "author_ip": {
  5603. "description": "IP address for the object author.",
  5604. "type": "string",
  5605. "format": "ip",
  5606. "required": false
  5607. },
  5608. "author_name": {
  5609. "description": "Display name for the object author.",
  5610. "type": "string",
  5611. "required": false
  5612. },
  5613. "author_url": {
  5614. "description": "URL for the object author.",
  5615. "type": "string",
  5616. "format": "uri",
  5617. "required": false
  5618. },
  5619. "author_user_agent": {
  5620. "description": "User agent for the object author.",
  5621. "type": "string",
  5622. "required": false
  5623. },
  5624. "content": {
  5625. "description": "The content for the object.",
  5626. "type": "object",
  5627. "properties": {
  5628. "raw": {
  5629. "description": "Content for the object, as it exists in the database.",
  5630. "type": "string",
  5631. "context": [
  5632. "edit"
  5633. ]
  5634. },
  5635. "rendered": {
  5636. "description": "HTML content for the object, transformed for display.",
  5637. "type": "string",
  5638. "context": [
  5639. "view",
  5640. "edit",
  5641. "embed"
  5642. ],
  5643. "readonly": true
  5644. }
  5645. },
  5646. "required": false
  5647. },
  5648. "date": {
  5649. "description": "The date the object was published, in the site's timezone.",
  5650. "type": "string",
  5651. "format": "date-time",
  5652. "required": false
  5653. },
  5654. "date_gmt": {
  5655. "description": "The date the object was published, as GMT.",
  5656. "type": "string",
  5657. "format": "date-time",
  5658. "required": false
  5659. },
  5660. "parent": {
  5661. "description": "The ID for the parent of the object.",
  5662. "type": "integer",
  5663. "required": false
  5664. },
  5665. "post": {
  5666. "description": "The ID of the associated post object.",
  5667. "type": "integer",
  5668. "required": false
  5669. },
  5670. "status": {
  5671. "description": "State of the object.",
  5672. "type": "string",
  5673. "required": false
  5674. },
  5675. "meta": {
  5676. "description": "Meta fields.",
  5677. "type": "object",
  5678. "properties": [],
  5679. "required": false
  5680. }
  5681. }
  5682. },
  5683. {
  5684. "methods": [
  5685. "DELETE"
  5686. ],
  5687. "args": {
  5688. "id": {
  5689. "description": "Unique identifier for the object.",
  5690. "type": "integer",
  5691. "required": false
  5692. },
  5693. "force": {
  5694. "type": "boolean",
  5695. "default": false,
  5696. "description": "Whether to bypass Trash and force deletion.",
  5697. "required": false
  5698. },
  5699. "password": {
  5700. "description": "The password for the parent post of the comment (if the post is password protected).",
  5701. "type": "string",
  5702. "required": false
  5703. }
  5704. }
  5705. }
  5706. ]
  5707. },
  5708. "/wp/v2/search": {
  5709. "namespace": "wp/v2",
  5710. "methods": [
  5711. "GET"
  5712. ],
  5713. "endpoints": [
  5714. {
  5715. "methods": [
  5716. "GET"
  5717. ],
  5718. "args": {
  5719. "context": {
  5720. "description": "Scope under which the request is made; determines fields present in response.",
  5721. "type": "string",
  5722. "enum": [
  5723. "view",
  5724. "embed"
  5725. ],
  5726. "default": "view",
  5727. "required": false
  5728. },
  5729. "page": {
  5730. "description": "Current page of the collection.",
  5731. "type": "integer",
  5732. "default": 1,
  5733. "minimum": 1,
  5734. "required": false
  5735. },
  5736. "per_page": {
  5737. "description": "Maximum number of items to be returned in result set.",
  5738. "type": "integer",
  5739. "default": 10,
  5740. "minimum": 1,
  5741. "maximum": 100,
  5742. "required": false
  5743. },
  5744. "search": {
  5745. "description": "Limit results to those matching a string.",
  5746. "type": "string",
  5747. "required": false
  5748. },
  5749. "type": {
  5750. "default": "post",
  5751. "description": "Limit results to items of an object type.",
  5752. "type": "string",
  5753. "enum": [
  5754. "post",
  5755. "term",
  5756. "post-format"
  5757. ],
  5758. "required": false
  5759. },
  5760. "subtype": {
  5761. "default": "any",
  5762. "description": "Limit results to items of one or more object subtypes.",
  5763. "type": "array",
  5764. "items": {
  5765. "enum": [
  5766. "post",
  5767. "page",
  5768. "category",
  5769. "post_tag",
  5770. "any"
  5771. ],
  5772. "type": "string"
  5773. },
  5774. "required": false
  5775. }
  5776. }
  5777. }
  5778. ],
  5779. "_links": {
  5780. "self": "http://example.org/index.php?rest_route=/wp/v2/search"
  5781. }
  5782. },
  5783. "/wp/v2/block-renderer/(?P<name>[a-z0-9-]+/[a-z0-9-]+)": {
  5784. "namespace": "wp/v2",
  5785. "methods": [
  5786. "GET",
  5787. "POST"
  5788. ],
  5789. "endpoints": [
  5790. {
  5791. "methods": [
  5792. "GET",
  5793. "POST"
  5794. ],
  5795. "args": {
  5796. "name": {
  5797. "description": "Unique registered name for the block.",
  5798. "type": "string",
  5799. "required": false
  5800. },
  5801. "context": {
  5802. "description": "Scope under which the request is made; determines fields present in response.",
  5803. "type": "string",
  5804. "enum": [
  5805. "edit"
  5806. ],
  5807. "default": "view",
  5808. "required": false
  5809. },
  5810. "attributes": {
  5811. "description": "Attributes for the block.",
  5812. "type": "object",
  5813. "default": [],
  5814. "required": false
  5815. },
  5816. "post_id": {
  5817. "description": "ID of the post context.",
  5818. "type": "integer",
  5819. "required": false
  5820. }
  5821. }
  5822. }
  5823. ]
  5824. },
  5825. "/wp/v2/block-types": {
  5826. "namespace": "wp/v2",
  5827. "methods": [
  5828. "GET"
  5829. ],
  5830. "endpoints": [
  5831. {
  5832. "methods": [
  5833. "GET"
  5834. ],
  5835. "args": {
  5836. "context": {
  5837. "description": "Scope under which the request is made; determines fields present in response.",
  5838. "type": "string",
  5839. "enum": [
  5840. "view",
  5841. "embed",
  5842. "edit"
  5843. ],
  5844. "default": "view",
  5845. "required": false
  5846. },
  5847. "namespace": {
  5848. "description": "Block namespace.",
  5849. "type": "string",
  5850. "required": false
  5851. }
  5852. }
  5853. }
  5854. ],
  5855. "_links": {
  5856. "self": [
  5857. {
  5858. "href": "http://example.org/index.php?rest_route=/wp/v2/block-types"
  5859. }
  5860. ]
  5861. }
  5862. },
  5863. "/wp/v2/block-types/(?P<namespace>[a-zA-Z0-9_-]+)": {
  5864. "namespace": "wp/v2",
  5865. "methods": [
  5866. "GET"
  5867. ],
  5868. "endpoints": [
  5869. {
  5870. "methods": [
  5871. "GET"
  5872. ],
  5873. "args": {
  5874. "context": {
  5875. "description": "Scope under which the request is made; determines fields present in response.",
  5876. "type": "string",
  5877. "enum": [
  5878. "view",
  5879. "embed",
  5880. "edit"
  5881. ],
  5882. "default": "view",
  5883. "required": false
  5884. },
  5885. "namespace": {
  5886. "description": "Block namespace.",
  5887. "type": "string",
  5888. "required": false
  5889. }
  5890. }
  5891. }
  5892. ]
  5893. },
  5894. "/wp/v2/block-types/(?P<namespace>[a-zA-Z0-9_-]+)/(?P<name>[a-zA-Z0-9_-]+)": {
  5895. "namespace": "wp/v2",
  5896. "methods": [
  5897. "GET"
  5898. ],
  5899. "endpoints": [
  5900. {
  5901. "methods": [
  5902. "GET"
  5903. ],
  5904. "args": {
  5905. "name": {
  5906. "description": "Block name.",
  5907. "type": "string",
  5908. "required": false
  5909. },
  5910. "namespace": {
  5911. "description": "Block namespace.",
  5912. "type": "string",
  5913. "required": false
  5914. },
  5915. "context": {
  5916. "description": "Scope under which the request is made; determines fields present in response.",
  5917. "type": "string",
  5918. "enum": [
  5919. "view",
  5920. "embed",
  5921. "edit"
  5922. ],
  5923. "default": "view",
  5924. "required": false
  5925. }
  5926. }
  5927. }
  5928. ]
  5929. },
  5930. "/wp/v2/settings": {
  5931. "namespace": "wp/v2",
  5932. "methods": [
  5933. "GET",
  5934. "POST",
  5935. "PUT",
  5936. "PATCH"
  5937. ],
  5938. "endpoints": [
  5939. {
  5940. "methods": [
  5941. "GET"
  5942. ],
  5943. "args": []
  5944. },
  5945. {
  5946. "methods": [
  5947. "POST",
  5948. "PUT",
  5949. "PATCH"
  5950. ],
  5951. "args": {
  5952. "title": {
  5953. "description": "Site title.",
  5954. "type": "string",
  5955. "required": false
  5956. },
  5957. "description": {
  5958. "description": "Site tagline.",
  5959. "type": "string",
  5960. "required": false
  5961. },
  5962. "url": {
  5963. "description": "Site URL.",
  5964. "type": "string",
  5965. "format": "uri",
  5966. "required": false
  5967. },
  5968. "email": {
  5969. "description": "This address is used for admin purposes, like new user notification.",
  5970. "type": "string",
  5971. "format": "email",
  5972. "required": false
  5973. },
  5974. "timezone": {
  5975. "description": "A city in the same timezone as you.",
  5976. "type": "string",
  5977. "required": false
  5978. },
  5979. "date_format": {
  5980. "description": "A date format for all date strings.",
  5981. "type": "string",
  5982. "required": false
  5983. },
  5984. "time_format": {
  5985. "description": "A time format for all time strings.",
  5986. "type": "string",
  5987. "required": false
  5988. },
  5989. "start_of_week": {
  5990. "description": "A day number of the week that the week should start on.",
  5991. "type": "integer",
  5992. "required": false
  5993. },
  5994. "language": {
  5995. "description": "WordPress locale code.",
  5996. "type": "string",
  5997. "required": false
  5998. },
  5999. "use_smilies": {
  6000. "description": "Convert emoticons like :-) and :-P to graphics on display.",
  6001. "type": "boolean",
  6002. "required": false
  6003. },
  6004. "default_category": {
  6005. "description": "Default post category.",
  6006. "type": "integer",
  6007. "required": false
  6008. },
  6009. "default_post_format": {
  6010. "description": "Default post format.",
  6011. "type": "string",
  6012. "required": false
  6013. },
  6014. "posts_per_page": {
  6015. "description": "Blog pages show at most.",
  6016. "type": "integer",
  6017. "required": false
  6018. },
  6019. "default_ping_status": {
  6020. "description": "Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.",
  6021. "type": "string",
  6022. "enum": [
  6023. "open",
  6024. "closed"
  6025. ],
  6026. "required": false
  6027. },
  6028. "default_comment_status": {
  6029. "description": "Allow people to submit comments on new posts.",
  6030. "type": "string",
  6031. "enum": [
  6032. "open",
  6033. "closed"
  6034. ],
  6035. "required": false
  6036. }
  6037. }
  6038. }
  6039. ],
  6040. "_links": {
  6041. "self": "http://example.org/index.php?rest_route=/wp/v2/settings"
  6042. }
  6043. },
  6044. "/wp/v2/themes": {
  6045. "namespace": "wp/v2",
  6046. "methods": [
  6047. "GET"
  6048. ],
  6049. "endpoints": [
  6050. {
  6051. "methods": [
  6052. "GET"
  6053. ],
  6054. "args": {
  6055. "status": {
  6056. "description": "Limit result set to themes assigned one or more statuses.",
  6057. "type": "array",
  6058. "items": {
  6059. "enum": [
  6060. "active",
  6061. "inactive"
  6062. ],
  6063. "type": "string"
  6064. },
  6065. "required": false
  6066. }
  6067. }
  6068. }
  6069. ],
  6070. "_links": {
  6071. "self": "http://example.org/index.php?rest_route=/wp/v2/themes"
  6072. }
  6073. },
  6074. "/wp/v2/themes/(?P<stylesheet>[\\w-]+)": {
  6075. "namespace": "wp/v2",
  6076. "methods": [
  6077. "GET"
  6078. ],
  6079. "endpoints": [
  6080. {
  6081. "methods": [
  6082. "GET"
  6083. ],
  6084. "args": {
  6085. "stylesheet": {
  6086. "description": "The theme's stylesheet. This uniquely identifies the theme.",
  6087. "type": "string",
  6088. "required": false
  6089. }
  6090. }
  6091. }
  6092. ]
  6093. },
  6094. "/wp/v2/plugins": {
  6095. "namespace": "wp/v2",
  6096. "methods": [
  6097. "GET",
  6098. "POST"
  6099. ],
  6100. "endpoints": [
  6101. {
  6102. "methods": [
  6103. "GET"
  6104. ],
  6105. "args": {
  6106. "context": {
  6107. "description": "Scope under which the request is made; determines fields present in response.",
  6108. "type": "string",
  6109. "enum": [
  6110. "view",
  6111. "embed",
  6112. "edit"
  6113. ],
  6114. "default": "view",
  6115. "required": false
  6116. },
  6117. "search": {
  6118. "description": "Limit results to those matching a string.",
  6119. "type": "string",
  6120. "required": false
  6121. },
  6122. "status": {
  6123. "description": "Limits results to plugins with the given status.",
  6124. "type": "array",
  6125. "items": {
  6126. "type": "string",
  6127. "enum": [
  6128. "inactive",
  6129. "active"
  6130. ]
  6131. },
  6132. "required": false
  6133. }
  6134. }
  6135. },
  6136. {
  6137. "methods": [
  6138. "POST"
  6139. ],
  6140. "args": {
  6141. "slug": {
  6142. "type": "string",
  6143. "description": "WordPress.org plugin directory slug.",
  6144. "pattern": "[\\w\\-]+",
  6145. "required": true
  6146. },
  6147. "status": {
  6148. "description": "The plugin activation status.",
  6149. "type": "string",
  6150. "enum": [
  6151. "inactive",
  6152. "active"
  6153. ],
  6154. "default": "inactive",
  6155. "required": false
  6156. }
  6157. }
  6158. }
  6159. ],
  6160. "_links": {
  6161. "self": [
  6162. {
  6163. "href": "http://example.org/index.php?rest_route=/wp/v2/plugins"
  6164. }
  6165. ]
  6166. }
  6167. },
  6168. "/wp/v2/plugins/(?P<plugin>[^.\\/]+(?:\\/[^.\\/]+)?)": {
  6169. "namespace": "wp/v2",
  6170. "methods": [
  6171. "GET",
  6172. "POST",
  6173. "PUT",
  6174. "PATCH",
  6175. "DELETE"
  6176. ],
  6177. "endpoints": [
  6178. {
  6179. "methods": [
  6180. "GET"
  6181. ],
  6182. "args": {
  6183. "context": {
  6184. "description": "Scope under which the request is made; determines fields present in response.",
  6185. "type": "string",
  6186. "enum": [
  6187. "view",
  6188. "embed",
  6189. "edit"
  6190. ],
  6191. "default": "view",
  6192. "required": false
  6193. },
  6194. "plugin": {
  6195. "type": "string",
  6196. "pattern": "[^.\\/]+(?:\\/[^.\\/]+)?",
  6197. "required": false
  6198. }
  6199. }
  6200. },
  6201. {
  6202. "methods": [
  6203. "POST",
  6204. "PUT",
  6205. "PATCH"
  6206. ],
  6207. "args": {
  6208. "context": {
  6209. "description": "Scope under which the request is made; determines fields present in response.",
  6210. "type": "string",
  6211. "enum": [
  6212. "view",
  6213. "embed",
  6214. "edit"
  6215. ],
  6216. "default": "view",
  6217. "required": false
  6218. },
  6219. "plugin": {
  6220. "type": "string",
  6221. "pattern": "[^.\\/]+(?:\\/[^.\\/]+)?",
  6222. "required": false
  6223. },
  6224. "status": {
  6225. "description": "The plugin activation status.",
  6226. "type": "string",
  6227. "enum": [
  6228. "inactive",
  6229. "active"
  6230. ],
  6231. "required": false
  6232. }
  6233. }
  6234. },
  6235. {
  6236. "methods": [
  6237. "DELETE"
  6238. ],
  6239. "args": {
  6240. "context": {
  6241. "description": "Scope under which the request is made; determines fields present in response.",
  6242. "type": "string",
  6243. "enum": [
  6244. "view",
  6245. "embed",
  6246. "edit"
  6247. ],
  6248. "default": "view",
  6249. "required": false
  6250. },
  6251. "plugin": {
  6252. "type": "string",
  6253. "pattern": "[^.\\/]+(?:\\/[^.\\/]+)?",
  6254. "required": false
  6255. }
  6256. }
  6257. }
  6258. ]
  6259. },
  6260. "/wp/v2/block-directory/search": {
  6261. "namespace": "wp/v2",
  6262. "methods": [
  6263. "GET"
  6264. ],
  6265. "endpoints": [
  6266. {
  6267. "methods": [
  6268. "GET"
  6269. ],
  6270. "args": {
  6271. "context": {
  6272. "description": "Scope under which the request is made; determines fields present in response.",
  6273. "type": "string",
  6274. "enum": [
  6275. "view"
  6276. ],
  6277. "default": "view",
  6278. "required": false
  6279. },
  6280. "page": {
  6281. "description": "Current page of the collection.",
  6282. "type": "integer",
  6283. "default": 1,
  6284. "minimum": 1,
  6285. "required": false
  6286. },
  6287. "per_page": {
  6288. "description": "Maximum number of items to be returned in result set.",
  6289. "type": "integer",
  6290. "default": 10,
  6291. "minimum": 1,
  6292. "maximum": 100,
  6293. "required": false
  6294. },
  6295. "term": {
  6296. "description": "Limit result set to blocks matching the search term.",
  6297. "type": "string",
  6298. "minLength": 1,
  6299. "required": true
  6300. }
  6301. }
  6302. }
  6303. ],
  6304. "_links": {
  6305. "self": [
  6306. {
  6307. "href": "http://example.org/index.php?rest_route=/wp/v2/block-directory/search"
  6308. }
  6309. ]
  6310. }
  6311. },
  6312. "/wp-site-health/v1": {
  6313. "namespace": "wp-site-health/v1",
  6314. "methods": [
  6315. "GET"
  6316. ],
  6317. "endpoints": [
  6318. {
  6319. "methods": [
  6320. "GET"
  6321. ],
  6322. "args": {
  6323. "namespace": {
  6324. "default": "wp-site-health/v1",
  6325. "required": false
  6326. },
  6327. "context": {
  6328. "default": "view",
  6329. "required": false
  6330. }
  6331. }
  6332. }
  6333. ],
  6334. "_links": {
  6335. "self": [
  6336. {
  6337. "href": "http://example.org/index.php?rest_route=/wp-site-health/v1"
  6338. }
  6339. ]
  6340. }
  6341. },
  6342. "/wp-site-health/v1/tests/background-updates": {
  6343. "namespace": "wp-site-health/v1",
  6344. "methods": [
  6345. "GET"
  6346. ],
  6347. "endpoints": [
  6348. {
  6349. "methods": [
  6350. "GET"
  6351. ],
  6352. "args": []
  6353. }
  6354. ],
  6355. "_links": {
  6356. "self": [
  6357. {
  6358. "href": "http://example.org/index.php?rest_route=/wp-site-health/v1/tests/background-updates"
  6359. }
  6360. ]
  6361. }
  6362. },
  6363. "/wp-site-health/v1/tests/loopback-requests": {
  6364. "namespace": "wp-site-health/v1",
  6365. "methods": [
  6366. "GET"
  6367. ],
  6368. "endpoints": [
  6369. {
  6370. "methods": [
  6371. "GET"
  6372. ],
  6373. "args": []
  6374. }
  6375. ],
  6376. "_links": {
  6377. "self": [
  6378. {
  6379. "href": "http://example.org/index.php?rest_route=/wp-site-health/v1/tests/loopback-requests"
  6380. }
  6381. ]
  6382. }
  6383. },
  6384. "/wp-site-health/v1/tests/https-status": {
  6385. "namespace": "wp-site-health/v1",
  6386. "methods": [
  6387. "GET"
  6388. ],
  6389. "endpoints": [
  6390. {
  6391. "methods": [
  6392. "GET"
  6393. ],
  6394. "args": []
  6395. }
  6396. ],
  6397. "_links": {
  6398. "self": [
  6399. {
  6400. "href": "http://example.org/index.php?rest_route=/wp-site-health/v1/tests/https-status"
  6401. }
  6402. ]
  6403. }
  6404. },
  6405. "/wp-site-health/v1/tests/dotorg-communication": {
  6406. "namespace": "wp-site-health/v1",
  6407. "methods": [
  6408. "GET"
  6409. ],
  6410. "endpoints": [
  6411. {
  6412. "methods": [
  6413. "GET"
  6414. ],
  6415. "args": []
  6416. }
  6417. ],
  6418. "_links": {
  6419. "self": [
  6420. {
  6421. "href": "http://example.org/index.php?rest_route=/wp-site-health/v1/tests/dotorg-communication"
  6422. }
  6423. ]
  6424. }
  6425. },
  6426. "/wp-site-health/v1/tests/authorization-header": {
  6427. "namespace": "wp-site-health/v1",
  6428. "methods": [
  6429. "GET"
  6430. ],
  6431. "endpoints": [
  6432. {
  6433. "methods": [
  6434. "GET"
  6435. ],
  6436. "args": []
  6437. }
  6438. ],
  6439. "_links": {
  6440. "self": [
  6441. {
  6442. "href": "http://example.org/index.php?rest_route=/wp-site-health/v1/tests/authorization-header"
  6443. }
  6444. ]
  6445. }
  6446. },
  6447. "/wp-site-health/v1/directory-sizes": {
  6448. "namespace": "wp-site-health/v1",
  6449. "methods": [
  6450. "GET"
  6451. ],
  6452. "endpoints": [
  6453. {
  6454. "methods": [
  6455. "GET"
  6456. ],
  6457. "args": []
  6458. }
  6459. ],
  6460. "_links": {
  6461. "self": [
  6462. {
  6463. "href": "http://example.org/index.php?rest_route=/wp-site-health/v1/directory-sizes"
  6464. }
  6465. ]
  6466. }
  6467. }
  6468. }
  6469. };
  6470. mockedApiResponse.oembed = {
  6471. "namespace": "oembed/1.0",
  6472. "routes": {
  6473. "/oembed/1.0": {
  6474. "namespace": "oembed/1.0",
  6475. "methods": [
  6476. "GET"
  6477. ],
  6478. "endpoints": [
  6479. {
  6480. "methods": [
  6481. "GET"
  6482. ],
  6483. "args": {
  6484. "namespace": {
  6485. "default": "oembed/1.0",
  6486. "required": false
  6487. },
  6488. "context": {
  6489. "default": "view",
  6490. "required": false
  6491. }
  6492. }
  6493. }
  6494. ],
  6495. "_links": {
  6496. "self": "http://example.org/index.php?rest_route=/oembed/1.0"
  6497. }
  6498. },
  6499. "/oembed/1.0/embed": {
  6500. "namespace": "oembed/1.0",
  6501. "methods": [
  6502. "GET"
  6503. ],
  6504. "endpoints": [
  6505. {
  6506. "methods": [
  6507. "GET"
  6508. ],
  6509. "args": {
  6510. "url": {
  6511. "description": "The URL of the resource for which to fetch oEmbed data.",
  6512. "type": "string",
  6513. "format": "uri",
  6514. "required": true
  6515. },
  6516. "format": {
  6517. "default": "json",
  6518. "required": false
  6519. },
  6520. "maxwidth": {
  6521. "default": 600,
  6522. "required": false
  6523. }
  6524. }
  6525. }
  6526. ],
  6527. "_links": {
  6528. "self": "http://example.org/index.php?rest_route=/oembed/1.0/embed"
  6529. }
  6530. },
  6531. "/oembed/1.0/proxy": {
  6532. "namespace": "oembed/1.0",
  6533. "methods": [
  6534. "GET"
  6535. ],
  6536. "endpoints": [
  6537. {
  6538. "methods": [
  6539. "GET"
  6540. ],
  6541. "args": {
  6542. "url": {
  6543. "description": "The URL of the resource for which to fetch oEmbed data.",
  6544. "type": "string",
  6545. "format": "uri",
  6546. "required": true
  6547. },
  6548. "format": {
  6549. "description": "The oEmbed format to use.",
  6550. "type": "string",
  6551. "default": "json",
  6552. "enum": [
  6553. "json",
  6554. "xml"
  6555. ],
  6556. "required": false
  6557. },
  6558. "maxwidth": {
  6559. "description": "The maximum width of the embed frame in pixels.",
  6560. "type": "integer",
  6561. "default": 600,
  6562. "required": false
  6563. },
  6564. "maxheight": {
  6565. "description": "The maximum height of the embed frame in pixels.",
  6566. "type": "integer",
  6567. "required": false
  6568. },
  6569. "discover": {
  6570. "description": "Whether to perform an oEmbed discovery request for unsanctioned providers.",
  6571. "type": "boolean",
  6572. "default": true,
  6573. "required": false
  6574. }
  6575. }
  6576. }
  6577. ],
  6578. "_links": {
  6579. "self": "http://example.org/index.php?rest_route=/oembed/1.0/proxy"
  6580. }
  6581. }
  6582. }
  6583. };
  6584. mockedApiResponse.oembeds = {
  6585. "version": "1.0",
  6586. "provider_name": "Test Blog",
  6587. "provider_url": "http://example.org",
  6588. "author_name": "Test Blog",
  6589. "author_url": "http://example.org",
  6590. "title": "REST API Client Fixture: Post",
  6591. "type": "rich",
  6592. "width": 600,
  6593. "height": 338,
  6594. "html": "<blockquote class=\"wp-embedded-content\">...</blockquote>..."
  6595. };
  6596. mockedApiResponse.oembedProxy = {
  6597. "version": "1.0",
  6598. "type": "video",
  6599. "provider_name": "YouTube",
  6600. "provider_url": "https://www.youtube.com",
  6601. "thumbnail_width": 480,
  6602. "width": 500,
  6603. "thumbnail_height": 360,
  6604. "html": "<iframe title=\"No te olvides de poner el Where en el Delete From. (Una cancion para programadores)\" width=\"500\" height=\"375\" src=\"https://www.youtube.com/embed/i_cVJgIz_Cs?feature=oembed\" frameborder=\"0\" allowfullscreen></iframe>",
  6605. "author_name": "Jorge Rubira Santos",
  6606. "thumbnail_url": "https://i.ytimg.com/vi/i_cVJgIz_Cs/hqdefault.jpg",
  6607. "title": "No te olvides de poner el Where en el Delete From. (Una cancion para programadores)",
  6608. "height": 375
  6609. };
  6610. mockedApiResponse.PostsCollection = [
  6611. {
  6612. "id": 4,
  6613. "date": "2017-02-14T00:00:00",
  6614. "date_gmt": "2017-02-14T00:00:00",
  6615. "guid": {
  6616. "rendered": "http://example.org/?p=4"
  6617. },
  6618. "modified": "2017-02-14T00:00:00",
  6619. "modified_gmt": "2017-02-14T00:00:00",
  6620. "slug": "restapi-client-fixture-post",
  6621. "status": "publish",
  6622. "type": "post",
  6623. "link": "http://example.org/?p=4",
  6624. "title": {
  6625. "rendered": "REST API Client Fixture: Post"
  6626. },
  6627. "content": {
  6628. "rendered": "<p>Updated post content.</p>\n",
  6629. "protected": false
  6630. },
  6631. "excerpt": {
  6632. "rendered": "<p>REST API Client Fixture: Post</p>\n",
  6633. "protected": false
  6634. },
  6635. "author": 0,
  6636. "featured_media": 0,
  6637. "comment_status": "open",
  6638. "ping_status": "open",
  6639. "sticky": false,
  6640. "template": "",
  6641. "format": "standard",
  6642. "meta": {
  6643. "meta_key": "meta_value"
  6644. },
  6645. "categories": [
  6646. 1
  6647. ],
  6648. "tags": [],
  6649. "_links": {
  6650. "self": [
  6651. {
  6652. "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4"
  6653. }
  6654. ],
  6655. "collection": [
  6656. {
  6657. "href": "http://example.org/index.php?rest_route=/wp/v2/posts"
  6658. }
  6659. ],
  6660. "about": [
  6661. {
  6662. "href": "http://example.org/index.php?rest_route=/wp/v2/types/post"
  6663. }
  6664. ],
  6665. "replies": [
  6666. {
  6667. "embeddable": true,
  6668. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"
  6669. }
  6670. ],
  6671. "version-history": [
  6672. {
  6673. "count": 2,
  6674. "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions"
  6675. }
  6676. ],
  6677. "predecessor-version": [
  6678. {
  6679. "id": 6,
  6680. "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/6"
  6681. }
  6682. ],
  6683. "wp:attachment": [
  6684. {
  6685. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"
  6686. }
  6687. ],
  6688. "wp:term": [
  6689. {
  6690. "taxonomy": "category",
  6691. "embeddable": true,
  6692. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4"
  6693. },
  6694. {
  6695. "taxonomy": "post_tag",
  6696. "embeddable": true,
  6697. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4"
  6698. }
  6699. ],
  6700. "curies": [
  6701. {
  6702. "name": "wp",
  6703. "href": "https://api.w.org/{rel}",
  6704. "templated": true
  6705. }
  6706. ]
  6707. }
  6708. }
  6709. ];
  6710. mockedApiResponse.PostModel = {
  6711. "id": 4,
  6712. "date": "2017-02-14T00:00:00",
  6713. "date_gmt": "2017-02-14T00:00:00",
  6714. "guid": {
  6715. "rendered": "http://example.org/?p=4"
  6716. },
  6717. "modified": "2017-02-14T00:00:00",
  6718. "modified_gmt": "2017-02-14T00:00:00",
  6719. "slug": "restapi-client-fixture-post",
  6720. "status": "publish",
  6721. "type": "post",
  6722. "link": "http://example.org/?p=4",
  6723. "title": {
  6724. "rendered": "REST API Client Fixture: Post"
  6725. },
  6726. "content": {
  6727. "rendered": "<p>Updated post content.</p>\n",
  6728. "protected": false
  6729. },
  6730. "excerpt": {
  6731. "rendered": "<p>REST API Client Fixture: Post</p>\n",
  6732. "protected": false
  6733. },
  6734. "author": 0,
  6735. "featured_media": 0,
  6736. "comment_status": "open",
  6737. "ping_status": "open",
  6738. "sticky": false,
  6739. "template": "",
  6740. "format": "standard",
  6741. "meta": {
  6742. "meta_key": "meta_value"
  6743. },
  6744. "categories": [
  6745. 1
  6746. ],
  6747. "tags": []
  6748. };
  6749. mockedApiResponse.postRevisions = [
  6750. {
  6751. "author": 2,
  6752. "date": "2017-02-14T00:00:00",
  6753. "date_gmt": "2017-02-14T00:00:00",
  6754. "id": 6,
  6755. "modified": "2017-02-14T00:00:00",
  6756. "modified_gmt": "2017-02-14T00:00:00",
  6757. "parent": 4,
  6758. "slug": "4-autosave-v1",
  6759. "guid": {
  6760. "rendered": "http://example.org/?p=6"
  6761. },
  6762. "title": {
  6763. "rendered": ""
  6764. },
  6765. "content": {
  6766. "rendered": "<p>Autosave post content.</p>\n"
  6767. },
  6768. "excerpt": {
  6769. "rendered": ""
  6770. },
  6771. "_links": {
  6772. "parent": [
  6773. {
  6774. "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4"
  6775. }
  6776. ]
  6777. }
  6778. },
  6779. {
  6780. "author": 2,
  6781. "date": "2017-02-14T00:00:00",
  6782. "date_gmt": "2017-02-14T00:00:00",
  6783. "id": 5,
  6784. "modified": "2017-02-14T00:00:00",
  6785. "modified_gmt": "2017-02-14T00:00:00",
  6786. "parent": 4,
  6787. "slug": "4-revision-v1",
  6788. "guid": {
  6789. "rendered": "http://example.org/?p=5"
  6790. },
  6791. "title": {
  6792. "rendered": "REST API Client Fixture: Post"
  6793. },
  6794. "content": {
  6795. "rendered": "<p>Updated post content.</p>\n"
  6796. },
  6797. "excerpt": {
  6798. "rendered": "<p>REST API Client Fixture: Post</p>\n"
  6799. },
  6800. "_links": {
  6801. "parent": [
  6802. {
  6803. "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4"
  6804. }
  6805. ]
  6806. }
  6807. }
  6808. ];
  6809. mockedApiResponse.revision = {
  6810. "author": 2,
  6811. "date": "2017-02-14T00:00:00",
  6812. "date_gmt": "2017-02-14T00:00:00",
  6813. "id": 5,
  6814. "modified": "2017-02-14T00:00:00",
  6815. "modified_gmt": "2017-02-14T00:00:00",
  6816. "parent": 4,
  6817. "slug": "4-revision-v1",
  6818. "guid": {
  6819. "rendered": "http://example.org/?p=5"
  6820. },
  6821. "title": {
  6822. "rendered": "REST API Client Fixture: Post"
  6823. },
  6824. "content": {
  6825. "rendered": "<p>Updated post content.</p>\n"
  6826. },
  6827. "excerpt": {
  6828. "rendered": "<p>REST API Client Fixture: Post</p>\n"
  6829. }
  6830. };
  6831. mockedApiResponse.postAutosaves = [
  6832. {
  6833. "author": 2,
  6834. "date": "2017-02-14T00:00:00",
  6835. "date_gmt": "2017-02-14T00:00:00",
  6836. "id": 6,
  6837. "modified": "2017-02-14T00:00:00",
  6838. "modified_gmt": "2017-02-14T00:00:00",
  6839. "parent": 4,
  6840. "slug": "4-autosave-v1",
  6841. "guid": {
  6842. "rendered": "http://example.org/?p=6"
  6843. },
  6844. "title": {
  6845. "rendered": ""
  6846. },
  6847. "content": {
  6848. "rendered": "<p>Autosave post content.</p>\n"
  6849. },
  6850. "excerpt": {
  6851. "rendered": ""
  6852. },
  6853. "_links": {
  6854. "parent": [
  6855. {
  6856. "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4"
  6857. }
  6858. ]
  6859. }
  6860. }
  6861. ];
  6862. mockedApiResponse.autosave = {
  6863. "author": 2,
  6864. "date": "2017-02-14T00:00:00",
  6865. "date_gmt": "2017-02-14T00:00:00",
  6866. "id": 6,
  6867. "modified": "2017-02-14T00:00:00",
  6868. "modified_gmt": "2017-02-14T00:00:00",
  6869. "parent": 4,
  6870. "slug": "4-autosave-v1",
  6871. "guid": {
  6872. "rendered": "http://example.org/?p=6"
  6873. },
  6874. "title": {
  6875. "rendered": ""
  6876. },
  6877. "content": {
  6878. "rendered": "<p>Autosave post content.</p>\n"
  6879. },
  6880. "excerpt": {
  6881. "rendered": ""
  6882. }
  6883. };
  6884. mockedApiResponse.PagesCollection = [
  6885. {
  6886. "id": 7,
  6887. "date": "2017-02-14T00:00:00",
  6888. "date_gmt": "2017-02-14T00:00:00",
  6889. "guid": {
  6890. "rendered": "http://example.org/?page_id=7"
  6891. },
  6892. "modified": "2017-02-14T00:00:00",
  6893. "modified_gmt": "2017-02-14T00:00:00",
  6894. "slug": "restapi-client-fixture-page",
  6895. "status": "publish",
  6896. "type": "page",
  6897. "link": "http://example.org/?page_id=7",
  6898. "title": {
  6899. "rendered": "REST API Client Fixture: Page"
  6900. },
  6901. "content": {
  6902. "rendered": "<p>Updated page content.</p>\n",
  6903. "protected": false
  6904. },
  6905. "excerpt": {
  6906. "rendered": "<p>REST API Client Fixture: Page</p>\n",
  6907. "protected": false
  6908. },
  6909. "author": 0,
  6910. "featured_media": 0,
  6911. "parent": 0,
  6912. "menu_order": 0,
  6913. "comment_status": "closed",
  6914. "ping_status": "closed",
  6915. "template": "",
  6916. "meta": {
  6917. "meta_key": ""
  6918. },
  6919. "_links": {
  6920. "self": [
  6921. {
  6922. "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
  6923. }
  6924. ],
  6925. "collection": [
  6926. {
  6927. "href": "http://example.org/index.php?rest_route=/wp/v2/pages"
  6928. }
  6929. ],
  6930. "about": [
  6931. {
  6932. "href": "http://example.org/index.php?rest_route=/wp/v2/types/page"
  6933. }
  6934. ],
  6935. "replies": [
  6936. {
  6937. "embeddable": true,
  6938. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"
  6939. }
  6940. ],
  6941. "version-history": [
  6942. {
  6943. "count": 2,
  6944. "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions"
  6945. }
  6946. ],
  6947. "predecessor-version": [
  6948. {
  6949. "id": 9,
  6950. "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions/9"
  6951. }
  6952. ],
  6953. "wp:attachment": [
  6954. {
  6955. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"
  6956. }
  6957. ],
  6958. "curies": [
  6959. {
  6960. "name": "wp",
  6961. "href": "https://api.w.org/{rel}",
  6962. "templated": true
  6963. }
  6964. ]
  6965. }
  6966. }
  6967. ];
  6968. mockedApiResponse.PageModel = {
  6969. "id": 7,
  6970. "date": "2017-02-14T00:00:00",
  6971. "date_gmt": "2017-02-14T00:00:00",
  6972. "guid": {
  6973. "rendered": "http://example.org/?page_id=7"
  6974. },
  6975. "modified": "2017-02-14T00:00:00",
  6976. "modified_gmt": "2017-02-14T00:00:00",
  6977. "slug": "restapi-client-fixture-page",
  6978. "status": "publish",
  6979. "type": "page",
  6980. "link": "http://example.org/?page_id=7",
  6981. "title": {
  6982. "rendered": "REST API Client Fixture: Page"
  6983. },
  6984. "content": {
  6985. "rendered": "<p>Updated page content.</p>\n",
  6986. "protected": false
  6987. },
  6988. "excerpt": {
  6989. "rendered": "<p>REST API Client Fixture: Page</p>\n",
  6990. "protected": false
  6991. },
  6992. "author": 0,
  6993. "featured_media": 0,
  6994. "parent": 0,
  6995. "menu_order": 0,
  6996. "comment_status": "closed",
  6997. "ping_status": "closed",
  6998. "template": "",
  6999. "meta": {
  7000. "meta_key": ""
  7001. }
  7002. };
  7003. mockedApiResponse.pageRevisions = [
  7004. {
  7005. "author": 2,
  7006. "date": "2017-02-14T00:00:00",
  7007. "date_gmt": "2017-02-14T00:00:00",
  7008. "id": 9,
  7009. "modified": "2017-02-14T00:00:00",
  7010. "modified_gmt": "2017-02-14T00:00:00",
  7011. "parent": 7,
  7012. "slug": "7-autosave-v1",
  7013. "guid": {
  7014. "rendered": "http://example.org/?p=9"
  7015. },
  7016. "title": {
  7017. "rendered": ""
  7018. },
  7019. "content": {
  7020. "rendered": "<p>Autosave page content.</p>\n"
  7021. },
  7022. "excerpt": {
  7023. "rendered": ""
  7024. },
  7025. "_links": {
  7026. "parent": [
  7027. {
  7028. "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
  7029. }
  7030. ]
  7031. }
  7032. },
  7033. {
  7034. "author": 2,
  7035. "date": "2017-02-14T00:00:00",
  7036. "date_gmt": "2017-02-14T00:00:00",
  7037. "id": 8,
  7038. "modified": "2017-02-14T00:00:00",
  7039. "modified_gmt": "2017-02-14T00:00:00",
  7040. "parent": 7,
  7041. "slug": "7-revision-v1",
  7042. "guid": {
  7043. "rendered": "http://example.org/?p=8"
  7044. },
  7045. "title": {
  7046. "rendered": "REST API Client Fixture: Page"
  7047. },
  7048. "content": {
  7049. "rendered": "<p>Updated page content.</p>\n"
  7050. },
  7051. "excerpt": {
  7052. "rendered": "<p>REST API Client Fixture: Page</p>\n"
  7053. },
  7054. "_links": {
  7055. "parent": [
  7056. {
  7057. "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
  7058. }
  7059. ]
  7060. }
  7061. }
  7062. ];
  7063. mockedApiResponse.pageRevision = {
  7064. "author": 2,
  7065. "date": "2017-02-14T00:00:00",
  7066. "date_gmt": "2017-02-14T00:00:00",
  7067. "id": 8,
  7068. "modified": "2017-02-14T00:00:00",
  7069. "modified_gmt": "2017-02-14T00:00:00",
  7070. "parent": 7,
  7071. "slug": "7-revision-v1",
  7072. "guid": {
  7073. "rendered": "http://example.org/?p=8"
  7074. },
  7075. "title": {
  7076. "rendered": "REST API Client Fixture: Page"
  7077. },
  7078. "content": {
  7079. "rendered": "<p>Updated page content.</p>\n"
  7080. },
  7081. "excerpt": {
  7082. "rendered": "<p>REST API Client Fixture: Page</p>\n"
  7083. }
  7084. };
  7085. mockedApiResponse.pageAutosaves = [
  7086. {
  7087. "author": 2,
  7088. "date": "2017-02-14T00:00:00",
  7089. "date_gmt": "2017-02-14T00:00:00",
  7090. "id": 9,
  7091. "modified": "2017-02-14T00:00:00",
  7092. "modified_gmt": "2017-02-14T00:00:00",
  7093. "parent": 7,
  7094. "slug": "7-autosave-v1",
  7095. "guid": {
  7096. "rendered": "http://example.org/?p=9"
  7097. },
  7098. "title": {
  7099. "rendered": ""
  7100. },
  7101. "content": {
  7102. "rendered": "<p>Autosave page content.</p>\n"
  7103. },
  7104. "excerpt": {
  7105. "rendered": ""
  7106. },
  7107. "_links": {
  7108. "parent": [
  7109. {
  7110. "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
  7111. }
  7112. ]
  7113. }
  7114. }
  7115. ];
  7116. mockedApiResponse.pageAutosave = {
  7117. "author": 2,
  7118. "date": "2017-02-14T00:00:00",
  7119. "date_gmt": "2017-02-14T00:00:00",
  7120. "id": 9,
  7121. "modified": "2017-02-14T00:00:00",
  7122. "modified_gmt": "2017-02-14T00:00:00",
  7123. "parent": 7,
  7124. "slug": "7-autosave-v1",
  7125. "guid": {
  7126. "rendered": "http://example.org/?p=9"
  7127. },
  7128. "title": {
  7129. "rendered": ""
  7130. },
  7131. "content": {
  7132. "rendered": "<p>Autosave page content.</p>\n"
  7133. },
  7134. "excerpt": {
  7135. "rendered": ""
  7136. }
  7137. };
  7138. mockedApiResponse.MediaCollection = [
  7139. {
  7140. "id": 10,
  7141. "date": "2017-02-14T00:00:00",
  7142. "date_gmt": "2017-02-14T00:00:00",
  7143. "guid": {
  7144. "rendered": "http://example.org/?attachment_id=10"
  7145. },
  7146. "modified": "2017-02-14T00:00:00",
  7147. "modified_gmt": "2017-02-14T00:00:00",
  7148. "slug": "restapi-client-fixture-attachment",
  7149. "status": "inherit",
  7150. "type": "attachment",
  7151. "link": "http://example.org/?attachment_id=10",
  7152. "title": {
  7153. "rendered": "REST API Client Fixture: Attachment"
  7154. },
  7155. "author": 0,
  7156. "comment_status": "open",
  7157. "ping_status": "closed",
  7158. "template": "",
  7159. "meta": {
  7160. "meta_key": ""
  7161. },
  7162. "description": {
  7163. "rendered": "<p class=\"attachment\"><!-- <a...><img.../></a> --></p>"
  7164. },
  7165. "caption": {
  7166. "rendered": "<p>A sample caption</p>\n"
  7167. },
  7168. "alt_text": "",
  7169. "media_type": "image",
  7170. "mime_type": "image/jpeg",
  7171. "media_details": {},
  7172. "post": null,
  7173. "source_url": "http://example.org/wp-content/uploads//tmp/canola.jpg",
  7174. "_links": {
  7175. "self": [
  7176. {
  7177. "href": "http://example.org/index.php?rest_route=/wp/v2/media/10"
  7178. }
  7179. ],
  7180. "collection": [
  7181. {
  7182. "href": "http://example.org/index.php?rest_route=/wp/v2/media"
  7183. }
  7184. ],
  7185. "about": [
  7186. {
  7187. "href": "http://example.org/index.php?rest_route=/wp/v2/types/attachment"
  7188. }
  7189. ],
  7190. "replies": [
  7191. {
  7192. "embeddable": true,
  7193. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"
  7194. }
  7195. ]
  7196. }
  7197. }
  7198. ];
  7199. mockedApiResponse.MediaModel = {
  7200. "id": 10,
  7201. "date": "2017-02-14T00:00:00",
  7202. "date_gmt": "2017-02-14T00:00:00",
  7203. "guid": {
  7204. "rendered": "http://example.org/?attachment_id=10"
  7205. },
  7206. "modified": "2017-02-14T00:00:00",
  7207. "modified_gmt": "2017-02-14T00:00:00",
  7208. "slug": "restapi-client-fixture-attachment",
  7209. "status": "inherit",
  7210. "type": "attachment",
  7211. "link": "http://example.org/?attachment_id=10",
  7212. "title": {
  7213. "rendered": "REST API Client Fixture: Attachment"
  7214. },
  7215. "author": 0,
  7216. "comment_status": "open",
  7217. "ping_status": "closed",
  7218. "template": "",
  7219. "meta": {
  7220. "meta_key": ""
  7221. },
  7222. "description": {
  7223. "rendered": "<p class=\"attachment\"><!-- <a...><img.../></a> --></p>"
  7224. },
  7225. "caption": {
  7226. "rendered": "<p>A sample caption</p>\n"
  7227. },
  7228. "alt_text": "",
  7229. "media_type": "image",
  7230. "mime_type": "image/jpeg",
  7231. "media_details": {},
  7232. "post": null,
  7233. "source_url": "http://example.org/wp-content/uploads//tmp/canola.jpg"
  7234. };
  7235. mockedApiResponse.TypesCollection = {
  7236. "post": {
  7237. "description": "",
  7238. "hierarchical": false,
  7239. "name": "Posts",
  7240. "slug": "post",
  7241. "taxonomies": [
  7242. "category",
  7243. "post_tag"
  7244. ],
  7245. "rest_base": "posts",
  7246. "_links": {
  7247. "collection": [
  7248. {
  7249. "href": "http://example.org/index.php?rest_route=/wp/v2/types"
  7250. }
  7251. ],
  7252. "wp:items": [
  7253. {
  7254. "href": "http://example.org/index.php?rest_route=/wp/v2/posts"
  7255. }
  7256. ],
  7257. "curies": [
  7258. {
  7259. "name": "wp",
  7260. "href": "https://api.w.org/{rel}",
  7261. "templated": true
  7262. }
  7263. ]
  7264. }
  7265. },
  7266. "page": {
  7267. "description": "",
  7268. "hierarchical": true,
  7269. "name": "Pages",
  7270. "slug": "page",
  7271. "taxonomies": [],
  7272. "rest_base": "pages",
  7273. "_links": {
  7274. "collection": [
  7275. {
  7276. "href": "http://example.org/index.php?rest_route=/wp/v2/types"
  7277. }
  7278. ],
  7279. "wp:items": [
  7280. {
  7281. "href": "http://example.org/index.php?rest_route=/wp/v2/pages"
  7282. }
  7283. ],
  7284. "curies": [
  7285. {
  7286. "name": "wp",
  7287. "href": "https://api.w.org/{rel}",
  7288. "templated": true
  7289. }
  7290. ]
  7291. }
  7292. },
  7293. "attachment": {
  7294. "description": "",
  7295. "hierarchical": false,
  7296. "name": "Media",
  7297. "slug": "attachment",
  7298. "taxonomies": [],
  7299. "rest_base": "media",
  7300. "_links": {
  7301. "collection": [
  7302. {
  7303. "href": "http://example.org/index.php?rest_route=/wp/v2/types"
  7304. }
  7305. ],
  7306. "wp:items": [
  7307. {
  7308. "href": "http://example.org/index.php?rest_route=/wp/v2/media"
  7309. }
  7310. ],
  7311. "curies": [
  7312. {
  7313. "name": "wp",
  7314. "href": "https://api.w.org/{rel}",
  7315. "templated": true
  7316. }
  7317. ]
  7318. }
  7319. },
  7320. "wp_block": {
  7321. "description": "",
  7322. "hierarchical": false,
  7323. "name": "Reusable Blocks",
  7324. "slug": "wp_block",
  7325. "taxonomies": [],
  7326. "rest_base": "blocks",
  7327. "_links": {
  7328. "collection": [
  7329. {
  7330. "href": "http://example.org/index.php?rest_route=/wp/v2/types"
  7331. }
  7332. ],
  7333. "wp:items": [
  7334. {
  7335. "href": "http://example.org/index.php?rest_route=/wp/v2/blocks"
  7336. }
  7337. ],
  7338. "curies": [
  7339. {
  7340. "name": "wp",
  7341. "href": "https://api.w.org/{rel}",
  7342. "templated": true
  7343. }
  7344. ]
  7345. }
  7346. }
  7347. };
  7348. mockedApiResponse.TypeModel = {
  7349. "description": "",
  7350. "hierarchical": false,
  7351. "name": "Posts",
  7352. "slug": "post",
  7353. "taxonomies": [
  7354. "category",
  7355. "post_tag"
  7356. ],
  7357. "rest_base": "posts"
  7358. };
  7359. mockedApiResponse.StatusesCollection = {
  7360. "publish": {
  7361. "name": "Published",
  7362. "public": true,
  7363. "queryable": true,
  7364. "slug": "publish",
  7365. "date_floating": false,
  7366. "_links": {
  7367. "archives": [
  7368. {
  7369. "href": "http://example.org/index.php?rest_route=/wp/v2/posts"
  7370. }
  7371. ]
  7372. }
  7373. },
  7374. "future": {
  7375. "name": "Scheduled",
  7376. "public": false,
  7377. "queryable": false,
  7378. "slug": "future",
  7379. "date_floating": false,
  7380. "_links": {
  7381. "archives": [
  7382. {
  7383. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=future"
  7384. }
  7385. ]
  7386. }
  7387. },
  7388. "draft": {
  7389. "name": "Draft",
  7390. "public": false,
  7391. "queryable": false,
  7392. "slug": "draft",
  7393. "date_floating": true,
  7394. "_links": {
  7395. "archives": [
  7396. {
  7397. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=draft"
  7398. }
  7399. ]
  7400. }
  7401. },
  7402. "pending": {
  7403. "name": "Pending",
  7404. "public": false,
  7405. "queryable": false,
  7406. "slug": "pending",
  7407. "date_floating": true,
  7408. "_links": {
  7409. "archives": [
  7410. {
  7411. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=pending"
  7412. }
  7413. ]
  7414. }
  7415. },
  7416. "private": {
  7417. "name": "Private",
  7418. "public": false,
  7419. "queryable": false,
  7420. "slug": "private",
  7421. "date_floating": false,
  7422. "_links": {
  7423. "archives": [
  7424. {
  7425. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=private"
  7426. }
  7427. ]
  7428. }
  7429. },
  7430. "trash": {
  7431. "name": "Trash",
  7432. "public": false,
  7433. "queryable": false,
  7434. "slug": "trash",
  7435. "date_floating": false,
  7436. "_links": {
  7437. "archives": [
  7438. {
  7439. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=trash"
  7440. }
  7441. ]
  7442. }
  7443. }
  7444. };
  7445. mockedApiResponse.StatusModel = {
  7446. "name": "Published",
  7447. "public": true,
  7448. "queryable": true,
  7449. "slug": "publish",
  7450. "date_floating": false
  7451. };
  7452. mockedApiResponse.TaxonomiesCollection = {
  7453. "category": {
  7454. "name": "Categories",
  7455. "slug": "category",
  7456. "description": "",
  7457. "types": [
  7458. "post"
  7459. ],
  7460. "hierarchical": true,
  7461. "rest_base": "categories",
  7462. "_links": {
  7463. "collection": [
  7464. {
  7465. "href": "http://example.org/index.php?rest_route=/wp/v2/taxonomies"
  7466. }
  7467. ],
  7468. "wp:items": [
  7469. {
  7470. "href": "http://example.org/index.php?rest_route=/wp/v2/categories"
  7471. }
  7472. ],
  7473. "curies": [
  7474. {
  7475. "name": "wp",
  7476. "href": "https://api.w.org/{rel}",
  7477. "templated": true
  7478. }
  7479. ]
  7480. }
  7481. },
  7482. "post_tag": {
  7483. "name": "Tags",
  7484. "slug": "post_tag",
  7485. "description": "",
  7486. "types": [
  7487. "post"
  7488. ],
  7489. "hierarchical": false,
  7490. "rest_base": "tags",
  7491. "_links": {
  7492. "collection": [
  7493. {
  7494. "href": "http://example.org/index.php?rest_route=/wp/v2/taxonomies"
  7495. }
  7496. ],
  7497. "wp:items": [
  7498. {
  7499. "href": "http://example.org/index.php?rest_route=/wp/v2/tags"
  7500. }
  7501. ],
  7502. "curies": [
  7503. {
  7504. "name": "wp",
  7505. "href": "https://api.w.org/{rel}",
  7506. "templated": true
  7507. }
  7508. ]
  7509. }
  7510. }
  7511. };
  7512. mockedApiResponse.TaxonomyModel = {
  7513. "name": "Categories",
  7514. "slug": "category",
  7515. "description": "",
  7516. "types": [
  7517. "post"
  7518. ],
  7519. "hierarchical": true,
  7520. "rest_base": "categories"
  7521. };
  7522. mockedApiResponse.CategoriesCollection = [
  7523. {
  7524. "id": 1,
  7525. "count": 1,
  7526. "description": "",
  7527. "link": "http://example.org/?cat=1",
  7528. "name": "Uncategorized",
  7529. "slug": "uncategorized",
  7530. "taxonomy": "category",
  7531. "parent": 0,
  7532. "meta": {
  7533. "test_single": "",
  7534. "test_multi": [],
  7535. "meta_key": "",
  7536. "test_cat_single": "",
  7537. "test_cat_multi": []
  7538. },
  7539. "_links": {
  7540. "self": [
  7541. {
  7542. "href": "http://example.org/index.php?rest_route=/wp/v2/categories/1"
  7543. }
  7544. ],
  7545. "collection": [
  7546. {
  7547. "href": "http://example.org/index.php?rest_route=/wp/v2/categories"
  7548. }
  7549. ],
  7550. "about": [
  7551. {
  7552. "href": "http://example.org/index.php?rest_route=/wp/v2/taxonomies/category"
  7553. }
  7554. ],
  7555. "wp:post_type": [
  7556. {
  7557. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&categories=1"
  7558. }
  7559. ],
  7560. "curies": [
  7561. {
  7562. "name": "wp",
  7563. "href": "https://api.w.org/{rel}",
  7564. "templated": true
  7565. }
  7566. ]
  7567. }
  7568. }
  7569. ];
  7570. mockedApiResponse.CategoryModel = {
  7571. "id": 1,
  7572. "count": 1,
  7573. "description": "",
  7574. "link": "http://example.org/?cat=1",
  7575. "name": "Uncategorized",
  7576. "slug": "uncategorized",
  7577. "taxonomy": "category",
  7578. "parent": 0,
  7579. "meta": {
  7580. "test_single": "",
  7581. "test_multi": [],
  7582. "meta_key": "",
  7583. "test_cat_single": "",
  7584. "test_cat_multi": []
  7585. }
  7586. };
  7587. mockedApiResponse.TagsCollection = [
  7588. {
  7589. "id": 2,
  7590. "count": 0,
  7591. "description": "REST API Client Fixture: Tag",
  7592. "link": "http://example.org/?tag=restapi-client-fixture-tag",
  7593. "name": "REST API Client Fixture: Tag",
  7594. "slug": "restapi-client-fixture-tag",
  7595. "taxonomy": "post_tag",
  7596. "meta": {
  7597. "test_single": "",
  7598. "test_multi": [],
  7599. "meta_key": "meta_value",
  7600. "test_tag_meta": ""
  7601. },
  7602. "_links": {
  7603. "self": [
  7604. {
  7605. "href": "http://example.org/index.php?rest_route=/wp/v2/tags/2"
  7606. }
  7607. ],
  7608. "collection": [
  7609. {
  7610. "href": "http://example.org/index.php?rest_route=/wp/v2/tags"
  7611. }
  7612. ],
  7613. "about": [
  7614. {
  7615. "href": "http://example.org/index.php?rest_route=/wp/v2/taxonomies/post_tag"
  7616. }
  7617. ],
  7618. "wp:post_type": [
  7619. {
  7620. "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&tags=2"
  7621. }
  7622. ],
  7623. "curies": [
  7624. {
  7625. "name": "wp",
  7626. "href": "https://api.w.org/{rel}",
  7627. "templated": true
  7628. }
  7629. ]
  7630. }
  7631. }
  7632. ];
  7633. mockedApiResponse.TagModel = {
  7634. "id": 2,
  7635. "count": 0,
  7636. "description": "REST API Client Fixture: Tag",
  7637. "link": "http://example.org/?tag=restapi-client-fixture-tag",
  7638. "name": "REST API Client Fixture: Tag",
  7639. "slug": "restapi-client-fixture-tag",
  7640. "taxonomy": "post_tag",
  7641. "meta": {
  7642. "test_single": "",
  7643. "test_multi": [],
  7644. "meta_key": "meta_value",
  7645. "test_tag_meta": ""
  7646. }
  7647. };
  7648. mockedApiResponse.UsersCollection = [
  7649. {
  7650. "id": 1,
  7651. "name": "admin",
  7652. "url": "http://example.org",
  7653. "description": "",
  7654. "link": "http://example.org/?author=1",
  7655. "slug": "admin",
  7656. "avatar_urls": {
  7657. "24": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g",
  7658. "48": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g",
  7659. "96": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g"
  7660. },
  7661. "meta": {
  7662. "meta_key": "meta_value"
  7663. },
  7664. "_links": {
  7665. "self": [
  7666. {
  7667. "href": "http://example.org/index.php?rest_route=/wp/v2/users/1"
  7668. }
  7669. ],
  7670. "collection": [
  7671. {
  7672. "href": "http://example.org/index.php?rest_route=/wp/v2/users"
  7673. }
  7674. ]
  7675. }
  7676. },
  7677. {
  7678. "id": 2,
  7679. "name": "REST API Client Fixture: User",
  7680. "url": "",
  7681. "description": "",
  7682. "link": "http://example.org/?author=2",
  7683. "slug": "restapiclientfixtureuser",
  7684. "avatar_urls": {
  7685. "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
  7686. "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
  7687. "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
  7688. },
  7689. "meta": {
  7690. "meta_key": ""
  7691. },
  7692. "_links": {
  7693. "self": [
  7694. {
  7695. "href": "http://example.org/index.php?rest_route=/wp/v2/users/2"
  7696. }
  7697. ],
  7698. "collection": [
  7699. {
  7700. "href": "http://example.org/index.php?rest_route=/wp/v2/users"
  7701. }
  7702. ]
  7703. }
  7704. }
  7705. ];
  7706. mockedApiResponse.UserModel = {
  7707. "id": 2,
  7708. "name": "REST API Client Fixture: User",
  7709. "url": "",
  7710. "description": "",
  7711. "link": "http://example.org/?author=2",
  7712. "slug": "restapiclientfixtureuser",
  7713. "avatar_urls": {
  7714. "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
  7715. "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
  7716. "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
  7717. },
  7718. "meta": {
  7719. "meta_key": ""
  7720. }
  7721. };
  7722. mockedApiResponse.me = {
  7723. "id": 2,
  7724. "name": "REST API Client Fixture: User",
  7725. "url": "",
  7726. "description": "",
  7727. "link": "http://example.org/?author=2",
  7728. "slug": "restapiclientfixtureuser",
  7729. "avatar_urls": {
  7730. "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
  7731. "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
  7732. "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
  7733. },
  7734. "meta": {
  7735. "meta_key": ""
  7736. }
  7737. };
  7738. mockedApiResponse.CommentsCollection = [
  7739. {
  7740. "id": 2,
  7741. "post": 4,
  7742. "parent": 0,
  7743. "author": 0,
  7744. "author_name": "Internet of something or other",
  7745. "author_url": "http://lights.example.org/",
  7746. "date": "2017-02-14T00:00:00",
  7747. "date_gmt": "2017-02-14T00:00:00",
  7748. "content": {
  7749. "rendered": "<p>This is a comment</p>\n"
  7750. },
  7751. "link": "http://example.org/?p=4#comment-2",
  7752. "status": "approved",
  7753. "type": "comment",
  7754. "author_avatar_urls": {
  7755. "24": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=24&d=mm&r=g",
  7756. "48": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=48&d=mm&r=g",
  7757. "96": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=96&d=mm&r=g"
  7758. },
  7759. "meta": {
  7760. "meta_key": "meta_value"
  7761. },
  7762. "_links": {
  7763. "self": [
  7764. {
  7765. "href": "http://example.org/index.php?rest_route=/wp/v2/comments/2"
  7766. }
  7767. ],
  7768. "collection": [
  7769. {
  7770. "href": "http://example.org/index.php?rest_route=/wp/v2/comments"
  7771. }
  7772. ],
  7773. "up": [
  7774. {
  7775. "embeddable": true,
  7776. "post_type": "post",
  7777. "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4"
  7778. }
  7779. ]
  7780. }
  7781. }
  7782. ];
  7783. mockedApiResponse.CommentModel = {
  7784. "id": 2,
  7785. "post": 4,
  7786. "parent": 0,
  7787. "author": 0,
  7788. "author_name": "Internet of something or other",
  7789. "author_url": "http://lights.example.org/",
  7790. "date": "2017-02-14T00:00:00",
  7791. "date_gmt": "2017-02-14T00:00:00",
  7792. "content": {
  7793. "rendered": "<p>This is a comment</p>\n"
  7794. },
  7795. "link": "http://example.org/?p=4#comment-2",
  7796. "status": "approved",
  7797. "type": "comment",
  7798. "author_avatar_urls": {
  7799. "24": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=24&d=mm&r=g",
  7800. "48": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=48&d=mm&r=g",
  7801. "96": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=96&d=mm&r=g"
  7802. },
  7803. "meta": {
  7804. "meta_key": "meta_value"
  7805. }
  7806. };
  7807. mockedApiResponse.settings = {
  7808. "title": "Test Blog",
  7809. "description": "Just another WordPress site",
  7810. "url": "http://example.org",
  7811. "email": "admin@example.org",
  7812. "timezone": "",
  7813. "date_format": "F j, Y",
  7814. "time_format": "g:i a",
  7815. "start_of_week": 1,
  7816. "language": "en_US",
  7817. "use_smilies": true,
  7818. "default_category": 1,
  7819. "default_post_format": "0",
  7820. "posts_per_page": 10,
  7821. "default_ping_status": "open",
  7822. "default_comment_status": "open"
  7823. };