Catalog Client Service
In previous versions
uploadModels.sh
script was used for uploading models. This shell script was platform-dependent.
Now, the platform-independent Catalog Client service has replaced all the functionality for uploading of any catalog model to Order Management.
By using the catalog client service, you can upload offline files on JMS or HTTP. Through this Catalog Client service, you can upload any models from the offline directory.
To use the service, perform the following configurations in the application.properties file:
- Set the catalogMode flag as
OM
for Order Management. - Select catalogPublishMode as JMS or REST as per the requirement.
- Set the authorization properties to generate auth token.
- Set JMS or HTTP configuration and Offline model loading catalog URL.
The following REST service is used for uploading offline models.
Operation Upload Offline Models
Endpoint: http://<host_address>:<port_address>/v1/uploadModel
Method: POST
Select the modelType from the drop-down list and enter the tenantId for which you want to publish the models.
Models from the offline model loading directory are uploaded.