Revision 49813
Added by Panagiotis Kanakakis over 6 years ago
RepositoryApi.java | ||
---|---|---|
5 | 5 |
import eu.dnetlib.repo.manager.shared.*; |
6 | 6 |
import org.json.JSONException; |
7 | 7 |
import org.springframework.http.MediaType; |
8 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestMethod; |
|
10 |
import org.springframework.web.bind.annotation.ResponseBody; |
|
11 |
import org.springframework.web.bind.annotation.RestController; |
|
8 |
import org.springframework.web.bind.annotation.*; |
|
9 |
|
|
12 | 10 |
import java.util.List; |
13 | 11 |
import java.util.Map; |
14 | 12 |
|
... | ... | |
66 | 64 |
@ResponseBody |
67 | 65 |
String addRepository(Repository repository) throws JSONException; |
68 | 66 |
|
67 |
@RequestMapping(value = "/deleteInterface", method = RequestMethod.DELETE) |
|
68 |
@ResponseBody |
|
69 |
void deleteRepositoryInterface(String id); |
|
70 |
|
|
69 | 71 |
@RequestMapping(value = "/addInterface", method = RequestMethod.POST, |
70 | 72 |
consumes = MediaType.APPLICATION_JSON_VALUE) |
71 | 73 |
@ResponseBody |
72 |
String addRepositoryInterface(RepositoryInterface repositoryInterface) throws JSONException;
|
|
74 |
RepositoryInterface addRepositoryInterface(RepositoryInterface repositoryInterface) throws JSONException;
|
|
73 | 75 |
|
74 | 76 |
@RequestMapping(value = "/getDnetCountries", method = RequestMethod.GET, |
75 | 77 |
produces = MediaType.APPLICATION_JSON_VALUE) |
Also available in: Unified diff
1. New method ( delete repository interface ) on repo api.
2. New method ( get ruleset with acronym ) on validator api.
3. Log messages in every api.