- The Foundation API provides a low-level wrapper around the base functionality provided by the Service Layer SOAP API,
and is provided by the
ansys.grantami.backend.soappackage as a collection of Python and binary files. - The Streamlined API is an abstraction on top of the Foundation API, and is provided by the
ansys.grantami.corepackage as a set of Python modules.
Streamlined API
The Streamlined API is provided by theansys.grantami.core package, and is accessed as follows:
Versionchanged
Changed in version 5.0: The Streamlined API is now provided as a package calledansys.grantami.core.
The Streamlined API provides a high-level interface to Granta MI, designed to be easy to use and to provide good
performance out of the box. It abstracts away many of the complexities of the underlying Service Layer SOAP API by
pre-emptively fetching information from the server and performing client-side validation to accelerate development.
It aims to enable development to all Python users, even those without detailed experience of working with web APIs.
Additional Streamlined API information:
- Streamlined API structure: Overview of the API structure.
- Streamlined API reference: All the classes and functions that make up the interface.
- Example notebooks: Examples for the Streamlined API, including both API-specific usage and examples of typical use-case.
Foundation API
The Foundation API is provided by theansys.grantami.backend.soap package, and is accessed as follows:
Versionchanged
Changed in version 5.0: The Foundation API is provided as a separate package calledansys.grantami.backend.soap. It is a dependency of
ansys.grantami.core and is installed automatically during MI Scripting Toolkit installation. It may be installed separately
if required.
The Foundation API provides a low-level wrapper around the base functionality provided by the Server Layer SOAP API. As
a result, a detailed knowledge of both the Service Layer SOAP API and working with web APIs in general is required. Care
is needed around managing request size and sequencing to achieve satisfactory performance and stability.
However, this granularity can be a benefit if it is used correctly. For example, the Foundation API may be appropriate
in the following situations:
- Making changes in bulk without consideration to the current state of the data. For example, deleting all data in a certain attribute regardless if it is populated or not.
- When full control is needed over the requests made to the server to optimize performance for a specific use case.
- When needing to access functionality that is not yet exposed in the Streamlined API.
WARNING
Only use the Foundation API after consultation with your ACE representative to confirm that it is necessary for your use case. Additional Foundation API information:- Foundation API reference: All the classes and functions that make up the interface.
- Foundation API example notebooks: Examples for the Foundation API.