Path: / {BASE} / import / upload

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.


Resource Methods
Method Summary
NameDescription
POST /{BASE}/import/upload?context=…Upload content and import it into the LMF system.

Method Detail

POST /{BASE}/import/upload

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.

HTTP Example:
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 */});

Output:
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