Discover api-doc url from Link header#145
Conversation
|
Please check why tests are failing. |
|
The tests were failing due to imcompatiblity between old and new pip versions. They are fixed in #144 now. |
…gent into automate-api-doc-discovery
|
@xadahiya Do we need to cache data if there is no known synchronisation mechanism to the agent? The reason being, even the APIDOC can get outdated making the cache totally invalid. And also what will be the rules to update the cache, for eg how frequently it will need to update itself, if the server is not hydrus? |
|
Without the sync mechanism both the API Doc and the data is retrieved in real time. We make requests for every query. Also rebase this with the branch containing the latest tests |
3010b4a to
3b00a0d
Compare
|
Reverting changes for now, as it went beyond what could be done in a week. This should solve the #102 and agent will continue to work with hydrus. |
Fixes #102
Checklist
Description
Instead of appending 'vocab' after entry point url, this PR retrieves api doc url from the Link header according to the Hydra spec.
Change logs
Added parsing of Link header to discover the API DOC URL.