<?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 SAS Viya REST APIs, the declarative way in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-Viya-REST-APIs-the-declarative-way/m-p/982889#M6683</link>
    <description>&lt;P&gt;Hey everyone &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quick context: I built &lt;A href="https://pypi.org/project/kstlib/" target="_blank" rel="noopener"&gt;https://pypi.org/project/kstlib/&lt;/A&gt;, a Python toolkit I use daily. One of its features lets you define REST API endpoints in YAML and call them without dealing with auth headers, signatures, or boilerplate code.&lt;/P&gt;
&lt;P&gt;Since I work with SAS Viya daily, I created viyapi: a YAML collection of ~1250 Viya REST endpoints that plugs into kstlib.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of this:&lt;/P&gt;
&lt;PRE&gt;curl -X GET "https://your-viya-server.com/files/files?limit=10" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Accept: application/vnd.sas.collection+json"&lt;/PRE&gt;
&lt;P&gt;(and depending on your setup, this can get even more verbose...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You get this:&lt;/P&gt;
&lt;PRE&gt;kstlib rapi files.files-list limit=10&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few things to keep in mind:&lt;BR /&gt;- Paths and methods come straight from the SAS docs&lt;BR /&gt;- Query params are mostly complete&lt;BR /&gt;- Body schemas were AI-generated — they might have errors here and there&lt;BR /&gt;- I've tested the GET endpoints I use daily, but with 1200+ endpoints, I can't validate everything on my own&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you work with Viya APIs and find this useful, or if you spot something that needs fixing, contributions are welcome. Every bit helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt; &lt;A href="https://github.com/KaminoU/viyapi" target="_blank" rel="noopener"&gt;https://github.com/KaminoU/viyapi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy coding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2026-02-02 101837.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112959iBC8DFEDE5C1A8859/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2026-02-02 101837.png" alt="Capture d’écran 2026-02-02 101837.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2026-02-02 102439.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112958i2B061B404AE4CA37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2026-02-02 102439.png" alt="Capture d’écran 2026-02-02 102439.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 20:17:39 GMT</pubDate>
    <dc:creator>k4minou</dc:creator>
    <dc:date>2026-02-03T20:17:39Z</dc:date>
    <item>
      <title>SAS Viya REST APIs, the declarative way</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Viya-REST-APIs-the-declarative-way/m-p/982889#M6683</link>
      <description>&lt;P&gt;Hey everyone &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quick context: I built &lt;A href="https://pypi.org/project/kstlib/" target="_blank" rel="noopener"&gt;https://pypi.org/project/kstlib/&lt;/A&gt;, a Python toolkit I use daily. One of its features lets you define REST API endpoints in YAML and call them without dealing with auth headers, signatures, or boilerplate code.&lt;/P&gt;
&lt;P&gt;Since I work with SAS Viya daily, I created viyapi: a YAML collection of ~1250 Viya REST endpoints that plugs into kstlib.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of this:&lt;/P&gt;
&lt;PRE&gt;curl -X GET "https://your-viya-server.com/files/files?limit=10" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Accept: application/vnd.sas.collection+json"&lt;/PRE&gt;
&lt;P&gt;(and depending on your setup, this can get even more verbose...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You get this:&lt;/P&gt;
&lt;PRE&gt;kstlib rapi files.files-list limit=10&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few things to keep in mind:&lt;BR /&gt;- Paths and methods come straight from the SAS docs&lt;BR /&gt;- Query params are mostly complete&lt;BR /&gt;- Body schemas were AI-generated — they might have errors here and there&lt;BR /&gt;- I've tested the GET endpoints I use daily, but with 1200+ endpoints, I can't validate everything on my own&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you work with Viya APIs and find this useful, or if you spot something that needs fixing, contributions are welcome. Every bit helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt; &lt;A href="https://github.com/KaminoU/viyapi" target="_blank" rel="noopener"&gt;https://github.com/KaminoU/viyapi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy coding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2026-02-02 101837.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112959iBC8DFEDE5C1A8859/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2026-02-02 101837.png" alt="Capture d’écran 2026-02-02 101837.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2026-02-02 102439.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112958i2B061B404AE4CA37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2026-02-02 102439.png" alt="Capture d’écran 2026-02-02 102439.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 20:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Viya-REST-APIs-the-declarative-way/m-p/982889#M6683</guid>
      <dc:creator>k4minou</dc:creator>
      <dc:date>2026-02-03T20:17:39Z</dc:date>
    </item>
  </channel>
</rss>

