From 07874f668fa9027a524498f20fd7abb35e5087f7 Mon Sep 17 00:00:00 2001 From: Ziad Sawalha Date: Thu, 11 Aug 2011 11:01:41 -0500 Subject: Adding documentation to WADL Change-Id: Icbfad5c13454cc458a60dd9e20792d3e5c2e8227 --- keystone/content/samples/auth.json | 37 +++++++++++ keystone/content/samples/auth.xml | 29 +++++++++ keystone/content/samples/auth_credentials.json | 7 +++ keystone/content/samples/auth_credentials.xml | 5 ++ keystone/content/samples/choices.json | 72 ++++++++++++++++++++++ keystone/content/samples/choices.xml | 41 ++++++++++++ keystone/content/samples/endpoint.json | 6 ++ keystone/content/samples/endpoint.xml | 4 ++ keystone/content/samples/endpointTemplate.json | 11 ++++ keystone/content/samples/endpointTemplate.xml | 12 ++++ keystone/content/samples/endpointTemplates.json | 43 +++++++++++++ keystone/content/samples/endpointTemplates.xml | 42 +++++++++++++ keystone/content/samples/endpoints.json | 24 ++++++++ keystone/content/samples/endpoints.xml | 20 ++++++ keystone/content/samples/ext-getuser.json | 22 +++++++ keystone/content/samples/ext-getuser.xml | 13 ++++ keystone/content/samples/extension.json | 21 +++++++ keystone/content/samples/extension.xml | 23 +++++++ keystone/content/samples/extensions.json | 44 +++++++++++++ keystone/content/samples/extensions.xml | 39 ++++++++++++ keystone/content/samples/getuser-1.json | 29 +++++++++ keystone/content/samples/getuser-1.xml | 14 +++++ keystone/content/samples/group.json | 6 ++ keystone/content/samples/group.xml | 4 ++ keystone/content/samples/groups.json | 13 ++++ keystone/content/samples/groups.xml | 5 ++ keystone/content/samples/identity_fault.json | 7 +++ keystone/content/samples/identity_fault.xml | 6 ++ keystone/content/samples/item_not_found.json | 7 +++ keystone/content/samples/item_not_found.xml | 6 ++ keystone/content/samples/role.json | 6 ++ keystone/content/samples/role.xml | 4 ++ keystone/content/samples/roleRef.json | 7 +++ keystone/content/samples/roleRef.xml | 4 ++ keystone/content/samples/roleRefs.json | 14 +++++ keystone/content/samples/roleRefs.xml | 9 +++ keystone/content/samples/roles.json | 12 ++++ keystone/content/samples/roles.xml | 6 ++ keystone/content/samples/samplerequestheader.json | 4 ++ keystone/content/samples/sampleresponseheader.json | 4 ++ keystone/content/samples/service.json | 6 ++ keystone/content/samples/service.xml | 4 ++ keystone/content/samples/services.json | 12 ++++ keystone/content/samples/services.xml | 6 ++ keystone/content/samples/tenant.json | 7 +++ keystone/content/samples/tenant.xml | 5 ++ keystone/content/samples/tenantlock.json | 5 ++ keystone/content/samples/tenantlock.xml | 4 ++ keystone/content/samples/tenants-1.json | 17 +++++ keystone/content/samples/tenants-1.xml | 10 +++ keystone/content/samples/tenants-2.json | 21 +++++++ keystone/content/samples/tenants-2.xml | 13 ++++ keystone/content/samples/tenants-3.json | 17 +++++ keystone/content/samples/tenants-3.xml | 10 +++ keystone/content/samples/tenants-request.txt | 5 ++ keystone/content/samples/tenants.json | 21 +++++++ keystone/content/samples/tenants.xml | 14 +++++ keystone/content/samples/updatedtenant.json | 7 +++ keystone/content/samples/updatedtenant.xml | 5 ++ keystone/content/samples/validatetoken.json | 20 ++++++ keystone/content/samples/validatetoken.xml | 12 ++++ keystone/content/samples/version-atom.xml | 19 ++++++ keystone/content/samples/version.json | 33 ++++++++++ keystone/content/samples/version.xml | 23 +++++++ keystone/content/samples/versions-atom.xml | 29 +++++++++ keystone/content/samples/versions.json | 39 ++++++++++++ keystone/content/samples/versions.xml | 24 ++++++++ keystone/content/xsd/tenant.xsd | 15 +++++ 68 files changed, 1085 insertions(+) create mode 100644 keystone/content/samples/auth.json create mode 100644 keystone/content/samples/auth.xml create mode 100644 keystone/content/samples/auth_credentials.json create mode 100644 keystone/content/samples/auth_credentials.xml create mode 100644 keystone/content/samples/choices.json create mode 100644 keystone/content/samples/choices.xml create mode 100644 keystone/content/samples/endpoint.json create mode 100644 keystone/content/samples/endpoint.xml create mode 100644 keystone/content/samples/endpointTemplate.json create mode 100644 keystone/content/samples/endpointTemplate.xml create mode 100644 keystone/content/samples/endpointTemplates.json create mode 100644 keystone/content/samples/endpointTemplates.xml create mode 100644 keystone/content/samples/endpoints.json create mode 100644 keystone/content/samples/endpoints.xml create mode 100644 keystone/content/samples/ext-getuser.json create mode 100644 keystone/content/samples/ext-getuser.xml create mode 100644 keystone/content/samples/extension.json create mode 100644 keystone/content/samples/extension.xml create mode 100644 keystone/content/samples/extensions.json create mode 100644 keystone/content/samples/extensions.xml create mode 100644 keystone/content/samples/getuser-1.json create mode 100644 keystone/content/samples/getuser-1.xml create mode 100644 keystone/content/samples/group.json create mode 100644 keystone/content/samples/group.xml create mode 100644 keystone/content/samples/groups.json create mode 100644 keystone/content/samples/groups.xml create mode 100644 keystone/content/samples/identity_fault.json create mode 100644 keystone/content/samples/identity_fault.xml create mode 100644 keystone/content/samples/item_not_found.json create mode 100644 keystone/content/samples/item_not_found.xml create mode 100644 keystone/content/samples/role.json create mode 100644 keystone/content/samples/role.xml create mode 100644 keystone/content/samples/roleRef.json create mode 100644 keystone/content/samples/roleRef.xml create mode 100644 keystone/content/samples/roleRefs.json create mode 100644 keystone/content/samples/roleRefs.xml create mode 100644 keystone/content/samples/roles.json create mode 100644 keystone/content/samples/roles.xml create mode 100644 keystone/content/samples/samplerequestheader.json create mode 100644 keystone/content/samples/sampleresponseheader.json create mode 100644 keystone/content/samples/service.json create mode 100644 keystone/content/samples/service.xml create mode 100644 keystone/content/samples/services.json create mode 100644 keystone/content/samples/services.xml create mode 100644 keystone/content/samples/tenant.json create mode 100644 keystone/content/samples/tenant.xml create mode 100644 keystone/content/samples/tenantlock.json create mode 100644 keystone/content/samples/tenantlock.xml create mode 100644 keystone/content/samples/tenants-1.json create mode 100644 keystone/content/samples/tenants-1.xml create mode 100644 keystone/content/samples/tenants-2.json create mode 100644 keystone/content/samples/tenants-2.xml create mode 100644 keystone/content/samples/tenants-3.json create mode 100644 keystone/content/samples/tenants-3.xml create mode 100644 keystone/content/samples/tenants-request.txt create mode 100644 keystone/content/samples/tenants.json create mode 100644 keystone/content/samples/tenants.xml create mode 100644 keystone/content/samples/updatedtenant.json create mode 100644 keystone/content/samples/updatedtenant.xml create mode 100644 keystone/content/samples/validatetoken.json create mode 100644 keystone/content/samples/validatetoken.xml create mode 100644 keystone/content/samples/version-atom.xml create mode 100644 keystone/content/samples/version.json create mode 100644 keystone/content/samples/version.xml create mode 100644 keystone/content/samples/versions-atom.xml create mode 100644 keystone/content/samples/versions.json create mode 100644 keystone/content/samples/versions.xml diff --git a/keystone/content/samples/auth.json b/keystone/content/samples/auth.json new file mode 100644 index 00000000..c74dcb2b --- /dev/null +++ b/keystone/content/samples/auth.json @@ -0,0 +1,37 @@ +{ + "auth":{ + "token":{ + "id":"asdasdasd-adsasdads-asdasdasd-adsadsasd", + "expires":"2010-11-01T03:32:15-05:00" + }, + "serviceCatalog":{ + "service1":[ + { + "region":"DFW", + "publicURL":"https://service1-public/v1/blah-blah", + "internalURL":"https://service1-internal/v1/blah-blah" + }, + { + "region":"ORD", + "publicURL":"https://service1-public-ord/v1/blah-blah", + "internalURL":"https://service1-internal-ord/v1/blah-blah" + } + ], + "service2":[ + { + "region":"DFW", + "publicURL":"https://service2-public-dfw/v1/blah-blah" + }, + { + "region":"ORD", + "publicURL":"https://service2-public-orf/v1/blah-blah" + } + ], + "service3":[ + { + "publicURL":"https://service3-public/v1/blah-blah" + } + ] + } + } +} diff --git a/keystone/content/samples/auth.xml b/keystone/content/samples/auth.xml new file mode 100644 index 00000000..6d90c064 --- /dev/null +++ b/keystone/content/samples/auth.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + diff --git a/keystone/content/samples/auth_credentials.json b/keystone/content/samples/auth_credentials.json new file mode 100644 index 00000000..a886351a --- /dev/null +++ b/keystone/content/samples/auth_credentials.json @@ -0,0 +1,7 @@ +{ + "passwordCredentials":{ + "username":"test_user", + "password":"a86850deb2742ec3cb41518e26aa2d89", + "tenantId":"77654" + } +} diff --git a/keystone/content/samples/auth_credentials.xml b/keystone/content/samples/auth_credentials.xml new file mode 100644 index 00000000..56bd91d6 --- /dev/null +++ b/keystone/content/samples/auth_credentials.xml @@ -0,0 +1,5 @@ + + diff --git a/keystone/content/samples/choices.json b/keystone/content/samples/choices.json new file mode 100644 index 00000000..9beecef0 --- /dev/null +++ b/keystone/content/samples/choices.json @@ -0,0 +1,72 @@ +{ + "choices":{ + "values":[ + { + "id":"v1.0", + "status":"DEPRECATED", + "links":[ + { + "rel":"self", + "href":"http://identity.api.openstack.org/v2.0" + } + ], + "media-types":{ + "values":[ + { + "base":"application/xml", + "type":"application/vnd.openstack.identity-v1.0+xml" + }, + { + "base":"application/json", + "type":"application/vnd.openstack.identity-v1.0+json" + } + ] + } + }, + { + "id":"v1.1", + "status":"CURRENT", + "links":[ + { + "rel":"self", + "href":"http://identity.api.openstack.org/v1.1" + } + ], + "media-types":{ + "values":[ + { + "base":"application/xml", + "type":"application/vnd.openstack.identity-v1.1+xml" + }, + { + "base":"application/json", + "type":"application/vnd.openstack.identity-v1.1+json" + } + ] + } + }, + { + "id":"v2.0", + "status":"BETA", + "links":[ + { + "rel":"self", + "href":"http://identity.api.openstack.org/v2.0" + } + ], + "media-types":{ + "values":[ + { + "base":"application/xml", + "type":"application/vnd.openstack.identity-v2.0+xml" + }, + { + "base":"application/json", + "type":"application/vnd.openstack.identity-v2.0+json" + } + ] + } + } + ] + } +} diff --git a/keystone/content/samples/choices.xml b/keystone/content/samples/choices.xml new file mode 100644 index 00000000..134c9d00 --- /dev/null +++ b/keystone/content/samples/choices.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/keystone/content/samples/endpoint.json b/keystone/content/samples/endpoint.json new file mode 100644 index 00000000..8ca1f099 --- /dev/null +++ b/keystone/content/samples/endpoint.json @@ -0,0 +1,6 @@ +{ + "endpoint":{ + "id":3, + "href":"https://auth.keystone.com/v2.0/baseURLs/1" + } +} diff --git a/keystone/content/samples/endpoint.xml b/keystone/content/samples/endpoint.xml new file mode 100644 index 00000000..8ff1e48c --- /dev/null +++ b/keystone/content/samples/endpoint.xml @@ -0,0 +1,4 @@ + + + diff --git a/keystone/content/samples/endpointTemplate.json b/keystone/content/samples/endpointTemplate.json new file mode 100644 index 00000000..2ed4917f --- /dev/null +++ b/keystone/content/samples/endpointTemplate.json @@ -0,0 +1,11 @@ +{ + "endpointTemplate":{ + "id":1, + "region":"DFW", + "global":true, + "serviceName":"service1", + "publicURL":"https://service-public.com/v1", + "internalURL":"https://service-internal.com/v1", + "enabled":true + } +} diff --git a/keystone/content/samples/endpointTemplate.xml b/keystone/content/samples/endpointTemplate.xml new file mode 100644 index 00000000..31f4eaeb --- /dev/null +++ b/keystone/content/samples/endpointTemplate.xml @@ -0,0 +1,12 @@ + + + diff --git a/keystone/content/samples/endpointTemplates.json b/keystone/content/samples/endpointTemplates.json new file mode 100644 index 00000000..488e8c5d --- /dev/null +++ b/keystone/content/samples/endpointTemplates.json @@ -0,0 +1,43 @@ +{ + "endpointsTemplates":[ + { + "id":1, + "region":"DFW", + "global":true, + "serviceName":"service1", + "publicURL":"https://service1.public.com/v1", + "internalURL":"https://service1.internal.com/v1", + "enabled":true + }, + { + "id":2, + "region":"ORD", + "serviceName":"service2", + "publicURL":"https://service2.public.com/v1", + "internalURL":"https://service2.internal.com/v1", + "enabled":false + }, + { + "id":3, + "region":"DFW", + "global":true, + "serviceName":"service1", + "publicURL":"https://service.public.com/v1.0", + "enabled":true + }, + { + "id":4, + "region":"ORD", + "serviceName":"service2", + "publicURL":"https://service2.public.com/v2", + "enabled":true + }, + { + "id":5, + "global":true, + "serviceName":"service3", + "publicURL":"https://service3.public.com/v3.2", + "enabled":true + } + ] +} diff --git a/keystone/content/samples/endpointTemplates.xml b/keystone/content/samples/endpointTemplates.xml new file mode 100644 index 00000000..60a9d2e4 --- /dev/null +++ b/keystone/content/samples/endpointTemplates.xml @@ -0,0 +1,42 @@ + + + + + + + + + diff --git a/keystone/content/samples/endpoints.json b/keystone/content/samples/endpoints.json new file mode 100644 index 00000000..f8c79aa2 --- /dev/null +++ b/keystone/content/samples/endpoints.json @@ -0,0 +1,24 @@ +{ + "endpoints":[ + { + "id":1, + "href":"https://auth.keystone.com/v2.0/baseURLs/1" + }, + { + "id":2, + "href":"https://auth.keystone.com/v2.0/baseURLs/2" + }, + { + "id":3, + "href":"https://auth.keystone.com/v2.0/baseURLs/3" + }, + { + "id":4, + "href":"https://auth.keystone.com/v2.0/baseURLs/4" + }, + { + "id":5, + "href":"https://auth.keystone.com/v2.0/baseURLs/5" + } + ] +} diff --git a/keystone/content/samples/endpoints.xml b/keystone/content/samples/endpoints.xml new file mode 100644 index 00000000..3fa46c4c --- /dev/null +++ b/keystone/content/samples/endpoints.xml @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/keystone/content/samples/ext-getuser.json b/keystone/content/samples/ext-getuser.json new file mode 100644 index 00000000..34068f54 --- /dev/null +++ b/keystone/content/samples/ext-getuser.json @@ -0,0 +1,22 @@ +{ + "user":{ + "groups":{ + "values":[ + { + "tenantId":"1234", + "id":"Admin" + } + ] + }, + "id":"jqsmith", + "tenantId":"1234", + "email":"john.smith@example.org", + "enabled":true, + "RS-META:metadata":{ + "values":{ + "MetaKey1":"MetaValue1", + "MetaKey2":"MetaValue2" + } + } + } +} diff --git a/keystone/content/samples/ext-getuser.xml b/keystone/content/samples/ext-getuser.xml new file mode 100644 index 00000000..bf0a9c6e --- /dev/null +++ b/keystone/content/samples/ext-getuser.xml @@ -0,0 +1,13 @@ + + + + + + + MetaValue1 + MetaValue2 + + diff --git a/keystone/content/samples/extension.json b/keystone/content/samples/extension.json new file mode 100644 index 00000000..74773915 --- /dev/null +++ b/keystone/content/samples/extension.json @@ -0,0 +1,21 @@ +{ + "extension":{ + "name":"User Metadata Extension", + "namespace":"http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0", + "alias":"RS-META", + "updated":"2011-01-12T11:22:33-06:00", + "description":"Allows associating arbritrary metadata with a user.", + "links":[ + { + "rel":"describedby", + "type":"application/pdf", + "href":"http://docs.rackspacecloud.com/identity/api/ext/identity-meta-20111201.pdf" + }, + { + "rel":"describedby", + "type":"application/vnd.sun.wadl+xml", + "href":"http://docs.rackspacecloud.com/identity/api/ext/identity-cbs.wadl" + } + ] + } +} diff --git a/keystone/content/samples/extension.xml b/keystone/content/samples/extension.xml new file mode 100644 index 00000000..056d7e96 --- /dev/null +++ b/keystone/content/samples/extension.xml @@ -0,0 +1,23 @@ + + + + + + Allows associating arbritrary metadata with a user. + + + + + + + + diff --git a/keystone/content/samples/extensions.json b/keystone/content/samples/extensions.json new file mode 100644 index 00000000..53d8d508 --- /dev/null +++ b/keystone/content/samples/extensions.json @@ -0,0 +1,44 @@ +{ + "extensions":{ + "values":[ + { + "name":"Reset Password Extension", + "namespace":"http://docs.rackspacecloud.com/identity/api/ext/rpe/v2.0", + "alias":"RS-RPE", + "updated":"2011-01-22T13:25:27-06:00", + "description":"Adds the capability to reset a user's password. The user is emailed when the password has been reset.", + "links":[ + { + "rel":"describedby", + "type":"application/pdf", + "href":"http://docs.rackspacecloud.com/identity/api/ext/identity-rpe-20111111.pdf" + }, + { + "rel":"describedby", + "type":"application/vnd.sun.wadl+xml", + "href":"http://docs.rackspacecloud.com/identity/api/ext/identity-rpe.wadl" + } + ] + }, + { + "name":"User Metadata Extension", + "namespace":"http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0", + "alias":"RS-META", + "updated":"2011-01-12T11:22:33-06:00", + "description":"Allows associating arbritrary metadata with a user.", + "links":[ + { + "rel":"describedby", + "type":"application/pdf", + "href":"http://docs.rackspacecloud.com/identity/api/ext/identity-meta-20111201.pdf" + }, + { + "rel":"describedby", + "type":"application/vnd.sun.wadl+xml", + "href":"http://docs.rackspacecloud.com/identity/api/ext/identity-meta.wadl" + } + ] + } + ] + } +} diff --git a/keystone/content/samples/extensions.xml b/keystone/content/samples/extensions.xml new file mode 100644 index 00000000..c11b06d7 --- /dev/null +++ b/keystone/content/samples/extensions.xml @@ -0,0 +1,39 @@ + + + + + + + Adds the capability to reset a user's password. The user is + emailed when the password has been reset. + + + + + + + + Allows associating arbritrary metadata with a user. + + + + + + diff --git a/keystone/content/samples/getuser-1.json b/keystone/content/samples/getuser-1.json new file mode 100644 index 00000000..b0f6dc95 --- /dev/null +++ b/keystone/content/samples/getuser-1.json @@ -0,0 +1,29 @@ +{ + "user":{ + "groups":{ + "values":[ + { + "tenantId":"1234", + "id":"Admin" + }, + { + "tenantId":"1234", + "id":"DBUser" + }, + { + "id":"Super" + } + ], + "links":[ + { + "rel":"next", + "href":"http://identity.api.openstack.org/v2.0/tenants/1234/users/jqsmith/groups?marker=Super" + } + ] + }, + "id":"jqsmith", + "tenantId":"1234", + "email":"john.smith@example.org", + "enabled":true + } +} diff --git a/keystone/content/samples/getuser-1.xml b/keystone/content/samples/getuser-1.xml new file mode 100644 index 00000000..cc0f5fc6 --- /dev/null +++ b/keystone/content/samples/getuser-1.xml @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/keystone/content/samples/group.json b/keystone/content/samples/group.json new file mode 100644 index 00000000..4e4fdc5e --- /dev/null +++ b/keystone/content/samples/group.json @@ -0,0 +1,6 @@ +{ + "group":{ + "id":"test_global_group", + "description":"A description ..." + } +} diff --git a/keystone/content/samples/group.xml b/keystone/content/samples/group.xml new file mode 100644 index 00000000..0f285307 --- /dev/null +++ b/keystone/content/samples/group.xml @@ -0,0 +1,4 @@ + + + A Description of the group + diff --git a/keystone/content/samples/groups.json b/keystone/content/samples/groups.json new file mode 100644 index 00000000..6d565eb6 --- /dev/null +++ b/keystone/content/samples/groups.json @@ -0,0 +1,13 @@ +{ + "groups":{ + "values":[ + { + "id":"test_global_group_add", + "description":"A description ..." + } + ], + "links":[ + + ] + } +} diff --git a/keystone/content/samples/groups.xml b/keystone/content/samples/groups.xml new file mode 100644 index 00000000..a429fdb3 --- /dev/null +++ b/keystone/content/samples/groups.xml @@ -0,0 +1,5 @@ + + + A Description of the group + + diff --git a/keystone/content/samples/identity_fault.json b/keystone/content/samples/identity_fault.json new file mode 100644 index 00000000..1aab06dc --- /dev/null +++ b/keystone/content/samples/identity_fault.json @@ -0,0 +1,7 @@ +{ + "identityFault":{ + "message":"Fault", + "details":"Error Details...", + "code":500 + } +} diff --git a/keystone/content/samples/identity_fault.xml b/keystone/content/samples/identity_fault.xml new file mode 100644 index 00000000..6787af21 --- /dev/null +++ b/keystone/content/samples/identity_fault.xml @@ -0,0 +1,6 @@ + + + Fault +
Error Details...
+
diff --git a/keystone/content/samples/item_not_found.json b/keystone/content/samples/item_not_found.json new file mode 100644 index 00000000..248ed146 --- /dev/null +++ b/keystone/content/samples/item_not_found.json @@ -0,0 +1,7 @@ +{ + "itemNotFound":{ + "message":"Item not found.", + "details":"Error Details...", + "code":404 + } +} diff --git a/keystone/content/samples/item_not_found.xml b/keystone/content/samples/item_not_found.xml new file mode 100644 index 00000000..3f78b498 --- /dev/null +++ b/keystone/content/samples/item_not_found.xml @@ -0,0 +1,6 @@ + + + Item not found. +
Error Details...
+
diff --git a/keystone/content/samples/role.json b/keystone/content/samples/role.json new file mode 100644 index 00000000..21a87200 --- /dev/null +++ b/keystone/content/samples/role.json @@ -0,0 +1,6 @@ +{ + "role":{ + "id":"Guest", + "description":"Guest Access" + } + } diff --git a/keystone/content/samples/role.xml b/keystone/content/samples/role.xml new file mode 100644 index 00000000..48fe20d8 --- /dev/null +++ b/keystone/content/samples/role.xml @@ -0,0 +1,4 @@ + + + diff --git a/keystone/content/samples/roleRef.json b/keystone/content/samples/roleRef.json new file mode 100644 index 00000000..faa74283 --- /dev/null +++ b/keystone/content/samples/roleRef.json @@ -0,0 +1,7 @@ +{ + "roleRef":{ + "id":1, + "roleId":"admin", + "tenantId":"one" + } +} diff --git a/keystone/content/samples/roleRef.xml b/keystone/content/samples/roleRef.xml new file mode 100644 index 00000000..29115ee2 --- /dev/null +++ b/keystone/content/samples/roleRef.xml @@ -0,0 +1,4 @@ + + + diff --git a/keystone/content/samples/roleRefs.json b/keystone/content/samples/roleRefs.json new file mode 100644 index 00000000..34e391f5 --- /dev/null +++ b/keystone/content/samples/roleRefs.json @@ -0,0 +1,14 @@ +{ + "roleRefs":[ + { + "id":1, + "roleId":"admin", + "tenantId":"one" + }, + { + "id":2, + "roleId":"test", + "tenantId":"two" + } + ] +} diff --git a/keystone/content/samples/roleRefs.xml b/keystone/content/samples/roleRefs.xml new file mode 100644 index 00000000..bd7ee983 --- /dev/null +++ b/keystone/content/samples/roleRefs.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/keystone/content/samples/roles.json b/keystone/content/samples/roles.json new file mode 100644 index 00000000..4f1428e4 --- /dev/null +++ b/keystone/content/samples/roles.json @@ -0,0 +1,12 @@ +{ + "roles":[ + { + "id":"Admin", + "description":"All access" + }, + { + "id":"Guest", + "description":"Guest Access" + } + ] +} diff --git a/keystone/content/samples/roles.xml b/keystone/content/samples/roles.xml new file mode 100644 index 00000000..bf128ff4 --- /dev/null +++ b/keystone/content/samples/roles.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/keystone/content/samples/samplerequestheader.json b/keystone/content/samples/samplerequestheader.json new file mode 100644 index 00000000..5641d874 --- /dev/null +++ b/keystone/content/samples/samplerequestheader.json @@ -0,0 +1,4 @@ +POST /v2.0/tokens HTTP/1.1 +Host: identity.api.openstack.org +Content-Type: application/json +Accept: application/xml \ No newline at end of file diff --git a/keystone/content/samples/sampleresponseheader.json b/keystone/content/samples/sampleresponseheader.json new file mode 100644 index 00000000..aee1205a --- /dev/null +++ b/keystone/content/samples/sampleresponseheader.json @@ -0,0 +1,4 @@ +HTTP/1.1 200 OKAY +Date: Mon, 12 Nov 2010 15:55:01 GMT +Content-Length: +Content-Type: application/xml; charset=UTF-8 \ No newline at end of file diff --git a/keystone/content/samples/service.json b/keystone/content/samples/service.json new file mode 100644 index 00000000..b7bf0149 --- /dev/null +++ b/keystone/content/samples/service.json @@ -0,0 +1,6 @@ +{ + "service":{ + "id":"nova", + "description":"A description ..." + } +} diff --git a/keystone/content/samples/service.xml b/keystone/content/samples/service.xml new file mode 100644 index 00000000..a534365d --- /dev/null +++ b/keystone/content/samples/service.xml @@ -0,0 +1,4 @@ + + + diff --git a/keystone/content/samples/services.json b/keystone/content/samples/services.json new file mode 100644 index 00000000..93fd4434 --- /dev/null +++ b/keystone/content/samples/services.json @@ -0,0 +1,12 @@ +{ + "services":[ + { + "id":"nova", + "description":"All access" + }, + { + "id":"glance", + "description":"Guest Access" + } + ] +} diff --git a/keystone/content/samples/services.xml b/keystone/content/samples/services.xml new file mode 100644 index 00000000..04e85863 --- /dev/null +++ b/keystone/content/samples/services.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/keystone/content/samples/tenant.json b/keystone/content/samples/tenant.json new file mode 100644 index 00000000..cf6ca370 --- /dev/null +++ b/keystone/content/samples/tenant.json @@ -0,0 +1,7 @@ +{ + "tenant":{ + "id":"1234", + "description":"A description ...", + "enabled":true + } +} diff --git a/keystone/content/samples/tenant.xml b/keystone/content/samples/tenant.xml new file mode 100644 index 00000000..83210f87 --- /dev/null +++ b/keystone/content/samples/tenant.xml @@ -0,0 +1,5 @@ + + + A description... + diff --git a/keystone/content/samples/tenantlock.json b/keystone/content/samples/tenantlock.json new file mode 100644 index 00000000..a0f5b138 --- /dev/null +++ b/keystone/content/samples/tenantlock.json @@ -0,0 +1,5 @@ +{ + "tenant":{ + "description":"A NEW description..." + } +} diff --git a/keystone/content/samples/tenantlock.xml b/keystone/content/samples/tenantlock.xml new file mode 100644 index 00000000..06a68a83 --- /dev/null +++ b/keystone/content/samples/tenantlock.xml @@ -0,0 +1,4 @@ + + + A NEW description... + diff --git a/keystone/content/samples/tenants-1.json b/keystone/content/samples/tenants-1.json new file mode 100644 index 00000000..67f16deb --- /dev/null +++ b/keystone/content/samples/tenants-1.json @@ -0,0 +1,17 @@ +{ + "tenants":{ + "values":[ + { + "id":"1234", + "description":"A description ...", + "enabled":true + } + ], + "links":[ + { + "rel":"next", + "href":"http://identity.api.openstack.org/v2.0/tenants?limit=1&marker=1234" + } + ] + } +} diff --git a/keystone/content/samples/tenants-1.xml b/keystone/content/samples/tenants-1.xml new file mode 100644 index 00000000..18fcbfd3 --- /dev/null +++ b/keystone/content/samples/tenants-1.xml @@ -0,0 +1,10 @@ + + + + A description... + + diff --git a/keystone/content/samples/tenants-2.json b/keystone/content/samples/tenants-2.json new file mode 100644 index 00000000..cc0e9f03 --- /dev/null +++ b/keystone/content/samples/tenants-2.json @@ -0,0 +1,21 @@ +{ + "tenants":{ + "values":[ + { + "id":"3645", + "description":"A description ...", + "enabled":true + } + ], + "links":[ + { + "rel":"next", + "href":"http://identity.api.openstack.org/v2.0/tenants?limit=1&marker=3645" + }, + { + "rel":"previous", + "href":"http://identity.api.openstack.org/v2.0/tenants?limit=1" + } + ] + } +} diff --git a/keystone/content/samples/tenants-2.xml b/keystone/content/samples/tenants-2.xml new file mode 100644 index 00000000..4ad53477 --- /dev/null +++ b/keystone/content/samples/tenants-2.xml @@ -0,0 +1,13 @@ + + + + A description... + + + diff --git a/keystone/content/samples/tenants-3.json b/keystone/content/samples/tenants-3.json new file mode 100644 index 00000000..eb0ed803 --- /dev/null +++ b/keystone/content/samples/tenants-3.json @@ -0,0 +1,17 @@ +{ + "tenants":{ + "values":[ + { + "id":"9999", + "description":"A description ...", + "enabled":true + } + ], + "links":[ + { + "rel":"previous", + "href":"http://identity.api.openstack.org/v2.0/tenants?limit=1&marker=1234" + } + ] + } +} diff --git a/keystone/content/samples/tenants-3.xml b/keystone/content/samples/tenants-3.xml new file mode 100644 index 00000000..7bbd88a7 --- /dev/null +++ b/keystone/content/samples/tenants-3.xml @@ -0,0 +1,10 @@ + + + + A description... + + + diff --git a/keystone/content/samples/tenants-request.txt b/keystone/content/samples/tenants-request.txt new file mode 100644 index 00000000..9dbf85e5 --- /dev/null +++ b/keystone/content/samples/tenants-request.txt @@ -0,0 +1,5 @@ +GET /v2.0/tenants HTTP/1.1 +Host: identity.api.openstack.org +Content-Type: application/json +X-Auth-Token: fa8426a0-8eaf-4d22-8e13-7c1b16a9370c +Accept: application/json \ No newline at end of file diff --git a/keystone/content/samples/tenants.json b/keystone/content/samples/tenants.json new file mode 100644 index 00000000..7077a2da --- /dev/null +++ b/keystone/content/samples/tenants.json @@ -0,0 +1,21 @@ +HTTP/1.1 200 OK +Content-Type: application/json; charset=UTF-8 +Content-Length: 100 +Date: Sun, 1 Jan 2011 9:00:00 GMT + +{ + "tenants":{ + "values":[ + { + "id":"1234", + "description":"A description ...", + "enabled":true + }, + { + "id":"3456", + "description":"A description ...", + "enabled":true + } + ] + } +} \ No newline at end of file diff --git a/keystone/content/samples/tenants.xml b/keystone/content/samples/tenants.xml new file mode 100644 index 00000000..2a9e9c3b --- /dev/null +++ b/keystone/content/samples/tenants.xml @@ -0,0 +1,14 @@ +HTTP/1.1 200 OK +Content-Type: application/xml; charset=UTF-8 +Content-Length: 200 +Date: Sun, 1 Jan 2011 9:00:00 GMT + + + + + A description... + + + A description... + + diff --git a/keystone/content/samples/updatedtenant.json b/keystone/content/samples/updatedtenant.json new file mode 100644 index 00000000..9349c90f --- /dev/null +++ b/keystone/content/samples/updatedtenant.json @@ -0,0 +1,7 @@ +{ + "tenant":{ + "id":"1234", + "description":"A NEW description...", + "enabled":true + } +} diff --git a/keystone/content/samples/updatedtenant.xml b/keystone/content/samples/updatedtenant.xml new file mode 100644 index 00000000..51999a4d --- /dev/null +++ b/keystone/content/samples/updatedtenant.xml @@ -0,0 +1,5 @@ + + + A NEW description... + diff --git a/keystone/content/samples/validatetoken.json b/keystone/content/samples/validatetoken.json new file mode 100644 index 00000000..989d28ff --- /dev/null +++ b/keystone/content/samples/validatetoken.json @@ -0,0 +1,20 @@ +{ + "auth":{ + "token":{ + "expires":"2010-11-01T03:32:15-05:00", + "id":"ab48a9efdfedb23ty3494", + "tenantId":"1234" + }, + "user":{ + "username":"jqsmith", + "roleRefs":[ + { + "roleId":"Admin", + "id":1, + "tenantId":"one" + } + ], + "tenantId":"1234" + } + } +} diff --git a/keystone/content/samples/validatetoken.xml b/keystone/content/samples/validatetoken.xml new file mode 100644 index 00000000..18f26802 --- /dev/null +++ b/keystone/content/samples/validatetoken.xml @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/keystone/content/samples/version-atom.xml b/keystone/content/samples/version-atom.xml new file mode 100644 index 00000000..004a5444 --- /dev/null +++ b/keystone/content/samples/version-atom.xml @@ -0,0 +1,19 @@ + + + About This Version + 2011-01-21T11:33:21-06:00 + http://identity.api.openstack.org/v2.0/ + OpenStackhttp://www.openstack.org/ + + + http://identity.api.openstack.org/v2.0/ + Version v2.0 + 2011-01-21T11:33:21-06:00 + + + + Version v2.0 CURRENT (2011-01-21T11:33:21-06:00) + + diff --git a/keystone/content/samples/version.json b/keystone/content/samples/version.json new file mode 100644 index 00000000..d204cabb --- /dev/null +++ b/keystone/content/samples/version.json @@ -0,0 +1,33 @@ +{ + "version":{ + "id":"v2.0", + "status":"CURRENT", + "updated":"2011-01-21T11:33:21-06:00", + "links":[ + { + "rel":"self", + "href":"http://identity.api.openstack.org/v2.0/" + }, + { + "rel":"describedby", + "type":"application/pdf", + "href":"http://docs.rackspacecloud.com/identity/api/v2.0/identity-devguide-20110125.pdf" + }, + { + "rel":"describedby", + "type":"application/vnd.sun.wadl+xml", + "href":"http://docs.rackspacecloud.com/identity/api/v2.0/application.wadl" + } + ], + "media-types":[ + { + "base":"application/xml", + "type":"application/vnd.openstack.identity-v2.0+xml" + }, + { + "base":"application/json", + "type":"application/vnd.openstack.identity-v2.0+json" + } + ] + } +} diff --git a/keystone/content/samples/version.xml b/keystone/content/samples/version.xml new file mode 100644 index 00000000..0e884504 --- /dev/null +++ b/keystone/content/samples/version.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/keystone/content/samples/versions-atom.xml b/keystone/content/samples/versions-atom.xml new file mode 100644 index 00000000..67783e8e --- /dev/null +++ b/keystone/content/samples/versions-atom.xml @@ -0,0 +1,29 @@ + + + Available API Versions + 2010-12-12T18:30:02.25Z + http://identity.api.openstack.org/ + Rackspacehttp://www.rackspace.com/ + + + http://identity.api.openstack.org/v2.0/ + Version v2.0 + 2011-05-27T20:22:02.25Z + + Version v2.1 CURRENT (2011-05-27T20:22:02.25Z) + + + http://identity.api.openstack.org/v1.1/ + Version v1.1 + 2010-12-12T18:30:02.25Z + + Version v1.1 CURRENT (2010-12-12T18:30:02.25Z) + + + http://identity.api.openstack.org/v1.0/ + Version v1.0 + 2009-10-09T11:30:00Z + + Version v1.0 DEPRECATED (2009-10-09T11:30:00Z) + + diff --git a/keystone/content/samples/versions.json b/keystone/content/samples/versions.json new file mode 100644 index 00000000..b7ac02dd --- /dev/null +++ b/keystone/content/samples/versions.json @@ -0,0 +1,39 @@ +{ + "versions":{ + "values":[ + { + "id":"v1.0", + "status":"DEPRECATED", + "updated":"2009-10-09T11:30:00Z", + "links":[ + { + "rel":"self", + "href":"http://identity.api.openstack.org/v1.0/" + } + ] + }, + { + "id":"v1.1", + "status":"CURRENT", + "updated":"2010-12-12T18:30:02.25Z", + "links":[ + { + "rel":"self", + "href":"http://identity.api.openstack.org/v1.1/" + } + ] + }, + { + "id":"v2.0", + "status":"BETA", + "updated":"2011-05-27T20:22:02.25Z", + "links":[ + { + "rel":"self", + "href":"http://identity.api.openstack.org/v2.0/" + } + ] + } + ] + } +} diff --git a/keystone/content/samples/versions.xml b/keystone/content/samples/versions.xml new file mode 100644 index 00000000..df55b106 --- /dev/null +++ b/keystone/content/samples/versions.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + diff --git a/keystone/content/xsd/tenant.xsd b/keystone/content/xsd/tenant.xsd index 26ef15fe..8ac7099e 100644 --- a/keystone/content/xsd/tenant.xsd +++ b/keystone/content/xsd/tenant.xsd @@ -29,6 +29,21 @@ + + +

This is ....

+
+ + +           +             +           +           +             +           +         + +
-- cgit