[{"data":1,"prerenderedAt":1253},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch\u002Fguides\u002Fcalling-operations":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":1252,"source":4},"extensions\u002Fkubb-labs\u002Fplugin-fetch\u002Fguides\u002Fcalling-operations.md",{},"Call operations",{"type":8,"value":9,"toc":1241},"minimark",[10,19,24,45,133,139,337,344,348,356,470,484,582,588,677,681,688,751,772,871,875,885,1014,1021,1025,1050,1111,1123,1127,1134],[11,12,13,14,18],"p",{},"The generated client accepts grouped request options on every operation and returns a typed ",[15,16,17],"code",{},"RequestResult"," by default.",[20,21,23],"h2",{"id":22},"call-an-operation","Call an operation",[11,25,26,27,30,31,30,34,30,37,40,41,44],{},"Pass parameters under ",[15,28,29],{},"path",", ",[15,32,33],{},"query",[15,35,36],{},"headers",[15,38,39],{},"cookies",", or ",[15,42,43],{},"body",", matching the OpenAPI operation.",[46,47,51],"pre",{"language":48,"code":49,"class":50},"typescript","import { getPetById } from '.\u002Fgen\u002Fclients\u002FgetPetById'\n\nconst { data } = await getPetById({ path: { petId: 1 } })\n\u002F\u002F      ^ the parsed pet, typed from the 200 response","highlights",[15,52,54,81,82,81,84,81,127],{"class":53},"language-typescript",[55,56,59,63,67,71,74,77],"span",{"class":57,"style":58},"line","display: inline",[55,60,62],{"style":61},"color:#d73a49;--hls-dark:#f97583","import ",[55,64,66],{"style":65},"color:#005cc5;--hls-dark:#79b8ff","{ ",[55,68,70],{"style":69},"color:#24292e;--hls-dark:#e1e4e8","getPetById ",[55,72,73],{"style":65},"} ",[55,75,76],{"style":61},"from ",[55,78,80],{"style":79},"color:#032f62;--hls-dark:#9ecbff","'.\u002Fgen\u002Fclients\u002FgetPetById'","\n",[55,83],{"class":57,"style":58},[55,85,86,89,91,94,96,99,102,106,109,111,114,116,119,121,124],{"class":57,"style":58},[55,87,88],{"style":61},"const ",[55,90,66],{"style":65},[55,92,93],{"style":69},"data ",[55,95,73],{"style":65},[55,97,98],{"style":61},"= ",[55,100,101],{"style":61},"await ",[55,103,105],{"style":104},"color:#6f42c1;--hls-dark:#b392f0","getPetById",[55,107,108],{"style":65},"({ ",[55,110,29],{"style":65},[55,112,113],{"style":61},": ",[55,115,66],{"style":65},[55,117,118],{"style":65},"petId",[55,120,113],{"style":61},[55,122,123],{"style":65},"1 ",[55,125,126],{"style":65},"} })",[55,128,129],{"class":57,"style":58},[55,130,132],{"style":131},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F      ^ the parsed pet, typed from the 200 response",[11,134,135,136,138],{},"Query, header, and cookie parameters sit under their own keys, and a request body goes under\n",[15,137,43],{},":",[46,140,142],{"language":48,"code":141,"class":50},"import { searchPets } from '.\u002Fgen\u002Fclients\u002FsearchPets'\nimport { updatePet } from '.\u002Fgen\u002Fclients\u002FupdatePet'\n\nawait searchPets({\n  query: { status: 'available', category: 'dogs', limit: 10, offset: 0 },\n})\n\nawait updatePet({\n  path: { petId: '123' },\n  headers: { 'X-Request-ID': 'req-123456' },\n  body: { name: 'Updated name', status: 'sold' },\n})",[15,143,144,81,160,81,176,81,178,81,188,81,243,81,248,81,250,81,259,81,280,81,302,81,333],{"class":53},[55,145,146,148,150,153,155,157],{"class":57,"style":58},[55,147,62],{"style":61},[55,149,66],{"style":65},[55,151,152],{"style":69},"searchPets ",[55,154,73],{"style":65},[55,156,76],{"style":61},[55,158,159],{"style":79},"'.\u002Fgen\u002Fclients\u002FsearchPets'",[55,161,162,164,166,169,171,173],{"class":57,"style":58},[55,163,62],{"style":61},[55,165,66],{"style":65},[55,167,168],{"style":69},"updatePet ",[55,170,73],{"style":65},[55,172,76],{"style":61},[55,174,175],{"style":79},"'.\u002Fgen\u002Fclients\u002FupdatePet'",[55,177],{"class":57,"style":58},[55,179,180,182,185],{"class":57,"style":58},[55,181,101],{"style":61},[55,183,184],{"style":104},"searchPets",[55,186,187],{"style":65},"({",[55,189,190,193,195,197,199,202,204,207,209,212,214,217,219,222,224,227,229,232,234,237,240],{"class":57,"style":58},[55,191,192],{"style":65},"  ",[55,194,33],{"style":65},[55,196,113],{"style":61},[55,198,66],{"style":65},[55,200,201],{"style":65},"status",[55,203,113],{"style":61},[55,205,206],{"style":79},"'available'",[55,208,30],{"style":61},[55,210,211],{"style":65},"category",[55,213,113],{"style":61},[55,215,216],{"style":79},"'dogs'",[55,218,30],{"style":61},[55,220,221],{"style":65},"limit",[55,223,113],{"style":61},[55,225,226],{"style":65},"10",[55,228,30],{"style":61},[55,230,231],{"style":65},"offset",[55,233,113],{"style":61},[55,235,236],{"style":65},"0 ",[55,238,239],{"style":65},"}",[55,241,242],{"style":61},",",[55,244,245],{"class":57,"style":58},[55,246,247],{"style":65},"})",[55,249],{"class":57,"style":58},[55,251,252,254,257],{"class":57,"style":58},[55,253,101],{"style":61},[55,255,256],{"style":104},"updatePet",[55,258,187],{"style":65},[55,260,261,263,265,267,269,271,273,276,278],{"class":57,"style":58},[55,262,192],{"style":65},[55,264,29],{"style":65},[55,266,113],{"style":61},[55,268,66],{"style":65},[55,270,118],{"style":65},[55,272,113],{"style":61},[55,274,275],{"style":79},"'123' ",[55,277,239],{"style":65},[55,279,242],{"style":61},[55,281,282,284,286,288,290,293,295,298,300],{"class":57,"style":58},[55,283,192],{"style":61},[55,285,36],{"style":65},[55,287,113],{"style":61},[55,289,66],{"style":65},[55,291,292],{"style":79},"'X-Request-ID'",[55,294,113],{"style":61},[55,296,297],{"style":79},"'req-123456' ",[55,299,239],{"style":65},[55,301,242],{"style":61},[55,303,304,306,308,310,312,315,317,320,322,324,326,329,331],{"class":57,"style":58},[55,305,192],{"style":61},[55,307,43],{"style":65},[55,309,113],{"style":61},[55,311,66],{"style":65},[55,313,314],{"style":65},"name",[55,316,113],{"style":61},[55,318,319],{"style":79},"'Updated name'",[55,321,30],{"style":61},[55,323,201],{"style":65},[55,325,113],{"style":61},[55,327,328],{"style":79},"'sold' ",[55,330,239],{"style":65},[55,332,242],{"style":61},[55,334,335],{"class":57,"style":58},[55,336,247],{"style":65},[11,338,339,340,343],{},"Each key is optional and only appears when the operation declares it. Call an operation with no parameters with an empty object: ",[15,341,342],{},"getStatus({})",".",[20,345,347],{"id":346},"read-the-result","Read the result",[11,349,350,351,353,354,138],{},"A resolved call returns a ",[15,352,17],{}," discriminated by the numeric ",[15,355,201],{},[46,357,359],{"language":48,"code":358,"class":50},"type RequestResult = {\n  status: number\n  data: TData \u002F\u002F the parsed success body, undefined on an error result\n  error: TError \u002F\u002F the parsed error body, undefined on a success result\n  contentType: string | undefined \u002F\u002F the negotiated response media type\n  request: Request \u002F\u002F the native request\n  response: Response \u002F\u002F the native response\n}",[15,360,361,81,374,81,385,81,400,81,415,81,436,81,451,81,466],{"class":53},[55,362,363,366,369,371],{"class":57,"style":58},[55,364,365],{"style":61},"type ",[55,367,368],{"style":104},"RequestResult ",[55,370,98],{"style":61},[55,372,373],{"style":65},"{",[55,375,376,378,380,382],{"class":57,"style":58},[55,377,192],{"style":65},[55,379,201],{"style":65},[55,381,113],{"style":69},[55,383,384],{"style":104},"number",[55,386,387,389,392,394,397],{"class":57,"style":58},[55,388,192],{"style":104},[55,390,391],{"style":69},"data",[55,393,113],{"style":69},[55,395,396],{"style":104},"TData ",[55,398,399],{"style":131},"\u002F\u002F the parsed success body, undefined on an error result",[55,401,402,404,407,409,412],{"class":57,"style":58},[55,403,192],{"style":131},[55,405,406],{"style":69},"error",[55,408,113],{"style":69},[55,410,411],{"style":104},"TError ",[55,413,414],{"style":131},"\u002F\u002F the parsed error body, undefined on a success result",[55,416,417,419,422,424,427,430,433],{"class":57,"style":58},[55,418,192],{"style":131},[55,420,421],{"style":69},"contentType",[55,423,113],{"style":69},[55,425,426],{"style":104},"string ",[55,428,429],{"style":61},"| ",[55,431,432],{"style":65},"undefined ",[55,434,435],{"style":131},"\u002F\u002F the negotiated response media type",[55,437,438,440,443,445,448],{"class":57,"style":58},[55,439,192],{"style":131},[55,441,442],{"style":69},"request",[55,444,113],{"style":69},[55,446,447],{"style":104},"Request ",[55,449,450],{"style":131},"\u002F\u002F the native request",[55,452,453,455,458,460,463],{"class":57,"style":58},[55,454,192],{"style":131},[55,456,457],{"style":69},"response",[55,459,113],{"style":69},[55,461,462],{"style":104},"Response ",[55,464,465],{"style":131},"\u002F\u002F the native response",[55,467,468],{"class":57,"style":58},[55,469,239],{"style":65},[11,471,472,473,476,477,480,481,483],{},"When ",[15,474,475],{},"throwOnError"," is ",[15,478,479],{},"true"," (the generated default), a resolved call is always a success, so you\nread ",[15,482,391],{}," straight away:",[46,485,487],{"language":48,"code":486,"class":50},"const { data, status, response } = await getPetById({ path: { petId: 1 } })\n\nconsole.info(status) \u002F\u002F 200\nconsole.info(response.headers.get('x-ratelimit-remaining'))",[15,488,489,81,530,81,532,81,553],{"class":53},[55,490,491,493,495,497,499,501,503,506,508,510,512,514,516,518,520,522,524,526,528],{"class":57,"style":58},[55,492,88],{"style":61},[55,494,66],{"style":65},[55,496,391],{"style":69},[55,498,30],{"style":61},[55,500,201],{"style":69},[55,502,30],{"style":61},[55,504,505],{"style":69},"response ",[55,507,73],{"style":65},[55,509,98],{"style":61},[55,511,101],{"style":61},[55,513,105],{"style":104},[55,515,108],{"style":65},[55,517,29],{"style":65},[55,519,113],{"style":61},[55,521,66],{"style":65},[55,523,118],{"style":65},[55,525,113],{"style":61},[55,527,123],{"style":65},[55,529,126],{"style":65},[55,531],{"class":57,"style":58},[55,533,534,537,539,542,545,547,550],{"class":57,"style":58},[55,535,536],{"style":69},"console",[55,538,343],{"style":61},[55,540,541],{"style":104},"info",[55,543,544],{"style":65},"(",[55,546,201],{"style":69},[55,548,549],{"style":65},") ",[55,551,552],{"style":131},"\u002F\u002F 200",[55,554,555,557,559,561,563,565,567,569,571,574,576,579],{"class":57,"style":58},[55,556,536],{"style":69},[55,558,343],{"style":61},[55,560,541],{"style":104},[55,562,544],{"style":65},[55,564,457],{"style":69},[55,566,343],{"style":61},[55,568,36],{"style":65},[55,570,343],{"style":61},[55,572,573],{"style":104},"get",[55,575,544],{"style":65},[55,577,578],{"style":79},"'x-ratelimit-remaining'",[55,580,581],{"style":65},"))",[11,583,584,585,587],{},"When an operation documents more than one success status, narrow on ",[15,586,201],{}," to reach the body\nfor that case, and TypeScript follows the check:",[46,589,591],{"language":48,"code":590,"class":50},"const result = await getPetById({ path: { petId: 1 } })\n\nif (result.status === 200) {\n  console.info(result.data.name)\n}",[15,592,593,81,622,81,624,81,648,81,673],{"class":53},[55,594,595,597,600,602,604,606,608,610,612,614,616,618,620],{"class":57,"style":58},[55,596,88],{"style":61},[55,598,599],{"style":69},"result ",[55,601,98],{"style":61},[55,603,101],{"style":61},[55,605,105],{"style":104},[55,607,108],{"style":65},[55,609,29],{"style":65},[55,611,113],{"style":61},[55,613,66],{"style":65},[55,615,118],{"style":65},[55,617,113],{"style":61},[55,619,123],{"style":65},[55,621,126],{"style":65},[55,623],{"class":57,"style":58},[55,625,626,629,631,634,636,639,642,645],{"class":57,"style":58},[55,627,628],{"style":61},"if ",[55,630,544],{"style":65},[55,632,633],{"style":69},"result",[55,635,343],{"style":61},[55,637,638],{"style":65},"status ",[55,640,641],{"style":61},"=== ",[55,643,644],{"style":65},"200",[55,646,647],{"style":65},") {",[55,649,650,652,654,656,658,660,662,664,666,668,670],{"class":57,"style":58},[55,651,192],{"style":65},[55,653,536],{"style":69},[55,655,343],{"style":61},[55,657,541],{"style":104},[55,659,544],{"style":65},[55,661,633],{"style":69},[55,663,343],{"style":61},[55,665,391],{"style":65},[55,667,343],{"style":61},[55,669,314],{"style":65},[55,671,672],{"style":65},")",[55,674,675],{"class":57,"style":58},[55,676,239],{"style":65},[20,678,680],{"id":679},"unwrap-the-success-body","Unwrap the success body",[11,682,683,684,687],{},"Call ",[15,685,686],{},".unwrap()"," to return the success body. Awaiting the operation directly returns the full result.",[46,689,691],{"language":48,"code":690,"class":50},"import { getPetById } from '.\u002Fgen\u002Fclients\u002FgetPetById'\n\nconst pet = await getPetById({ path: { petId: 1 } }).unwrap()\n\u002F\u002F    ^ the parsed pet, not the full RequestResult",[15,692,693,81,707,81,709,81,746],{"class":53},[55,694,695,697,699,701,703,705],{"class":57,"style":58},[55,696,62],{"style":61},[55,698,66],{"style":65},[55,700,70],{"style":69},[55,702,73],{"style":65},[55,704,76],{"style":61},[55,706,80],{"style":79},[55,708],{"class":57,"style":58},[55,710,711,713,716,718,720,722,724,726,728,730,732,734,736,738,740,743],{"class":57,"style":58},[55,712,88],{"style":61},[55,714,715],{"style":69},"pet ",[55,717,98],{"style":61},[55,719,101],{"style":61},[55,721,105],{"style":104},[55,723,108],{"style":65},[55,725,29],{"style":65},[55,727,113],{"style":61},[55,729,66],{"style":65},[55,731,118],{"style":65},[55,733,113],{"style":61},[55,735,123],{"style":65},[55,737,126],{"style":65},[55,739,343],{"style":61},[55,741,742],{"style":104},"unwrap",[55,744,745],{"style":65},"()",[55,747,748],{"class":57,"style":58},[55,749,750],{"style":131},"\u002F\u002F    ^ the parsed pet, not the full RequestResult",[11,752,753,754,757,758,761,762,765,766,30,769,771],{},"With ",[15,755,756],{},"throwOnError: true",", a non-2xx response throws the same ",[15,759,760],{},"ResponseError"," a plain ",[15,763,764],{},"await"," would. With ",[15,767,768],{},"throwOnError: false",[15,770,686],{}," rejects with the parsed error body instead:",[46,773,775],{"language":48,"code":774,"class":50},"try {\n  const pet = await getPetById({ path: { petId: 1 }, throwOnError: false }).unwrap()\n} catch (error) {\n  \u002F\u002F the parsed error body, not a ResponseError\n  console.error(error)\n}",[15,776,777,81,784,81,831,81,844,81,851,81,867],{"class":53},[55,778,779,782],{"class":57,"style":58},[55,780,781],{"style":61},"try ",[55,783,373],{"style":65},[55,785,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,823,825,827,829],{"class":57,"style":58},[55,787,192],{"style":65},[55,789,88],{"style":61},[55,791,715],{"style":69},[55,793,98],{"style":61},[55,795,101],{"style":61},[55,797,105],{"style":104},[55,799,108],{"style":65},[55,801,29],{"style":65},[55,803,113],{"style":61},[55,805,66],{"style":65},[55,807,118],{"style":65},[55,809,113],{"style":61},[55,811,123],{"style":65},[55,813,239],{"style":65},[55,815,30],{"style":61},[55,817,475],{"style":65},[55,819,113],{"style":61},[55,821,822],{"style":65},"false ",[55,824,247],{"style":65},[55,826,343],{"style":61},[55,828,742],{"style":104},[55,830,745],{"style":65},[55,832,833,835,838,840,842],{"class":57,"style":58},[55,834,73],{"style":65},[55,836,837],{"style":61},"catch ",[55,839,544],{"style":65},[55,841,406],{"style":69},[55,843,647],{"style":65},[55,845,846,848],{"class":57,"style":58},[55,847,192],{"style":65},[55,849,850],{"style":131},"\u002F\u002F the parsed error body, not a ResponseError",[55,852,853,855,857,859,861,863,865],{"class":57,"style":58},[55,854,192],{"style":131},[55,856,536],{"style":69},[55,858,343],{"style":61},[55,860,406],{"style":104},[55,862,544],{"style":65},[55,864,406],{"style":69},[55,866,672],{"style":65},[55,868,869],{"class":57,"style":58},[55,870,239],{"style":65},[20,872,874],{"id":873},"set-the-content-type","Set the content type",[11,876,877,878,880,881,884],{},"When an operation accepts or returns more than one media type, set ",[15,879,421],{}," on the call. A\nbare string sets the request content type. The object form also sends an ",[15,882,883],{},"Accept"," header for the\nresponse:",[46,886,888],{"language":48,"code":887,"class":50},"await uploadAvatar({\n  path: { petId: '123' },\n  body: avatarBlob,\n  contentType: 'image\u002Fpng',\n})\n\nawait getPet({\n  path: { petId: '123' },\n  contentType: { request: 'application\u002Fjson', response: 'application\u002Fxml' },\n})",[15,889,890,81,899,81,919,81,932,81,945,81,949,81,951,81,960,81,980,81,1010],{"class":53},[55,891,892,894,897],{"class":57,"style":58},[55,893,101],{"style":61},[55,895,896],{"style":104},"uploadAvatar",[55,898,187],{"style":65},[55,900,901,903,905,907,909,911,913,915,917],{"class":57,"style":58},[55,902,192],{"style":65},[55,904,29],{"style":65},[55,906,113],{"style":61},[55,908,66],{"style":65},[55,910,118],{"style":65},[55,912,113],{"style":61},[55,914,275],{"style":79},[55,916,239],{"style":65},[55,918,242],{"style":61},[55,920,921,923,925,927,930],{"class":57,"style":58},[55,922,192],{"style":61},[55,924,43],{"style":65},[55,926,113],{"style":61},[55,928,929],{"style":69},"avatarBlob",[55,931,242],{"style":61},[55,933,934,936,938,940,943],{"class":57,"style":58},[55,935,192],{"style":61},[55,937,421],{"style":65},[55,939,113],{"style":61},[55,941,942],{"style":79},"'image\u002Fpng'",[55,944,242],{"style":61},[55,946,947],{"class":57,"style":58},[55,948,247],{"style":65},[55,950],{"class":57,"style":58},[55,952,953,955,958],{"class":57,"style":58},[55,954,101],{"style":61},[55,956,957],{"style":104},"getPet",[55,959,187],{"style":65},[55,961,962,964,966,968,970,972,974,976,978],{"class":57,"style":58},[55,963,192],{"style":65},[55,965,29],{"style":65},[55,967,113],{"style":61},[55,969,66],{"style":65},[55,971,118],{"style":65},[55,973,113],{"style":61},[55,975,275],{"style":79},[55,977,239],{"style":65},[55,979,242],{"style":61},[55,981,982,984,986,988,990,992,994,997,999,1001,1003,1006,1008],{"class":57,"style":58},[55,983,192],{"style":61},[55,985,421],{"style":65},[55,987,113],{"style":61},[55,989,66],{"style":65},[55,991,442],{"style":65},[55,993,113],{"style":61},[55,995,996],{"style":79},"'application\u002Fjson'",[55,998,30],{"style":61},[55,1000,457],{"style":65},[55,1002,113],{"style":61},[55,1004,1005],{"style":79},"'application\u002Fxml' ",[55,1007,239],{"style":65},[55,1009,242],{"style":61},[55,1011,1012],{"class":57,"style":58},[55,1013,247],{"style":65},[11,1015,1016,1017,1020],{},"An operation that declares a single content type has it built in, so a multipart upload such as ",[15,1018,1019],{},"uploadFile({ path: { petId: '123' }, body: { file: pngBlob } })"," needs only the body.",[20,1022,1024],{"id":1023},"pass-native-client-options","Pass native client options",[11,1026,1027,1028,1031,1032,30,1035,30,1038,30,1041,30,1044,40,1047,138],{},"Pass ",[15,1029,1030],{},"options"," on an operation for native fetch settings, such as ",[15,1033,1034],{},"cache",[15,1036,1037],{},"mode",[15,1039,1040],{},"redirect",[15,1042,1043],{},"keepalive",[15,1045,1046],{},"duplex",[15,1048,1049],{},"next",[46,1051,1054],{"language":48,"filename":1052,"code":1053,"class":50},"src\u002Fapp.ts","import { getPetById } from '.\u002Fgen\u002Fclients\u002FgetPetById'\n\nawait getPetById({ path: { petId: 1 }, options: { cache: 'no-store' } })",[15,1055,1056,81,1070,81,1072],{"class":53},[55,1057,1058,1060,1062,1064,1066,1068],{"class":57,"style":58},[55,1059,62],{"style":61},[55,1061,66],{"style":65},[55,1063,70],{"style":69},[55,1065,73],{"style":65},[55,1067,76],{"style":61},[55,1069,80],{"style":79},[55,1071],{"class":57,"style":58},[55,1073,1074,1076,1078,1080,1082,1084,1086,1088,1090,1092,1094,1096,1098,1100,1102,1104,1106,1109],{"class":57,"style":58},[55,1075,101],{"style":61},[55,1077,105],{"style":104},[55,1079,108],{"style":65},[55,1081,29],{"style":65},[55,1083,113],{"style":61},[55,1085,66],{"style":65},[55,1087,118],{"style":65},[55,1089,113],{"style":61},[55,1091,123],{"style":65},[55,1093,239],{"style":65},[55,1095,30],{"style":61},[55,1097,1030],{"style":65},[55,1099,113],{"style":61},[55,1101,66],{"style":65},[55,1103,1034],{"style":65},[55,1105,113],{"style":61},[55,1107,1108],{"style":79},"'no-store' ",[55,1110,126],{"style":65},[11,1112,1113,1114,1117,1118,343],{},"Set ",[15,1115,1116],{},"client.setConfig({ options })"," for shared defaults. Per-call options take precedence. Kubb keeps control of serialization and HTTP error handling. See ",[1119,1120,1122],"a",{"href":1121},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch\u002Fguides\u002Ftransport","Use a custom transport",[20,1124,1126],{"id":1125},"build-a-url-without-sending","Build a URL without sending",[11,1128,1129,1130,1133],{},"Use ",[15,1131,1132],{},"client.getUrl"," to build a URL with the same base URL, path interpolation, and query serialization as a request:",[46,1135,1137],{"language":48,"code":1136,"class":50},"import { client } from '.\u002Fgen\u002F.kubb\u002Fclient'\n\nconst url = client.getUrl({\n  url: '\u002Fpets\u002F{petId}',\n  path: { petId: 1 },\n  query: { fields: 'name' },\n})\n\u002F\u002F https:\u002F\u002Fapi.example.com\u002Fv1\u002Fpets\u002F1?fields=name",[15,1138,1139,81,1155,81,1157,81,1176,81,1190,81,1210,81,1232,81,1236],{"class":53},[55,1140,1141,1143,1145,1148,1150,1152],{"class":57,"style":58},[55,1142,62],{"style":61},[55,1144,66],{"style":65},[55,1146,1147],{"style":69},"client ",[55,1149,73],{"style":65},[55,1151,76],{"style":61},[55,1153,1154],{"style":79},"'.\u002Fgen\u002F.kubb\u002Fclient'",[55,1156],{"class":57,"style":58},[55,1158,1159,1161,1164,1166,1169,1171,1174],{"class":57,"style":58},[55,1160,88],{"style":61},[55,1162,1163],{"style":69},"url ",[55,1165,98],{"style":61},[55,1167,1168],{"style":69},"client",[55,1170,343],{"style":61},[55,1172,1173],{"style":104},"getUrl",[55,1175,187],{"style":65},[55,1177,1178,1180,1183,1185,1188],{"class":57,"style":58},[55,1179,192],{"style":65},[55,1181,1182],{"style":65},"url",[55,1184,113],{"style":61},[55,1186,1187],{"style":79},"'\u002Fpets\u002F{petId}'",[55,1189,242],{"style":61},[55,1191,1192,1194,1196,1198,1200,1202,1204,1206,1208],{"class":57,"style":58},[55,1193,192],{"style":61},[55,1195,29],{"style":65},[55,1197,113],{"style":61},[55,1199,66],{"style":65},[55,1201,118],{"style":65},[55,1203,113],{"style":61},[55,1205,123],{"style":65},[55,1207,239],{"style":65},[55,1209,242],{"style":61},[55,1211,1212,1214,1216,1218,1220,1223,1225,1228,1230],{"class":57,"style":58},[55,1213,192],{"style":61},[55,1215,33],{"style":65},[55,1217,113],{"style":61},[55,1219,66],{"style":65},[55,1221,1222],{"style":65},"fields",[55,1224,113],{"style":61},[55,1226,1227],{"style":79},"'name' ",[55,1229,239],{"style":65},[55,1231,242],{"style":61},[55,1233,1234],{"class":57,"style":58},[55,1235,247],{"style":65},[55,1237,1238],{"class":57,"style":58},[55,1239,1240],{"style":131},"\u002F\u002F https:\u002F\u002Fapi.example.com\u002Fv1\u002Fpets\u002F1?fields=name",{"title":1242,"searchDepth":1243,"depth":1243,"links":1244},"",5,[1245,1247,1248,1249,1250,1251],{"id":22,"depth":1246,"text":23},2,{"id":346,"depth":1246,"text":347},{"id":679,"depth":1246,"text":680},{"id":873,"depth":1246,"text":874},{"id":1023,"depth":1246,"text":1024},{"id":1125,"depth":1246,"text":1126},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch\u002Fguides\u002Fcalling-operations",1793639047661]