@RestController public class HomeController extends Object
| Constructor and Description |
|---|
HomeController() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<String>> |
echo() |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Object>> |
file(String bucketName,
String fileName,
org.springframework.http.server.reactive.ServerHttpRequest request) |
Object |
getConsulConfig(String key) |
Object |
listRoute() |
Object |
serviceUrl() |
void |
upload(org.springframework.http.codec.multipart.FilePart filePart,
String bucketName,
String path) |
Object |
watchChanges(Object body,
org.springframework.http.HttpHeaders header) |
@GetMapping(value="/") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<String>> echo()
@RequestMapping(value="/routes",
method=GET)
public Object listRoute()
@PostMapping(value="/watch") public Object watchChanges(@RequestBody Object body, @RequestHeader org.springframework.http.HttpHeaders header)
@RequestMapping(value="/services") public Object serviceUrl()
@RequestMapping(value="/configs",
method=GET)
public Object getConsulConfig(@RequestParam(required=false)
String key)
@RequestMapping(value="/file",
method=POST)
public void upload(@RequestPart(value="file")
org.springframework.http.codec.multipart.FilePart filePart,
@RequestPart(value="bucketName")
String bucketName,
@RequestPart(value="path")
String path)
@RequestMapping(value={"/file/{bucket}/{path}","/file/{bucket}/*/{path}"},
method=GET)
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Object>> file(@PathVariable(value="bucket")
String bucketName,
@PathVariable(value="path")
String fileName,
org.springframework.http.server.reactive.ServerHttpRequest request)
Copyright © 2022. All rights reserved.