Python REST server module#
Python implementation of the REST API Eigen example server.
- ansys.eigen.python.rest.server.create_app()[source]#
Initialize the REST API server.
- Returns:
FlaskInstance of the application.
- Raises:
InvalidUsageIn case no JSON-format request body was provided.
InvalidUsageIn case no ‘value’ is provided within the request body.
InvalidUsageIn case the given argument is not a string.
InvalidUsageIn case the given type is not in the ALLOWED_TYPES tuple.