Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion contracts/api/v2/fixtures/admin_item_metadata_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@
"crew": [],
"versions": [],
"ratings": [],
"subtitles": []
"subtitles": [],
"collections": [
{
"id": "oscar-winners",
"title": "Oscar Winners",
"poster_url": "https://cdn.example.invalid/oscar-winners.jpg",
"item_count": 12
}
]
}
10 changes: 9 additions & 1 deletion contracts/api/v2/fixtures/get_catalog_item_ok.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,13 @@
"display": "8.3"
}
],
"subtitles": []
"subtitles": [],
"collections": [
{
"id": "oscar-winners",
"title": "Oscar Winners",
"poster_url": "https://cdn.example.invalid/oscar-winners.jpg",
"item_count": 12
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "https://siloserver.org/docs/api/v2/problems/authentication_required",
"title": "Authentication required",
"status": 401,
"detail": "Authentication is required.",
"instance": "urn:silo:request:0000000000000000000002cc"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"revision": "0c37f6ac3b88f5930ce78f264098826e315b407b99d69ada19e944f3ae2806aa",
"state": "available",
"allowed": true
}
2 changes: 1 addition & 1 deletion contracts/api/v2/fixtures/get_system_info_ok.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"server_version": "unavailable",
"api_major": 2,
"contract_digest": "319d3fd749750be47e2afd419cf4dfef132d479e327f3510088c37e99006c3a1",
"contract_digest": "d9c6f3495ff0b0d10ae5f5a562da2fb80e4bf884c7ab7b74d67f644672fb9551",
"links": {
"openapi": "/api/v2/openapi.json",
"capabilities": "/api/v2/capabilities",
Expand Down
38 changes: 38 additions & 0 deletions contracts/api/v2/fixtures/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -6554,6 +6554,44 @@
"schema": "#/components/schemas/ImageCapabilities",
"body_file": "get_image_capabilities_ok.json"
},
{
"name": "get_item_collections_capability_authentication_required",
"operation_id": "getItemCollectionsCapability",
"scenario": "The item-collections capability document without a credential.",
"request": {
"method": "GET",
"path": "/api/v2/capabilities/item-collections"
},
"expected_status": 401,
"response_headers": {
"Cache-Control": "no-store",
"Content-Type": "application/problem+json"
},
"response_media_type": "application/problem+json",
"schema": "#/components/schemas/Problem",
"body_file": "get_item_collections_capability_authentication_required.json"
},
{
"name": "get_item_collections_capability_ok",
"operation_id": "getItemCollectionsCapability",
"scenario": "The item-collections capability document on a server whose item detail carries the collections row.",
"request": {
"method": "GET",
"path": "/api/v2/capabilities/item-collections",
"headers": {
"Authorization": "Bearer tok-member",
"X-Profile-Id": "p-owner"
}
},
"expected_status": 200,
"response_headers": {
"Cache-Control": "private, no-cache",
"Content-Type": "application/json"
},
"response_media_type": "application/json",
"schema": "#/components/schemas/ItemCollectionsCapability",
"body_file": "get_item_collections_capability_ok.json"
},
{
"name": "get_item_markers_ok",
"operation_id": "getItemMarkers",
Expand Down
Loading
Loading