AtlasOfLivingAustralia / specieslist-webapp

Species lists and traits tool
https://lists.ala.org.au
Mozilla Public License 2.0
6 stars 21 forks source link

Integrate dynamic query method into /ws/species/ #277

Open qifeng-bai opened 1 year ago

qifeng-bai commented 1 year ago

It supports dynamic query on 'myList' , for example:

http://localhost:8080/ws/species/https://biodiversity.org.au/afd/taxa/76f4ad27-475e-4a93-bc61-3fbe2a896283?username=eq:nick.dosremedios@csiro.au

It will return the data resources which uses this species and created by username = nick.dosremedios@csiro.au

We can add extra key-value pair params, in this example : username is the key, eq:nick.dosremedios@csiro.au is the value, and further , eq: is interpreted =. Finally, username=eq:nick.dosremedios@csiro.au will be interpreted to username=nick.dosremedios@csiro.au

The query methods only support such as order,exists,distinct,and,not,notExists,avg,readOnly,ne,property,ge,min,max,count,isEmpty, etc

And limited keys in list are supported: "listType", "region","ownerFullName","dateCreated" ,"firstName" ,"lastUploaded" "lastUpdated" "listName" "wkt" "generalisation" "version" "surname" "isInvasive" "looseSearch" "isBIE" "sdsType" "userId" - "isAuthoritative" "lastMatched" "items" "username" "url" "authority" "isPrivate" "editors" "category" "dataResourceUid" "isSDS" "description" "isThreatened" "itemsCount"

qifeng-bai commented 1 year ago

How to test: https://lists-test.ala.org.au//ws/species/https://biodiversity.org.au/afd/taxa/76f4ad27-475e-4a93-bc61-3fbe2a896283 Should return 3 records created by Nick and ewallis@museum.vic.gov.au

https://lists-test.ala.org.au//ws/species/https://biodiversity.org.au/afd/taxa/76f4ad27-475e-4a93-bc61-3fbe2a896283?username=eq:nick.dosremedios@csiro.au Should only return 2 records created by Nick