GET /v1.1/deck_image/:id
Returns a single deck image by its ID, with its related deck data included.
Request
GET /v1.1/deck_image/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The deck image ID |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/deck_image/000527a1-3f12-337c-bd34-616163afbc48" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns a single deck image resource with its related deck included.
Response body:
{
"data": {
"type": "deck_image",
"id": "000527a1-3f12-337c-bd34-616163afbc48",
"attributes": {
"since": "2021-05-09",
"until": "2022-04-18",
"image_url": "https://ik.imagekit.io/worldtravel/wp-content/uploads/VI-Plan-punte-3-20220418.svg"
},
"relationships": {
"deck": {
"links": {
"related": "/v1.1/deck/843b8d85-8dd3-3fea-8932-b5b911ea5e31"
},
"data": {
"type": "deck",
"id": "843b8d85-8dd3-3fea-8932-b5b911ea5e31"
}
}
},
"links": {
"self": "/v1.1/deck_image/000527a1-3f12-337c-bd34-616163afbc48"
}
},
"links": {
"self": "/v1.1/deck_image/000527a1-3f12-337c-bd34-616163afbc48"
},
"included": [
{
"type": "deck",
"id": "843b8d85-8dd3-3fea-8932-b5b911ea5e31",
"attributes": {
"code": "03",
"title": "Puntea 03",
"number": 3,
"image_url": "https://ik.imagekit.io/worldtravel/wp-content/uploads/VI-Plan-punte-3-20270430.svg",
"legend_url": "https://ik.imagekit.io/worldtravel/wp-content/uploads/Legend-RCC.png"
},
"relationships": {
"ship": {
"links": {
"related": "/v1.1/ship/8e8a2de2-6ec4-32bb-b0e3-edf3daab2f95"
},
"data": {
"type": "ship",
"id": "8e8a2de2-6ec4-32bb-b0e3-edf3daab2f95"
}
}
},
"links": {
"self": "/v1.1/deck/843b8d85-8dd3-3fea-8932-b5b911ea5e31"
}
}
],
"jsonapi": {
"version": "1.0"
}
}
Deck Image Attributes
| Field | Type | Description |
|---|---|---|
since | string | Start date for this deck image version (ISO 8601) |
until | string | End date for this deck image version (ISO 8601) |
image_url | string | Deck plan image URL for this date range |
Relationships
| Relationship | Type | Description |
|---|---|---|
deck | deck | The deck this image belongs to |
Included Resources
The response includes the related deck object. See GET /v1.1/deck for deck attribute details.
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — deck image not found or upstream query failure |