Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mjlassila
Created May 3, 2018 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjlassila/1d0513cb79962948a4c9d58c13301635 to your computer and use it in GitHub Desktop.
Save mjlassila/1d0513cb79962948a4c9d58c13301635 to your computer and use it in GitHub Desktop.
Example JSON payload for attaching external HTML files to existing OmekaS items
{
"o:renderer": "html",
"o:is_public": true,
"@type": "cnt:ContentAsText",
"cnt:characterEncoding": "UTF-8",
"o:ingester": "url",
"o:item": {
"@id": "http://omekas:8888/api/items/5500",
"o:id": 5500
},
"ingest_url": "http://hmpg.net",
"store_original": 1,
"dcterms:title": [{
"property_id": 1,
"@value": "transcription",
"type": "literal",
"property_label": "Title"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment