removed tenant id from code samples

added X-Project-id wherever applicable
removed whitespace from samples

Author: Constanze Kratel

Change-Id: Id2e910225359eb9f66f9aae841771b88dd68e02a
This commit is contained in:
Constanze Kratel 2014-09-09 10:37:29 -07:00
parent a2aa3c1875
commit 9c8c2854d5
11 changed files with 32 additions and 32 deletions

View File

@ -1,4 +1,4 @@
curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d \
curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Project-Id:12345' -d\
'{
"secret":
{
@ -10,4 +10,4 @@ curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -
}
}
}'\
https://endpointURL/v1/tenantID/orders
https://endpointURL/v1/orders

View File

@ -1,4 +1,4 @@
curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d\
curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Project-Id:12345' -d\
'{
"name": "AES key",
"expiration": "2014-02-28T19:14:44.180394",
@ -9,4 +9,4 @@ curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -
"payload_content_type": "application/octet-stream",
"payload_content_encoding": "base64"
}'\
https://endpointURL/v1/tenantID/secrets
https://endpointURL/v1/secrets

View File

@ -1,7 +1,7 @@
curl -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -d\
curl -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Project-Id:12345' -d\
'{
"payload": "this is my secret",
"payload_content_type": "application/octet-stream",
"payload_content_encoding": "base64"
}'\
https://endpointURL/v1/tenantID/secrets/secretID
https://endpointURL/v1/secrets/secretID

View File

@ -1,6 +1,6 @@
{
"status": "ACTIVE",
"secret_ref": "http://endpointURL/v1/123456/secrets/6c3ccd7d-46b6-4ece-9a58-a1be26b2758a",
"secret_ref": "http://endpointURL/v1/secrets/6c3ccd7d-46b6-4ece-9a58-a1be26b2758a",
"updated": "2014-04-28T15:14:39.025761",
"created": "2014-04-28T15:14:38.947844",
"secret": {
@ -11,5 +11,5 @@
"bit_length": 256,
"mode": "cbc"
},
"order_ref": "https://endpointURL/v1/123456/orders/4a20549c-b418-4548-b2d1-33016d88822d"
"order_ref": "https://endpointURL/v1/orders/4a20549c-b418-4548-b2d1-33016d88822d"
}

View File

@ -1,6 +1,6 @@
{
"status": "ACTIVE",
"secret_ref": "https://endpointURL/v1/tenantID/secrets/2df8d196-76b6-4f89-a6d2-c9e764900791",
"secret_ref": "https://endpointURL/v1/secrets/2df8d196-76b6-4f89-a6d2-c9e764900791",
"updated": "2013-11-04T16:39:13.593962",
"name": "secretname",
"algorithm": "aes",

View File

@ -1,4 +1,4 @@
curl -X POST -d \
curl -X POST -H 'X-Project-Id:12345' -d\
'{
"secret":
{
@ -9,5 +9,5 @@ curl -X POST -d \
"payload_content_type": "application/octet-stream"
}
}'\
https://endpointURL/v1/12345/orders
https://endpointURL/v1/orders

View File

@ -1,2 +1,2 @@
curl -H 'Accept: application/json'\
https://endpointURL/v1/12345/orders/62d57f53-ecfe-4ae4-87bd-fab2f24e29bc
curl -H 'Accept: application/json' -H 'X-Project-Id:12345'\
https://endpointURL/v1/orders/62d57f53-ecfe-4ae4-87bd-fab2f24e29bc

View File

@ -1,2 +1,2 @@
curl -H 'Accept: application/json' \
https://endpointURL/v1/12345/secrets/secretID/888b29a4-c7cf-49d0-bfdf-bd9e6f26d718
curl -H 'Accept: application/json' -H 'X-Project-Id:12345'\
https://endpointURL/v1/secrets/secretID/888b29a4-c7cf-49d0-bfdf-bd9e6f26d718

View File

@ -1,2 +1,2 @@
curl -i -X PUT -H 'Content-Type: application/octet-stream' \
-T ./secret_key_file http://endpointURL/v1/12345/secrets/a83018d1-e657-4957-9ddd-42a479753e6b
curl -i -X PUT -H 'Content-Type: application/octet-stream' -H 'X-Project-Id:12345'\
-T ./secret_key_file http://endpointURL/v1/secrets/a83018d1-e657-4957-9ddd-42a479753e6b

View File

@ -1,3 +1,3 @@
{
"order_ref": "http://endpointURL/v1/12345/orders/62d57f53-ecfe-4ae4-87bd-fab2f24e29bc"
"order_ref": "http://endpointURL/v1/orders/62d57f53-ecfe-4ae4-87bd-fab2f24e29bc"
}

View File

@ -1,6 +1,6 @@
{
"status": "ACTIVE",
"secret_ref": "endpointURL/v1/12345/secrets/8a78d5e4-524a-4e81-96cc-c7d16ed85515",
"secret_ref": "endpointURL/v1/secrets/8a78d5e4-524a-4e81-96cc-c7d16ed85515",
"updated": "2014-04-02T14:52:26.987458",
"created": "2014-04-02T14:52:26.921043",
"secret": {
@ -11,4 +11,4 @@
"bit_length": 256,
"mode": "cbc"
},
"order_ref": "https://endpointURL/v1/12345/orders/b63d2c05-5d53-4db6-af06-4e388044deb8"
"order_ref": "https://endpointURL/v1/orders/b63d2c05-5d53-4db6-af06-4e388044deb8"