Revision 56681
Added by Ioannis Diplas almost 5 years ago
PiWikController.java | ||
---|---|---|
6 | 6 |
import eu.dnetlib.repo.manager.service.PiWikServiceImpl; |
7 | 7 |
import eu.dnetlib.repo.manager.shared.RepositoryServiceException; |
8 | 8 |
import io.swagger.annotations.Api; |
9 |
import io.swagger.annotations.ApiImplicitParam; |
|
10 |
import io.swagger.annotations.ApiImplicitParams; |
|
9 | 11 |
import org.springframework.beans.factory.annotation.Autowired; |
10 | 12 |
import org.springframework.http.MediaType; |
11 | 13 |
import org.springframework.http.ResponseEntity; |
... | ... | |
37 | 39 |
} |
38 | 40 |
|
39 | 41 |
@RequestMapping(value = "/getPiwikSitesForRepos" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
42 |
@ApiImplicitParams({ |
|
43 |
@ApiImplicitParam(name = "from", dataType = "number", paramType = "query"), |
|
44 |
@ApiImplicitParam(name = "quantity", dataType = "number", paramType = "query"), |
|
45 |
@ApiImplicitParam(name = "order", dataType = "eu.dnetlib.repo.manager.domain.OrderByType", paramType = "query"), |
|
46 |
@ApiImplicitParam(name = "searchField", dataType = "eu.dnetlib.repo.manager.domain.OrderByField", paramType = "query"), |
|
47 |
@ApiImplicitParam(name = "orderField", dataType = "string", paramType = "query"), |
|
48 |
}) |
|
40 | 49 |
public List<PiwikInfo> getPiwikSitesForRepos( |
41 | 50 |
@RequestParam(value = "from",required=false,defaultValue = "0") int from, |
42 | 51 |
@RequestParam(value = "quantity",required=false,defaultValue = "100") int quantity, |
Also available in: Unified diff
Updated swagger info