gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
9 stars 6 forks source link

Agent for GBIF API calls #240

Open dnoesgaard opened 1 year ago

dnoesgaard commented 1 year ago

(as discussed)

e.g. "GBIF HP: gbif.us" (or similar)

timrobertson100 commented 1 year ago

Can you please clarify what you mean by API calls? - do we want all the way to the backend REST API or just to the GraphQL API which the hosted portals uses

MortenHofft commented 1 year ago

The suggestion was to add the referer in the user agent, but that seems wrong. I'd rather just edit the agent to be GBIF graphql, and then forward whatever the referer is. And then let the analytics code deal with parsing that if needed.