<?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 Swagger GET /network-device does not have filters in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539621#M1440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GET /network-device API is documented as: "Retrieves the network devices by filters.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached image from the Swagger page does not show any filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&lt;IMG alt="no_filters.tiff" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/97817_no_filters.tiff" style="height: 342px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 12:29:53 GMT</pubDate>
    <dc:creator>Nathan Sowatskey</dc:creator>
    <dc:date>2019-03-01T12:29:53Z</dc:date>
    <item>
      <title>Swagger GET /network-device does not have filters</title>
      <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539621#M1440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GET /network-device API is documented as: "Retrieves the network devices by filters.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached image from the Swagger page does not show any filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&lt;IMG alt="no_filters.tiff" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/97817_no_filters.tiff" style="height: 342px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:29:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539621#M1440</guid>
      <dc:creator>Nathan Sowatskey</dc:creator>
      <dc:date>2019-03-01T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Swagger GET /network-device does not have filters</title>
      <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539622#M1441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Did you had chance to check out the blog from Adam-&lt;A href="https://community.cisco.com/migration-blogpost/8064"&gt;Five APIC-EM API to improve network engineer productivity – part 1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also can you try on&amp;nbsp; scope field instead of all&amp;nbsp; as 1-5 to see the first five network device. or 1 . I think this is what filtering the output. Not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if iam wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Geevarghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 10:23:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539622#M1441</guid>
      <dc:creator>Geevarghese Cheria</dc:creator>
      <dc:date>2016-07-20T10:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Swagger GET /network-device does not have filters</title>
      <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539623#M1442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Geevarghese&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Thank you for following up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;I have seen Adam's blog. Which aspect were you thinking of exactly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;With respect to the scope, I tried your suggestion of using "1-5", and I tried "1" and I tried "D". None of which seemed to make any difference at all to the response. The scope field has to have a value, else the "Ty it out!" button won't send the request, but it is not clear that it matters at all what that value actually is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;This is even weirder than I thought.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Nathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 12:25:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539623#M1442</guid>
      <dc:creator>Nathan Sowatskey</dc:creator>
      <dc:date>2016-07-20T12:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Swagger GET /network-device does not have filters</title>
      <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539624#M1443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Many thanks for your guidance.&amp;nbsp; Another thought I had is to try the same function call using POSTMAN .&amp;nbsp; what I was trying was GET &lt;A href="http://&amp;lt;APIC-EMController&amp;gt;/api/v1/network-device/1/2"&gt;http://&amp;lt;APIC-EMController&amp;gt;/api/v1/network-device/1/2&lt;/A&gt;.&amp;nbsp; Even though it doesn't answer to Swagger issue what I feel is in the Things to Try section of this url-&lt;A href="https://github.com/CiscoDevNet/coding-series-learning-labs/blob/master/labs/coding-101-rest-basics-ga/8.md" title="https://github.com/CiscoDevNet/coding-series-learning-labs/blob/master/labs/coding-101-rest-basics-ga/8.md"&gt;coding-series-learning-labs/8.md at master · CiscoDevNet/coding-series-learning-labs · GitHub&lt;/A&gt;&amp;nbsp; will shed some light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Geevarghese&lt;/P&gt;&lt;H3 style="color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; margin-top: 24px; margin-bottom: 16px; word-spacing: 0px; white-space: normal; box-sizing: border-box; widows: 1; -webkit-text-stroke-width: 0px;"&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 06:52:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539624#M1443</guid>
      <dc:creator>Geevarghese Cheria</dc:creator>
      <dc:date>2016-07-21T06:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Swagger GET /network-device does not have filters</title>
      <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539625#M1444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Geevarghese&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;I shall work on the Python code aspects next, and I shall use Adam's blog for reference.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Meanwhile, there is some bugs to report here, in that the Swagger API pages say one thing and do another. One aspect of that is the scope, which seems not to work as expected. Another is the lack of filter fields in the API page that are documented to exists: "Gets the list of network devices filtered using management IP address, mac address, hostname and location name.".&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;I should explain that this is not a show stopper per se, but it definitely is confusing for people trying to use the Swagger pages as a means to understand the APIs. Having something that is wrong is almost worse than not having anything at all.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Regards&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 10:50:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539625#M1444</guid>
      <dc:creator>Nathan Sowatskey</dc:creator>
      <dc:date>2016-07-21T10:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Swagger GET /network-device does not have filters</title>
      <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539626#M1445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree, it should be documented something like" "Get all network devices. You can filter by using IP, Mac....etc."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:32:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539626#M1445</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2016-07-21T15:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Swagger GET /network-device does not have filters</title>
      <link>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539627#M1446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yawchen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API description should only refer to filters if the API actually supports them. It is not clear that this API does support filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 05:24:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/swagger-get-network-device-does-not-have-filters/m-p/3539627#M1446</guid>
      <dc:creator>Nathan Sowatskey</dc:creator>
      <dc:date>2016-07-22T05:24:42Z</dc:date>
    </item>
  </channel>
</rss>

