From 84cbe852a02a4b4e96d2833169da8dad04e4766c Mon Sep 17 00:00:00 2001 From: Philip de Nier Date: Tue, 17 Sep 2024 17:37:05 +0100 Subject: [PATCH] api: add accept_get_urls query option for /segments endpoint --- api/TimeAddressableMediaStore.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/TimeAddressableMediaStore.yaml b/api/TimeAddressableMediaStore.yaml index 472c582..bbc444e 100644 --- a/api/TimeAddressableMediaStore.yaml +++ b/api/TimeAddressableMediaStore.yaml @@ -1290,6 +1290,15 @@ paths: schema: default: false type: boolean + - name: accept_get_urls + in: query + description: | + A comma separated list of labels of flow segment `get_urls` to include in the response. + A 'default' label selects URLs with a 'default' or no label. + An empty `accept_get_urls` results in an empty or no `get_urls` flow segment property in the response. + schema: + type: string + pattern: ^[^,]*(,[^,]*)*$ - $ref: '#/components/parameters/trait_resource_paged_key' - $ref: '#/components/parameters/trait_paged_limit' responses: @@ -1380,6 +1389,15 @@ paths: schema: default: false type: boolean + - name: accept_get_urls + in: query + description: | + A comma separated list of labels of flow segment `get_urls` to include in the response. + A 'default' label selects URLs with a 'default' or no label. + An empty `accept_get_urls` results in an empty or no `get_urls` flow segment property in the response. + schema: + type: string + pattern: ^[^,]*(,[^,]*)*$ - $ref: '#/components/parameters/trait_resource_paged_key' - $ref: '#/components/parameters/trait_paged_limit' responses: