Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @GetMapping(path = "/list-news")
- @ApiOperation(value = "Retorna notícias", response = String.class)
- @ApiImplicitParams({
- @ApiImplicitParam(name = "page", dataType = "integer", paramType = "query", value = "Results page you want to retrieve (0..N)", defaultValue = "0"),
- @ApiImplicitParam(name = "size", dataType = "integer", paramType = "query", value = "Number of records per page.", defaultValue = "5"),
- @ApiImplicitParam(name = "sort", allowMultiple = true, dataType = "string", paramType = "query", value = "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.")
- })
- public ResponseEntity buscarNoticias(@RequestHeader(value = "Authorization") String token,
- @ApiIgnore("Ignored because swagger ui shows the wrong params, instead they are explained in the implicit params") Pageable pageable){}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement