From 156965bccda8c2db7cc01e4cf1f9f3dbb7c00c17 Mon Sep 17 00:00:00 2001 From: Clay Gerrard Date: Thu, 23 Jan 2014 23:42:42 -0800 Subject: [PATCH] fixup some json in docs Fixes #55 --- doc/source/api.rst | 2 +- doc/source/details.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/api.rst b/doc/source/api.rst index d2efa0f..96536b8 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -142,7 +142,7 @@ Example Response:: { "services": { "storage": { "default": "local", - "local": "https:///v1/" }, + "local": "https:///v1/" } }, "account_id": "", "users": [ { "name": "user1" }, diff --git a/doc/source/details.rst b/doc/source/details.rst index 3b14ad8..8dd057b 100644 --- a/doc/source/details.rst +++ b/doc/source/details.rst @@ -49,7 +49,7 @@ account administrators and `.reseller_admin` for reseller administrators may exist. Here's an example user JSON dictionary:: {"auth": "plaintext:testing", - "groups": ["name": "test:tester", "name": "test", "name": ".admin"]} + "groups": [{"name": "test:tester"}, {"name": "test"}, {"name": ".admin"}]} To map an auth service account to a Swift storage account, the Service Account Id string is stored in the `X-Container-Meta-Account-Id` header for the @@ -115,7 +115,7 @@ Here's an example token object's JSON dictionary:: {"account": "test", "user": "tester", "account_id": "AUTH_8980f74b1cda41e483cbe0a925f448a9", - "groups": ["name": "test:tester", "name": "test", "name": ".admin"], + "groups": [{"name": "test:tester"}, {"name": "test"}, {"name": ".admin"}], "expires": 1291273147.1624689} To easily map a user to an already issued token, the token name is stored in