* Read Collections * @param data The data for the request. * @param data.skip * @param data.limit * @returns CollectionList Successful Response * @throws ApiError
(
data: FlashcardsReadCollectionsData = {},
)
| 54 | * @throws ApiError |
| 55 | */ |
| 56 | public static readCollections( |
| 57 | data: FlashcardsReadCollectionsData = {}, |
| 58 | ): CancelablePromise<FlashcardsReadCollectionsResponse> { |
| 59 | return __request(OpenAPI, { |
| 60 | method: 'GET', |
| 61 | url: '/api/v1/collections/', |
| 62 | query: { |
| 63 | skip: data.skip, |
| 64 | limit: data.limit, |
| 65 | }, |
| 66 | errors: { |
| 67 | 422: 'Validation Error', |
| 68 | }, |
| 69 | }) |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Create Collection |