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.
Fetch content from an external resource and import it into the LMF system.
Method Detail
HTTP Example:
POST /{BASE}/import/external?context=…&url=…
Content-Type: …
API Example:
ImportWebService.externalData({'context': /* Fetch content from an external resource and import it into the LMF system. */, 'url': /* url an optional URL of a remote resource to import */, 'Content-Type': /* type the content type of the uploaded content */});
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.
Output:
javax.ws.rs.core.Response - OK if the import was successfully started
Query parameters:
context
url - an optional URL of a remote resource to import
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