Tabnine Logo
LemonReactiveController
Code IndexAdd Tabnine to your IDE (free)

How to use
LemonReactiveController
in
com.naturalprogrammer.spring.lemonreactive

Best Java code snippets using com.naturalprogrammer.spring.lemonreactive.LemonReactiveController (Showing top 7 results out of 315)

origin: naturalprogrammer/spring-lemon

  @Override
  public Mono<UserDto> signup(
      @RequestBody @JsonView(UserUtils.SignupInput.class)
      @Validated(SignUpValidation.class) Mono<User> user,
      ServerHttpResponse response) {
    
    return super.signup(user, response);
  }
}
origin: naturalprogrammer/spring-lemon

/**
 * Signs up a user, and
 * returns current-user data and an Authorization token as a response header.
 */
@PostMapping("/users")
@ResponseStatus(HttpStatus.CREATED)
protected Mono<UserDto> signup(Mono<U> user, ServerHttpResponse response) {
  
  log.debug("Signing up: " + user);
  
  return userWithToken(lemonReactiveService.signup(user), response);
}
origin: naturalprogrammer/spring-lemon

/**
 * Resets password after it's forgotten
 */
@PostMapping("/reset-password")
public Mono<UserDto> resetPassword(
    @RequestBody @Valid Mono<ResetPasswordForm> form,
    ServerHttpResponse response) {
  
  log.debug("Resetting password ... ");				
  return userWithToken(lemonReactiveService.resetPassword(form), response);
}
origin: naturalprogrammer/spring-lemon

/**
 * Changes password
 */
@PostMapping("/users/{id}/password")
@ResponseStatus(HttpStatus.NO_CONTENT)
public Mono<Void> changePassword(@PathVariable ID id,
    @RequestBody @Valid Mono<ChangePasswordForm> changePasswordForm,
    ServerHttpResponse response) {
  
  log.debug("Changing password ... ");
  return userWithToken(lemonReactiveService.changePassword(id, changePasswordForm), response).then();
}
origin: naturalprogrammer/spring-lemon

/**
 * Verifies current-user
 */
@PostMapping("/users/{id}/verification")
public Mono<UserDto> verifyUser(
    @PathVariable ID id,
    ServerWebExchange exchange) {
  
  log.debug("Verifying user ...");		
  return userWithToken(lemonReactiveService.verifyUser(id, exchange.getFormData()),
      exchange.getResponse());
}
origin: naturalprogrammer/spring-lemon

/**
 * Updates a user
 */
@PatchMapping(value = "/users/{id}")
public Mono<UserDto> updateUser(
    @PathVariable ID id,
    @RequestBody @NotBlank Mono<String> patch,
    ServerHttpResponse response) {
  
  log.debug("Updating user ... ");
  return userWithToken(lemonReactiveService.updateUser(id, patch), response);
}
origin: naturalprogrammer/spring-lemon

/**
 * Changes the email
 */
@PostMapping("/users/{userId}/email")
public Mono<UserDto> changeEmail(
    @PathVariable ID userId,
    ServerWebExchange exchange) {
  
  log.debug("Changing email of user ...");
  return userWithToken(lemonReactiveService.changeEmail(
      userId,
      exchange.getFormData()),
    exchange.getResponse());
}
com.naturalprogrammer.spring.lemonreactiveLemonReactiveController

Javadoc

The Lemon Mongo API. See the API documentation for details.

Most used methods

  • signup
    Signs up a user, and returns current-user data and an Authorization token as a response header.
  • userWithToken
    returns the current user and a new authorization token in the response

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • putExtra (Intent)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Reference (javax.naming)
  • JButton (javax.swing)
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now