Skip to content

Conversation

wing328
Copy link
Contributor

@wing328 wing328 commented May 26, 2015

  • add debug switch to Configuration
  • allow curl debugging
  • better exception handling

PHP tests are good.

Here is an example of the debug log:

[DEBUG] HTTP Request body  ~BEGIN~

~END~
* Hostname was NOT found in DNS cache
*   Trying 54.69.214.189...
* Connected to petstore.swagger.io (54.69.214.189) port 80 (#0)
> GET /v2/pet/10005 HTTP/1.1
User-Agent: PHP-Swagger
Host: petstore.swagger.io
Accept: application/json
Content-Type: application/json

< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST, DELETE, PUT
< Access-Control-Allow-Headers: Content-Type, api_key, Authorization
< Content-Type: application/json
< Connection: close
* Server Jetty(9.2.7.v20150116) is not blacklisted
< Server: Jetty(9.2.7.v20150116)
< 
* Closing connection 0
[DEBUG] HTTP Response body ~BEGIN~
{"id":10005,"category":{"id":10005,"name":"test php category"},"name":"PHP Unit Test","tags":[{"id":10005,"name":"test php tag"}]}
~END~

fehguy added a commit that referenced this pull request Jun 5, 2015
@fehguy fehguy merged commit 05700a6 into swagger-api:develop_2.0 Jun 5, 2015
@wing328 wing328 deleted the php_debug_switch branch January 22, 2016 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants