<?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: postman_collection R81 in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125845#M6120</link>
    <description>&lt;P&gt;Of course I can, but the only thing you possibly missed, is to convert the original json to use unix line feeds:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;thomas@apollon:~$ file postman_collection-v1.3.json
postman_collection-v1.3.json: ASCII text, with very long lines, with CRLF line terminators&lt;/LI-CODE&gt;&lt;P&gt;CRLF line feeds are used by Windows, so just do a dos2unix:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;thomas@apollon:~$ dos2unix postman_collection-v1.3.json
thomas@apollon:~$ file postman_collection-v1.3.json
postman_collection-v1.3.json: ASCII text, with very long lines&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;After that everything works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, I will attach a v2 version to the articles linked in&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Postman-Collections-links-to-all-available-and-the-basics/m-p/40923" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Postman-Collections-links-to-all-available-and-the-basics/m-p/40923&lt;/A&gt;&amp;nbsp;accordingly.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Thomas&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 05:33:34 GMT</pubDate>
    <dc:creator>Thomas-Marko</dc:creator>
    <dc:date>2021-08-06T05:33:34Z</dc:date>
    <item>
      <title>postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/98125#M5206</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Postman&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;collection for Check Point R81 (1.7 API)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 06:35:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/98125#M5206</guid>
      <dc:creator>Or_Soffer</dc:creator>
      <dc:date>2020-10-04T06:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/118127#M5841</link>
      <description>&lt;P&gt;Thank you for the link! Unfortunately my version of Postman (8.1.0) does not accept v1 formatted collection templates any more. One can convert the v1 version to the needed v2 version by using the&amp;nbsp;&lt;A href="https://github.com/postmanlabs/postman-collection-transformer" target="_self"&gt;postman-collection-transformer:&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;postman-collection-transformer convert -i postman_collection-v1.7.json -j 1.0.0 -o postman_collection-v1.7-v2.json -p 2.0.0&lt;/LI-CODE&gt;&lt;P&gt;For those who just want to download the converted version, I attached the v2 version to my post.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 06:58:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/118127#M5841</guid>
      <dc:creator>Thomas-Marko</dc:creator>
      <dc:date>2021-05-11T06:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/118305#M5842</link>
      <description>&lt;P&gt;Thanks, that turned out to be handy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 05:46:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/118305#M5842</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-05-13T05:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125798#M6108</link>
      <description>&lt;P&gt;Thanks for this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any chance you could do the same for other R80.x version ? I've tried converting collections but i'm getting an error message outside my knowledge area:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@autobot ~]# postman-collection-transformer convert --input ./postman_collection-v1.3.json --input-version 1.0.0 --output ./postman_collection-v1.3_v2.json --output-version 2.0.0&lt;BR /&gt;/usr/lib/node_modules/postman-collection-transformer/node_modules/commander/lib/command.js:866&lt;BR /&gt;async parseAsync(argv, parseOptions) {&lt;BR /&gt;^^^^^^^^^^&lt;/P&gt;&lt;P&gt;SyntaxError: Unexpected identifier&lt;BR /&gt;at createScript (vm.js:56:10)&lt;BR /&gt;at Object.runInThisContext (vm.js:97:10)&lt;BR /&gt;at Module._compile (module.js:549:28)&lt;BR /&gt;at Object.Module._extensions..js (module.js:586:10)&lt;BR /&gt;at Module.load (module.js:494:32)&lt;BR /&gt;at tryModuleLoad (module.js:453:12)&lt;BR /&gt;at Function.Module._load (module.js:445:3)&lt;BR /&gt;at Module.require (module.js:504:17)&lt;BR /&gt;at require (internal/module.js:20:19)&lt;BR /&gt;at Object.&amp;lt;anonymous&amp;gt; (/usr/lib/node_modules/postman-collection-transformer/node_modules/commander/index.js:2:21)&lt;BR /&gt;[root@autobot ~]#&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 16:27:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125798#M6108</guid>
      <dc:creator>Kurpeus</dc:creator>
      <dc:date>2021-08-05T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125845#M6120</link>
      <description>&lt;P&gt;Of course I can, but the only thing you possibly missed, is to convert the original json to use unix line feeds:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;thomas@apollon:~$ file postman_collection-v1.3.json
postman_collection-v1.3.json: ASCII text, with very long lines, with CRLF line terminators&lt;/LI-CODE&gt;&lt;P&gt;CRLF line feeds are used by Windows, so just do a dos2unix:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;thomas@apollon:~$ dos2unix postman_collection-v1.3.json
thomas@apollon:~$ file postman_collection-v1.3.json
postman_collection-v1.3.json: ASCII text, with very long lines&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;After that everything works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, I will attach a v2 version to the articles linked in&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Postman-Collections-links-to-all-available-and-the-basics/m-p/40923" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Postman-Collections-links-to-all-available-and-the-basics/m-p/40923&lt;/A&gt;&amp;nbsp;accordingly.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 05:33:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125845#M6120</guid>
      <dc:creator>Thomas-Marko</dc:creator>
      <dc:date>2021-08-06T05:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125860#M6128</link>
      <description>&lt;P&gt;Hi Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your effort and converting all those collections.&amp;nbsp; The unix line feed is good to know although this isn't the cause of the issue I'm experiencing as even if i run the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;postman-collection-transformer without any arguments i get the same error message&amp;nbsp; &amp;nbsp;(see below but this is no longer in relation to this topic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@autobot ~]# postman-collection-transformer&lt;BR /&gt;/usr/lib/node_modules/postman-collection-transformer/node_modules/commander/lib/command.js:866&lt;BR /&gt;async parseAsync(argv, parseOptions) {&lt;BR /&gt;^^^^^^^^^^&lt;/P&gt;&lt;P&gt;SyntaxError: Unexpected identifier&lt;BR /&gt;at createScript (vm.js:56:10)&lt;BR /&gt;at Object.runInThisContext (vm.js:97:10)&lt;BR /&gt;at Module._compile (module.js:549:28)&lt;BR /&gt;at Object.Module._extensions..js (module.js:586:10)&lt;BR /&gt;at Module.load (module.js:494:32)&lt;BR /&gt;at tryModuleLoad (module.js:453:12)&lt;BR /&gt;at Function.Module._load (module.js:445:3)&lt;BR /&gt;at Module.require (module.js:504:17)&lt;BR /&gt;at require (internal/module.js:20:19)&lt;BR /&gt;at Object.&amp;lt;anonymous&amp;gt; (/usr/lib/node_modules/postman-collection-transformer/node_modules/commander/index.js:2:21)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[root@autobot ~]# npm list -g postman-collection-transformer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;└─┬ postman-collection-transformer@4.1.3&lt;BR /&gt;├── commander@8.0.0&lt;BR /&gt;├── inherits@2.0.4&lt;BR /&gt;├─┬ intel@1.2.0&lt;BR /&gt;│ ├─┬ chalk@1.1.3&lt;BR /&gt;│ │ ├── ansi-styles@2.2.1&lt;BR /&gt;│ │ ├── escape-string-regexp@1.0.5&lt;BR /&gt;│ │ ├─┬ has-ansi@2.0.0&lt;BR /&gt;│ │ │ └── ansi-regex@2.1.1&lt;BR /&gt;│ │ ├── strip-ansi@3.0.1&lt;BR /&gt;│ │ └── supports-color@2.0.0&lt;BR /&gt;│ ├── dbug@0.4.2&lt;BR /&gt;│ ├── stack-trace@0.0.10&lt;BR /&gt;│ ├── strftime@0.10.0&lt;BR /&gt;│ ├── symbol@0.3.1&lt;BR /&gt;│ └── utcstring@0.1.0&lt;BR /&gt;├── lodash@4.17.21&lt;BR /&gt;├─┬ semver@7.3.5&lt;BR /&gt;│ └─┬ lru-cache@6.0.0&lt;BR /&gt;│ └── yallist@4.0.0&lt;BR /&gt;└── strip-json-comments@3.1.1&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 10:00:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125860#M6128</guid>
      <dc:creator>Kurpeus</dc:creator>
      <dc:date>2021-08-06T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125864#M6129</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I attached a Dockerfile for you if you like to try it out. The content is very simple and loads a basic Alpine Linux image and installs npm as well as the postman-collection-transformer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FROM alpine:3.14

RUN apk add --no-cache npm
RUN npm install -g postman-collection-transformer

WORKDIR /app

CMD ["/bin/sh"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally it starts a shell.&lt;/P&gt;&lt;P&gt;If you have installed Docker, cd into the directory with the Dockerfile and you can build the image with the following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;docker build -t postmanconverter .&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This builds your postmanconverter image. You can then run a container from this image with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;docker container run --rm -it -v ${PWD}:/app postmanconverter&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--rm removes the container after you have finished and the -v argument bind mounts the current folder into the container to /app, so you can put you postman collection json files into the same directory as the Dockerfile.&lt;/P&gt;&lt;P&gt;After running the docker container command you will be put into the container's shell. From her you can simply run the command "postman-collection-transformer".&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 10:21:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125864#M6129</guid>
      <dc:creator>Thomas-Marko</dc:creator>
      <dc:date>2021-08-06T10:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: postman_collection R81</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125868#M6130</link>
      <description>&lt;P&gt;You are a star ! Thanks so much&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 10:43:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R81/m-p/125868#M6130</guid>
      <dc:creator>Kurpeus</dc:creator>
      <dc:date>2021-08-06T10:43:56Z</dc:date>
    </item>
  </channel>
</rss>

