Get DID Reservations#
Description
Returns a list of DID Reservations.
Request#
HTTP Method: GET
URI Path: /v3/did_reservations
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
filter[<filter_name>] |
|
Optional |
|
include |
|
Optional |
|
sort |
|
Optional |
Includes:
Value |
Description |
|---|---|
available_did |
|
available_did.did_group |
|
available_did.did_group.stock_keeping_units |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
id |
|
No |
Yes |
DID Reservation |
Sparse Fieldsets:
Value |
Returns: |
|---|---|
expire_at |
The |
created_at |
The |
description |
The |
Examples#
http
1GET /v3/did_reservations HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -i -X GET https://api.didww.com/v3/did_reservations -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4 {
5 "data": [
6 {
7 "id": "d35148e7-8858-446e-ae53-2f5ae17501ef",
8 "type": "did_reservations",
9 "links": {
10 "self": "https://api.didww.com/v3/did_reservations/d35148e7-8858-446e-ae53-2f5ae17501ef"
11 },
12 "attributes": {
13 "expire_at": "2018-03-15 12:34:56",
14 "created_at": "2018-03-15 12:14:56",
15 "description": "DIDWW"
16 },
17 "relationships": {
18 "did_group": {
19 "links": {
20 "self": "https://api.didww.com/v3/did_reservations/dd13cdb2-48ab-4374-94b3-56e162a659cd/relationships/available_did",
21 "related": "https://api.didww.com/v3/did_reservations/dd13cdb2-48ab-4374-94b3-56e162a659cd/available_did"
22 }
23 }
24 }
25 },
26 {
27 "id": "9e31a4a5-38ef-4e1e-8a83-f6ae10d61d51",
28 "type": "did_reservations",
29 "links": {
30 "self": "https://api.didww.com/v3/did_reservations/9e31a4a5-38ef-4e1e-8a83-f6ae10d61d51"
31 },
32 "attributes": {
33 "expire_at": "2018-03-15 12:34:56",
34 "created_at": "2018-03-15 12:14:56",
35 "description": "DIDWW"
36 },
37 "relationships": {
38 "did_group": {
39 "links": {
40 "self": "https://api.didww.com/v3/did_reservations/dd13cdb2-48ab-4374-94b3-56e162a659cd/relationships/available_did",
41 "related": "https://api.didww.com/v3/did_reservations/dd13cdb2-48ab-4374-94b3-56e162a659cd/available_did"
42 }
43 }
44 }
45 }
46 ],
47 "meta": {
48 "total_records": 2
49 }
50 }
http
1GET /v3/did_reservations?include=available_did HTTP/1.1
2 Host: api.didww.com
3 Content-Type: application/vnd.api+json
4 Accept: application/vnd.api+json
5 Api-Key: [API token]
curl
1curl -i -X GET 'https://nohost/v3/did_reservations?include=available_did'
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4 {
5 "data": [
6 {
7 "id": "d0163fe0-001f-4a03-87ea-84224822708e",
8 "type": "did_reservations",
9 "links": {
10 "self": "https://api.didww.com/v3/did_reservations/d0163fe0-001f-4a03-87ea-84224822708e"
11 },
12 "attributes": {
13 "expire_at": "2018-03-15 12:34:56",
14 "created_at": "2018-03-15 12:14:56",
15 "description": "DIDWW"
16 },
17 "relationships": {
18 "available_did": {
19 "links": {
20 "self": "https://api.didww.com/v3/did_reservations/80167e78-62a1-4720-bf00-229fa7e1935d/relationships/available_did",
21 "related": "https://api.didww.com/v3/did_reservations/80167e78-62a1-4720-bf00-229fa7e1935d/available_did"
22 },
23 "data": {
24 "type": "available_dids",
25 "id": "8bc37f63-acd7-4e43-a760-1a1caa6e4683"
26 }
27 }
28 }
29 },
30 {
31 "id": "952b0724-45bc-4f87-b31b-ff04579357ef",
32 "type": "did_reservations",
33 "links": {
34 "self": "https://api.didww.com/v3/did_reservations/952b0724-45bc-4f87-b31b-ff04579357ef"
35 },
36 "attributes": {
37 "expire_at": "2018-03-15 12:34:56",
38 "created_at": "2018-03-15 12:14:56",
39 "description": "DIDWW"
40 },
41 "relationships": {
42 "available_did": {
43 "links": {
44 "self": "https://api.didww.com/v3/did_reservations/80167e78-62a1-4720-bf00-229fa7e1935d/relationships/available_did",
45 "related": "https://api.didww.com/v3/did_reservations/80167e78-62a1-4720-bf00-229fa7e1935d/available_did"
46 },
47 "data": {
48 "type": "available_dids",
49 "id": "8bc37f63-acd7-4e43-a760-1a1caa6e4683"
50 }
51 }
52 }
53 }
54 ],
55 "included": [
56 {
57 "id": "8bc37f63-acd7-4e43-a760-1a1caa6e4683",
58 "type": "available_dids",
59 "attributes": {
60 "number": "77124562356"
61 }
62 }
63 ],
64 "meta": {
65 "total_records": 2
66 }
67 }
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |