Path: / {BASE} / import / external

Fetch content from an external resource 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/external?url=…&context=…Fetch content from an external resource and import it into the LMF system.

Method Detail

POST /{BASE}/import/external

Fetch content from an external resource 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/external?url=…&context=…
Content-Type: …
API Example:

ImportWebService.externalData({'url': /* url an optional URL of a remote resource to import */,
  'context': /* Fetch content from an external resource and import it into the LMF system. */,
  'Content-Type': /* type the content type of the uploaded content */});

Output:
Response - OK if the import was successfully started
Query parameters:
url - an optional URL of a remote resource to import
context
Header parameters:
Content-Type - the content type of the uploaded content
HTTP return codes:
200 - if the import was successfully started
400 - if the URL argument is not valid
412 - if the content-type header is not present or contains unsupported mime types
502 - if a connection to the URL of the external source cannot be established