Extends
Members
(readonly) has :Object
A dictionary with functionality of the registry (e.g. registry.has.schemes
).
- Object
- Inherited From
languages :Array.<string>
A list of RFC 3066 language tags in lowercase in order of priority.
- Array.<string>
- Inherited From
Methods
(async) deleteAnnotation(config) → {boolean}
Deletes an annotation.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
true
if deletion was successful
- Type:
- boolean
(async) deleteConcordance(config) → {boolean}
Deletes a concordance.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
true
if deletion was successful
- Type:
- boolean
(async) deleteMapping(config) → {boolean}
Deletes a mapping.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
true
if deletion was successful
- Type:
- boolean
(async) deleteMappings(config) → {Array.<Object>}
DELETEs multiple mappings. Do not override in subclass!
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
- Inherited From
array of results (true
if successful); in case of failure, consult the _errors
property on the array at the index of the failed request
- Type:
- Array.<Object>
(async) getAnnotations(config) → {Array.<Object>}
Returns a list of annotations.
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
array of JSKOS annotation objects
- Type:
- Array.<Object>
getCancelTokenSource() → {Object}
Returns a source for a axios cancel token.
- Inherited From
axios cancel token source
- Type:
- Object
(async) getConcordances(config) → {Array.<Object>}
Returns a list of concordances.
Name | Type | Description |
---|---|---|
config | Object |
array of JSKOS concordance objects
- Type:
- Array.<Object>
(async) getMapping(config) → {Object}
Returns a single mapping.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS mapping object
- Type:
- Object
(async) getMappings(config) → {Array.<Object>}
Returns a list of mappings.
Name | Type | Description |
---|---|---|
config | Object | request config with parameters |
array of JSKOS mapping objects
- Type:
- Array.<Object>
(async) init() → {Promise}
Load data about registry via the status endpoint.
- Inherited From
Promise that resolves when initialization is complete.
- Type:
- Promise
isAuthorizedFor(options) → {boolean}
Returns whether a user is authorized for a certain request.
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | Properties
|
- Inherited From
- Type:
- boolean
(async) patchAnnotation(config) → {Object}
Patches an annotation.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS annotation object
- Type:
- Object
(async) patchConcordance(config) → {Object}
Patches a concordance.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS concordance object
- Type:
- Object
(async) patchMapping(config) → {Object}
Patches a mapping.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS mapping object
- Type:
- Object
(async) postAnnotation(config) → {Object}
Creates an annotation.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS annotation object
- Type:
- Object
(async) postConcordance(config) → {Object}
Creates a concordance.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS concordance object
- Type:
- Object
(async) postMapping(config) → {Object}
Creates a mapping.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS mapping object
- Type:
- Object
(async) postMappings(config) → {Array.<Object>}
POSTs multiple mappings. Do not override in subclass!
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
- Inherited From
array of created mapping objects; in case of failure, consult the _errors
property on the array at the index of the failed request
- Type:
- Array.<Object>
(async) putAnnotation(config) → {Object}
Overwrites an annotation.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS annotation object
- Type:
- Object
(async) putConcordance(config) → {Object}
Overwrites a concordance.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS concordance object
- Type:
- Object
(async) putMapping(config) → {Object}
Overwrites a mapping.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
JSKOS mapping object
- Type:
- Object
setAuth(options)
Sets authentication credentials.
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | Properties
|
- Inherited From
setRetryConfig(config)
Sets retry configuration.
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
- Inherited From
supportsScheme(scheme) → {boolean}
Returns a boolean whether a certain target scheme is supported or not.
Name | Type | Description |
---|---|---|
scheme | Object |
- Inherited From
- Type:
- boolean