To access anyLogistix APIs you need to get the Python library
Python 3.7+
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import openapi_client
Execute pytest to run the tests.
Please follow the installation procedure and then run the following:
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://server_address:port/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "https://server_address:port/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = "YOUR API KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.OpenApiApi(api_client)
rc_id = 56 # int | Id of the running configuration.
body = openapi_client.ApiMilkRunsGenerateRequest() # ApiMilkRunsGenerateRequest | Milk runs create request object. (optional)
try:
# Adds the generated milk runs (that are selected) to the Milk Runs table.
api_instance.add_last_mile_optimization_milk_runs_to_scenario(rc_id, body=body)
except ApiException as e:
print("Exception when calling OpenApiApi->add_last_mile_optimization_milk_runs_to_scenario: %s\n" % e)
All URIs are relative to https://server_address:port/api/v1
| Method | HTTP request | Description |
|---|---|---|
| add_last_mile_optimization_milk_runs_to_scenario | POST /open/lmo/milk-runs-update | Adds the generated milk runs (that are selected) to the Milk Runs table. |
| add_last_mile_optimization_shipments_to_scenario | POST /open/lmo/scheduled-orders-update | Adds the generated shipments (that are selected) to the Shipments table. |
| close_project | GET /open/project/close | Closes the currently open project. |
| convert_gfa_result_to_scenario | POST /open/convert/gfa | Converts the GFA result with identifier run_id to a new scenario with type scenario_type. |
| convert_last_mile_optimization_result_to_scenario | GET /open/convert/last-mile-optimization | Converts the Last mile optimization result with the defined run_id to a new scenario. |
| convert_no_result_to_scenario | POST /open/convert/no | Converts result_option_id iteration of the NO result with identifier run_id to a new scenario with type scenario_type. |
| convert_sse_result_to_scenario | POST /open/convert/sse | Converts the Safety stock estimation result with identifier run_id to a new scenario. |
| convert_variation_result_to_scenario | GET /open/convert/variation | Converts result_option_id iteration of the Variation result with identifier run_id to a new scenario. |
| copy_scenario | POST /open/scenario/copy | Asynchronously copies or clones the scenario with identifier scenario_id. |
| copy_scenario_synchronously | POST /open/scenario/copySynchronously | Synchronously copies or clones the scenario with identifier scenario_id. |
| create_new_variable_parameter | POST /open/variations/create-variable-parameter | Creates a new variable parameter. |
| create_variable_parameter | POST /open/variations | Creates a new variable parameter. |
| delete_variable_parameter | DELETE /open/variations/delete-variable-parameter | Deletes a variation parameter with identifier variation_id. |
| deselect_last_mile_optimization_milk_run_in_milk_runs_table | POST /open/lmo/milk-runs-update/uncheck | Deselects the defined milk run record to skip it when adding other (selected) milk runs to the Milk Runs table after calling the add_last_mile_optimization_milk_runs_to_scenario method. |
| deselect_last_mile_optimization_order_in_orders_table | POST /open/lmo/orders/uncheck | Deselects the defined order record to exclude it from the problem the optimizer will be solving. |
| deselect_last_mile_optimization_shipment_in_shipments_table | POST /open/lmo/scheduled-orders-update/uncheck | Deselects the defined shipment record to skip it when adding other (selected) shipments to the Shipments table after calling the add_last_mile_optimization_shipments_to_scenario method. |
| does_variable_parameter_has_selected_data | POST /open/variations/has-selected-data | Returns whether the variable parameter with identifier variationId has the selected data in the table. |
| drop_license | POST /open/user/license/drop | Drops user's license. |
| export_dashboard_page | GET /open/experiments/export-page | Returns an Excel representation of the dashboard page with id page_id. |
| export_last_mile_optimization_milk_runs_results_page | GET /open/lmo/milk-runs-result | Exports the dashboard Milk Runs page to an Excel file. |
| export_last_mile_optimization_shipments_results_page | GET /open/lmo/scheduled-orders-result | Exports the dashboard Shipments Table page to an Excel file. |
| find_and_open_project_by_name | GET /open/project/open-by-name | Opens project with name projectName. |
| get_comparison_result_data | POST /open/experiments/comparison-result | Returns comparison result data. |
| get_current_user | GET /open/user | Gets current user data. |
| get_existing_variable_parameter_table_data | GET /open/variations/existing-table-data | Returns a table data of a variation with the given variation_id. |
| get_experiment | GET /open/experiments/experiment | Returns an experiment of a given type available for a given scenario. |
| get_experiment_dashboard_page | GET /open/experiments/dashboard-page | Returns statistic page with the given page_name for the result of experiment run. |
| get_experiment_dashboard_pages | GET /open/experiments/dashboard-pages | Returns statistics pages for the result of experiment run. |
| get_experiment_options | POST /open/experiments/options | Returns a list of possible values for various experiment options. |
| get_experiment_run_configuration | GET /open/experiments/get-run-configuration | Returns experiment settings. |
| get_experiment_run_result | GET /open/experiments/result | Returns all the results of the specific experiment run. |
| get_experiment_run_result_chart_graph_data | GET /open/experiments/chart-graph-data | Returns graph data for the chart with identifier chart_id. |
| get_experiment_run_result_chart_table_data | GET /open/experiments/chart-table-data | Returns table data for the chart with identifier chart_id. |
| get_experiment_run_result_options | GET /open/experiments/result-options | Returns options for the result of experiment run. |
| get_experiment_run_result_page_charts | GET /open/experiments/charts | Returns charts on the statistics page with the identifier page_id. |
| get_experiment_run_result_pages | GET /open/experiments/pages | Returns statistics pages for the result of experiment run. |
| get_experiment_runs_for_scenario | GET /open/experiments/results | Returns the results of experiment runs for scenario. |
| get_experiment_status | GET /open/experiments/status | Returns the experiment status. |
| get_experiments | GET /open/experiments/list | Returns a list of experiments available for a given scenario. |
| get_import_status | GET /open/import/import-status | Returns scenario import status. |
| get_last_mile_optimization_milk_runs_table_data | POST /open/lmo/milk-runs-update/data | Returns the list with the generated milk runs. |
| get_last_mile_optimization_orders_table_data | POST /open/lmo/orders/data | Returns the data from the Preview Orders table. |
| get_last_mile_optimization_shipments_table_data | POST /open/lmo/scheduled-orders-update/data | Returns the list with the generated shipments. |
| get_new_variable_parameter_table_data | GET /open/variations/new-table-data | Returns a table data of a variation with the given variation_id. |
| get_projects | GET /open/project/list | Returns a list of projects that the user has access to. |
| get_scenario_validation_status | GET /open/experiments/validation-status | Returns the validation status of the scenario. |
| get_scenarios | GET /open/scenario/list | Returns a list of scenarios for the project with identifier project_id. |
| get_scenarios_from_imported_database | POST /open/import/scenarios-available-for-import | Returns a list of scenarios available for import in the imported database. |
| get_statistics_configurations | GET /open/experiments/statistics-list | Returns a list of available statistics. |
| get_tables_meta | GET /open/import/table-metas | Returns a list of meta information for tables. |
| get_validation_errors | GET /open/experiments/validation-errors | Returns validation errors. |
| get_validation_warnings | GET /open/experiments/validation-warnings | Returns validation warnings. |
| get_variable_parameter_object_type | GET /open/variations/object-type | Return a list of object types that have variable parameters. |
| get_variable_parameter_object_types | GET /open/variations/object-types | Returns a list of object types that have variable parameters. |
| get_variable_parameter_objects | GET /open/variations/objects | Returns a list of variable parameter objects of the given object type with identifier object_type_id. |
| get_variable_parameter_parameters | GET /open/variations/parameters | Returns a list of parameters of an object with id object_id with type with id object_type_id. |
| get_variable_parameter_variation_types | GET /open/variations/variation-types | Returns a list of parameter variation types for a parameter with id parameter_id belonging to an object with id object_id with a type with id object_type_id. |
| get_variation_result_data | POST /open/experiments/variation-result | Returns variation result data. |
| import_cancel | POST /open/import/import-cancel | Cancels scenario import job. |
| import_database | POST /open/import/import-database | Imports scenarios from the list source_scenario_name_list from an external database. |
| import_database_existing | POST /open/import/import-database-existing | Imports scenario source_scenario_name from an external database into existing scenario. |
| import_excel | POST /open/import/import-excel | Asynchronously imports scenario from excel file. |
| import_excel_existing | POST /open/import/import-excel-existing | Asynchronously imports scenario from excel file into existing scenario. |
| import_scenario | POST /open/import/import-scenario | Synchronously imports scenario from excel file. |
| import_scenario_existing | POST /open/import/import-scenario-existing | Synchronously imports scenario from excel file into existing scenario. |
| open_project | GET /open/project/open | Opens project with identifier project_id. |
| remove_scenario_by_id | DELETE /open/scenario | Deletes a scenario. |
| request_license | POST /open/user/license/pick | Requests a license for the user. |
| run_experiment | GET /open/experiments/run | Starts the experiment asynchronously. |
| run_experiment_synchronously | GET /open/experiments/run-synchronously | Starts the experiment synchronously. |
| select_last_mile_optimization_milk_run_in_milk_runs_table | POST /open/lmo/milk-runs-update/check | Selects the record containing the defined milk run record that must be added to the Milk Runs table. To add the selected milk run(s) to the Milk Runs table call the add_last_mile_optimization_milk_runs_to_scenario method. |
| select_last_mile_optimization_order_in_orders_table | POST /open/lmo/orders/check | Selects the record containing the defined order making it part of the problem the optimizer will be solving. |
| select_last_mile_optimization_shipment_in_shipments_table | POST /open/lmo/scheduled-orders-update/check | Selects the record containing the defined shipment that must be added to the Shipments table. To add the selected shipments to the Shipments table call the add_last_mile_optimization_shipments_to_scenario method. |
| stop_experiment | GET /open/experiments/stop | Stops the experiment. |
| translate | GET /open/translate | Returns translation for string string_to_be_translated. |
| update_existing_variable_parameter_table_data_by_index | POST /open/variations/update-table-data-by-index | Updates a variation table data by index. |
| update_experiment_run_configuration | POST /open/experiments/update-run-configuration | Updates experiment settings. |
| update_variable_parameter | PUT /open/variations/update-variable-parameter | Updates the variation parameter represented by the variation object. |
- Aggregation
- AggregationValue
- ApiARunConfigurationWrapper
- ApiBaseIndexSelectionValueRequest
- ApiBasePropertyData
- ApiBasicRun
- ApiBasicRunConfiguration
- ApiBooleanIndexSelectionValueRequest
- ApiBooleanPropertyData
- ApiChartLayoutData
- ApiChartMetadataShort
- ApiCheckUncheckResponse
- ApiComparisonRC
- ApiComparisonRunConfigurationWrapper
- ApiConvertAndCopyParameters
- ApiDashboardChartData
- ApiDashboardPage
- ApiExperimentResult
- ApiExperimentResultChartWrapper
- ApiExperimentResultData
- ApiExperimentResultGraphChartWrapper
- ApiExperimentResultOption
- ApiExperimentResultPageWrapper
- ApiExperimentResultTableChartWrapper
- ApiGfaRunConfiguration
- ApiGfaRunConfigurationWrapper
- ApiGfaWithRoadsRunConfiguration
- ApiGfaWithRoadsRunConfigurationWrapper
- ApiGraphChartData
- ApiIdNameObject
- ApiImportResponse
- ApiImportScenarioCancelRequest
- ApiImportScenarioStatus
- ApiIndexColumnSelection
- ApiLastMileOptimizationRunConfiguration
- ApiLastMileOptimizationRunConfigurationWrapper
- ApiLicenseData
- ApiLicenseDropData
- ApiListIndexSelectionValueRequest
- ApiMilkRunsGenerateRequest
- ApiNORC
- ApiNORunConfigurationWrapper
- ApiNumberIndexSelectionValueRequest
- ApiNumberPropertyData
- ApiObjectPropertyData
- ApiOptionList
- ApiOptionRequest
- ApiPage
- ApiProjectResponse
- ApiRARC
- ApiRiskAnalysisRunConfigurationWrapper
- ApiRoutesProgressEntry
- ApiRunExperiment
- ApiSSRC
- ApiSafetyStockRunConfigurationWrapper
- ApiScenarioData
- ApiShipmentGenerateRequest
- ApiSimulationRunConfiguration
- ApiSimulationRunConfigurationWrapper
- ApiStatisticsConfiguration
- ApiStrictClassData
- ApiStrictTableChartData
- ApiStrictTableData
- ApiStringIndexSelectionValueRequest
- ApiStringPropertyData
- ApiTableMeta
- ApiTableProperties
- ApiUserData
- ApiValidationError
- ApiValidationWarning
- ApiVariation
- ApiVariationCreateRequest
- ApiVariationData
- ApiVariationDataObject
- ApiVariationRC
- ApiVariationRunConfigurationWrapper
- Cell
- CellDouble
- CellInteger
- CellString
- DBConnectionProperties
- ExecutionState
- Filter
- Graph
- KeyValue
- Point
- PropertyValue
- Row
- Sort
- StatisticsKey
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
-
How can we improve this article?
-