From 966decb216a345dfd9226205d07d0133fe5d9b98 Mon Sep 17 00:00:00 2001 From: box-apimgmt <142984025+box-apimgmt@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:44:40 +0100 Subject: [PATCH] feat: Support get collection by ID endpoint (#480) --- openapi.json | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/openapi.json b/openapi.json index 8e561db1..44642d31 100644 --- a/openapi.json +++ b/openapi.json @@ -14,7 +14,7 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" }, "version": "2.0.0", - "x-box-commit-hash": "87c431c362" + "x-box-commit-hash": "98d60db47f" }, "servers": [ { @@ -17807,6 +17807,51 @@ ] } }, + "/collections/{collection_id}": { + "get": { + "operationId": "get_collections_id", + "summary": "Get collection by ID", + "description": "Retrieves a collection by its ID.", + "parameters": [ + { + "name": "collection_id", + "in": "path", + "description": "The ID of the collection.", + "required": true, + "schema": { + "type": "string" + }, + "example": "926489" + } + ], + "responses": { + "200": { + "description": "Returns an array of items in the collection.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Collection" + } + } + } + }, + "default": { + "description": "An unexpected client error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientError" + } + } + } + } + }, + "x-box-tag": "collections", + "tags": [ + "Collections" + ] + } + }, "/recent_items": { "get": { "operationId": "get_recent_items",