Revision 50570
Added by Panagiotis Kanakakis over 6 years ago
RepositoryApi.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import eu.dnetlib.domain.data.Repository; |
4 | 4 |
import eu.dnetlib.domain.data.RepositoryInterface; |
5 |
import eu.dnetlib.repo.manager.shared.Aggregations; |
|
6 |
import eu.dnetlib.repo.manager.shared.Country; |
|
7 |
import eu.dnetlib.repo.manager.shared.Timezone; |
|
5 |
import eu.dnetlib.repo.manager.shared.*; |
|
8 | 6 |
import io.swagger.annotations.Api; |
9 | 7 |
import org.json.JSONException; |
10 | 8 |
import org.springframework.http.MediaType; |
... | ... | |
166 | 164 |
|
167 | 165 |
|
168 | 166 |
String getCountryName(String countryCode); |
167 |
|
|
168 |
@RequestMapping(value = "/getMetricsInfoForRepository/{repoId}",method = RequestMethod.GET, |
|
169 |
produces = MediaType.APPLICATION_JSON_VALUE) |
|
170 |
@ResponseBody |
|
171 |
MetricsInfo getMetricsInfoForRepository(String repoId) throws RepositoryServiceException; |
|
169 | 172 |
} |
Also available in: Unified diff
1. Add getMetricsInfoForRepository and getInterfaceInformation methods.
2. Create aai-secutiry.xml file
3. Add properties on application file