Skip to content

Commit

Permalink
implemented simple wemi resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
wmelder committed Jul 9, 2024
1 parent a96b9a0 commit d36fe21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/apis/resource/resource_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
}
)
@api.route(
"id/<any(program, series, season, scene):cat_type>/<int:identifier>",
"id/<any(program, series, season, scene):cat_type>/<int:identifier>/<any(work, expression, manifestation, item):wemi>",
endpoint="dereference",
)
class ResourceAPI(Resource):
"""Serve the RDF for the media catalog resources in the format that was requested."""

@api.produces([mt.value for mt in MimeType])
def get(self, identifier, cat_type="program"):
def get(self, identifier, wemi, cat_type="program"):
lod_server_supported_mime_types = [mt.value for mt in MimeType]
best_match = request.accept_mimetypes.best_match(
lod_server_supported_mime_types
Expand Down
4 changes: 2 additions & 2 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

api.init_app(
app,
title="Open Data Lab API - Netherlands Institute for Sound and Vision",
description="Get RDF for open datasets and for resources in the NISV catalogue.",
title="Open Data API - Netherlands Institute for Sound and Vision",
description="Get RDF for NISV open datasets and resources.",
)

if __name__ == "__main__":
Expand Down

0 comments on commit d36fe21

Please sign in to comment.