Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Typically, the best way to test the model ingestion flow is to have a fully functioning ONAP deployment, and to distribute a model from SDC.  However, in dev scenerios where an AAI is installed in isolation, these instructions will allow you to test model ingestion using a debug endpoint in place of the SDC.

Enable the debug API on the model-loader service

The model-loader service is the entry point for ingesting new models.  Ensure that the following option is configured in the model-loader.properties configuration file:

ml.debug.INGEST_SIMULATOR=enabled

Debug API

Send the following request to the the http port on the model-loader service:

POST http://{{host}}:{{port}}/services/model-loader/v1/model-service/ingestModel/test-csar/1.0

The body of the request should contain the base64 encoded csar file containing the model.  You can use the following postman collection to test with an example csar.

Model Ingestion.postman_collection.json

  • No labels