2.9 Web Application

2.9.1 Resource Representations

WebAppConfig


{
   "enabled": boolean,
   "allow_guest_access": boolean,
   "read_only_guest": boolean,
   "allow_open_id": boolean,
   "allow_downloads": boolean
}     

2.9.2 Get Settings

To get the Web Application settings, use the web_application related link (href: “/admin/web_application") from the root admin resource (href: "/admin"):


[Request]
> curl -k -u admin:novell https://amethyst.provo.novell.com:8443/rest/admin/web_application

[Response]
{
   "enabled":true,
   "href":"/admin/web_application",
   "allow_guest_access":true,
   "read_only_guest":true,
   "allow_open_id":true,
   "allow_downloads":true
}

2.9.3 Modify Settings

To update the Web Application settings, send a PUT request to the web_application related link (href: "/admin/web_application") from the root admin resource (href: "/admin").  Only the attributes that are included in the request body are updated:


[Request]
> curl -k -u admin:novell https://amethyst.provo.novell.com:8443/rest/admin/web_application /
  -X PUT -H "Content-Type: application/json" -d '{"allow_guest_access":false}'

[Response]
{
   "enabled":true,
   "href":"/admin/web_application",
   "allow_guest_access":false,
   "read_only_guest":true,
   "allow_open_id":true,
   "allow_downloads":true
}