Project

General

Profile

« Previous | Next » 

Revision 50003

  • Add swagger config.

View differences:

RepositoryApi.java
14 14

  
15 15
@RestController
16 16
@RequestMapping(value = "/repository")
17
@Api(description = "Repository API",  tags = {"repository"})
17 18
public interface RepositoryApi {
18

  
19

  
19
    
20 20
    @RequestMapping(value = "/testAggregations", method = RequestMethod.GET,
21 21
            produces = MediaType.APPLICATION_JSON_VALUE)
22 22
    @ResponseBody
......
31 31
    @ResponseBody
32 32
    List<Repository> getRepositoriesByCountry(String country,String mode) throws JSONException;
33 33

  
34
    @RequestMapping(value = "/getRepositoriesOfUser/{userEmail}/{page}/{size}")
34
    @RequestMapping(value = "/getRepositoriesOfUser/{userEmail}/{page}/{size}",method = RequestMethod.GET,
35
            produces = MediaType.APPLICATION_JSON_VALUE)
35 36
    @ResponseBody
36 37
    List<Repository> getRepositoriesOfUser(String userEmail,
37 38
                                           String page,

Also available in: Unified diff