Skip to content

Instantly share code, notes, and snippets.

@dolph
Created June 13, 2013 16:11
Show Gist options
  • Save dolph/5775003 to your computer and use it in GitHub Desktop.
Save dolph/5775003 to your computer and use it in GitHub Desktop.
POST /role_assignments
{"role_assignment": {
"user" {
"id": "1"
},
"role": {
"id": "2"
},
"scope": {
"domain": {
"id": "3"
},
"project": {
"id": "4"
}
}
}
--> {"role_assignment": {"id": "A", ...}}
POST /role_assignments
{"role_assignment": {
"user" {
"id": "1"
},
"role": {
"id": "2"
},
"scope": {
"domain": {
"id": "3"
},
"project": {
"id": "6"
}
}
}
--> {"role_assignment": {"id": "B", ...}}
DELETE /domains/3/users/1/roles/2
GET /role_assignments/A
{"role_assignment": {
"id": "A",
"user" {
"id": "1"
},
"role": {
"id": "2"
},
"scope": {
"project": {
"id": "4"
}
}
}
GET /role_assignments/B
{"role_assignment": {
"id": "B",
"user" {
"id": "1"
},
"role": {
"id": "2"
},
"scope": {
"project": {
"id": "6"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment