sci-ndp / scidx-py

sciDX Science Data Exchange
Apache License 2.0
0 stars 0 forks source link

feat/register_s3 Bucket only #7

Closed saleemalharir1 closed 3 weeks ago

saleemalharir1 commented 1 month ago

Description

The function register_s3bucket needs to be implemented to add a pointer to an S3 bucket in the sciDX system. This function should handle API requests with detailed logging and error handling.

Steps to Reproduce

For feature requests, list the steps required to implement the new function:

  1. Define the new function register_s3bucket.
  2. Implement detailed logging and error handling for API requests.
  3. Ensure the function constructs the correct S3 URL and handles the creation of resources.
  4. Test the function with various inputs to ensure correct behavior.

Expected Behavior

The function should successfully create a pointer to an S3 bucket in the sciDX system and handle any errors gracefully, providing detailed error messages when failures occur.

Actual Behavior

Currently, the function is not implemented and needs to be created.

Possible Solution

Follow the structure of the provided register_s3bucket code to implement the function. Ensure that the API requests are correctly formatted and that error handling is robust.

Additional Context

Add detailed logging for API requests and responses. Ensure that the function can handle various input scenarios and provide meaningful error messages when something goes wrong.

rbardaji commented 3 weeks ago

Done