Skip to content

[PHP] API client using guzzle6 & psr7 instead of curl #5190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Apr 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6e396f1
reimplemented basic requests with httpplug
Mar 15, 2017
5691bcd
added returning headers
Mar 15, 2017
af05bed
added query params support
Mar 15, 2017
2147b5e
removed constant reference to model class
Mar 15, 2017
f360c7a
some extra @throws; form params
Mar 15, 2017
d08fdcf
form and query params encoding
Mar 16, 2017
e08bb6c
file upload / form multipart
Mar 17, 2017
2c2b74e
added missing response headers in WithHttpInfo calls
Mar 17, 2017
ed36513
removed Store test From PetApiTest class
Mar 17, 2017
b0afab3
removed configuration overriding test as its now task of client adapters
Mar 17, 2017
a52be13
updated store tests with new client initialization code
Mar 17, 2017
bab5ed3
updated composer.json template
baartosz Mar 18, 2017
70c95d5
not using json_decode if response is string
baartosz Mar 18, 2017
3b79806
renamed some variables to camelCase
baartosz Mar 18, 2017
b5973d7
removed ApiClient and Configuration classes
baartosz Mar 18, 2017
a06c485
added HeaderSelector template
baartosz Mar 18, 2017
066291f
added ObjectSerializer injection
baartosz Mar 18, 2017
95784cb
regenerated all samples
baartosz Mar 18, 2017
4d13b9e
added AuthConfig and readded support for custom api keys
Mar 21, 2017
caa7f8b
readded support for oauth tokens
Mar 21, 2017
696df63
readded basic auth; moved auth tests to separate test class
Mar 21, 2017
e7b8448
readded header params
Mar 21, 2017
dbad22c
readded support for collections in paths
Mar 21, 2017
2b31881
readded config option; readded exception handling
Mar 22, 2017
29a9516
file downloading; readded some Configuration properties removed earlier
Mar 22, 2017
b536efd
readded default headers
Mar 23, 2017
78f192a
made responses and return types work same way as earlier
Mar 24, 2017
cea2693
made all methods static in ObjectSerializer
Mar 24, 2017
4355ec9
updated test.php, replaced autoload.php with composer's autoloader
Mar 24, 2017
aef17cf
updated api doc template
Mar 24, 2017
da56526
removed classes used for testing; regenerated Fake_classname_tags123Api
Mar 24, 2017
f8fe1d9
replaced httplug with guzzle6
Mar 30, 2017
124d2f4
updated required php version to 5.5
Mar 30, 2017
c1f5748
clean up
Mar 30, 2017
6ce64f9
readded missing userAgent feature; removed default headers from Confi…
Mar 30, 2017
0a83557
updated test.php
Mar 30, 2017
54b2ee7
downgraded phpunit back to 4.8 to work with php5.5; fixed client init…
Mar 30, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,11 @@ public void processOpts() {
// make test path available in mustache template
additionalProperties.put("testBasePath", testBasePath);

supportingFiles.add(new SupportingFile("configuration.mustache", toPackagePath(invokerPackage, srcBasePath), "Configuration.php"));
supportingFiles.add(new SupportingFile("ApiClient.mustache", toPackagePath(invokerPackage, srcBasePath), "ApiClient.php"));
supportingFiles.add(new SupportingFile("ApiException.mustache", toPackagePath(invokerPackage, srcBasePath), "ApiException.php"));
supportingFiles.add(new SupportingFile("Configuration.mustache", toPackagePath(invokerPackage, srcBasePath), "Configuration.php"));
supportingFiles.add(new SupportingFile("ObjectSerializer.mustache", toPackagePath(invokerPackage, srcBasePath), "ObjectSerializer.php"));
supportingFiles.add(new SupportingFile("HeaderSelector.mustache", toPackagePath(invokerPackage, srcBasePath), "HeaderSelector.php"));
supportingFiles.add(new SupportingFile("composer.mustache", getPackagePath(), "composer.json"));
supportingFiles.add(new SupportingFile("autoload.mustache", getPackagePath(), "autoload.php"));
supportingFiles.add(new SupportingFile("README.mustache", getPackagePath(), "README.md"));
supportingFiles.add(new SupportingFile("phpunit.xml.mustache", getPackagePath(), "phpunit.xml.dist"));
supportingFiles.add(new SupportingFile(".travis.yml", getPackagePath(), ".travis.yml"));
Expand Down
357 changes: 0 additions & 357 deletions modules/swagger-codegen/src/main/resources/php/ApiClient.mustache

This file was deleted.

Loading