Skip to content

Commit

Permalink
Pass the header values to PATCH or POST during PUTImport
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Dec 1, 2023
1 parent ebf8d41 commit c18aaa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/computate/frFR/java/EcrireApiClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,7 @@ public void ecrireGenApiServiceImpl2(String classeLangueNom) throws Exception {
tl(6, "params.put(\"body\", ", classeLangueConfig.getString(ConfigCles.var_requeteSite), ".getJsonObject());");
tl(6, "params.put(\"path\", new JsonObject());");
tl(6, "params.put(\"cookie\", new JsonObject());");
tl(6, "params.put(\"header\", new JsonObject());");
tl(6, "params.put(\"header\", ", classeLangueConfig.getString(ConfigCles.var_requeteSite), ".get", classeLangueConfig.getString(ConfigCles.var_RequeteService), "().getParams().getJsonObject(\"header\"));");
tl(6, "params.put(\"form\", new JsonObject());");
tl(6, "JsonObject query = new JsonObject();");
tl(6, "Boolean softCommit = Optional.ofNullable(", classeLangueConfig.getString(ConfigCles.var_requeteSite), ".get", classeLangueConfig.getString(ConfigCles.var_RequeteService), "().getParams()).map(p -> p.getJsonObject(\"query\")).map( q -> q.getBoolean(\"softCommit\")).orElse(null);");
Expand Down Expand Up @@ -2239,7 +2239,7 @@ else if(classeApiMethode.equals(classeLangueConfig.getString(ConfigCles.var_PUTF
tl(5, "params.put(\"body\", obj);");
tl(5, "params.put(\"path\", new JsonObject());");
tl(5, "params.put(\"cookie\", new JsonObject());");
tl(5, "params.put(\"header\", new JsonObject());");
tl(5, "params.put(\"header\", ", classeLangueConfig.getString(ConfigCles.var_requeteSite), ".get", classeLangueConfig.getString(ConfigCles.var_RequeteService), "().getParams().getJsonObject(\"header\"));");
tl(5, "params.put(\"form\", new JsonObject());");
tl(5, "JsonObject query = new JsonObject();");
tl(5, "Boolean softCommit = Optional.ofNullable(", classeLangueConfig.getString(ConfigCles.var_requeteSite), ".get", classeLangueConfig.getString(ConfigCles.var_RequeteService), "().getParams()).map(p -> p.getJsonObject(\"query\")).map( q -> q.getBoolean(\"softCommit\")).orElse(null);");
Expand Down Expand Up @@ -3901,7 +3901,7 @@ public void ecrireGenApiServiceImpl3(String classeLangueNom) throws Exception {
tl(5, "JsonObject params = new JsonObject();");
tl(5, "params.put(\"body\", new JsonObject());");
tl(5, "params.put(\"cookie\", new JsonObject());");
tl(5, "params.put(\"header\", new JsonObject());");
tl(5, "params.put(\"header\", ", classeLangueConfig.getString(ConfigCles.var_requeteSite), ".get", classeLangueConfig.getString(ConfigCles.var_RequeteService), "().getParams().getJsonObject(\"header\"));");
tl(5, "params.put(\"form\", new JsonObject());");
tl(5, "params.put(\"path\", new JsonObject());");
tl(5, "JsonObject query = new JsonObject();");
Expand Down

0 comments on commit c18aaa9

Please sign in to comment.