* Read Collection * @param data The data for the request. * @param data.collectionId * @returns Collection Successful Response * @throws ApiError
(
data: FlashcardsReadCollectionData,
)
| 98 | * @throws ApiError |
| 99 | */ |
| 100 | public static readCollection( |
| 101 | data: FlashcardsReadCollectionData, |
| 102 | ): CancelablePromise<FlashcardsReadCollectionResponse> { |
| 103 | return __request(OpenAPI, { |
| 104 | method: 'GET', |
| 105 | url: '/api/v1/collections/{collection_id}', |
| 106 | path: { |
| 107 | collection_id: data.collectionId, |
| 108 | }, |
| 109 | errors: { |
| 110 | 422: 'Validation Error', |
| 111 | }, |
| 112 | }) |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Update Collection |