Commit 3125424c authored by Jörg Richter's avatar Jörg Richter

REST client: add 2 getTopic[s]ByValue() methods

Add 2 methods:

  getTopicByValue (typeUri, value)

  getTopicsByValue (typeUri, value)

See dmx-platform/dmx-platform#341
parent 20392660
Pipeline #9924 passed with stage
in 2 seconds
......@@ -37,6 +37,18 @@ export default {
)
},
getTopicByValue (typeUri, value) {
return http.get(`/core/topic/type/${typeUri}/${value}`).then(response =>
new Topic(response.data)
)
},
getTopicsByValue (typeUri, value) {
return http.get(`/core/topics/type/${typeUri}/${value}`).then(response =>
utils.instantiateMany(response.data, Topic)
)
},
/**
* @param filter
* Optional: 1-hop traversal filtering. An object with 4 properties (each one is optional):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment