From 23741deff713d5c865c13aa3a8cac73795d969e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thierry=20G=C3=B6ckel?= Date: Thu, 9 Jul 2020 10:06:17 +0200 Subject: [PATCH] DEV: Use appropriate HTTP request type. --- .../red/service/redaction/v1/resources/RedactionResource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redaction-service-v1/redaction-service-api-v1/src/main/java/com/iqser/red/service/redaction/v1/resources/RedactionResource.java b/redaction-service-v1/redaction-service-api-v1/src/main/java/com/iqser/red/service/redaction/v1/resources/RedactionResource.java index 379ef36f..464b5799 100644 --- a/redaction-service-v1/redaction-service-api-v1/src/main/java/com/iqser/red/service/redaction/v1/resources/RedactionResource.java +++ b/redaction-service-v1/redaction-service-api-v1/src/main/java/com/iqser/red/service/redaction/v1/resources/RedactionResource.java @@ -1,6 +1,7 @@ package com.iqser.red.service.redaction.v1.resources; import org.springframework.http.MediaType; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -23,7 +24,7 @@ public interface RedactionResource { @PostMapping(value = "/debug/htmlTables", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) RedactionResult htmlTables(@RequestBody RedactionRequest redactionRequest); - @PostMapping(value = "/rules", produces = MediaType.APPLICATION_JSON_VALUE) + @GetMapping(value = "/rules", produces = MediaType.APPLICATION_JSON_VALUE) String getRules(); @PostMapping(value = "/rules/update", consumes = MediaType.APPLICATION_JSON_VALUE)