@RestController
@RequestMapping(value="/repository")
public interface RepositoryApi
@RequestMapping(value="/testAggregations",
method=GET,
produces="application/json")
@ResponseBody
List<String> testAggregations()
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getCountries",
method=GET,
produces="application/json")
@ResponseBody
Country[] getCountries()
@RequestMapping(value="/getRepositoriesByCountry/{country}/{mode}",
method=GET,
produces="application/json")
@ResponseBody
List<eu.dnetlib.domain.data.Repository> getRepositoriesByCountry(String country,
String mode,
Boolean managed)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getRepositoriesOfUser/{userEmail}/{page}/{size}",
method=GET,
produces="application/json")
@ResponseBody
List<eu.dnetlib.domain.data.Repository> getRepositoriesOfUser(String userEmail,
String page,
String size)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getRepositoryById/{id}",
method=GET,
produces="application/json")
@ResponseBody
eu.dnetlib.domain.data.Repository getRepositoryById(String id)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getRepositoryAggregations/{id}",
method=GET,
produces="application/json")
@ResponseBody
Aggregations getRepositoryAggregations(String id)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getRepositoriesByName/{name}/{page}/{size}/",
method=GET,
produces="application/json")
@ResponseBody
List<eu.dnetlib.domain.data.Repository> getRepositoriesByName(String name,
String page,
String size)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getRepositoryInterface/{id}",
method=GET,
produces="application/json")
@ResponseBody
List<eu.dnetlib.domain.data.RepositoryInterface> getRepositoryInterface(String id)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/addRepository",
method=POST,
consumes="application/json")
@ResponseBody
void addRepository(String datatype,
eu.dnetlib.domain.data.Repository repository)
throws Exception
Exception@RequestMapping(value="/deleteInterface",
method=DELETE)
@ResponseBody
void deleteRepositoryInterface(String id)
@RequestMapping(value="/addInterface",
method=POST,
consumes="application/json")
@ResponseBody
eu.dnetlib.domain.data.RepositoryInterface addRepositoryInterface(String datatype,
String repoId,
eu.dnetlib.domain.data.RepositoryInterface iFace)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getDnetCountries",
method=GET,
produces="application/json")
@ResponseBody
List<String> getDnetCountries()
@RequestMapping(value="/getTypologies",
method=GET,
produces="application/json")
@ResponseBody
List<String> getTypologies()
@RequestMapping(value="/getTimezones",
method=GET,
produces="application/json")
@ResponseBody
List<Timezone> getTimezones()
@RequestMapping(value="/updateManagedStatus",
method=POST,
produces="application/json")
@ResponseBody
String updateManagedStatus(String id,
String managed)
@RequestMapping(value="/updateEnglishName",
method=POST,
produces="application/json")
@ResponseBody
String updateEnglishName(String id,
String englishName)
@RequestMapping(value="/updateLatitude",
method=POST,
produces="application/json")
@ResponseBody
String updateLatitude(String id,
String latitude)
@RequestMapping(value="/updateLongitude",
method=POST,
produces="application/json")
@ResponseBody
String updateLongitude(String id,
String longitude)
@RequestMapping(value="/updateOfficialName",
method=POST,
produces="application/json")
@ResponseBody
String updateOfficialName(String id,
String officialName)
@RequestMapping(value="/updateTimezone",
method=POST,
produces="application/json")
@ResponseBody
String updateTimezone(String id,
String timezone)
@RequestMapping(value="/updateTypology",
method=POST,
produces="application/json")
@ResponseBody
String updateTypology(String id,
String typology)
@RequestMapping(value="/updateLogoUrl",
method=POST,
produces="application/json")
@ResponseBody
String updateLogoUrl(String id,
String logoUrl)
@RequestMapping(value="/updatePlatform",
method=POST,
produces="application/json")
@ResponseBody
String updatePlatform(String id,
String platform)
@RequestMapping(value="/getUrlsOfUserRepos/{user_email}/{page}/{size}/",
method=GET,
produces="application/json")
@ResponseBody
List<String> getUrlsOfUserRepos(String user_email,
String page,
String size)
throws org.json.JSONException
org.json.JSONException@RequestMapping(value="/getDatasourceVocabularies/{mode}",
method=GET,
produces="application/json")
@ResponseBody
List<String> getDatasourceVocabularies(String mode)
@RequestMapping(value="/getCompatibilityClasses/{mode}",
method=GET,
produces="application/json")
@ResponseBody
Map<String,String> getCompatibilityClasses(String mode)
@RequestMapping(value="/getDatasourceClasses/{mode}",
method=GET,
produces="application/json")
@ResponseBody
Map<String,String> getDatasourceClasses(String mode)
@RequestMapping(value="/getMetricsInfoForRepository/{repoId}",
method=GET,
produces="application/json")
@ResponseBody
MetricsInfo getMetricsInfoForRepository(String repoId)
throws RepositoryServiceException
RepositoryServiceExceptionCopyright © 2018. All rights reserved.