Hi Community,
So here is a brief of my question, I want to integrate an open API web source and GET data from it. I want the data to be filtered based on two parameters that the end user will be entering.
I have been trying to integrate a public API web source into the Apex application through REST Data Sources. Below is the source API called The National Weather Service: https://www.weather.gov/documentation/services-web-api
I want to use the below endpoint from the 'Example' column of the source in my application.
https://api.weather.gov/points/{latitude},{longitude}
I tried to create a REST Data Source from scratch with the following configuration
For the URL Endpoint: https://api.weather.gov/points/
Base URL: https://api.weather.gov/
Service URL Path: /points/
No Pagination
No Authentication Required
Created two parameters, latitude and longitude as URL Query Strings and set them as static with some default values
when pressed on ‘Discover’ got the response below..…
{
"correlationId" : "2c189198",
"title" : "Not Found",
"type" : "https://api.weather.gov/problems/NotFound",
"status" : 404,
"detail" : "'/points/' is not a valid resource path",
"instance" : "https://api.weather.gov/requests/2c189198"
}
and created the REST Data Source but when integrated into the component in the application page, it's not working.
I am not sure if am configuring it right. Please, help me with how I can make it work.
Thank you for all your responses.