Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 2.50 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. HTTP/1.1 200 OK
  2. Content-Type: application/json
  3.  
  4. {
  5.     contentType:"ssoUser",
  6.     metadata:
  7.     {
  8.         total: 1,
  9.         fetchedRows: 1,
  10.         limit: null,
  11.         offset: null
  12.     },
  13.     hypermedia:
  14.     {
  15.         create:
  16.         {
  17.             method:"POST",
  18.             uri:"/v2/user/"
  19.         },
  20.         read:
  21.         {
  22.             method:"GET",
  23.             uri:"/v2/user/:username",
  24.             parameters:
  25.             [
  26.                 {
  27.                     ":username":
  28.                     {
  29.                         type:"string"
  30.                     }
  31.                 }
  32.             ]
  33.         },
  34.         update:
  35.         {
  36.             method:"PUT",
  37.             uri:"/v2/user/:username",
  38.             parameters:
  39.             [
  40.                 {
  41.                     ":username":
  42.                     {
  43.                         type:"string"
  44.                     }
  45.                 }
  46.             ]
  47.         },
  48.         remove:
  49.         {
  50.             method:"DELETE",
  51.             uri:"/v2/user/:username",
  52.             parameters:
  53.             [
  54.                 {
  55.                     ":username":
  56.                     {
  57.                         type:"string"
  58.                     }
  59.                 }
  60.             ]
  61.         },
  62.         search:
  63.         {
  64.             method:"GET",
  65.             uri:"/v2/user?search=:username&limit=:limit&offset=:offset",
  66.             parameters:
  67.             [
  68.                 {
  69.                     ":username":
  70.                     {
  71.                         type:"string"
  72.                     },
  73.                     ":limit":
  74.                     {
  75.                         type:"integer",
  76.                         default:null
  77.                     },
  78.                     ":offset":
  79.                     {
  80.                         type:"integer",
  81.                         default:null
  82.                     }
  83.                 }
  84.             ]
  85.         }
  86.     },
  87.     payload:
  88.     [
  89.         {
  90.             id:"geoff@cw.com",
  91.             username:"geoff@cw.com",
  92.             organisation:"THUS SOUTHEND",
  93.             createdOn:"1252420957",
  94.             userType:"ADMIN",
  95.             userState:"NORMAL",
  96.             fullName:"Geoff",
  97.             emailAddress:"geoff@cw.com",
  98.             phoneNumber:"07777123456",
  99.             location:"London",
  100.             roles:
  101.             [
  102.                 "All:Saas:Admin:Portal:MyCW",
  103.                 "Standard:Assure:User:Portal:MyCW",
  104.                 "All:Customerhosting:User:Portal:MyCW",
  105.                 "All:External:User:Portal:MyCW",
  106.                 "All:Saas:User:Portal:MyCW"
  107.             ]
  108.         }
  109.     ]
  110. }