Revision 53113
Added by Panagiotis Kanakakis over 5 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.service.domain.RepositorySnippet; |
|
5 | 6 |
import eu.dnetlib.repo.manager.service.exception.ResourceNotFoundException; |
6 | 7 |
import eu.dnetlib.repo.manager.shared.*; |
7 | 8 |
import io.swagger.annotations.Api; |
8 | 9 |
import org.json.JSONException; |
9 | 10 |
import org.springframework.http.MediaType; |
10 |
import org.springframework.security.access.prepost.PostAuthorize; |
|
11 |
import org.springframework.security.access.prepost.PreAuthorize; |
|
12 | 11 |
import org.springframework.web.bind.annotation.*; |
13 | 12 |
|
13 |
import java.io.IOException; |
|
14 | 14 |
import java.util.List; |
15 | 15 |
import java.util.Map; |
16 | 16 |
|
... | ... | |
27 | 27 |
@RequestMapping(value = "/getRepositoriesByCountry/{country}/{mode}", method = RequestMethod.GET, |
28 | 28 |
produces = MediaType.APPLICATION_JSON_VALUE) |
29 | 29 |
@ResponseBody |
30 |
List<Repository> getRepositoriesByCountry(String country, String mode, Boolean managed) throws JSONException;
|
|
30 |
List<RepositorySnippet> getRepositoriesByCountry(String country, String mode, Boolean managed) throws JSONException, IOException;
|
|
31 | 31 |
|
32 | 32 |
@RequestMapping(value = "/getRepositoriesOfUser/{userEmail}/{page}/{size}",method = RequestMethod.GET, |
33 | 33 |
produces = MediaType.APPLICATION_JSON_VALUE) |
Also available in: Unified diff
Add repository snippet methods