feat(admin): users and roles added to the frontend to manage easier
This commit is contained in:
@@ -4,23 +4,24 @@ meta {
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
patch {
|
||||
url: {{url}}/lst/api/admin/:userID/grant
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
userID: 0hlO48C7Jw1J804FxrCnonK
|
||||
userID: 0hlO48C7Jw1J804FxrCnonKjQ2zh48R6
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"module":"users",
|
||||
"role":"admin"
|
||||
"module":"siloAdjustments",
|
||||
"role":"viewer"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
meta {
|
||||
name: RevokeRole by ID
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/lst/api/admin/:userID/grant
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
userID: 0hlO48C7Jw1J804FxrCnonKjQ2zh48R6
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"module":"siloAdjustments",
|
||||
"role":"viewer"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
Reference in New Issue
Block a user