/config/cookie
{
   "domain" : "",
   "name" : "crowd.token_key",
   "secure" : false
}

/group?groupname=crowd-administrators
{
   "link" : {
      "rel" : "self",
      "href" : "http://localhost:8095/crowd/rest/usermanagement/1/group?groupname=crowd-administrators"
   },
   "expand" : "attributes",
   "active" : true,
   "name" : "crowd-administrators",
   "type" : "GROUP",
   "attributes" : {
      "link" : {
         "rel" : "self",
         "href" : "http://localhost:8095/crowd/rest/usermanagement/1/group/attribute?groupname=crowd-administrators"
      },
      "attributes" : []
   },
   "description" : ""
}

/user?username=admin
{
   "link" : {
      "rel" : "self",
      "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user?username=admin"
   },
   "active" : true,
   "name" : "admin",
   "last-name" : "the builder",
   "display-name" : "bob the builder",
   "email" : "bob@example.net",
   "key" : "1:{0000-0000}",
   "password" : {
      "link" : {
         "rel" : "edit",
         "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/password?username=admin"
      }
   },
   "first-name" : "bob",
   "expand" : "attributes",
   "attributes" : {
      "link" : {
         "rel" : "self",
         "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/attribute?username=admin"
      },
      "attributes" : []
   }
}

/user/attribute?username=dir1user
{
   "link" : {
      "rel" : "self",
      "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/attribute?username=dir1user"
   },
   "attributes" : [
      {
         "link" : {
            "rel" : "self",
            "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/attribute?username=dir1user&attributename=requiresPasswordChange"
         },
         "name" : "requiresPasswordChange",
         "values" : [
            "false"
         ]
      },
      {
         "link" : {
            "rel" : "self",
            "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/attribute?username=dir1user&attributename=passwordLastChanged"
         },
         "name" : "passwordLastChanged",
         "values" : [
            "1292547939708"
         ]
      }
   ]
}

/search?entity-type=user&restriction=name%3Dadmin
{
   "expand" : "user",
   "users" : [
      {
         "link" : {
            "rel" : "self",
            "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user?username=admin"
         },
         "name" : "admin"
      }
   ]
}

/search?entity-type=group&restriction=name%3Dcrowd-administrators
{
   "expand" : "group",
   "groups" : [
      {
         "link" : {
            "rel" : "self",
            "href" : "http://localhost:8095/crowd/rest/usermanagement/1/group?groupname=crowd-administrators"
         },
         "name" : "crowd-administrators"
      }
   ]
}

/search?entity-type=no-such-entity-type
{
   "reason" : "ILLEGAL_ARGUMENT",
   "message" : "Unknown type: no-such-entity-type"
}

/search request
{
  "restriction-type": "boolean-search-restriction",
  "boolean-logic": "and",
  "restrictions": [
    {
      "restriction-type": "property-search-restriction",
      "property": {
        "name": "position",
        "type": "STRING"
      },
      "match-mode": "EXACTLY_MATCHES",
      "value": "goalkeeper"
    }
  ]
}

/session request
{
   "password" : "admin",
   "validation-factors" : {
      "validationFactors" : [
         {
            "value" : "127.0.0.1",
            "name" : "remote_address"
         }
      ]
   },
   "username" : "admin"
}

/session response
{
   "link" : {
      "rel" : "self",
      "href" : "http://localhost:8095/crowd/rest/usermanagement/1/session/XXXXXXXXXXXXXXXXXXXXXXXX"
   },
   "expand" : "user",
   "user" : {
      "link" : {
         "rel" : "self",
         "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user?username=admin"
      },
      "name" : "admin"
   },
   "token" : "XXXXXXXXXXXXXXXXXXXXXXXX",
   "created-date" : 946684800000,
   "expiry-date" : 946684800000
}

/authentication?username=admin request
{
   "value" : "admin"
}

/event
{
   "newEventToken" : "-9999999:99",
   "incrementalSynchronisationAvailable" : true
}

/user create-request
{
   "active" : true,
   "name" : "newuser",
   "last-name" : "lname",
   "display-name" : "dname",
   "email" : "newuser@example.com",
   "encrypted-password" : {
     "value": "secret"
   },
   "first-name" : "fname"
}

/user create-response
{
   "link" : {
      "rel" : "self",
      "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user?username=newuser"
   },
   "active" : true,
   "name" : "newuser",
   "last-name" : "lname",
   "display-name" : "dname",
   "email" : "newuser@example.com",
   "key" : "1:{0000-0000}",
   "password" : {
      "link" : {
         "rel" : "edit",
         "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/password?username=newuser"
      }
   },
   "first-name" : "fname",
   "expand" : "attributes",
   "attributes" : {
      "link" : {
         "rel" : "self",
         "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/attribute?username=newuser"
      },
      "attributes" : []
   }
}

