dbpedia / databus

A digital factory platform for managing files online with stable IDs, high-quality metadata, powerful API and tools for building on data: find, access, make interoperable, re-use
Apache License 2.0
36 stars 16 forks source link

API does not work #136

Closed m1ci closed 7 months ago

m1ci commented 7 months ago

Via the test/documentation UI the API does not work. Here the provided info:

json-ld:

{
  "@context": "https://downloads.dbpedia.org/databus/context.jsonld",
  "@graph": {
    "@type": [
      "Version",
      "Dataset"
    ],
    "@id": "https://databus.dbpedia.org/dervoq/test-group/testartifact/2023-10-01",
    "hasVersion": "2023-10-01",
    "title": "Test Version",
    "description": "Data for testing purposes.",
    "license": "http://dalicc.net/licenselibrary/AdaptivePublicLicense10",
    "distribution": [
      {
        "@type": "Part",
        "formatExtension": "yml",
        "compression": "none",
        "downloadURL": "https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml",
        "byteSize": 63973,
        "sha256sum": "e0f72231ec59e096814ff222021573739183875a9a1b3bca66fa9e928e189ca6"
      }
    ]
  }
}

and here is the complete cURL

curl -X 'PUT' \
  'https://databus.dbpedia.org/dervoq/test-group/testartifact/2023-10-01' \
  -H 'accept: application/json' \
  -H 'X-API-KEY: XXXXX' \
  -H 'Content-Type: application/ld+json' \
  -d '{
  "@context": "https://downloads.dbpedia.org/databus/context.jsonld",
  "@graph": {
    "@type": [
      "Version",
      "Dataset"
    ],
    "@id": "https://databus.dbpedia.org/dervoq/test-group/testartifact/2023-10-01",
    "hasVersion": "2023-10-01",
    "title": "Test Version",
    "description": "Data for testing purposes.",
    "license": "http://dalicc.net/licenselibrary/AdaptivePublicLicense10",
    "distribution": [
      {
        "@type": "Part",
        "formatExtension": "yml",
        "compression": "none",
        "downloadURL": "https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml",
        "byteSize": 63973,
        "sha256sum": "e0f72231ec59e096814ff222021573739183875a9a1b3bca66fa9e928e189ca6"
      }
    ]
  }
}'

A PUT request returns 200 with error:


  "logLevel": "error",
  "log": []
}
holycrab13 commented 7 months ago

that's not an error, that's the log level. 200 means it works (and it worked) https://databus.dbpedia.org/dervoq/test-group/testartifact/2023-10-01