Skip to content

elifesciences/enhanced-preprints-import-controller

Repository files navigation

enhanced-preprints-import-controller

This is a UI built to make manual article import easy for humans outside the tech team.

To run the application for development purposes, you need to spin up the local version of epp-import with real s3 as a source. Then run yarn start:dev, and go to localhost:5000.

The dashboard will be available at http://localhost:5000.

API Usage

Import DocMap

You can trigger a DocMap import using curl:

curl -X POST http://localhost:5000/import-docmap \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "docmap=https://example.com/docmap.json" \
  -d "temporalNamespace=your-namespace"

Or using JSON:

curl -X POST http://localhost:5000/import-docmap \
  -H "Content-Type: application/json" \
  -d '{
    "docmap": "https://example.com/docmap.json",
    "temporalNamespace": "your-namespace"
  }'

Replace https://example.com/docmap.json with the actual URL to your DocMap file and your-namespace with the appropriate Temporal namespace.

Optional Parameters

  • workflowIdPrefix: Override the default "import" prefix in the auto-generated workflow ID. The workflow ID format is {prefix}-{timestamp}-{random}.

Example with custom prefix:

curl -X POST http://localhost:5000/import-docmap \
  -H "Content-Type: application/json" \
  -d '{
    "docmap": "https://example.com/docmap.json",
    "temporalNamespace": "your-namespace",
    "workflowIdPrefix": "custom-prefix"
  }'

This will generate a workflow ID like custom-prefix-20260211123045-a1b2c3d4.

About

This is UI to help users import articles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 5