Skip to content

Commit

Permalink
replace deprecated services
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Collins committed Jan 22, 2024
1 parent c25ab67 commit fc4cce6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class MetadataService {
log.info "looking up spatial layers"
// look it up
def resp = null
def url = "${SPATIAL_URL}/layers.json"
def url = "${SPATIAL_URL}/layers"

def conn = new URL(url).openConnection()
try {
Expand Down Expand Up @@ -449,7 +449,7 @@ class MetadataService {
def bieBulkLookup(list) {
def url = BIE_URL
def data = webService.doPost(url,
"/species/guids/bulklookup.json", "", (list as JSON).toString())
"/species/guids/bulklookup", "", (list as JSON).toString())
//println "returned from doPost ${data.resp}"
def results = [:]
if (!data.error) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/au/org/ala/dashboard/Constants.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class Constants {

class WebServices {

final static String PARTIAL_URL_STATE_TERRITORY_FACETED_RESULTS = "/occurrences/search.json?pageSize=0&q=*:*&facets=state&flimit=200"
final static String PARTIAL_URL_STATE_TERRITORY_FACETED_RESULTS = "/occurrences/search?pageSize=0&q=*:*&facets=state&flimit=200"

final static String PARTIAL_URL_RECORDS_BY_LIFE_FORM = "/occurrences/search.json?pageSize=0&q=*:*&facets=species_group&flimit=200"
final static String PARTIAL_URL_RECORDS_BY_LIFE_FORM = "/occurrences/search?pageSize=0&q=*:*&facets=species_group&flimit=200"

final static String PARTIAL_URL_DATE_STATS_EARLIEST_RECORD = "/occurrences/search?q=!assertions:invalidCollectionDate&pageSize=1&sort=occurrence_date&facet=off"

Expand Down

0 comments on commit fc4cce6

Please sign in to comment.