Package org.nentangso.core.web.rest
Class NtsPublicUserResource
- java.lang.Object
-
- org.nentangso.core.web.rest.NtsPublicUserResource
-
@RestController @RequestMapping("/api") @ConditionalOnMissingBean(name="publicUserResource") public class NtsPublicUserResource extends Object
-
-
Constructor Summary
Constructors Constructor Description NtsPublicUserResource(NtsUserService userService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<NtsUserDTO>>>getAllPublicUsers(org.springframework.http.server.reactive.ServerHttpRequest request, org.springframework.data.domain.Pageable pageable)GET /users: get all users with only the public informations - calling this are allowed for anyone.reactor.core.publisher.Mono<List<String>>getAuthorities()Gets a list of all roles.
-
-
-
Constructor Detail
-
NtsPublicUserResource
public NtsPublicUserResource(NtsUserService userService)
-
-
Method Detail
-
getAllPublicUsers
@GetMapping("/users") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<NtsUserDTO>>> getAllPublicUsers(org.springframework.http.server.reactive.ServerHttpRequest request, org.springframework.data.domain.Pageable pageable)GET /users: get all users with only the public informations - calling this are allowed for anyone.- Parameters:
request- aServerHttpRequestrequest.pageable- the pagination information.- Returns:
- the
ResponseEntitywith status200 (OK)and with body all users.
-
-