|
89 | 89 | $ref: '#/components/responses/trait_resource_listing_head_200' |
90 | 90 | get: |
91 | 91 | summary: Service Information |
92 | | - description: Provide information about the service, including the media store in use. |
| 92 | + description: Provide information about the service. |
93 | 93 | operationId: GET_service |
94 | 94 | tags: |
95 | 95 | - Service |
@@ -121,6 +121,31 @@ paths: |
121 | 121 | description: Success. The service info has been updated. |
122 | 122 | "400": |
123 | 123 | description: Bad request. Invalid service JSON. |
| 124 | + /service/storage_backends: |
| 125 | + head: |
| 126 | + summary: Storage Backend Information |
| 127 | + description: Return storage backends path headers |
| 128 | + operationId: HEAD_storage_backends |
| 129 | + tags: |
| 130 | + - Service |
| 131 | + responses: |
| 132 | + "200": |
| 133 | + $ref: '#/components/responses/trait_resource_listing_head_200' |
| 134 | + get: |
| 135 | + summary: Storage Backend Information |
| 136 | + description: Provide information about the storage backends available on this service instance. These are populated on deployment of the service instance. |
| 137 | + operationId: GET_storage_backends |
| 138 | + tags: |
| 139 | + - Service |
| 140 | + responses: |
| 141 | + "200": |
| 142 | + description: "" |
| 143 | + content: |
| 144 | + application/json: |
| 145 | + schema: |
| 146 | + $ref: schemas/storage-backends-list.json |
| 147 | + example: |
| 148 | + $ref: examples/storage-backends-get-200.json |
124 | 149 | /service/webhooks: |
125 | 150 | head: |
126 | 151 | summary: List Webhook URLs |
@@ -1522,18 +1547,47 @@ paths: |
1522 | 1547 | schema: |
1523 | 1548 | default: false |
1524 | 1549 | type: boolean |
| 1550 | + - name: verbose_storage |
| 1551 | + in: query |
| 1552 | + description: | |
| 1553 | + Include storage metadata in `get_urls`. |
| 1554 | + When `verbose_storage` is `false` only `url`, `presigned`, and `label` will be included in `get_urls`. |
| 1555 | + schema: |
| 1556 | + default: false |
| 1557 | + type: boolean |
1525 | 1558 | - name: accept_get_urls |
1526 | 1559 | in: query |
1527 | 1560 | description: | |
1528 | 1561 | A comma separated list of labels of flow segment `get_urls` to include in the response. |
1529 | | - Omitting `accept_get_urls` will result in all `get_urls` returned. |
| 1562 | + Omitting `accept_get_urls` will result in no filtering of `get_urls`. |
1530 | 1563 | An empty `accept_get_urls` results in an empty or no `get_urls` in the response. |
1531 | | - Flow segment `get_urls` with no label cannot be filtered for; they will only be returned if `accept_get_urls` is omitted. |
| 1564 | + Flow segment `get_urls` with no label or storage ID cannot be filtered for; they will only be returned if `accept_get_urls` is omitted, and `accept_storage_ids` is omitted or empty. |
1532 | 1565 | Without `get_urls`, the response from the service could be substantially faster if it is not required to |
1533 | 1566 | generate a large number of pre-signed URLs for example. |
1534 | 1567 | schema: |
1535 | 1568 | type: string |
1536 | 1569 | pattern: ^([^,]+(,[^,]+)*)?$ |
| 1570 | + - name: accept_storage_ids |
| 1571 | + in: query |
| 1572 | + description: | |
| 1573 | + A comma separated list of `storage_id`s of flow segment `get_urls` to include in the response. |
| 1574 | + Omitting `accept_storage_ids`, or providing an empty `accept_storage_ids` will result in no filtering of `get_urls`. |
| 1575 | + An empty `accept_get_urls` results in an empty or no `get_urls` in the response. |
| 1576 | + Flow segment `get_urls` with no label or storage ID cannot be filtered for; they will only be returned if `accept_get_urls` is omitted, and `accept_storage_ids` is omitted or empty. |
| 1577 | + A full list of available `storage_id`s may be found at the `service/storage_backends` endpoint. |
| 1578 | + schema: |
| 1579 | + type: string |
| 1580 | + pattern: ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(,[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})*$ |
| 1581 | + - name: presigned |
| 1582 | + in: query |
| 1583 | + description: | |
| 1584 | + If set to `true`, only presigned URLs (i.e. those whos `presigned` property is `true`) will be returned in `get_urls`. |
| 1585 | + If set to `false`, only non-presigned URLs (i.e. those whos `presigned` property is `false`) will be returned in `get_urls`. |
| 1586 | + If omitted, both presigned and non-presigned URLs will be returned. |
| 1587 | + If `presigned` is set to `false`, the response from the service could be substantially faster if it is not required to |
| 1588 | + generate a large number of pre-signed URLs. |
| 1589 | + schema: |
| 1590 | + type: boolean |
1537 | 1591 | - $ref: '#/components/parameters/trait_resource_paged_key' |
1538 | 1592 | - $ref: '#/components/parameters/trait_paged_limit' |
1539 | 1593 | responses: |
@@ -1624,18 +1678,47 @@ paths: |
1624 | 1678 | schema: |
1625 | 1679 | default: false |
1626 | 1680 | type: boolean |
| 1681 | + - name: verbose_storage |
| 1682 | + in: query |
| 1683 | + description: | |
| 1684 | + Include storage metadata in `get_urls`. |
| 1685 | + When `verbose_storage` is `false` only `url`, `presigned`, and `label` will be included in `get_urls`. |
| 1686 | + schema: |
| 1687 | + default: false |
| 1688 | + type: boolean |
1627 | 1689 | - name: accept_get_urls |
1628 | 1690 | in: query |
1629 | 1691 | description: | |
1630 | 1692 | A comma separated list of labels of flow segment `get_urls` to include in the response. |
1631 | | - Omitting `accept_get_urls` will result in all `get_urls` returned. |
| 1693 | + Omitting `accept_get_urls` will result in no filtering of `get_urls`. |
1632 | 1694 | An empty `accept_get_urls` results in an empty or no `get_urls` in the response. |
1633 | | - Flow segment `get_urls` with no label cannot be filtered for; they will only be returned if `accept_get_urls` is omitted. |
| 1695 | + Flow segment `get_urls` with no label or storage ID cannot be filtered for; they will only be returned if `accept_get_urls` is omitted, and `accept_storage_ids` is omitted or empty. |
1634 | 1696 | Without `get_urls`, the response from the service could be substantially faster if it is not required to |
1635 | 1697 | generate a large number of pre-signed URLs for example. |
1636 | 1698 | schema: |
1637 | 1699 | type: string |
1638 | 1700 | pattern: ^([^,]+(,[^,]+)*)?$ |
| 1701 | + - name: accept_storage_ids |
| 1702 | + in: query |
| 1703 | + description: | |
| 1704 | + A comma separated list of `storage_id`s of flow segment `get_urls` to include in the response. |
| 1705 | + Omitting `accept_storage_ids`, or providing an empty `accept_storage_ids` will result in no filtering of `get_urls`. |
| 1706 | + An empty `accept_get_urls` results in an empty or no `get_urls` in the response. |
| 1707 | + Flow segment `get_urls` with no label or storage ID cannot be filtered for; they will only be returned if `accept_get_urls` is omitted, and `accept_storage_ids` is omitted or empty. |
| 1708 | + A full list of available `storage_id`s may be found at the `service/storage_backends` endpoint. |
| 1709 | + schema: |
| 1710 | + type: string |
| 1711 | + pattern: ^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(,[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})*$ |
| 1712 | + - name: presigned |
| 1713 | + in: query |
| 1714 | + description: | |
| 1715 | + If set to `true`, only presigned URLs (i.e. those whos `presigned` property is `true`) will be returned in `get_urls`. |
| 1716 | + If set to `false`, only non-presigned URLs (i.e. those whos `presigned` property is `false`) will be returned in `get_urls`. |
| 1717 | + If omitted, both presigned and non-presigned URLs will be returned. |
| 1718 | + If `presigned` is set to `false`, the response from the service could be substantially faster if it is not required to |
| 1719 | + generate a large number of pre-signed URLs. |
| 1720 | + schema: |
| 1721 | + type: boolean |
1639 | 1722 | - $ref: '#/components/parameters/trait_resource_paged_key' |
1640 | 1723 | - $ref: '#/components/parameters/trait_paged_limit' |
1641 | 1724 | responses: |
@@ -1748,10 +1831,10 @@ paths: |
1748 | 1831 | $ref: examples/flow-segment-post.json |
1749 | 1832 | schema: |
1750 | 1833 | oneOf: |
1751 | | - - $ref: schemas/flow-segment.json |
| 1834 | + - $ref: schemas/flow-segment-post.json |
1752 | 1835 | - type: array |
1753 | 1836 | items: |
1754 | | - $ref: schemas/flow-segment.json |
| 1837 | + $ref: schemas/flow-segment-post.json |
1755 | 1838 | required: true |
1756 | 1839 | responses: |
1757 | 1840 | "200": |
|
0 commit comments