Closed loicjaouen closed 1 year ago
v1
mentionned?https://github.com/search?q=repo%3ALaDHUL%2FTheatre-de-societe%20v1&type=code => no
we can probably stop here, because the doc says that api v1 calls have an url like: http://host/v1/
.
Still the v1
can be build outside of our source code scope (env var, local config, thrid party libs).
but let's run the extra mile
it is assigning the var apiHost
, how is it used? does it only leads to an api v2 call?
config doesn't mention api version
used to instanciate knora config here: code
itself used to instanciate knora connection (code)l
Which is systematically used with knoraApiConnection.v2
making v2
calls using v2
internal object, calls would use v1
internal object, which is not the case here.
it is also used to build the URI base of gravsearch: knoraApiConfig.knora.apiHost
(code) which hard codes v2
This code is replicated on every call, but systematically.
yes, the connection (and therefore calling v2
) is systematically used through knora.service.ts
none that a code search can find (on search terms v2
, ls-prod
, apiHost
, knoraApiConnection
)
How to check? use the app with the dev tools on, filler the calls on v1
and see if something shows up
=> it looks fine
at least, none of the central features are affected
v1 will be turned off
v1
mentionned?