I want to consume a GeoServer layer that has the time dimension enabled from an external WMS service that I have no control over. Time dimension is updated frequently, several times in an hour. Using Leaflet to visualize this layer but I'm having trouble programmatically figuring out what are the values for time dimension at any point in time.
GetCapabilites request I see for example that
<Dimension name="time" units="ISO8601" multipleValues="0" current="1">2021-01-12T02:50:00Z/2021-01-12T09:40:00Z/PT5M</Dimension>
I'm wondering if there's a way to get GeoServer return only the possible time dimension values to the client. I could of course figure out some heuristics or parse the whole
GetCapabilites request but this seems like killing a fly with nuclear bomb so looking for more elegant solution. Ideally an API endpoint that just returns an array of time dimension values for a layer.