-
Notifications
You must be signed in to change notification settings - Fork 53
Voyant API
This uses the StoredResource
tool. Because these calls work outside of a corpus, we need to add runWithoutCorpus=true
(at least for now).
You can verify if a string has already been stored (which avoids resending data). If the resource does not exist, the id
value of the returned object will be empty.
tool=StoredResource&runWithoutCorpus=true&verifyResourceId=[id]
You can store a resource and have Trombone provide a generated ID. The id
of the returned object will contain the new resource ID.
tool=StoredResource&runWithoutCorpus=true&storeResource=[resource]
You can store a resource and provide your own ID, but note that great care should be taken to ensure that you really are using a unique ID, one generated as a GUID or as something like an MD5 of a string. The id
of the return object will be set to the specified ID.
tool=StoredResource&runWithoutCorpus=true&storeResource=[resource]&resourceId=[id]
You can retrieve a resource with a provided ID:
tool=StoredResource&runWithoutCorpus=true&retrieveResourceId=[id]