You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Sam Corbett (JIRA)" <ji...@apache.org> on 2017/04/05 11:36:42 UTC

[jira] [Created] (BROOKLYN-464) CLI: Add flag enabling logging of request and response data

Sam Corbett created BROOKLYN-464:
------------------------------------

             Summary: CLI: Add flag enabling logging of request and response data
                 Key: BROOKLYN-464
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-464
             Project: Brooklyn
          Issue Type: New Feature
            Reporter: Sam Corbett
            Priority: Minor


As a CLI developer I want to understand the requests it is making to Brooklyn and the responses it is receiving.

I imagine it working much as curl's {{--verbose}} flag:
{code}
$ curl -v http://localhost:8082/v1/server/version
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8082 (#0)
> GET /v1/server/version HTTP/1.1
> Host: localhost:8082
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 05 Apr 2017 11:34:48 GMT
< Content-Type: application/json
< Cache-Control: no-cache, no-store
< Pragma: no-cache
< Expires: 0
< Transfer-Encoding: chunked
< Server: Jetty(9.2.13.v20150730)
<
* Connection #0 to host localhost left intact
{"version":"0.11.0-SNAPSHOT","buildSha1":"aafa206dcd82e081cb11a124fcd4b7895a28ef85","buildBranch":"blueprint-upgrade","features":[{"name":"Java WinRM library","symbolicName":"io.cloudsoft.windows.winrm4j","version":"0.5.0","lastModified":"1488900741735"},{"name":"WinRM Client","symbolicName":"io.cloudsoft.windows.winrm4j-client","version":"0.5.0","lastModified":"1488900727002"}]}
{code}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)