<?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 SDWAN API Response is not in JSON in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4129584#M5204</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;While making an API call to the SandBox SDWAN instance(Always On) using Postman response is not coming in JSON, It's coming as html.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my request header is in Application/JSON only. Am I missing something here ?&amp;nbsp; Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 14:17:48 GMT</pubDate>
    <dc:creator>piyush.singh02</dc:creator>
    <dc:date>2020-08-03T14:17:48Z</dc:date>
    <item>
      <title>SDWAN API Response is not in JSON</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4129584#M5204</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;While making an API call to the SandBox SDWAN instance(Always On) using Postman response is not coming in JSON, It's coming as html.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my request header is in Application/JSON only. Am I missing something here ?&amp;nbsp; Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 14:17:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4129584#M5204</guid>
      <dc:creator>piyush.singh02</dc:creator>
      <dc:date>2020-08-03T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN API Response is not in JSON</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4129946#M5208</link>
      <description>&lt;P&gt;Hey there, i update this postman collection&amp;nbsp;&lt;A href="https://developer.cisco.com/codeexchange/github/repo/CiscoDevNet/Postman-for-AlwaysOn-Cisco-SD-WAN" target="_blank"&gt;https://developer.cisco.com/codeexchange/github/repo/CiscoDevNet/Postman-for-AlwaysOn-Cisco-SD-WAN&lt;/A&gt;&amp;nbsp;and added the parameter you have (alarms). On my postman client, I have the option of changing the data format. You can do this by clicking on, pretty and updating this to JSON. See below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-08-04 at 09.02.14.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80723i3F778EAFFDAAA888/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-08-04 at 09.02.14.png" alt="Screenshot 2020-08-04 at 09.02.14.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 08:05:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4129946#M5208</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2020-08-04T08:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN API Response is not in JSON</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4130025#M5209</link>
      <description>&lt;P&gt;Hi, Thanks for you response.&lt;/P&gt;&lt;P&gt;I am using the JSON only on pretty but it's coming as html only, please see snapshot here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think this is environment specific issue ? Can you share your request API headers. I kept it content type:application/json only&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="html Response .jpg" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80731i6749833EE1A4C4F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="html Response .jpg" alt="html Response .jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 10:58:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4130025#M5209</guid>
      <dc:creator>piyush.singh02</dc:creator>
      <dc:date>2020-08-04T10:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN API Response is not in JSON</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4130035#M5210</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure see, below. You can grab the same environment file from the code exchange link I posted above. One thing is noticed from your output is you are doing a POST request, where I am trying a GET request,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-08-04 at 12.07.56.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80733i337A348AF81C48EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-08-04 at 12.07.56.png" alt="Screenshot 2020-08-04 at 12.07.56.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the POST requested with the following JSON body (&lt;SPAN&gt;Get 10,000 alarms from the previous six hours using the query below) No issues seen here.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "query": {
    "condition": "AND",
    "rules": [
      {
        "value": [
          "6"
        ],
        "field": "entry_time",
        "type": "date",
        "operator": "last_n_hours"
      }
    ]
  },
  "size": 10000
}&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-08-04 at 12.13.18.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80734i753B151DBCF2D953/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-08-04 at 12.13.18.png" alt="Screenshot 2020-08-04 at 12.13.18.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 11:18:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4130035#M5210</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2020-08-04T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN API Response is not in JSON</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4130072#M5211</link>
      <description>&lt;P&gt;Hi, Looks like some issue in my local environment only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried in my colleague's system &amp;amp; it seems to be working fine as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just FYI, I am trying post call only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you support&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 12:24:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sdwan-api-response-is-not-in-json/m-p/4130072#M5211</guid>
      <dc:creator>piyush.singh02</dc:creator>
      <dc:date>2020-08-04T12:24:52Z</dc:date>
    </item>
  </channel>
</rss>

