wing328
b5c0f17a02
update php to handle object type and add more test case
2016-03-05 14:25:01 +08:00
wing328
a92a9f2a03
Merge pull request #1990 from expectedbehavior/php-raw-string
...
[PHP] Use String instead of Byte Array
2016-03-04 10:57:59 +08:00
Elijah Miller
74536af3b9
Map binary to string in PHP since ByteArray is no longer in use.
2016-03-03 11:01:13 -05:00
Elijah Miller
6698c532e6
Keep PHP binary responses as strings for easier manipulation.
2016-03-03 11:01:13 -05:00
wing328
7e63226ed4
update wording for test file, minor tweats to petstore test
2016-03-03 20:19:37 +08:00
wing328
f27d2534a6
update php readme
2016-02-19 23:37:35 +08:00
wing328
bb59ad95cf
add readme and travis
2016-02-19 22:08:58 +08:00
Christian Kaps
618351c11c
Namespace is missing for SplFileObject reference
2016-01-22 12:17:58 +01:00
wing328
b21c5f08a7
Merge pull request #1921 from wing328/php_generate_test
...
[PHP] generate files for unit testing models and API files
2016-01-20 10:05:20 +08:00
wing328
8927c1dc0f
add test template for php
2016-01-19 14:49:32 +08:00
wing328
dcd2c00fe6
fix empty object serialization issue
2016-01-18 21:42:24 +08:00
wing328
9fd4f39c8c
update tostring to use sanitizeforserialization
2016-01-18 21:27:29 +08:00
wing328
fee8acef97
fix isBinary, CodegenParameter copy, add isBinary to php api client
2016-01-15 11:43:02 +08:00
wing328
f54185c66d
add binary support for php response
2016-01-15 11:43:02 +08:00
wing328
eebf743fad
better filename handling in objectseralizer (php)
2016-01-11 16:16:49 +08:00
wing328
a8f5809370
replace httpHeader with httpHeaders in php object serializer
2016-01-08 14:04:10 +08:00
wing328
61e6cbef66
fix httpHeader (remove s)
2016-01-08 10:37:48 +08:00
wing328
64427a16d1
add more test case for php (array of array, map of map)
2016-01-08 10:34:19 +08:00
Ron
3a2ad9e2e4
Happy new year!
2016-01-06 16:04:16 -08:00
Arne Jørgensen
d71d164843
Accept arrays as arguments to collection parameters.
2016-01-03 22:45:07 +01:00
Ron
9a54371ca9
Swagger Spec -> OpenAPI Spec
2015-12-30 14:52:15 -08:00
Arne Jørgensen
6a45111e10
Handle wildcard response codes correct in PHP
...
Wildcard response codes was handled like all other response codes
resulting in a misleading construction like this:
```
switch ($e->getCode()) {
case 0:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\Error', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}
```
This commit fixes it to use the default fallback of the PHP switch
statement:
```
switch ($e->getCode()) {
default:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\Error', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}
```
2015-12-27 15:17:18 +01:00
wing328
9faf6f4068
add php profiler for petstore, fix empty/null string check
2015-12-10 18:55:28 +08:00
wing328
36dfa15f93
Merge pull request #1680 from wing328/php_default_value
...
[PHP] add default value to PHP model
2015-12-09 15:39:34 +08:00
wing328
4b656c516f
add default value to php model
2015-12-08 15:59:46 +08:00
wing328
340e60002e
more style change for php client
2015-12-07 00:52:30 +08:00
wing328
442f87c19a
minor style change for php functions
2015-12-07 00:42:25 +08:00
wing328
11466570f7
php add test case for withinfo method returnig void
2015-12-07 00:30:17 +08:00
wing328
b282d4fbea
add http_parse_headers, update test case
2015-12-06 23:58:25 +08:00
wing328
bb341832a5
add http info to php api methods
2015-12-06 19:00:52 +08:00
wing328
ddc4d8460d
fix php access token setter
2015-11-25 00:00:26 +08:00
wing328
e11a3d468e
update auth for php to skip empty apikey/username,password
2015-11-22 18:35:45 +08:00
wing328
7bc523324d
Merge pull request #1446 from wing328/php_improvement1
...
[PHP] add OAuth support
2015-10-31 22:46:52 +08:00
Thorsten Rinne
f23370774b
Added missing visibility for constructor
2015-10-30 11:10:38 +01:00
wing328
964850a8de
rename authToken to accessToken
2015-10-28 21:44:12 +08:00
wing328
67815ed5f2
add oauth support for php
2015-10-28 21:44:12 +08:00
Arne Jørgensen
d907822fa9
Use CURLFile object on PHP5.5+.
2015-10-27 22:56:19 +01:00
akkie
9b8a633435
ApiException doesn't use deserialized data
...
This is a fix for #1394 . I had not merged the data correctly after the rebase
2015-10-21 12:56:15 +02:00
akkie
b054cd3cc6
Deserialize the response body in case of an ApiException
...
Currently it's not possible to use custom models in the ApiException because the body gets not deserialized to Json and therefore the object deserializer cannot deserialize it to a custom model. This pull request uses the same mechanism as used to deserialize the response body in case of a 2xx status code.
2015-10-19 15:17:29 +02:00
akkie
97a5a8922f
Allow to disable SSL verification
...
This pull request adds the possibility to disable SSL verification for hosts using a self-signed SSL certificate
2015-10-15 16:07:35 +02:00
wing328
7d69107696
Merge pull request #1356 from arnested/deserialize-httpHeader
...
Deserialize httpHeader.
2015-10-09 11:31:24 +08:00
Arne Jørgensen
b7b8b527db
Use HTTP headers from ApiException in PHP client.
...
The `$httpHeader` variable was not set when catching exceptions.
See also #1354 .
Regenerated php-petstore sample.
2015-10-08 11:46:36 +02:00
Arne Jørgensen
3bd4502bbf
Deserialize httpHeader.
...
See #1354 .
Regenerated php-petstore sample.
2015-10-08 11:25:43 +02:00
Arne Jørgensen
3c3762fd92
Add HEAD and OPTIONS support in PHP client.
...
The generated PHP client didn't support the HEAD and OPTIONS methods.
Followup on #1156 and #1201 .
2015-09-10 14:55:49 +02:00
Tony Tam
3160913433
update files as rebase from #838
2015-08-23 11:05:19 -07:00
wing328
f2df26f6e6
fix deserializing datetime, add test case
2015-08-22 23:09:12 +08:00
wing328
b971aa7433
add example to config option, replace localhost with basePath
2015-08-13 23:27:59 +08:00
Andrew B
7dca394eca
Support for customizing Composer package and namespaces
2015-07-13 14:46:56 -07:00
wing328
f154e407d2
update coding style based on CodeSniffer
2015-07-13 15:26:12 +08:00
wing328
44705b566d
add default version for package
2015-07-13 15:24:12 +08:00