feat(api): Named Transformations API - #22
Conversation
… retrieving, and updating transformations - Introduced new endpoints for managing named transformations, including GET, POST, and PATCH methods. - Added detailed descriptions and response schemas for each endpoint in the OpenAPI specification. - Updated the stainless configuration to include named transformations resources.
| **Note:** Use the `includeDefault` query parameter to exclude the account's default named transformation (`ik_ml_thumbnail`) from the response. | ||
| parameters: | ||
| - in: query | ||
| name: includeDefault |
There was a problem hiding this comment.
Given we dont let anyone mutate this default transformation, might as well not return it in any API and then this includeDefault is also not needed. Similarly isDefault value wont be needed in #/components/schemas/NamedTransformation
|
|
||
| **Note:** | ||
|
|
||
| - The account's default named transformation (`ik_ml_thumbnail`) cannot be deleted. This API returns a `400` error if attempted. |
There was a problem hiding this comment.
If you accept my above comment about not exposing default transformation, then this is also not required. The user wont have id of default entity and wont attempt delete.
| type: string | ||
| format: date-time | ||
| description: Timestamp when the saved extension was last updated. | ||
| CreateNamedTransformation: |
There was a problem hiding this comment.
I would suggest create a PR in this https://github.com/imagekit-developer/imagekit-sdk-config against main and then you can review the generated sdk on all public repos. With same branch name as your branch in imagekit-sdk-config. I have given you the access. It would happen automatically, just do not merge to main as it would change main branch of all SDKs.
If there is any issue in sdk generation, then we need to fix the spec. Let me know if you need any help.
There was a problem hiding this comment.
New PR in the mentioned repository: https://github.com/imagekit-developer/imagekit-sdk-config/pull/10
Added named transformations endpoints for listing, creating, retrieving, and updating transformations