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
The baseUrl of MyAnnotation points to the API/WS base URL: https://api.test.ala.org.au/occurrences
However, the baseUrl of Annotation points to the UI base URL: https://biocache.ala.org.au.
To query the web service, /ws is added to the queryPath: /ws/occurrences/search?fq=user_assertions:*&q=last_assertion_date:[___DATEPARAM___ TO *]&sort=last_assertion_date&dir=desc&pageSize=20&facets=basis_of_record.
This approach worked previously, as there was only one query.
The issue arises when we need to add another query to collect user assertions using baseUrl + assertion query path. In such cases, the Annotation query fails.
Additionally, switching the API endpoint: https://api.ala.org.au/occurrences causes the Annotation's baseUrl to stop working, since '/ws' should not be added into 'queryPath'
The text was updated successfully, but these errors were encountered:
qifeng-bai
changed the title
BaseUrls in Queries are defined inconsistently.
Some baseUrls in Queries are defined inconsistently. And will fail when we switch to Api GW
Oct 21, 2024
Check Annotation query to see if it works with the Api GW select * from alerts.query where name="Annotations"
check the value of base_url and query_path:
if base_url is like:https://biocache.ala.org.au
and query_path is like: /ws/occurrences/search?fq=user_assertions:*&q=last_assertion_date:[___DATEPARAM___%20TO%20*]&sort=last_assertion_date&dir=desc&pageSize=20&facets=basis_of_record
then they should be changed to: https://api.ala.org.au/occurrences
The baseUrl of MyAnnotation points to the API/WS base URL:
https://api.test.ala.org.au/occurrences
However, the baseUrl of Annotation points to the UI base URL:
https://biocache.ala.org.au
.To query the web service,
/ws
is added to the queryPath:/ws/occurrences/search?fq=user_assertions:*&q=last_assertion_date:[___DATEPARAM___ TO *]&sort=last_assertion_date&dir=desc&pageSize=20&facets=basis_of_record
.This approach worked previously, as there was only one query.
The issue arises when we need to add another query to collect user assertions using
baseUrl + assertion query path
. In such cases, the Annotation query fails.Additionally, switching the API endpoint:
https://api.ala.org.au/occurrences
causes the Annotation's baseUrl to stop working, since '/ws' should not be added into 'queryPath'The text was updated successfully, but these errors were encountered: