Unable to create a new library via web api

Hi,

I’m trying to create a new library via the web api.

I’m following the spec outlined in the web-api/v2.1/libraries.md documentation.

Problem is, the documentation mentions 2 urls. If I try them as follows:

Url: /api/v2.1/repos/

paul@Pauls-MacBook-Pro ~ % curl -d "repo_name=new_repo" \
-H 'Authorization: Token 90226bc5f82fbe9d61e39570d7f3c3826a59d04d' \
-H 'Accept: application/json; indent=4' \
http://127.0.0.1:8300/api/v2.1/repos/
{
    "detail": "Method \"POST\" not allowed."
}%

Url: /api2/repos/

paul@Pauls-MacBook-Pro ~ % curl -d "repo_name=new_repo" \
-H 'Authorization: Token 90226bc5f82fbe9d61e39570d7f3c3826a59d04d' \
-H 'Accept: application/json; indent=4' \
http://127.0.0.1:8300/api2/repos/
{
    "error_msg": "Library name is required."
}

I would appreciate if someone can let me know the correct endpoint and params to submit with a working CURL example.

Thanks

Closing, moving to minio…

|