* Read Cards * @param data The data for the request. * @param data.collectionId * @param data.skip * @param data.limit * @returns CardList Successful Response * @throws ApiError
(
data: FlashcardsReadCardsData,
)
| 169 | * @throws ApiError |
| 170 | */ |
| 171 | public static readCards( |
| 172 | data: FlashcardsReadCardsData, |
| 173 | ): CancelablePromise<FlashcardsReadCardsResponse> { |
| 174 | return __request(OpenAPI, { |
| 175 | method: 'GET', |
| 176 | url: '/api/v1/collections/{collection_id}/cards/', |
| 177 | path: { |
| 178 | collection_id: data.collectionId, |
| 179 | }, |
| 180 | query: { |
| 181 | skip: data.skip, |
| 182 | limit: data.limit, |
| 183 | }, |
| 184 | errors: { |
| 185 | 422: 'Validation Error', |
| 186 | }, |
| 187 | }) |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Create Card |