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

Problem: can't create space via API #36

Closed
sevein opened this issue Jul 25, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@sevein
Copy link
Contributor

commented Jul 25, 2018

At the moment, it's not possible to create spaces via the API.

E.g. I want to send a request like the following (using cURL):

curl \
    -X POST \
    -d @payload.json \
    -H "Authorization: ApiKey test:test" \
    -H "Content-Type: application/json" \
        http://127.0.0.1:8000/api/v2/space/

Where payload.json is:

{
    "access_protocol": "S3",
    "path": "",
    "staging_path": "/",
    "endpoint_url": "http://127.0.0.1:12345",
    "access_key_id": "_Cah4cae1_",
    "secret_access_key": "_Thu6Ahqu_",
    "region": "us-west-2"
}

The last four properties are specific to the S3 protocol.

@sevein sevein added the Jisc RDSS label Jul 25, 2018

@sevein sevein added this to the 1.8.0 milestone Jul 25, 2018

@sevein sevein self-assigned this Jul 25, 2018

@sevein sevein removed their assignment Jul 30, 2018

@joel-simpson

This comment has been minimized.

Copy link
Member

commented Jul 31, 2018

Tested by creating an S3 space as shown in the example.
Working as expected!

I also updated documentation on the wiki here: https://wiki.archivematica.org/Storage_Service_API#Create_space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.