You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A call to /conceptschemes/1/c/1/expand does not resolve properly and returns 404.
Due to the change within atramhasis to support non-integer concept IDs, a change was also made to the concept route to allow forward slashes as the concept ID.
pattern='/conceptschemes/{scheme_id}/c/{c_id:.*}'
This causes the expand url (/conceptschemes/1/c/1/expand) to be read as: a concept with ID 1/expand instead of using the expand API.
The fix is simple, to declare the expand api route before concept route, because pyramid will use the routes in the order they are declared.
(the expand api exists in pyramid_skosprovider)
config.include('atramhasis.routes') # move down
config.include('pyramid_skosprovider') # move up
The text was updated successfully, but these errors were encountered:
Atramhasis was duplicating a lot of routes declared
in pyramid_skosprovider and these conflicts caused
issues because the regex path params which use .*
would consume a bunch of routes which it should not.
Issue #903
Atramhasis was duplicating a lot of routes declared
in pyramid_skosprovider and these conflicts caused
issues because the regex path params which use .*
would consume a bunch of routes which it should not.
Issue #903
A call to
/conceptschemes/1/c/1/expand
does not resolve properly and returns 404.Due to the change within atramhasis to support non-integer concept IDs, a change was also made to the concept route to allow forward slashes as the concept ID.
This causes the expand url (
/conceptschemes/1/c/1/expand
) to be read as: a concept with ID1/expand
instead of using the expand API.The fix is simple, to declare the expand api route before concept route, because pyramid will use the routes in the order they are declared.
(the expand api exists in pyramid_skosprovider)
The text was updated successfully, but these errors were encountered: