Introducing the SAP Ariba API “recipes” in the SAP Ariba extensibility samples repo
When utilising the SAP Ariba APIs, not all data can be retrieved from a single API call or certain actions require interacting with multiple APIs. The idea is that the “recipes” included in the repository can show a developer how to achieve common tasks carried out o retrieve specific pieces of data or carry out certain actions, by combining calls to various SAP Ariba APIs available.
In this recipes section, you’ll find various samples that as a developer you can follow to retrieve data or carry out actions from/in the SAP Ariba APIs. Each recipe will be presented in a separate Jupyter notebook. Each notebook will contain details of the different SAP Ariba APIs used to achieve a specific goal, sample URLs and responses from the SAP Ariba API.
Why using a Jupyter notebook?
The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.
In our case, they are used to explore the SAP Ariba API. When navigating the Jupyter notebook, the user can see the thought process the author of the recipe went through to complete the goal. As mentioned before, the notebook will contain the URLs used to invoke the API, links to documentation and sample JSON payloads/responses.
Recipes in the repository:
- Asynchronous Reporting API – Submit and process async job requests
- Retrieve Sourcing Requests from SAP Ariba API
- Get documents from a Contract Workspace (coming soon)
- Download attachments from a supplier questionnaire (coming soon)
Contributions to the recipes are more than welcome. If you want to submit a fix or share a recipe, feel free to submit a pull request so that it can be included in the repo. Also, if you have ideas of SAP Ariba API recipes, please create an issue in the SAP Ariba extensibility repository with the details – https://github.com/SAP-samples/ariba-extensibility-samples/issues/new.
I hope you find the recipes useful and that they help you navigate the world of the SAP Ariba APIs.