Upload content and import it into the LMF system. The importer is selected based on the Content-Type header
of the HTTP request. Calling the service spawns a separate asynchronous thread. Its status can be queried by
calling the /status webservice.
POST /{BASE}/import/upload?context=…
Content-Type: …
API Example:
ImportWebService.uploadData({'context': /* Upload content and import it into the LMF system. */, 'Content-Type': /* type the content type of the uploaded content */});
Upload content and import it into the LMF system. The importer is selected based on the Content-Type header
of the HTTP request. Calling the service spawns a separate asynchronous thread. Its status can be queried by
calling the /status webservice.
Output:
javax.ws.rs.core.Response - OK after starting a thread for importing the data, or error if the import cannot be started
Query parameters:
context
Header parameters:
Content-Type - the content type of the uploaded content
HTTP return codes:
200 - if the import was successfully started
412 - if the content-type header is not present or contains unsupported mime types