usecases/connect-autonomous-database/src/main/java/com/oracle/cloud/samples/controller/CountryController.java
<filename>usecases/connect-autonomous-database/src/main/java/com/oracle/cloud/samples/controller/CountryController.javapackage com.oracle.cloud.samples.controller;  

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.oracle.cloud.samples.model.Country;
import com.oracle.cloud.samples.repository.CountryRepository;  

@RestController  
public class CountryController   
{  
    @Autowired
    private CountryRepository ctrRepo;
    
    @RequestMapping("/api/countries")  
    public List<Country> reports() {  
    	List<Country> reports = ctrRepo.findAll();
    	return reports;
    }
}