OLDAP API is a Flask REST API that exposes OLDAP administration, data modelling,
hierarchical list, resource, and instance operations backed by GraphDB through
oldaplib.
- Python project managed by Poetry.
- Main package:
oldap_api. - OpenAPI contract:
API-def/oldap-api.yaml. - Instance search documentation:
doc/search_instance.md. - Tests live in
oldap_api/testand rely on a local GraphDB repository plus OLDAP test data from the siblingoldaplibrepository. - The lock file currently resolves
oldaplibto version0.6.11.
oldap_api.factory.factory()creates the Flask app and registers all blueprints fromoldap_api/views.- View modules translate HTTP payloads and query parameters into
oldaplibcalls, then serialize OLDAP/XSD values into JSON. oldaplibowns GraphDB access, domain validation, resource instance classes, permissions, and data model interpretation.- The API should avoid duplicating domain logic from
oldaplibunless it is specifically shaping HTTP response contracts.
- Code and documentation inside the repository are written in English.
- User communication is in German unless explicitly requested otherwise.
- Keep changes focused and follow existing Flask blueprint patterns.
- Public API changes should update
API-def/oldap-api.yamland relevant tests.
- Keep instance read responses stable while exposing reasoning-derived metadata explicitly.
- Continue consolidating duplicated instance-read logic when broader refactoring is warranted.