Hi SAS experts.
I am looking at calling SAS Viya REST APIs, and found the documentation containing a lot of code examples. Do you know if SAS expose a Swagger / OpenAPI contract file for that API?
Thanks for the quick reply. I might be missing the obvious here? The link you provided looks like a GUI representation of the swagger yaml contract. But I can't seem to find the link to download the swagger file, so that I can build client code based on that in my development project.
If anybody else find the Swagger document for the Viya REST API, I am very interested. I am building a java client for the Viya REST API, so having the swagger document to generate code from will save me a lot of hours re-coding the info from the documentation.
The link @alexal provided is for the REST API doc. At this point that's all we have published externally.
Join us for SAS Community Trivia
SAS Bowl XXXVI, Data Simulation
Wednesday, December 13, 2023, at 10 a.m. ET | #SASBowl
Thanks for sharing your thoughts. Exposing REST APIs and the underlying contract kind of goes hand in hand. This is the first API I have stumbled upon, that restricts access to the contract. There is great tool support for generating client code in most flavors of most programming languages. And your html documentation seems to be generated based on a swagger document. So depending on how much of the API we need to integrate with, it might be worth while for me to build a reverse engineering tool to read your documentation and build the swagger myself. That way I am sure that nothing gets lost in the copy/paste/translate to java process.
How do other clients integrate with your APIs? Do they copy/paste snippets of code from the documentation?
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.