Skip to content

Commit

Permalink
Add optional replacement path setting to README for resource paths [e…
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Jan 13, 2025
1 parent 6192473 commit 613e4ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ cat [LOCATION OF JATS XML] | curl -X POST --data @- http://localhost:3000/
```bash
cat [LOCATION OF JATS XML] | curl -X POST -H "Accept: application/vnd.elife.encoda.v1.0.1+json" --data @- http://localhost:3000/
```

## Optionally set a replacement path

This replaces the path of other resources pointed to in original Meca with their new location in S3.

i.e. if the XML file was in the Zip as `content/123/123.xml` for id 456 version 1, we pass in `456/v1/content/123` as a replacement paths to other resources.

```bash
cat [LOCATION OF JATS XML] | curl -X POST --data @- http://localhost:3000?replacementPath=456/v1/content/123
```

0 comments on commit 613e4ca

Please sign in to comment.