Project

General

Profile

« Previous | Next » 

Revision 49790

1. Create method to convert country names -> country codes
2. Create methods for : getDatasourceClasses , getCompatibilityClasses

View differences:

RepositoryApi.java
10 10
import org.springframework.web.bind.annotation.ResponseBody;
11 11
import org.springframework.web.bind.annotation.RestController;
12 12
import java.util.List;
13
import java.util.Set;
13
import java.util.Map;
14 14

  
15 15
@RestController
16 16
@RequestMapping(value = "/repository")
......
29 29
    @RequestMapping(value = "/getRepositoriesByCountry/{country}", method = RequestMethod.GET,
30 30
            produces = MediaType.APPLICATION_JSON_VALUE)
31 31
    @ResponseBody
32
    Set<String> getRepositoriesByCountry(String country) throws JSONException;
32
    List<Repository> getRepositoriesByCountry(String country,String mode) throws JSONException;
33 33

  
34 34
    @RequestMapping(value = "/getRepositoriesOfUser/{userEmail}/{page}/{size}")
35 35
    @ResponseBody
......
123 123
    @ResponseBody
124 124
    List<String> getDatasourceVocabularies(String mode);
125 125

  
126
    @RequestMapping(value = "/getCompatibilityClasses/{mode}",method = RequestMethod.GET,
127
            produces = MediaType.APPLICATION_JSON_VALUE)
128
    @ResponseBody
129
    Map<String, String> getCompatibilityClasses(String mode);
126 130

  
131
    @RequestMapping(value = "/getDatasourceClasses/{mode}",method = RequestMethod.GET,
132
            produces = MediaType.APPLICATION_JSON_VALUE)
133
    @ResponseBody
134
    Map<String, String> getDatasourceClasses(String mode);
127 135

  
128 136

  
129 137

  
130

  
131

  
132 138
}

Also available in: Unified diff