Created
August 19, 2011 11:19
-
-
Save samsoir/1156598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 200 OK | |
Content-Type: application/json | |
{ | |
contentType:"ssoUser", | |
metadata: | |
{ | |
total: 1, | |
fetchedRows: 1, | |
limit: null, | |
offset: null | |
}, | |
hypermedia: | |
{ | |
create: | |
{ | |
method:"POST", | |
uri:"/v2/user/" | |
}, | |
read: | |
{ | |
method:"GET", | |
uri:"/v2/user/:username", | |
parameters: | |
[ | |
{ | |
":username": | |
{ | |
type:"string" | |
} | |
} | |
] | |
}, | |
update: | |
{ | |
method:"PUT", | |
uri:"/v2/user/:username", | |
parameters: | |
[ | |
{ | |
":username": | |
{ | |
type:"string" | |
} | |
} | |
] | |
}, | |
remove: | |
{ | |
method:"DELETE", | |
uri:"/v2/user/:username", | |
parameters: | |
[ | |
{ | |
":username": | |
{ | |
type:"string" | |
} | |
} | |
] | |
}, | |
search: | |
{ | |
method:"GET", | |
uri:"/v2/user?search=:username&limit=:limit&offset=:offset", | |
parameters: | |
[ | |
{ | |
":username": | |
{ | |
type:"string" | |
}, | |
":limit": | |
{ | |
type:"integer", | |
default:null | |
}, | |
":offset": | |
{ | |
type:"integer", | |
default:null | |
} | |
} | |
] | |
} | |
}, | |
payload: | |
[ | |
{ | |
id:"geoff@cw.com", | |
username:"geoff@cw.com", | |
organisation:"THUS SOUTHEND", | |
createdOn:"1252420957", | |
userType:"ADMIN", | |
userState:"NORMAL", | |
fullName:"Geoff", | |
emailAddress:"geoff@cw.com", | |
phoneNumber:"07777123456", | |
location:"London", | |
roles: | |
[ | |
"All:Saas:Admin:Portal:MyCW", | |
"Standard:Assure:User:Portal:MyCW", | |
"All:Customerhosting:User:Portal:MyCW", | |
"All:External:User:Portal:MyCW", | |
"All:Saas:User:Portal:MyCW" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment