Skip to content

Commit

Permalink
Adding support for DELETE request
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Aug 28, 2024
1 parent 0794168 commit 0c8873a
Show file tree
Hide file tree
Showing 7 changed files with 665 additions and 149 deletions.
588 changes: 498 additions & 90 deletions src/main/java/org/computate/frFR/java/EcrireApiClasse.java

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/main/java/org/computate/frFR/java/EcrireGenClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ public class EcrireGenClasse extends EcrireClasse {
*/
protected ToutEcrivain wObtenir;

/**
* Var.enUS: wAttribute
*/
protected ToutEcrivain wAttribuer;

protected ToutEcrivain wAttribuerSql;
Expand Down Expand Up @@ -486,6 +483,8 @@ public class EcrireGenClasse extends EcrireClasse {

protected ToutEcrivain wApiGenererPost;

protected ToutEcrivain wApiGenererDelete;

protected ToutEcrivain wApiGenererPutImport;

protected ToutEcrivain wApiGenererPutCopie;
Expand Down Expand Up @@ -1194,6 +1193,7 @@ public class EcrireGenClasse extends EcrireClasse {
ToutEcrivain wPUTFusion;
ToutEcrivain wPUTCopie;
ToutEcrivain wPATCH;
ToutEcrivain wDELETE;
ToutEcrivain wSuggere;
ToutEcrivain wGetters;
ToutEcrivain wTh;
Expand All @@ -1208,6 +1208,7 @@ public class EcrireGenClasse extends EcrireClasse {
ToutEcrivain wFormPUTCopie;
ToutEcrivain wFormPage;
ToutEcrivain wFormPATCH;
ToutEcrivain wFormDELETE;
ToutEcrivain wJsInit;
ToutEcrivain wJsModuleInit;
ToutEcrivain wWebsocket;
Expand Down Expand Up @@ -1300,6 +1301,7 @@ public void genCodeInit() throws Exception {
wApiGenererGet = ToutEcrivain.create();
wApiAvantPost = ToutEcrivain.create();
wApiGenererPost = ToutEcrivain.create();
wApiGenererDelete = ToutEcrivain.create();
wApiGenererPutImport = ToutEcrivain.create();
wApiGenererPutCopie = ToutEcrivain.create();
wApiGenererPutFusion = ToutEcrivain.create();
Expand Down
213 changes: 157 additions & 56 deletions src/main/java/org/computate/frFR/java/EcrirePageClasse.java

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/java/org/computate/frFR/java/I18n.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public class I18n {
public static final String var_DeNom = "var_DeNom";
public static final String var_dernier = "var_dernier";
public static final String var_Dernier = "var_Dernier";
public static final String var_desattribuer = "var_desattribuer";
public static final String var_Description = "var_Description";
public static final String var_description = "var_description";
public static final String var_DescriptionAlternatif = "var_DescriptionAlternatif";
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/computate/frFR/java/IndexerClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -5112,6 +5112,7 @@ else if(StringUtils.contains(classeApiMethode, "PUT"))
|| StringUtils.contains(classeApiMethode, i18nGlobale.getString(I18n.var_Recherche))
|| StringUtils.contains(classeApiMethode, "PATCH")
|| StringUtils.contains(classeApiMethode, "PUT")
|| StringUtils.contains(classeApiMethode, "DELETE")
) {
if(StringUtils.isBlank(classeApiMotCleMethode))
classeApiMotCleMethode = StringUtils.substringAfterLast(classeApiUriMethode, "/");
Expand All @@ -5138,6 +5139,7 @@ else if(i18nGlobale.getString(I18n.var_PUTFusion).equals(classeApiMethode))
if(StringUtils.contains(classeApiMethode, "POST")
|| StringUtils.contains(classeApiMethode, "PATCH")
|| StringUtils.contains(classeApiMethode, "PUT")
|| StringUtils.contains(classeApiMethode, "DELETE")
) {
indexerStockerSolr(langueNom, classeDoc, "classeApiTypeMediaRequete" + classeApiMethode, classeApiTypeMediaRequeteMethode);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/org/computate/i18n/i18n_enUS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ var_DeNom: "OfName"
var_de: "of"
var_dernier: "last"
var_Dernier: "Last"
var_desattribuer: "unrelate"
var_Description: "Description"
var_description: "description"
var_DescriptionAlternatif: "AlternateDescription"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/org/computate/i18n/i18n_frFR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ var_Valeur: "Valeur"
var_valide: "valide"
var_Valider: "Accepter"
var_VarCree: "VarCree"
var_desattribuer: "desattribuer"
var_VarDescription: "VarDescription"
var_VarModifie: "VarModifie"
var_VARS_CHEMIN: "VARS_CHEMIN"
Expand Down

0 comments on commit 0c8873a

Please sign in to comment.