File tree Expand file tree Collapse file tree 6 files changed +42
-0
lines changed
modules/openapi-generator/src/main/resources/typescript
samples/openapi3/client/petstore/typescript/builds Expand file tree Collapse file tree 6 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -69,4 +69,11 @@ const config = your_api.createConfiguration(configurationParameters);
69
69
70
70
// Use configuration with your_api
71
71
const api = new your_api.PetApi(config);
72
+ your_api.Pet p = new your_api.Pet();
73
+ p.name = "My new pet";
74
+ p.photoUrls = [];
75
+ p.tags = [];
76
+ p.status = "available";
77
+ Promise<your _api.Pet > createdPet = api.addPet(p);
78
+
72
79
```
Original file line number Diff line number Diff line change @@ -69,4 +69,11 @@ const config = your_api.createConfiguration(configurationParameters);
69
69
70
70
// Use configuration with your_api
71
71
const api = new your_api.PetApi(config);
72
+ your_api.Pet p = new your_api.Pet();
73
+ p.name = "My new pet";
74
+ p.photoUrls = [ ] ;
75
+ p.tags = [ ] ;
76
+ p.status = "available";
77
+ Promise<your_api.Pet> createdPet = api.addPet(p);
78
+
72
79
```
Original file line number Diff line number Diff line change @@ -69,4 +69,11 @@ const config = your_api.createConfiguration(configurationParameters);
69
69
70
70
// Use configuration with your_api
71
71
const api = new your_api.PetApi(config);
72
+ your_api.Pet p = new your_api.Pet();
73
+ p.name = "My new pet";
74
+ p.photoUrls = [ ] ;
75
+ p.tags = [ ] ;
76
+ p.status = "available";
77
+ Promise<your_api.Pet> createdPet = api.addPet(p);
78
+
72
79
```
Original file line number Diff line number Diff line change @@ -69,4 +69,11 @@ const config = your_api.createConfiguration(configurationParameters);
69
69
70
70
// Use configuration with your_api
71
71
const api = new your_api.PetApi(config);
72
+ your_api.Pet p = new your_api.Pet();
73
+ p.name = "My new pet";
74
+ p.photoUrls = [ ] ;
75
+ p.tags = [ ] ;
76
+ p.status = "available";
77
+ Promise<your_api.Pet> createdPet = api.addPet(p);
78
+
72
79
```
Original file line number Diff line number Diff line change @@ -69,4 +69,11 @@ const config = your_api.createConfiguration(configurationParameters);
69
69
70
70
// Use configuration with your_api
71
71
const api = new your_api.PetApi(config);
72
+ your_api.Pet p = new your_api.Pet();
73
+ p.name = "My new pet";
74
+ p.photoUrls = [ ] ;
75
+ p.tags = [ ] ;
76
+ p.status = "available";
77
+ Promise<your_api.Pet> createdPet = api.addPet(p);
78
+
72
79
```
Original file line number Diff line number Diff line change @@ -69,4 +69,11 @@ const config = your_api.createConfiguration(configurationParameters);
69
69
70
70
// Use configuration with your_api
71
71
const api = new your_api.PetApi(config);
72
+ your_api.Pet p = new your_api.Pet();
73
+ p.name = "My new pet";
74
+ p.photoUrls = [ ] ;
75
+ p.tags = [ ] ;
76
+ p.status = "available";
77
+ Promise<your_api.Pet> createdPet = api.addPet(p);
78
+
72
79
```
You can’t perform that action at this time.
0 commit comments