A quarkus service that shows 5G antennas on a map along with incidents
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
551 B

package org.sebi.incident;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.inject.Inject;
import org.eclipse.microprofile.rest.client.inject.RestClient;
import org.eclipse.microprofile.config.inject.ConfigProperty;
@Path("rest/incidents")
public class IncidentResource {
@Inject
@RestClient
IncidentService incidentService;
@ConfigProperty(name = "apikey")
String apiKey;
@GET
public List<Incident> getIncidents(){
return incidentService.getIncidents(apiKey);
}
}