From 673dff18235d19dd6e590b36306d827d1bbdd209 Mon Sep 17 00:00:00 2001 From: "paul.bourseau" Date: Tue, 25 Jun 2024 11:08:54 +0200 Subject: [PATCH 1/2] fix(cdr): postCdr http method is POST instead of PUT --- .../kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt b/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt index 9bf1d993..b86e9ff0 100644 --- a/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt +++ b/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt @@ -46,7 +46,7 @@ class CdrsCpoClient( with(buildTransport()) { send( HttpRequest( - method = HttpMethod.PUT, + method = HttpMethod.POST, path = "/${cdr.id}", body = mapper.writeValueAsString(cdr) ).withRequiredHeaders( From 3139425850e3633f99abf96e43ab68f9247f9a92 Mon Sep 17 00:00:00 2001 From: "paul.bourseau" Date: Fri, 28 Jun 2024 15:03:15 +0200 Subject: [PATCH 2/2] fix(cdr): POST does not require an id --- .../kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt b/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt index b86e9ff0..c6edad10 100644 --- a/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt +++ b/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/modules/cdr/CdrsCpoClient.kt @@ -47,7 +47,6 @@ class CdrsCpoClient( send( HttpRequest( method = HttpMethod.POST, - path = "/${cdr.id}", body = mapper.writeValueAsString(cdr) ).withRequiredHeaders( requestId = generateRequestId(),