Get Area#
Description
Returns an area for a given area ID. Note that a unique identification number is allocated to each area.
Request#
HTTP Method: GET
URI Path: /v3/areas/
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
id |
|
Yes |
Unique ID number for the area |
include |
|
Optional |
Includes:
Value |
Description |
|---|---|
country |
Examples#
http
1GET /v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3 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/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3 -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 "id": "9fcc7390-84a2-47f1-a900-0558cdcb6ce3",
7 "type": "areas",
8 "attributes": {
9 "name": "Tuscany"
10 },
11 "relationships": {
12 "country": {
13 "links": {
14 "self": "https://api.didww.com/v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3/relationships/country",
15 "related": "https://api.didww.com/v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3/country"
16 }
17 }
18 }
19 }
20}
http
1GET /v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3?include=country 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/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3?include=country' -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 "id": "9fcc7390-84a2-47f1-a900-0558cdcb6ce3",
7 "type": "areas",
8 "attributes": {
9 "name": "Tuscany"
10 },
11 "relationships": {
12 "country": {
13 "links": {
14 "self": "https://api.didww.com/v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3/relationships/country",
15 "related": "https://api.didww.com/v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3/country"
16 },
17 "data": {
18 "type": "countries",
19 "id": "51d3fe2a-6588-496b-870c-398e627de5c4"
20 }
21 }
22 }
23 },
24 "included": [
25 {
26 "id": "51d3fe2a-6588-496b-870c-398e627de5c4",
27 "type": "countries",
28 "attributes": {
29 "name": "Italy",
30 "prefix": "39",
31 "iso": "IT"
32 }
33 }
34 ]
35}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |