<?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 Re: Using Postman with NetApp API Services. in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/136926#M24816</link>
    <description>&lt;P&gt;Thanks John, this is great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to note, I had to use the URL "https://&amp;lt;API-S Server name or IP&amp;gt;:8443/api/1.0/api-docs/ontap" to get the Swagger docs (I'm using API-S 1.2 RC1, FYI).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you can do the same thing for NSLM too (I'm using 1.0 RC3):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SLO APIs -&amp;nbsp;https://&amp;lt;NSLM server name or IP&amp;gt;:8443/api/api-docs/slo&lt;/LI&gt;&lt;LI&gt;ONTAP APIs -&amp;nbsp;https://&amp;lt;NSLM server name or IP&amp;gt;:8443/api/api-docs/ontap2.0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2017 16:54:08 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2017-12-21T16:54:08Z</dc:date>
    <item>
      <title>Using Postman with NetApp API Services.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/136920#M24814</link>
      <description>&lt;P&gt;Postman is a REST&amp;nbsp;development and command testing tool to allow developers and administrators build new commands for administration and provisioning. To utilized the drag and drop capabilities&amp;nbsp;/ double click capabilities&amp;nbsp;to quickly build out new REST commands the Swagger template from the API Server&amp;nbsp;can&amp;nbsp;to be installed as a collection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps required to import the Swagger JSON as a template into Postman collection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install Postman&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Postman per platform can be found at&amp;nbsp;&lt;A href="https://www.getpostman.com/" target="_blank"&gt;https://www.getpostman.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;2. &amp;nbsp;Install API Services&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;API Services can be found on the netapp support site&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; This document assume the use of default ports if you are not using default ports you will need ot ajust things as required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;3. &amp;nbsp;On the API Server go to this address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; https://{Servers NAME or IP}:8443/swagger.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; You will want to select all data in the body and save it to a local text file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. &amp;nbsp;Modify the Second line of the file Add the following on the second line&lt;/P&gt;&lt;P&gt;&amp;lt;tab&amp;gt;”host”: “Server Name or IP :8443”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Save Document as NetApp_API.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Launch postman&lt;/P&gt;&lt;P&gt;In the upper left corner of postman Click import.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drag and drop file to the import screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the 3 dots next to the OnCommand API Services … click the edit command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click Authorization&lt;/P&gt;&lt;P&gt;Select Basic Authentication.&lt;/P&gt;&lt;P&gt;Update the Username and the password for your API Services server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can now browse and use commands with API&amp;nbsp;services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:09:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/136920#M24814</guid>
      <dc:creator>olson</dc:creator>
      <dc:date>2017-12-21T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Postman with NetApp API Services.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/136926#M24816</link>
      <description>&lt;P&gt;Thanks John, this is great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to note, I had to use the URL "https://&amp;lt;API-S Server name or IP&amp;gt;:8443/api/1.0/api-docs/ontap" to get the Swagger docs (I'm using API-S 1.2 RC1, FYI).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you can do the same thing for NSLM too (I'm using 1.0 RC3):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SLO APIs -&amp;nbsp;https://&amp;lt;NSLM server name or IP&amp;gt;:8443/api/api-docs/slo&lt;/LI&gt;&lt;LI&gt;ONTAP APIs -&amp;nbsp;https://&amp;lt;NSLM server name or IP&amp;gt;:8443/api/api-docs/ontap2.0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 16:54:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/136926#M24816</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-12-21T16:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Postman with NetApp API Services.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/139704#M25495</link>
      <description>&lt;P&gt;I'm using API Services 2.1 and trying to import the swagger.json file. But I'm getting the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Error while importing: format not recognized&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My swagger.json file looks like this:&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt; "host": "https://API_SERVICS_IP:8443/api/1.0/api-docs/ontap",&lt;BR /&gt; "basePath": "/api",&lt;BR /&gt; "schemes": [&lt;BR /&gt; "https"&lt;BR /&gt; ],&lt;BR /&gt; "swagger": "2.0",&lt;BR /&gt; "info": {&lt;BR /&gt; "title": "OnCommand API Services",&lt;BR /&gt; "version": "1.0"&lt;BR /&gt; },&lt;BR /&gt; "tags": [&lt;BR /&gt; {&lt;BR /&gt;&lt;BR /&gt;...&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;If I try to import the unmodified swagger.json or with&amp;nbsp;&lt;SPAN&gt;”host”: “API_SERVICES_API:8443”, I still get the same error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:16:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/139704#M25495</guid>
      <dc:creator>acjackson</dc:creator>
      <dc:date>2018-04-19T09:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Postman with NetApp API Services.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/139742#M25505</link>
      <description>&lt;P&gt;I encountered the same error with postman 6.0.10 and api services 2.1.0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Error while importing: format not recognized&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I loaded the swagger json file in visual studio code, the python linter identified duplicate "QtreeOntap1.0" keys at lines 184934 and 185019.&amp;nbsp; I pulled the first (lines 184934 through 185018) just so I could get it working. Swagger json import file&amp;nbsp;looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "host": "API_SERVICES_IP:8443",
  "basePath": "/api",
  "schemes": [
    "https"
  ],
  "swagger": "2.0",
  "info": {
    "title": "OnCommand API Services",
    "version": "1.0"
  },&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything seems to work.&amp;nbsp; It looks like postman tries to load every single parameter in the URL by default.&amp;nbsp; For example, 5.0 -&amp;gt; Retreive all the aggregates looks like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://API_SERVICES_IP:8443/api/5.0/ontap/aggregates?snapshot_size_total={{snapshot_size_total}}&amp;amp;snaplock_type={{snaplock_type}}&amp;amp;aggregate_type={{aggregate_type}}&amp;amp;state={{state}}&amp;amp;raid_size={{raid_size}}&amp;amp;node_key={{node_key}}&amp;amp;is_composite={{is_composite}}&amp;amp;size_avail_percent={{size_avail_percent}}&amp;amp;snapshot_size_used={{snapshot_size_used}}&amp;amp;object_store_key={{object_store_key}}&amp;amp;volume_compression_space_savings={{volume_compression_space_savings}}&amp;amp;name={{name}}&amp;amp;size_used_percent={{size_used_percent}}&amp;amp;size_total={{size_total}}&amp;amp;is_snaplock={{is_snaplock}}&amp;amp;mirror_status={{mirror_status}}&amp;amp;key={{key}}&amp;amp;is_hybrid_enabled={{is_hybrid_enabled}}&amp;amp;size_avail={{size_avail}}&amp;amp;cluster_key={{cluster_key}}&amp;amp;uses_shared_disks={{uses_shared_disks}}&amp;amp;hybrid_cache_size_total={{hybrid_cache_size_total}}&amp;amp;raid_status={{raid_status}}&amp;amp;volume_dedupe_space_savings={{volume_dedupe_space_savings}}&amp;amp;total_committed={{total_committed}}&amp;amp;block_type={{block_type}}&amp;amp;size_used={{size_used}}&amp;amp;raid_type={{raid_type}}&amp;amp;is_hybrid={{is_hybrid}}&amp;amp;has_local_root={{has_local_root}}&amp;amp;snapshot_size_avail={{snapshot_size_avail}}&amp;amp;has_partner_root={{has_partner_root}}&amp;amp;total_reserved_space={{total_reserved_space}}&amp;amp;sortBy={{sortBy}}&amp;amp;maxRecords={{maxRecords}}&amp;amp;nextTag={{nextTag}}&amp;amp;atomLinks={{atomLinks}}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't set the ~30 {{variables}} the request bombs because&amp;nbsp;can't resolve them and api services rejects the request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "status": {
        "code": "FAILED",
        "error": {
            "errno": 1104,
            "message": "The requested URL is not found in the server.",
            "reason": "RESTEASY003870: Unable to extract parameter from http request: javax.ws.rs.QueryParam(\"maxRecords\") value is {1} for public javax.ws.rs.core.Response com.netapp.apiserver.ontap.resources5.AggregateResource.getAllAggregates(javax.ws.rs.core.UriInfo,javax.ws.rs.core.HttpHeaders,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.Boolean,java.lang.String,java.lang.String,long,java.lang.String,boolean) throws com.netapp.apiserver.exception.ApiServicesException"
        }
    }
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For now I just delete everything after the "?" in the URL; it's easier than clicking params and deselecting each&amp;nbsp;param by hand and I don't see a way to deselect them all by default in the collection, environment, or global postman preferences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:15:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/139742#M25505</guid>
      <dc:creator>EricBecker</dc:creator>
      <dc:date>2018-04-22T16:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Postman with NetApp API Services.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/452170#M28581</link>
      <description>&lt;P&gt;This item needs to be archived...API Services has been EOS since April 2021.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 06:44:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-Postman-with-NetApp-API-Services/m-p/452170#M28581</guid>
      <dc:creator>jeras</dc:creator>
      <dc:date>2024-04-19T06:44:27Z</dc:date>
    </item>
  </channel>
</rss>

