February 2018
Intermediate to advanced
356 pages
9h 10m
English
We will use Spring WebFlux to expose our REST endpoints, and then we need to return Mono or Flux in our methods. The REST implementation should be like this:
package springfive.airline.airlineplanes.resource;import java.net.URI;import javax.validation.Valid;import org.springframework.http.HttpStatus;import org.springframework.http.ResponseEntity;import org.springframework.web.bind.annotation.DeleteMapping;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.PathVariable;import org.springframework.web.bind.annotation.PostMapping;import org.springframework.web.bind.annotation.PutMapping;import org.springframework.web.bind.annotation.RequestBody;import org.springframework.web.bind.annotation. ...