forked from loafle/openapi-generator-original
rebuilt client
This commit is contained in:
parent
85c37fbe27
commit
087c28dae4
@ -431,7 +431,7 @@ SWGPetApi::updatePetWithFormCallback(HttpRequestWorker * worker) {
|
|||||||
emit updatePetWithFormSignal();
|
emit updatePetWithFormSignal();
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
SWGPetApi::deletePet(QString* api_key, qint64 petId) {
|
SWGPetApi::deletePet(QString* apiKey, qint64 petId) {
|
||||||
QString fullPath;
|
QString fullPath;
|
||||||
fullPath.append(this->host).append(this->basePath).append("/pet/{petId}");
|
fullPath.append(this->host).append(this->basePath).append("/pet/{petId}");
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ public:
|
|||||||
void findPetsByTags(QList<QString*>* tags);
|
void findPetsByTags(QList<QString*>* tags);
|
||||||
void getPetById(qint64 petId);
|
void getPetById(qint64 petId);
|
||||||
void updatePetWithForm(QString* petId, QString* name, QString* status);
|
void updatePetWithForm(QString* petId, QString* name, QString* status);
|
||||||
void deletePet(QString* api_key, qint64 petId);
|
void deletePet(QString* apiKey, qint64 petId);
|
||||||
void uploadFile(qint64 petId, QString* additionalMetadata, SWGHttpRequestInputFileElement* file);
|
void uploadFile(qint64 petId, QString* additionalMetadata, SWGHttpRequestInputFileElement* file);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -380,7 +380,7 @@ deletePetProcessor(HttpResponse* pHttpResponse, void (* handler)(void*, SamiErro
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SamiPetApi::deletePetWithCompletion(String* api_key, Long* petId, void(*success)(SamiError*)) {
|
SamiPetApi::deletePetWithCompletion(String* apiKey, Long* petId, void(*success)(SamiError*)) {
|
||||||
client = new SamiApiClient();
|
client = new SamiApiClient();
|
||||||
|
|
||||||
client->success(&deletePetProcessor, (void(*)(void*, SamiError*))success);
|
client->success(&deletePetProcessor, (void(*)(void*, SamiError*))success);
|
||||||
@ -388,7 +388,7 @@ SamiPetApi::deletePetWithCompletion(String* api_key, Long* petId, void(*success)
|
|||||||
headerParams->Construct();
|
headerParams->Construct();
|
||||||
|
|
||||||
|
|
||||||
headerParams->Add(new String("api_key"), api_key);
|
headerParams->Add(new String("api_key"), apiKey);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
updatePetWithFormWithCompletion(String* petId, String* name, String* status, void(* handler)(SamiError*));
|
updatePetWithFormWithCompletion(String* petId, String* name, String* status, void(* handler)(SamiError*));
|
||||||
|
|
||||||
void
|
void
|
||||||
deletePetWithCompletion(String* api_key, Long* petId, void(* handler)(SamiError*));
|
deletePetWithCompletion(String* apiKey, Long* petId, void(* handler)(SamiError*));
|
||||||
|
|
||||||
void
|
void
|
||||||
uploadFileWithCompletion(Long* petId, String* additionalMetadata, SamiFile* file, void(* handler)(SamiError*));
|
uploadFileWithCompletion(Long* petId, String* additionalMetadata, SamiFile* file, void(* handler)(SamiError*));
|
||||||
|
@ -209,7 +209,7 @@
|
|||||||
|
|
||||||
<span class="param-in">Header: </span>
|
<span class="param-in">Header: </span>
|
||||||
|
|
||||||
<span class="param-name">api_key</span>
|
<span class="param-name">apiKey</span>
|
||||||
<span class="param-type">String</span>
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
<p class="param-description"></p>
|
<p class="param-description"></p>
|
||||||
|
@ -235,7 +235,7 @@
|
|||||||
|
|
||||||
<h3 class="field-label">Parameters</h3>
|
<h3 class="field-label">Parameters</h3>
|
||||||
<div class="field-items">
|
<div class="field-items">
|
||||||
<div class="param">api_key (optional)</div>
|
<div class="param">apiKey (optional)</div>
|
||||||
|
|
||||||
<div class="param-desc"><span class="param-type">Header Parameter</span> — </div>
|
<div class="param-desc"><span class="param-type">Header Parameter</span> — </div>
|
||||||
<div class="param">petId (required)</div>
|
<div class="param">petId (required)</div>
|
||||||
@ -332,7 +332,7 @@
|
|||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou",
|
"status" : "aeiou",
|
||||||
"quantity" : 123,
|
"quantity" : 123,
|
||||||
"shipDate" : "2015-05-21T05:49:06.118+0000"
|
"shipDate" : "2015-05-23T15:56:49.441+0000"
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
@ -341,7 +341,7 @@
|
|||||||
<id>123456</id>
|
<id>123456</id>
|
||||||
<petId>123456</petId>
|
<petId>123456</petId>
|
||||||
<quantity>0</quantity>
|
<quantity>0</quantity>
|
||||||
<shipDate>2015-05-20T22:49:06.120Z</shipDate>
|
<shipDate>2015-05-23T08:56:49.444Z</shipDate>
|
||||||
<status>string</status>
|
<status>string</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order></code></pre>
|
</Order></code></pre>
|
||||||
@ -375,7 +375,7 @@
|
|||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou",
|
"status" : "aeiou",
|
||||||
"quantity" : 123,
|
"quantity" : 123,
|
||||||
"shipDate" : "2015-05-21T05:49:06.121+0000"
|
"shipDate" : "2015-05-23T15:56:49.445+0000"
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
@ -384,7 +384,7 @@
|
|||||||
<id>123456</id>
|
<id>123456</id>
|
||||||
<petId>123456</petId>
|
<petId>123456</petId>
|
||||||
<quantity>0</quantity>
|
<quantity>0</quantity>
|
||||||
<shipDate>2015-05-20T22:49:06.122Z</shipDate>
|
<shipDate>2015-05-23T08:56:49.445Z</shipDate>
|
||||||
<status>string</status>
|
<status>string</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order></code></pre>
|
</Order></code></pre>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user