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

REST client: add `getPrivateWorkspace()`

See dmx-platform/dmx-platform#327
parent 3cf1ba17
Pipeline #8561 passed with stage
in 3 seconds
This diff is collapsed.
......@@ -6,7 +6,7 @@ import typeCache from './type-cache'
import permCache from './permission-cache'
import utils from './utils'
console.log('[DMX] Client API 2019/11/19')
console.log('[DMX] Client API 2019/11/20')
export default {
......
......@@ -388,6 +388,18 @@ export default {
)
},
getPrivateWorkspace () {
return http.get(`/accesscontrol/user/workspace`).then(response =>
new Topic(response.data)
)
},
getWorkspaceOwner (id) {
return http.get(`/accesscontrol/workspace/${id}/owner`).then(response =>
response.data
)
},
getTopicPermissions (id) {
return http.get(`/accesscontrol/topic/${id}`).then(response =>
response.data
......@@ -412,12 +424,6 @@ export default {
)
},
getWorkspaceOwner (id) {
return http.get(`/accesscontrol/workspace/${id}/owner`).then(response =>
response.data
)
},
getAuthorizationMethods () {
return http.get('/accesscontrol/methods').then(response =>
response.data
......
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