Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RESTful API using url pattern and http method #1

Open
ardeness opened this issue Apr 15, 2022 · 0 comments
Open

Implement RESTful API using url pattern and http method #1

ardeness opened this issue Apr 15, 2022 · 0 comments

Comments

@ardeness
Copy link

  • url should be
    /
    /{bucket_id}/
    /{bucket_id}/{object_id}

  • CRUD matches with http method
    eg)
    "GET /" : listing bucket
    "GET /{bucket_id}" : listring objects in bucket
    "POST /{bucket_id}" : Upload and create object in bucket
    "GET /{bucket_id}/{object_id}" : GET object
    "DEL /{bucket_id}/{object_id}" : Delete object

  • Return proper http status code
    eg)
    "GET /{bucket_id}" : 200 on found, 404 when bucket is not exist, and so on

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

No branches or pull requests

1 participant