Skip to content

Commit

Permalink
Merge pull request #21 from AMWA-TV/resource-list
Browse files Browse the repository at this point in the history
Make resources base resources a simple list of resource id paths
  • Loading branch information
garethsb authored May 24, 2023
2 parents 83b4adb + 70c9b68 commit b46b1dd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 53 deletions.
2 changes: 1 addition & 1 deletion APIs/AnnotationAPI.raml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mediaType: application/json
types:
Resource: !include schemas/resource_core.json
ResourcePatch: !include schemas/resource_core_patch.json
Resources: !include schemas/resource_cores.json
Resources: !include schemas/resource-list.json
ErrorSchema: !include schemas/error.json
documentation:
- title: Overview
Expand Down
11 changes: 11 additions & 0 deletions APIs/schemas/resource-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"type": "array",
"description": "List of resource ID paths",
"title": "Resources base resource",
"items": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/$"
},
"uniqueItems": true
}
10 changes: 0 additions & 10 deletions APIs/schemas/resource_cores.json

This file was deleted.

48 changes: 6 additions & 42 deletions examples/annotationapi-node-resources-get-200.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,8 @@
[
{
"description": "Test Card",
"tags": {},
"label": "Test Card",
"version": "1441704616:587121295",
"id": "5fbec3b1-1b0f-417d-9059-8b94a47197ed"
},
{
"description": "VANC Data",
"tags": {},
"label": "VANC Data",
"version": "1453880607:123995943",
"id": "db3bd465-2772-484f-8fac-830b0471258b"
},
{
"description": "TR-04 Video",
"tags": {},
"label": "TR-04 Video",
"version": "1453880607:123995943",
"id": "4857f747-96cf-4ed7-8f4b-9497199f1f25"
},
{
"description": "IS-07 Temperature Readings (C)",
"tags": {},
"version": "1453880605:374934072",
"label": "IS-07 Temperature Readings (C)",
"id": "6327c381-1239-41d1-b314-efc719600e26"
},
{
"description": "IS-07 Temperature Readings (F)",
"tags": {},
"version": "1453880605:374934072",
"label": "IS-07 Temperature Readings (F)",
"id": "6327c381-1239-41d1-b314-efc719600e26"
},
{
"description": "IS-07 Button",
"tags": {},
"version": "1453880605:374934072",
"label": "IS-07 Button",
"id": "fa6258b9-2826-4a0d-81d0-7da9edbc405f"
}
"5fbec3b1-1b0f-417d-9059-8b94a47197ed/",
"db3bd465-2772-484f-8fac-830b0471258b/",
"4857f747-96cf-4ed7-8f4b-9497199f1f25/",
"6327c381-1239-41d1-b314-efc719600e26/",
"6327c381-1239-41d1-b315-efc719600e26/",
"fa6258b9-2826-4a0d-81d0-7da9edbc405f/"
]

0 comments on commit b46b1dd

Please sign in to comment.