From 90b121588cb2cc13c84b4d502fa8f5debd5e8386 Mon Sep 17 00:00:00 2001 From: box-apimgmt Date: Mon, 4 Nov 2024 03:16:36 -0800 Subject: [PATCH] fix: add get collection by ID endpoint --- 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",