Skip to content

Commit dbd3b5f

Browse files
committed
updated html2 samples
1 parent 64ca3a1 commit dbd3b5f

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

samples/composed/html2/index.html

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,8 @@
702702
} ]
703703
}
704704
};
705-
defs.AnyOfbody_2 = ;
705+
defs.AnyOfbody_1ParrotsItems = {};
706+
defs.AnyOfbody_2 = {};
706707
defs.ApiResponse = {
707708
"type" : "object",
708709
"properties" : {
@@ -849,10 +850,14 @@
849850
}
850851
}
851852
};
852-
defs.OneOfAllPetsResponseItems = ;
853-
defs.OneOfPartMasterOrigin = ;
854-
defs.OneOfPup = ;
855-
defs.OneOfinline_response_200_1 = ;
853+
defs.OneOfAllPetsResponseItems = {};
854+
defs.OneOfPartMasterDestination = {};
855+
defs.OneOfPartMasterOrigin = {};
856+
defs.OneOfPetPartItems = {};
857+
defs.OneOfPup = {};
858+
defs.OneOfinline_response_200ParrotsItems = {};
859+
defs.OneOfinline_response_200_1 = {};
860+
defs.OneOfval_MembersVal_memberItems = {};
856861
defs.Order = {
857862
"type" : "object",
858863
"properties" : {
@@ -2475,8 +2480,9 @@ <h3>Usage and SDK Samples</h3>
24752480
String petType = petType_example; // String | type of food
24762481
String status = status_example; // String | status
24772482
Long petId = 789; // Long | ID of pet to return
2483+
String sessionId = sessionId_example; // String | session id
24782484
try {
2479-
apiInstance.feedPet(body, token, petType, status, petId);
2485+
apiInstance.feedPet(body, token, petType, status, petId, sessionId);
24802486
} catch (ApiException e) {
24812487
System.err.println("Exception when calling PetApi#feedPet");
24822488
e.printStackTrace();
@@ -2497,8 +2503,9 @@ <h3>Usage and SDK Samples</h3>
24972503
String petType = petType_example; // String | type of food
24982504
String status = status_example; // String | status
24992505
Long petId = 789; // Long | ID of pet to return
2506+
String sessionId = sessionId_example; // String | session id
25002507
try {
2501-
apiInstance.feedPet(body, token, petType, status, petId);
2508+
apiInstance.feedPet(body, token, petType, status, petId, sessionId);
25022509
} catch (ApiException e) {
25032510
System.err.println("Exception when calling PetApi#feedPet");
25042511
e.printStackTrace();
@@ -2516,6 +2523,7 @@ <h3>Usage and SDK Samples</h3>
25162523
String *petType = petType_example; // type of food
25172524
String *status = status_example; // status
25182525
Long *petId = 789; // ID of pet to return
2526+
String *sessionId = sessionId_example; // session id
25192527

25202528
PetApi *apiInstance = [[PetApi alloc] init];
25212529

@@ -2525,6 +2533,7 @@ <h3>Usage and SDK Samples</h3>
25252533
petType:petType
25262534
status:status
25272535
petId:petId
2536+
sessionId:sessionId
25282537
completionHandler: ^(NSError* error) {
25292538
if (error) {
25302539
NSLog(@"Error: %@", error);
@@ -2542,6 +2551,7 @@ <h3>Usage and SDK Samples</h3>
25422551
var petType = petType_example; // {{String}} type of food
25432552
var status = status_example; // {{String}} status
25442553
var petId = 789; // {{Long}} ID of pet to return
2554+
var sessionId = sessionId_example; // {{String}} session id
25452555

25462556
var callback = function(error, data, response) {
25472557
if (error) {
@@ -2550,7 +2560,7 @@ <h3>Usage and SDK Samples</h3>
25502560
console.log('API called successfully.');
25512561
}
25522562
};
2553-
api.feedPet(bodytokenpetTypestatuspetId, callback);
2563+
api.feedPet(bodytokenpetTypestatuspetIdsessionId, callback);
25542564
</code></pre>
25552565
</div>
25562566

@@ -2577,11 +2587,12 @@ <h3>Usage and SDK Samples</h3>
25772587
var petType = petType_example; // String | type of food
25782588
var status = status_example; // String | status
25792589
var petId = 789; // Long | ID of pet to return
2590+
var sessionId = sessionId_example; // String | session id
25802591

25812592
try
25822593
{
25832594
// Find pet by ID
2584-
apiInstance.feedPet(body, token, petType, status, petId);
2595+
apiInstance.feedPet(body, token, petType, status, petId, sessionId);
25852596
}
25862597
catch (Exception e)
25872598
{
@@ -2603,9 +2614,10 @@ <h3>Usage and SDK Samples</h3>
26032614
$petType = petType_example; // String | type of food
26042615
$status = status_example; // String | status
26052616
$petId = 789; // Long | ID of pet to return
2617+
$sessionId = sessionId_example; // String | session id
26062618

26072619
try {
2608-
$api_instance->feedPet($body, $token, $petType, $status, $petId);
2620+
$api_instance->feedPet($body, $token, $petType, $status, $petId, $sessionId);
26092621
} catch (Exception $e) {
26102622
echo 'Exception when calling PetApi->feedPet: ', $e->getMessage(), PHP_EOL;
26112623
}
@@ -2623,9 +2635,10 @@ <h3>Usage and SDK Samples</h3>
26232635
my $petType = petType_example; # String | type of food
26242636
my $status = status_example; # String | status
26252637
my $petId = 789; # Long | ID of pet to return
2638+
my $sessionId = sessionId_example; # String | session id
26262639

26272640
eval {
2628-
$api_instance->feedPet(body => $body, token => $token, petType => $petType, status => $status, petId => $petId);
2641+
$api_instance->feedPet(body => $body, token => $token, petType => $petType, status => $status, petId => $petId, sessionId => $sessionId);
26292642
};
26302643
if ($@) {
26312644
warn "Exception when calling PetApi->feedPet: $@\n";
@@ -2646,10 +2659,11 @@ <h3>Usage and SDK Samples</h3>
26462659
petType = petType_example # String | type of food
26472660
status = status_example # String | status
26482661
petId = 789 # Long | ID of pet to return
2662+
sessionId = sessionId_example # String | session id
26492663

26502664
try:
26512665
# Find pet by ID
2652-
api_instance.feed_pet(body, token, petType, status, petId)
2666+
api_instance.feed_pet(body, token, petType, status, petId, sessionId)
26532667
except ApiException as e:
26542668
print("Exception when calling PetApi->feedPet: %s\n" % e)</code></pre>
26552669
</div>

0 commit comments

Comments
 (0)