File tree Expand file tree Collapse file tree
others/typescript-fetch/infinite-recursion-issue/apis
petstore/typescript-fetch/builds
prefix-parameter-interfaces Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,29 +25,21 @@ import {
2525export class TestApi extends runtime . BaseAPI {
2626
2727 /**
28- * Creates request options for test without sending the request
2928 */
30- async testRequestOpts ( initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < runtime . RequestOpts > {
29+ async testRaw ( initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < runtime . ApiResponse < Array < TestBaseDto > > > {
3130 const queryParameters : any = { } ;
3231
3332 const headerParameters : runtime . HTTPHeaders = { } ;
3433
3534
3635 let urlPath = `/api/v1/test` ;
3736
38- return {
37+ const response = await this . request ( {
3938 path : urlPath ,
4039 method : 'GET' ,
4140 headers : headerParameters ,
4241 query : queryParameters ,
43- } ;
44- }
45-
46- /**
47- */
48- async testRaw ( initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < runtime . ApiResponse < Array < TestBaseDto > > > {
49- const requestConfig = await this . testRequestConfig ( initOverrides ) ;
50- const response = await this . request ( requestConfig , initOverrides ) ;
42+ } , initOverrides ) ;
5143
5244 return new runtime . JSONApiResponse ( response , ( jsonValue ) => jsonValue . map ( TestBaseDtoFromJSON ) ) ;
5345 }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type { AddPetRequest } from '@openapitools/typescript-fetch-petstore';
2222
2323async function example() {
2424 console .log (" 🚀 Testing @openapitools/typescript-fetch-petstore SDK..." );
25- const config = new Configuration ({
25+ const config = new Configuration ({
2626 // To configure OAuth2 access token for authorization: petstore_auth implicit
2727 accessToken: " YOUR ACCESS TOKEN" ,
2828 });
@@ -96,7 +96,7 @@ Authentication schemes defined for the API:
9696- ** Type** : OAuth
9797- ** Flow** : implicit
9898- ** Authorization URL** : http://petstore.swagger.io/api/oauth/dialog
99- - ** Scopes** :
99+ - ** Scopes** :
100100 - ` write:pets ` : modify pets in your account
101101 - ` read:pets ` : read your pets
102102<a id =" api_key " ></a >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type { AddPetRequest } from '@openapitools/typescript-fetch-petstore';
2222
2323async function example() {
2424 console .log (" 🚀 Testing @openapitools/typescript-fetch-petstore SDK..." );
25- const config = new Configuration ({
25+ const config = new Configuration ({
2626 // To configure OAuth2 access token for authorization: petstore_auth implicit
2727 accessToken: " YOUR ACCESS TOKEN" ,
2828 });
@@ -96,7 +96,7 @@ Authentication schemes defined for the API:
9696- ** Type** : OAuth
9797- ** Flow** : implicit
9898- ** Authorization URL** : http://petstore.swagger.io/api/oauth/dialog
99- - ** Scopes** :
99+ - ** Scopes** :
100100 - ` write:pets ` : modify pets in your account
101101 - ` read:pets ` : read your pets
102102<a id =" api_key " ></a >
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ Authentication schemes defined for the API:
118118- ** Type** : OAuth
119119- ** Flow** : implicit
120120- ** Authorization URL** : http://petstore.swagger.io/api/oauth/dialog
121- - ** Scopes** :
121+ - ** Scopes** :
122122 - ` write:pets ` : modify pets in your account
123123 - ` read:pets ` : read your pets
124124<a id =" api_key " ></a >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type { AddPetRequest } from '@openapitools/typescript-fetch-petstore';
2222
2323async function example() {
2424 console .log (" 🚀 Testing @openapitools/typescript-fetch-petstore SDK..." );
25- const config = new Configuration ({
25+ const config = new Configuration ({
2626 // To configure OAuth2 access token for authorization: petstore_auth implicit
2727 accessToken: " YOUR ACCESS TOKEN" ,
2828 });
@@ -96,7 +96,7 @@ Authentication schemes defined for the API:
9696- ** Type** : OAuth
9797- ** Flow** : implicit
9898- ** Authorization URL** : http://petstore.swagger.io/api/oauth/dialog
99- - ** Scopes** :
99+ - ** Scopes** :
100100 - ` write:pets ` : modify pets in your account
101101 - ` read:pets ` : read your pets
102102<a id =" api_key " ></a >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type { AddPetRequest } from '@openapitools/typescript-fetch-petstore';
2222
2323async function example() {
2424 console .log (" 🚀 Testing @openapitools/typescript-fetch-petstore SDK..." );
25- const config = new Configuration ({
25+ const config = new Configuration ({
2626 // To configure OAuth2 access token for authorization: petstore_auth implicit
2727 accessToken: " YOUR ACCESS TOKEN" ,
2828 });
@@ -96,7 +96,7 @@ Authentication schemes defined for the API:
9696- ** Type** : OAuth
9797- ** Flow** : implicit
9898- ** Authorization URL** : http://petstore.swagger.io/api/oauth/dialog
99- - ** Scopes** :
99+ - ** Scopes** :
100100 - ` write:pets ` : modify pets in your account
101101 - ` read:pets ` : read your pets
102102<a id =" api_key " ></a >
You can’t perform that action at this time.
0 commit comments