<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Golang DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet return 200 ok but empty body - where is the content in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/golang-defaultapi-securityadvisoriesadvisoryadvisoryidget-return/m-p/3746178#M370</link>
    <description>&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;Hello psirt,&lt;BR /&gt;&lt;BR /&gt;I am looking to get the content of an advisories ID, as I can do with postman using the Authorization Bearer;&lt;BR /&gt;&lt;BR /&gt;GOLANG APICLient (DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet) return a 200 ok, but with an empty body, &lt;BR /&gt;contrary of postman which return a json body content.&lt;BR /&gt;&lt;BR /&gt;Where is the body content? (once I get the bytes, I'll json unmarshal it)&lt;BR /&gt;&lt;BR /&gt;ciscoConf := swagger.NewConfiguration()&lt;BR /&gt;ciscoConf.AddDefaultHeader(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Authorization"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Bearer &lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Pm6Bx4X5MutGpuyUpFkqy1DEGP00&lt;/SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;ciscoApi := swagger.NewAPIClient(ciscoConf)&lt;BR /&gt;ctx := context.Background()&lt;BR /&gt;apiQ, _ := ciscoApi.DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet(ctx, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"cisco-sa-20181003-asa-dma-dos"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//swagger.DefaultApiService().SecurityAdvisoriesAdvisoryAdvisoryIdGet(ctx, "cisco-sa-20181003-asa-dma-dos")&lt;BR /&gt;&lt;/SPAN&gt;println(apiQ.ContentLength)&lt;BR /&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;apiQContent, _ := ioutil.ReadAll(apiQ.Body)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;println(string(apiQContent))&lt;BR /&gt;&lt;/SPAN&gt;apirR :=swagger.NewAPIResponse(apiQ)&lt;BR /&gt;println (apirR.ContentLength)&lt;BR /&gt;println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"end"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;Value of returned Response object DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet:&lt;BR /&gt;&lt;BR /&gt;*apiQ = {*net/http.Response} &lt;BR /&gt;&amp;nbsp;Status = "200 OK"&lt;BR /&gt;&amp;nbsp;StatusCode = 200&lt;BR /&gt;&amp;nbsp;Proto = "HTTP/1.1"&lt;BR /&gt;&amp;nbsp;ProtoMajor = 1&lt;BR /&gt;&amp;nbsp;ProtoMinor = 1&lt;BR /&gt;&amp;nbsp;Header = {net/http.Header} &lt;BR /&gt;&amp;nbsp;Body = {io.ReadCloser} &lt;BR /&gt;&amp;nbsp;ContentLength = -1&lt;BR /&gt;&amp;nbsp;TransferEncoding = {[]string} len:1, cap:1&lt;BR /&gt;&amp;nbsp;Close = true&lt;BR /&gt;&amp;nbsp;Uncompressed = true&lt;BR /&gt;&amp;nbsp;Trailer = {net/http.Header} nil&lt;BR /&gt;&amp;nbsp;*Request = {*net/http.Request} &lt;BR /&gt;&amp;nbsp;*TLS = {*crypto/tls.ConnectionState}&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Nov 2018 15:48:25 GMT</pubDate>
    <dc:creator>vm.ms-secur1</dc:creator>
    <dc:date>2018-11-14T15:48:25Z</dc:date>
    <item>
      <title>Golang DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet return 200 ok but empty body - where is the content</title>
      <link>https://community.cisco.com/t5/services-discussions/golang-defaultapi-securityadvisoriesadvisoryadvisoryidget-return/m-p/3746178#M370</link>
      <description>&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;Hello psirt,&lt;BR /&gt;&lt;BR /&gt;I am looking to get the content of an advisories ID, as I can do with postman using the Authorization Bearer;&lt;BR /&gt;&lt;BR /&gt;GOLANG APICLient (DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet) return a 200 ok, but with an empty body, &lt;BR /&gt;contrary of postman which return a json body content.&lt;BR /&gt;&lt;BR /&gt;Where is the body content? (once I get the bytes, I'll json unmarshal it)&lt;BR /&gt;&lt;BR /&gt;ciscoConf := swagger.NewConfiguration()&lt;BR /&gt;ciscoConf.AddDefaultHeader(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Authorization"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Bearer &lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Pm6Bx4X5MutGpuyUpFkqy1DEGP00&lt;/SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;ciscoApi := swagger.NewAPIClient(ciscoConf)&lt;BR /&gt;ctx := context.Background()&lt;BR /&gt;apiQ, _ := ciscoApi.DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet(ctx, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"cisco-sa-20181003-asa-dma-dos"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//swagger.DefaultApiService().SecurityAdvisoriesAdvisoryAdvisoryIdGet(ctx, "cisco-sa-20181003-asa-dma-dos")&lt;BR /&gt;&lt;/SPAN&gt;println(apiQ.ContentLength)&lt;BR /&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;apiQContent, _ := ioutil.ReadAll(apiQ.Body)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;println(string(apiQContent))&lt;BR /&gt;&lt;/SPAN&gt;apirR :=swagger.NewAPIResponse(apiQ)&lt;BR /&gt;println (apirR.ContentLength)&lt;BR /&gt;println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"end"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;Value of returned Response object DefaultApi.SecurityAdvisoriesAdvisoryAdvisoryIdGet:&lt;BR /&gt;&lt;BR /&gt;*apiQ = {*net/http.Response} &lt;BR /&gt;&amp;nbsp;Status = "200 OK"&lt;BR /&gt;&amp;nbsp;StatusCode = 200&lt;BR /&gt;&amp;nbsp;Proto = "HTTP/1.1"&lt;BR /&gt;&amp;nbsp;ProtoMajor = 1&lt;BR /&gt;&amp;nbsp;ProtoMinor = 1&lt;BR /&gt;&amp;nbsp;Header = {net/http.Header} &lt;BR /&gt;&amp;nbsp;Body = {io.ReadCloser} &lt;BR /&gt;&amp;nbsp;ContentLength = -1&lt;BR /&gt;&amp;nbsp;TransferEncoding = {[]string} len:1, cap:1&lt;BR /&gt;&amp;nbsp;Close = true&lt;BR /&gt;&amp;nbsp;Uncompressed = true&lt;BR /&gt;&amp;nbsp;Trailer = {net/http.Header} nil&lt;BR /&gt;&amp;nbsp;*Request = {*net/http.Request} &lt;BR /&gt;&amp;nbsp;*TLS = {*crypto/tls.ConnectionState}&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Nov 2018 15:48:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/golang-defaultapi-securityadvisoriesadvisoryadvisoryidget-return/m-p/3746178#M370</guid>
      <dc:creator>vm.ms-secur1</dc:creator>
      <dc:date>2018-11-14T15:48:25Z</dc:date>
    </item>
  </channel>
</rss>

