Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. @GetMapping(path = "/list-news")
  2. @ApiOperation(value = "Retorna notícias", response = String.class)
  3. @ApiImplicitParams({
  4. @ApiImplicitParam(name = "page", dataType = "integer", paramType = "query", value = "Results page you want to retrieve (0..N)", defaultValue = "0"),
  5. @ApiImplicitParam(name = "size", dataType = "integer", paramType = "query", value = "Number of records per page.", defaultValue = "5"),
  6. @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.")
  7. })
  8. public ResponseEntity buscarNoticias(@RequestHeader(value = "Authorization") String token,
  9. @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