Add detail to credential API documentation

Use more realistic examples in the credential V3 documentation.

Change-Id: Ibe41f5cd473fa9d3b1eda139980f99019c2631e6
This commit is contained in:
Lance Bragstad 2014-06-06 12:12:58 +00:00
parent d3306c8271
commit 599c565691

View File

@ -2871,10 +2871,10 @@ Request:
{
"credential": {
"blob": "--JSON serialized object containing 'access' and 'secret'--",
"project_id": "--optional--",
"blob": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"project_id": "0211d7",
"type": "ec2",
"user_id": "--user--id--"
"user_id": "f293ba"
}
}
@ -2884,14 +2884,14 @@ Response:
{
"credential": {
"blob": "--JSON serialized object containing 'access' and 'secret'--",
"id": "--credential-id--",
"blob": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"id": "46322a",
"links": {
"self": "http://identity:35357/v3/credentials/--credential-id--"
"self": "https://identity:35357/v3/credentials/46322a"
},
"project_id": "--project-id--",
"project_id": "0211d7",
"type": "ec2",
"user_id": "--user--id--"
"user_id": "f293ba"
}
}
@ -2904,24 +2904,24 @@ Response:
{
"credentials": [
{
"blob": "--JSON serialized object containing 'access' and 'secret'--",
"id": "--credential-id--",
"blob": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"id": "10b182",
"links": {
"self": "http://identity:35357/v3/credentials/--credential-id--"
"self": "https://identity:35357/v3/credentials/10b182"
},
"project_id": "--project-id--",
"project_id": "82cc2f",
"type": "ec2",
"user_id": "--user--id--"
"user_id": "27a19b"
},
{
"blob": "--JSON serialized object containing 'access' and 'secret'--",
"id": "--credential-id--",
"blob": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"id": "85d995",
"links": {
"self": "http://identity:35357/v3/credentials/--credential-id--"
"self": "https://identity:35357/v3/credentials/85d995"
},
"project_id": "--project-id--",
"project_id": "82cc2f",
"type": "ec2",
"user_id": "--user--id--"
"user_id": "88770a"
}
],
"links": {
@ -2939,14 +2939,14 @@ Response:
{
"credential": {
"blob": "--JSON serialized object containing 'access' and 'secret'--",
"id": "--credential-id--",
"blob": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"id": "85d995",
"links": {
"self": "http://identity:35357/v3/credentials/--credential-id--"
"self": "https://identity:35357/v3/credentials/85d995"
},
"project_id": "--project-id--",
"project_id": "82cc2f",
"type": "ec2",
"user_id": "--user--id--"
"user_id": "88770a"
}
}
@ -2961,14 +2961,14 @@ Response:
{
"credential": {
"blob": "--JSON serialized object containing 'access' and 'secret'--",
"id": "--credential-id--",
"blob": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"id": "85d995",
"links": {
"self": "http://identity:35357/v3/credentials/--credential-id--"
"self": "https://identity:35357/v3/credentials/85d995"
},
"project_id": "--project-id--",
"project_id": "6f20ed",
"type": "ec2",
"user_id": "--user--id--"
"user_id": "2a64f5"
}
}