Skip to content

Commit

Permalink
MappingsApi: Add support for annotatedBy, annotatedFor, annotatedWith
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jun 23, 2022
1 parent 64eebc4 commit 4ba441c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/providers/mappings-api-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class MappingsApiProvider extends BaseProvider {
* @param {Object} config request config with parameters
* @returns {Object[]} array of JSKOS mapping objects
*/
async getMappings({ from, fromScheme, to, toScheme, creator, type, partOf, offset, limit, direction, mode, identifier, cardinality, sort, order, ...config }) {
async getMappings({ from, fromScheme, to, toScheme, creator, type, partOf, offset, limit, direction, mode, identifier, cardinality, annotatedBy, annotatedFor, annotatedWith, sort, order, ...config }) {
let params = {}, url = this._api.mappings
if (from) {
params.from = _.isString(from) ? from : from.uri
Expand Down Expand Up @@ -167,6 +167,15 @@ export default class MappingsApiProvider extends BaseProvider {
if (cardinality) {
params.cardinality = cardinality
}
if (annotatedBy) {
params.annotatedBy = annotatedBy
}
if (annotatedFor) {
params.annotatedFor = annotatedFor
}
if (annotatedWith) {
params.annotatedWith = annotatedWith
}
if (mode) {
params.mode = mode
}
Expand Down

0 comments on commit 4ba441c

Please sign in to comment.