API Example Requests

These example requests can be executed with curl command:

Create a Bucket

 curl -X PUT http://localhost:8080/buckets/<bucketName>

Get a Bucket

URL: > /buckets/{bucketname}

HTTP Method: GET

Response:

{
  "BucketName": "motation",
  "ACL": "",
  "CORS": "",
  "Created": "",
  "Policy": "",
  "Region": "",
  "Versioned": false,
  "Website": ""
}

Example:

curl -X GET [http://localhost:8080/buckets/motation]

List all Buckets

URL: > /buckets/

HTTP Method: GET

Response:

[
  {
    "BucketName": "motation",
    "ACL": "",
    "CORS": "",
    "Created": "",
    "Policy": "",
    "Region": "",
    "Versioned": false,
    "Website": ""
  },
  {
    "BucketName": "content-payloads",
    "ACL": "",
    "CORS": "",
    "Created": "",
    "Policy": "",
    "Region": "",
    "Versioned": false,
    "Website": ""
  }
]

Example:

curl -X GET [http://localhost:8080/buckets]

Last updated