Skip to content

API Documentatie

De DAMS Collection API biedt programmatische toegang tot Open Vlacc. Deze RESTful API stelt ontwikkelaars in staat om entiteiten te beheren, te zoeken en te integreren met externe systemen.

Overzicht

EigenschapWaarde
Base URLhttps://cultuur-connect-vlacc-uat.cloud.inuits.dev/collection/v1
Versie1.0.0
AuthenticatieBearer Token (OAuth 2.0)
FormatenJSON, JSON-LD, CSV, RDF, Turtle, N-Triples

Endpoints

De API biedt de volgende endpoints:

Config

MethodeEndpointBeschrijving
GET/configHaal configuratie op

Entities

MethodeEndpointBeschrijving
GET/entitiesLijst van entiteiten ophalen
POST/entitiesNieuwe entiteit aanmaken
POST/entities/filterEntiteiten filteren
GET/entities/{id}Specifieke entiteit ophalen
PUT/entities/{id}Entiteit volledig bijwerken
PATCH/entities/{id}Entiteit gedeeltelijk bijwerken
DELETE/entities/{id}Entiteit verwijderen
GET/entities/wem/{manifestation_id}WEM data voor manifestatie

Authenticatie

De API gebruikt Bearer Token authenticatie. Voeg je token toe aan elke request:

bash
curl -X GET \
  "https://cultuur-connect-vlacc-uat.cloud.inuits.dev/collection/v1/entities" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Meer over authenticatie

Response formaten

De API ondersteunt meerdere output formaten via de Accept header:

Accept HeaderFormaat
application/jsonJSON (standaard)
application/ld+jsonJSON-LD (Linked Data)
text/csvCSV
application/rdf+xmlRDF/XML
text/turtleTurtle
application/n-triplesN-Triples

Voorbeeld: JSON-LD response

bash
curl -X GET \
  "https://cultuur-connect-vlacc-uat.cloud.inuits.dev/collection/v1/entities" \
  -H "Accept: application/ld+json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Paginering

Gebruik limit en skip voor paginering:

bash
# Eerste 20 resultaten
/entities?limit=20&skip=0

# Volgende 20 resultaten
/entities?limit=20&skip=20

Filteren

Filter op entity type:

bash
/entities?type=work
/entities?type=expression
/entities?type=manifestation
/entities?type=item

Code voorbeelden

Python

python
import requests

BASE_URL = "https://cultuur-connect-vlacc-uat.cloud.inuits.dev/collection/v1"
TOKEN = "your_access_token"

headers = {
    "Authorization": f"Bearer {TOKEN}",
    "Accept": "application/json"
}

# Haal alle werken op
response = requests.get(
    f"{BASE_URL}/entities",
    headers=headers,
    params={"type": "work", "limit": 10}
)

entities = response.json()
for entity in entities:
    print(entity["title"])

JavaScript

javascript
const BASE_URL = 'https://cultuur-connect-vlacc-uat.cloud.inuits.dev/collection/v1';
const TOKEN = 'your_access_token';

async function getEntities(type = 'work', limit = 10) {
  const response = await fetch(
    `${BASE_URL}/entities?type=${type}&limit=${limit}`,
    {
      headers: {
        'Authorization': `Bearer ${TOKEN}`,
        'Accept': 'application/json'
      }
    }
  );
  return response.json();
}

// Gebruik
const works = await getEntities('work', 10);
console.log(works);

Interactive API Reference

Bekijk de volledige interactieve API documentatie:

Interactieve documentatie

Ga naar de API Reference voor de volledige interactieve API documentatie met Scalar.

Support

Powered by Elody - Open Source Semantic Data Platform