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

DD-527 Restructure license and custom terms in dataset JSON #97

Conversation

mderuijter
Copy link

@mderuijter mderuijter commented Jun 30, 2021

Create dataset with custom and standard license and use following curl command:

curl -s -H X-Dataverse-key:{apiToken} 'http://localhost:8080/api/datasets/:persistentId/versions/{:draft OR 1.0}?persistentId={doi:10.5072/DAR/BXBIEB}' | jq

Should result in:

{
  "status": "OK",
  "data": {
    "id": 2,
    "datasetId": 3,
    "datasetPersistentId": "doi:10.5072/DAR/BXBIEB",
    "storageIdentifier": "s3://10.5072/DAR/BXBIEB",
    "versionState": "DRAFT",
    "lastUpdateTime": "2021-07-07T09:53:30Z",
    "createTime": "2021-07-07T09:37:17Z",
    "license": {
      "label": "CUSTOM",
      "uri": "https://dar.dans.knaw.nl/api/datasets/:persistentId/versions/:draft/customlicense?persistentId=doi:10.5072/DAR/BXBIEB"
    }, 
    ....
} 

@mderuijter mderuijter marked this pull request as ready for review July 7, 2021 12:23
@janvanmansum janvanmansum merged commit fab2f99 into DANS-KNAW:multi-license Jul 8, 2021
@janvanmansum
Copy link

@mderuijter : Oops, merged the wrong PR. I'll test this and then see if it needs to be reverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants