SUPPORT-8664: fix method

This commit is contained in:
gulnaz 2024-11-05 09:41:58 +03:00
parent fe27cfa51d
commit cb8b7d29b9
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ public class ExtractController {
this.replyingKafkaService = replyingKafkaService;
}
@GetMapping(value = "/get-extract/{formatRegistry}")
@GetMapping(value = "/extract/{formatRegistry}")
public ResponseEntity<Resource> getExtract(@PathVariable String formatRegistry) {
ExtractRequestDto request = new ExtractRequestDto(jwtTokenService.getErvuId(), formatRegistry);
byte[] reply = replyingKafkaService.sendMessageAndGetReply(registryExtractRequestTopic,

View file

@ -27,7 +27,7 @@ export class ExtractLoadService extends Behavior {
this.button = this.getScript(AbstractButton);
this.httpClient = this.injector.get(HttpClient);
this.onClickFunction = () => {
this.httpClient.get('get-extract/' + this.formatRegistry, {
this.httpClient.get('extract/' + this.formatRegistry, {
responseType: 'blob',
observe: 'response'
}).toPromise()