Skip to content

Add support for Tarchives over REST interface (#35)#37

Merged
traktion merged 1 commit intomasterfrom
feature/tarchive-rest-support
Jan 20, 2026
Merged

Add support for Tarchives over REST interface (#35)#37
traktion merged 1 commit intomasterfrom
feature/tarchive-rest-support

Conversation

@traktion
Copy link
Owner

Resolves #35.

This PR adds support for creating and updating Tarchives via the REST interface.

Changes:

  • Added Tarchive model in src/model/tarchive.rs for indexing logic (ported from tarindexer.py).
  • Added TarchiveService in src/service/tarchive_service.rs to handle multipart uploads, tar file generation, and appending indices.
  • Added REST endpoints in src/controller/tarchive_controller.rs (POST /anttp-0/multipart/tarchive and PUT /anttp-0/multipart/tarchive/{address}).
  • Integrated new components into src/lib.rs and updated OpenAPI documentation.
  • Added unit tests for the indexing logic.
  • Incremented version to 0.23.7.

}

// Generate and append index
self.append_index(&tar_path)?;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a bug/limitation in the tar library, where appending doesn't seem to work as expected.

I experimented with this issue last night and it looks like excessive padding between the current and appended files.

Happy to merge for now, as the shape looks correct. However, the issue will need to be resolved in a future task.

@traktion traktion merged commit ab180b7 into master Jan 20, 2026
1 check passed
@traktion traktion deleted the feature/tarchive-rest-support branch January 20, 2026 08:55
@traktion traktion self-assigned this Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support to create and update Tarchives over the REST interface

1 participant