1.1 KiB
1.1 KiB
POST3-011: Usage examples
Status: Done Priority: P1 Blocked by: POST3-008
Description
Create runnable examples demonstrating how to use post3 with both the SDK and shell tools.
What was built
Rust examples (crates/post3-sdk/examples/)
basic.rs— create bucket, put/get/delete object, list objects with prefix filtermetadata.rs— put object with custom metadata (x-amz-meta-*), retrieve via head/getaws_sdk_direct.rs— use aws-sdk-s3 directly (without post3-sdk wrapper), shows raw config
Script examples (examples/)
aws-cli.sh— shell script demonstrating all operations viaawsCLIcurl.sh— shell script demonstrating raw HTTP calls with curl
mise tasks
example:basic— runs the basic Rust exampleexample:metadata— runs the metadata Rust exampleexample:aws-sdk— runs the raw aws-sdk-s3 exampleexample:cli— runs the AWS CLI example scriptexample:curl— runs the curl example script
All examples tested and verified working against live server.