As I mentioned in the last blog post I have prepared a Postman collection that is easy to use with CSRF and multiple tenants.
Installation & Configuration
Download environment and collection files from the GitHub repo.
https://github.com/mdpgroup/cpi-postman-collections
Importing the Common Environment Template
Click the environment settings button:
Click import, choose the environment file “cpi-tenant-template.postman_environment.json” and import.
Click on the “CPI Tenant Template” environment:
Enter the values for your tenant. You should create an environment for each tenant. Note the tenant URL format:
Choose your specific tenant environment:
Importing the Collection
Click the import button and choose the collection file “cpi-partner-directory.postman_collection.json”
Usage
You should see the collection on the left pane now. Let’s start with Get CSRF request:
Click “Send”. If you configured everything correctly, you should see the HTTP 200 success header. CSRF is saved for the following requests.
As an example, you can create an Alternative Partner using “Create Alternative Partner” request:
Congratulations! Now you can see the partner with below requests or using Partner Directory UI
Conclusion
Coupled with SuperEasy Partner Directory UI this collection has vastly improved our workflow. I hope it will be also useful for you.
The GitHub repository is open to contribution. You can create issues or pull requests for Partner Directory APIs or other APIs.
Thanks for reading & see you in the next posts!
Original Article:
https://blogs.sap.com/2020/05/16/cpi-partner-directory-postman-collection/