feat: add missing revision and file attachment endpoints #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Several revision and file management endpoints are missing from the client.
Missing Revision Method
POST /api/items/{pn}/revisionscreate_revision(part_number, properties, comment)The client has methods to get, compare, rollback, and update revisions, but cannot create one. This is needed for programmatic revision creation (silo-mod commit workflow, bulk operations).
Missing File/Attachment Methods
POST /api/uploads/presignget_presigned_upload_url(filename, content_type)GET /api/items/{pn}/fileslist_item_files(part_number)POST /api/items/{pn}/filesassociate_file(part_number, file_key, filename)DELETE /api/items/{pn}/files/{fileId}delete_item_file(part_number, file_id)PUT /api/items/{pn}/thumbnailset_thumbnail(part_number, image_bytes)Context
The server supports a presigned upload flow (upload directly to MinIO, then associate with item) in addition to the existing multipart upload. The file attachments system (migration 011) allows multiple files per item beyond the primary revision file.
References