Commit 20392660 authored by Jörg Richter's avatar Jörg Richter

REST client: adapt to Core REST API (GET by-uri/by-type)

See dmx-platform/dmx-platform#341
parent 91479913
Pipeline #9917 passed with stage
in 1 second
......@@ -6,7 +6,7 @@ import typeCache from './type-cache'
import permCache from './permission-cache'
import utils from './utils'
console.log('[DMX] Client Library 2020/03/30')
console.log('[DMX] Client Library 2020/04/27')
export default {
......
......@@ -23,7 +23,7 @@ export default {
},
getTopicByUri (uri, includeChildren, includeAssocChildren) {
return http.get(`/core/topic/by_uri/${uri}`, {params: {
return http.get(`/core/topic/uri/${uri}`, {params: {
children: includeChildren,
assoc_children: includeAssocChildren
}}).then(response =>
......@@ -32,7 +32,7 @@ export default {
},
getTopicsByType (typeUri) {
return http.get(`/core/topic/by_type/${typeUri}`).then(response =>
return http.get(`/core/topic/type/${typeUri}`).then(response =>
utils.instantiateMany(response.data, Topic)
)
},
......
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