@RestController
@RequestMapping(value="/api/optimization")
public class OptimizationResource
extends java.lang.Object
Constructor and Description |
---|
OptimizationResource(OptimizationService optimizationService) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ApplicationYamlConfig> |
config() |
void |
downloadAllAlternative(java.lang.String token,
java.lang.String hash,
javax.servlet.http.HttpServletResponse response) |
void |
downloadAlternative(java.lang.String token,
java.lang.String hash,
java.lang.Integer id,
javax.servlet.http.HttpServletResponse response) |
reactor.core.publisher.Mono<OptimizationDto> |
dto() |
reactor.core.publisher.Mono<Interaction> |
getInteraction(java.lang.String token,
java.lang.String hash) |
void |
killOptimizationProcess(java.lang.String token,
java.lang.String hash) |
void |
openAlternative(java.lang.String token,
java.lang.String hash,
java.lang.Integer id) |
OptimizationOptionsDTO |
optimizationAlgorithms() |
reactor.core.publisher.Flux<OptimizationInfo> |
optimizationInfo(java.lang.String token,
java.lang.String hash) |
reactor.core.publisher.Mono<Infos> |
optimizationInfos() |
reactor.core.publisher.Mono<OptimizationInfo> |
optimize(OptimizationDto optimizationDto) |
reactor.core.publisher.Mono<java.lang.Object> |
postInteraction(java.lang.String token,
java.lang.String hash,
Interaction interaction) |
org.springframework.http.ResponseEntity<java.util.List<java.lang.String>> |
save(java.util.List<org.springframework.web.multipart.MultipartFile> files) |
void |
zipFiles(java.lang.String token,
java.lang.String hash,
javax.servlet.http.HttpServletResponse response) |
public OptimizationResource(OptimizationService optimizationService)
@GetMapping(value="/download/{token}/{hash}", produces="application/zip") public void zipFiles(@PathVariable java.lang.String token, @PathVariable java.lang.String hash, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@GetMapping(value="/download-alternative/{token}/{hash}/{id}", produces="application/zip") public void downloadAlternative(@PathVariable java.lang.String token, @PathVariable java.lang.String hash, @PathVariable java.lang.Integer id, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@GetMapping(value="/open-alternative/{token}/{hash}/{id}", produces="application/zip") public void openAlternative(@PathVariable java.lang.String token, @PathVariable java.lang.String hash, @PathVariable java.lang.Integer id) throws java.io.IOException
java.io.IOException
@GetMapping(value="/download-all-alternative/{token}/{hash}", produces="application/zip") public void downloadAllAlternative(@PathVariable java.lang.String token, @PathVariable java.lang.String hash, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@PostMapping(value="/upload-pla") public org.springframework.http.ResponseEntity<java.util.List<java.lang.String>> save(@RequestParam(value="file") java.util.List<org.springframework.web.multipart.MultipartFile> files)
@GetMapping(value="/optimization-infos") public reactor.core.publisher.Mono<Infos> optimizationInfos()
@PostMapping(value="/kill-optimization-process/{token}/{hash}") public void killOptimizationProcess(@PathVariable java.lang.String token, @PathVariable java.lang.String hash)
@GetMapping(value="/optimization-info/{token}/{hash}", produces="text/event-stream") public reactor.core.publisher.Flux<OptimizationInfo> optimizationInfo(@PathVariable java.lang.String token, @PathVariable java.lang.String hash)
@GetMapping(value="/config") public reactor.core.publisher.Mono<ApplicationYamlConfig> config()
@GetMapping(value="/interaction/{token}/{hash}") public reactor.core.publisher.Mono<Interaction> getInteraction(@PathVariable java.lang.String token, @PathVariable java.lang.String hash)
@PostMapping(value="/interaction/{token}/{hash}") public reactor.core.publisher.Mono<java.lang.Object> postInteraction(@PathVariable java.lang.String token, @PathVariable java.lang.String hash, @RequestBody Interaction interaction)
@GetMapping(value="/optimization-options") public OptimizationOptionsDTO optimizationAlgorithms()
@GetMapping(value="/dto") public reactor.core.publisher.Mono<OptimizationDto> dto()
@PostMapping(value="/optimize") public reactor.core.publisher.Mono<OptimizationInfo> optimize(@RequestBody OptimizationDto optimizationDto)