Skip to content

Conversation

danielasubotic
Copy link

@danielasubotic danielasubotic commented Oct 7, 2025

Description

For testing:

Step 1: Get the token (this sets it silently)

TOKEN=$(curl -s -X POST http://localhost:3333/v2/authentication
-H "Content-Type: application/json"
-d '{"email": "[email protected]", "password": "test"}' | jq -r '.token')

Step 2: Export to CSV

curl -X POST http://localhost:3333/v2/resources/export
-H "Authorization: Bearer $TOKEN"
-H "Content-Type: application/json"
-H "x-knora-accept-project: http://rdfh.ch/projects/0803"
-d '{
"resourceClass": "http://0.0.0.0:3333/ontology/0803/incunabula/v2#book",
"selectedProperties": null,
"format": "CSV",
"includeReferenceIris": true
}'
-o test_export.csv

@danielasubotic danielasubotic requested a review from siers October 7, 2025 09:26
@danielasubotic danielasubotic self-assigned this Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant