OMS Setup Services
In Omnitron, a setup is a collection of settings used to configure the OMS (Order Management System). This service retrieves these settings from Omnitron and prepares the OMS for its initial configuration.
POST
Run OMS Setup
POST
Run OMS SetupThis service is used to run the OMS setup.
Path: /api/v1/oms/oms_setup/
Payload
username
string
body
The username of the application
password
string
body
The password of the application
auth_token
string
body
The auth token of the application
application_id
int
body
The application ID
user_id
int
body
The user id
oms_url
string
body
The oms url
omnitron_url
string
body
The omnitron url
load_fixtures
bool
body
To load fixtures set True, not required
whippy_ware_url
string
body
To load whippyware set this parameter, not required
Example Request
To run this service, a POST
request should be sent to /api/v1/oms/oms_setup/
endpoint. Celery tasks will be triggered to complete the setup tasks.
Here's an example of how to make the request in python:
Example Response (201 CREATED)
In a successful response with a status code of 201 CREATED, the response body does not contain any objects or messages.
GET
Query OMS Setup Status
GET
Query OMS Setup StatusThis service is used to check the status of the "OMS Setup" and whether it has been completed or not.
Path: /api/v1/oms/is_setup_completed/
Example Request
To retreive information about status of the OMS Setup, a GET request shoud be sent. No parameters are required.
Here's an example of how to make the request in python:
Example Response (200 OK)
If the OMS Setup has been completed, it will return a successful response with a status code of 200 OK
.
is_task_completed
bool
Status of the OMS setup tasks
context
object
Detail of the each setup task status
Was this helpful?