Updated Get Orders request and response

Removed tenant ID
Added x-project-id header
Updated response with new format

Change-Id: I299a611e53f72e2f5e410b543ab805f59e1981a0
This commit is contained in:
Sheena Gregson
2014-08-25 16:53:24 -05:00
parent 16e38cfad4
commit d7f50d3161
2 changed files with 33 additions and 27 deletions

View File

@@ -1,2 +1,2 @@
curl -H 'Accept: application/json'\
https://endpointURL/v1/12345/orders
curl -H 'Accept: application/json' -H 'X-Project-Id:12345'\
https://endpointURL/v1/orders

View File

@@ -2,10 +2,11 @@
"total": 15,
"orders": [
{
"status": "PENDING",
"secret_ref": "https://endpointURL/v1/12345/secrets/????",
"updated": "2014-03-19T22:40:06.720872",
"created": "2014-03-19T22:40:06.720860",
"status": "ACTIVE",
"updated": "2014-08-25T20:43:01.563865",
"created": "2014-08-25T20:42:59.793193",
"order_ref": "http://endpointURL/v1/orders/c8a154dc-5816-49ac-9016-6a9030fc2449",
"secret_ref": "http://endpointURL/v1/secrets/15108db8-4505-4c5b-96b9-a9838951f28f",
"secret": {
"name": "secretname",
"algorithm": "aes",
@@ -14,28 +15,15 @@
"bit_length": 256,
"mode": "cbc"
},
"order_ref": "https://endpointURL/v1/12345/orders/94ade532-9657-41e1-87ae-c8cbdfa836e0"
},
{
"status": "PENDING",
"secret_ref": "https://endpointURL/v1/12345/secrets/????",
"updated": "2014-03-19T22:41:18.930095",
"created": "2014-03-19T22:41:18.930081",
"secret": {
"name": "secretname",
"algorithm": "aes",
"payload_content_type": "application/octet-stream",
"expiration": null,
"bit_length": 256,
"mode": "cbc"
},
"order_ref": "https://endpointURL/v1/12345/orders/50212509-9c87-4a71-be3e-9ad59c290ede"
"meta": null,
"type": "key"
},
{
"status": "ACTIVE",
"secret_ref": "https://endpointURL/v1/12345/secrets/6e0bfe9f-8a59-4e29-81af-ea57eec96f28",
"updated": "2014-03-25T16:42:20.584453",
"created": "2014-03-25T16:42:20.430822",
"updated": "2014-08-25T21:18:35.886867",
"created": "2014-08-25T21:18:33.484137",
"order_ref": "http://endpointURL/v1/orders/240e7679-4178-43fd-b673-96fa73f33598",
"secret_ref": "http://endpointURL/v1/secrets/f74a51d2-99a8-423a-8cea-2bf10b263584",
"secret": {
"name": "secretname",
"algorithm": "aes",
@@ -44,7 +32,25 @@
"bit_length": 256,
"mode": "cbc"
},
"order_ref": "https://endpointURL/v1/12345/orders/488cd596-f1a6-4abe-8cb0-16608f5b0359"
"meta": null,
"type": "key"
},
{
"status": "ACTIVE",
"updated": "2014-08-25T21:31:07.622288",
"created": "2014-08-25T21:31:07.395485",
"order_ref": "http://endpointURL/v1/orders/af64236a-ba34-4fa5-96ad-c112a662de65",
"secret_ref": "http://endpointURL/v1/secrets/5fca3629-9f78-4e23-b5ab-15497043c867",
"secret": {
"name": "secretname",
"algorithm": "aes",
"payload_content_type": "application/octet-stream",
"expiration": null,
"bit_length": 256,
"mode": "cbc"
},
"meta": null,
"type": "key"
}
],
"next": "https://endpointURL/v1/12345/orders?limit=10&offset=10"
"next": "https://endpointURL/v1/orders?limit=10&offset=10"