Commit 278d4ffc82b040ebc56ac3ed59900ecee4e786d6
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/main/java/etunicorn/generated/TransactionController.java # src/main/java/etunicorn/generated/model/UpdateCreditRequest.java
Showing
6 changed files
with
70 additions
and
50 deletions
Show diff stats
api.raml
@@ -115,8 +115,9 @@ version: v1 | @@ -115,8 +115,9 @@ version: v1 | ||
115 | "maxLength": 14 | 115 | "maxLength": 14 |
116 | }, | 116 | }, |
117 | "naissance": { | 117 | "naissance": { |
118 | - "type": "date", | ||
119 | - "required": false | 118 | + "type": "string", |
119 | + "required": false, | ||
120 | + "format": "date" | ||
120 | }, | 121 | }, |
121 | "login": { | 122 | "login": { |
122 | "type": "string", | 123 | "type": "string", |
@@ -158,8 +159,9 @@ version: v1 | @@ -158,8 +159,9 @@ version: v1 | ||
158 | "maxLength": 14 | 159 | "maxLength": 14 |
159 | }, | 160 | }, |
160 | "naissance": { | 161 | "naissance": { |
161 | - "type": "date", | ||
162 | - "required": false | 162 | + "type": "string", |
163 | + "required": false, | ||
164 | + "format": "date" | ||
163 | }, | 165 | }, |
164 | "login": { | 166 | "login": { |
165 | "type": "string", | 167 | "type": "string", |
@@ -335,8 +337,9 @@ version: v1 | @@ -335,8 +337,9 @@ version: v1 | ||
335 | "required": true | 337 | "required": true |
336 | }, | 338 | }, |
337 | "date": { | 339 | "date": { |
338 | - "type": "date", | ||
339 | - "required": true | 340 | + "type": "string", |
341 | + "required": true, | ||
342 | + "format": "date" | ||
340 | } | 343 | } |
341 | } | 344 | } |
342 | } | 345 | } |
@@ -370,8 +373,9 @@ version: v1 | @@ -370,8 +373,9 @@ version: v1 | ||
370 | "required": false | 373 | "required": false |
371 | }, | 374 | }, |
372 | "date": { | 375 | "date": { |
373 | - "type": "date", | ||
374 | - "required": false | 376 | + "type": "string", |
377 | + "required": false, | ||
378 | + "format": "date" | ||
375 | } | 379 | } |
376 | } | 380 | } |
377 | } | 381 | } |
src/main/java/etunicorn/generated/TransactionController.java
@@ -26,54 +26,54 @@ public interface TransactionController { | @@ -26,54 +26,54 @@ public interface TransactionController { | ||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | @RequestMapping(value = "", method = RequestMethod.GET) | 28 | @RequestMapping(value = "", method = RequestMethod.GET) |
29 | - ResponseEntity<?> getTransaction(); | 29 | + public ResponseEntity<?> getTransaction(); |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Achat d'une consomation (id) par un participant à un acteur | 32 | * Achat d'une consomation (id) par un participant à un acteur |
33 | * | 33 | * |
34 | */ | 34 | */ |
35 | @RequestMapping(value = "/consommation", method = RequestMethod.POST) | 35 | @RequestMapping(value = "/consommation", method = RequestMethod.POST) |
36 | - ResponseEntity<?> updateConsommation( | ||
37 | - @javax.validation.Valid | ||
38 | - @org.springframework.web.bind.annotation.RequestBody | ||
39 | - UpdateConsommationRequest updateConsommationRequest); | 36 | + public ResponseEntity<?> updateConsommation( |
37 | + @javax.validation.Valid | ||
38 | + @org.springframework.web.bind.annotation.RequestBody | ||
39 | + UpdateConsommationRequest updateConsommationRequest); | ||
40 | 40 | ||
41 | /** | 41 | /** |
42 | * No description | 42 | * No description |
43 | * | 43 | * |
44 | */ | 44 | */ |
45 | @RequestMapping(value = "/evenement", method = RequestMethod.POST) | 45 | @RequestMapping(value = "/evenement", method = RequestMethod.POST) |
46 | - ResponseEntity<?> updateEvenement( | ||
47 | - @javax.validation.Valid | ||
48 | - @org.springframework.web.bind.annotation.RequestBody | ||
49 | - UpdateEvenementRequest updateEvenementRequest); | 46 | + public ResponseEntity<?> updateEvenement( |
47 | + @javax.validation.Valid | ||
48 | + @org.springframework.web.bind.annotation.RequestBody | ||
49 | + UpdateEvenementRequest updateEvenementRequest); | ||
50 | 50 | ||
51 | /** | 51 | /** |
52 | * Permet de recharger ou debiter un compte | 52 | * Permet de recharger ou debiter un compte |
53 | * | 53 | * |
54 | */ | 54 | */ |
55 | @RequestMapping(value = "/credit", method = RequestMethod.POST) | 55 | @RequestMapping(value = "/credit", method = RequestMethod.POST) |
56 | - ResponseEntity<?> updateCredit( | ||
57 | - @javax.validation.Valid | ||
58 | - @org.springframework.web.bind.annotation.RequestBody | ||
59 | - UpdateCreditRequest updateCreditRequest); | 56 | + public ResponseEntity<?> updateCredit( |
57 | + @javax.validation.Valid | ||
58 | + @org.springframework.web.bind.annotation.RequestBody | ||
59 | + UpdateCreditRequest updateCreditRequest); | ||
60 | 60 | ||
61 | /** | 61 | /** |
62 | * Permet de recuperer la liste des transaction d'une personne | 62 | * Permet de recuperer la liste des transaction d'une personne |
63 | * | 63 | * |
64 | */ | 64 | */ |
65 | @RequestMapping(value = "/{idPersonne}", method = RequestMethod.GET) | 65 | @RequestMapping(value = "/{idPersonne}", method = RequestMethod.GET) |
66 | - ResponseEntity<?> getTransactionByIdPersonne( | ||
67 | - @PathVariable | ||
68 | - Long idPersonne); | 66 | + public ResponseEntity<?> getTransactionByIdPersonne( |
67 | + @PathVariable | ||
68 | + Long idPersonne); | ||
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Permet de recuperer la liste des transaction d'une personne | 71 | * Permet de recuperer la liste des transaction d'une personne |
72 | * | 72 | * |
73 | */ | 73 | */ |
74 | @RequestMapping(value = "/acteur/{idPersonne}", method = RequestMethod.GET) | 74 | @RequestMapping(value = "/acteur/{idPersonne}", method = RequestMethod.GET) |
75 | - ResponseEntity<?> getActeurByIdPersonne( | ||
76 | - @PathVariable | ||
77 | - Long idPersonne); | 75 | + public ResponseEntity<?> getActeurByIdPersonne( |
76 | + @PathVariable | ||
77 | + Long idPersonne); | ||
78 | 78 | ||
79 | } | 79 | } |
src/main/java/etunicorn/generated/model/UpdateCreditRequest.java
1 | 1 | ||
2 | package etunicorn.generated.model; | 2 | package etunicorn.generated.model; |
3 | 3 | ||
4 | -import com.fasterxml.jackson.annotation.*; | 4 | +import java.util.HashMap; |
5 | +import java.util.Map; | ||
6 | +import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
7 | +import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
8 | +import com.fasterxml.jackson.annotation.JsonIgnore; | ||
9 | +import com.fasterxml.jackson.annotation.JsonInclude; | ||
10 | +import com.fasterxml.jackson.annotation.JsonProperty; | ||
11 | +import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
5 | import org.apache.commons.lang.builder.EqualsBuilder; | 12 | import org.apache.commons.lang.builder.EqualsBuilder; |
6 | import org.apache.commons.lang.builder.HashCodeBuilder; | 13 | import org.apache.commons.lang.builder.HashCodeBuilder; |
7 | import org.apache.commons.lang.builder.ToStringBuilder; | 14 | import org.apache.commons.lang.builder.ToStringBuilder; |
8 | 15 | ||
9 | -import java.util.HashMap; | ||
10 | -import java.util.Map; | ||
11 | - | ||
12 | @JsonInclude(JsonInclude.Include.NON_NULL) | 16 | @JsonInclude(JsonInclude.Include.NON_NULL) |
13 | @JsonPropertyOrder({ | 17 | @JsonPropertyOrder({ |
14 | - "participant", | ||
15 | - "prix" | 18 | + "participant", |
19 | + "prix" | ||
16 | }) | 20 | }) |
17 | public class UpdateCreditRequest { | 21 | public class UpdateCreditRequest { |
18 | 22 | ||
19 | /** | 23 | /** |
24 | + * | ||
20 | * (Required) | 25 | * (Required) |
26 | + * | ||
21 | */ | 27 | */ |
22 | @JsonProperty("participant") | 28 | @JsonProperty("participant") |
23 | private Object participant; | 29 | private Object participant; |
24 | /** | 30 | /** |
31 | + * | ||
25 | * (Required) | 32 | * (Required) |
33 | + * | ||
26 | */ | 34 | */ |
27 | @JsonProperty("prix") | 35 | @JsonProperty("prix") |
28 | private Float prix; | 36 | private Float prix; |
@@ -30,9 +38,11 @@ public class UpdateCreditRequest { | @@ -30,9 +38,11 @@ public class UpdateCreditRequest { | ||
30 | private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | 38 | private Map<String, Object> additionalProperties = new HashMap<String, Object>(); |
31 | 39 | ||
32 | /** | 40 | /** |
41 | + * | ||
33 | * (Required) | 42 | * (Required) |
34 | - * | ||
35 | - * @return The participant | 43 | + * |
44 | + * @return | ||
45 | + * The participant | ||
36 | */ | 46 | */ |
37 | @JsonProperty("participant") | 47 | @JsonProperty("participant") |
38 | public Object getParticipant() { | 48 | public Object getParticipant() { |
@@ -40,9 +50,11 @@ public class UpdateCreditRequest { | @@ -40,9 +50,11 @@ public class UpdateCreditRequest { | ||
40 | } | 50 | } |
41 | 51 | ||
42 | /** | 52 | /** |
53 | + * | ||
43 | * (Required) | 54 | * (Required) |
44 | - * | ||
45 | - * @param participant The participant | 55 | + * |
56 | + * @param participant | ||
57 | + * The participant | ||
46 | */ | 58 | */ |
47 | @JsonProperty("participant") | 59 | @JsonProperty("participant") |
48 | public void setParticipant(Object participant) { | 60 | public void setParticipant(Object participant) { |
@@ -50,9 +62,11 @@ public class UpdateCreditRequest { | @@ -50,9 +62,11 @@ public class UpdateCreditRequest { | ||
50 | } | 62 | } |
51 | 63 | ||
52 | /** | 64 | /** |
65 | + * | ||
53 | * (Required) | 66 | * (Required) |
54 | - * | ||
55 | - * @return The prix | 67 | + * |
68 | + * @return | ||
69 | + * The prix | ||
56 | */ | 70 | */ |
57 | @JsonProperty("prix") | 71 | @JsonProperty("prix") |
58 | public Float getPrix() { | 72 | public Float getPrix() { |
@@ -60,9 +74,11 @@ public class UpdateCreditRequest { | @@ -60,9 +74,11 @@ public class UpdateCreditRequest { | ||
60 | } | 74 | } |
61 | 75 | ||
62 | /** | 76 | /** |
77 | + * | ||
63 | * (Required) | 78 | * (Required) |
64 | - * | ||
65 | - * @param prix The prix | 79 | + * |
80 | + * @param prix | ||
81 | + * The prix | ||
66 | */ | 82 | */ |
67 | @JsonProperty("prix") | 83 | @JsonProperty("prix") |
68 | public void setPrix(Float prix) { | 84 | public void setPrix(Float prix) { |
src/main/java/etunicorn/generated/model/UpdateEvenementByIdRequest.java
@@ -35,7 +35,7 @@ public class UpdateEvenementByIdRequest { | @@ -35,7 +35,7 @@ public class UpdateEvenementByIdRequest { | ||
35 | * | 35 | * |
36 | */ | 36 | */ |
37 | @JsonProperty("date") | 37 | @JsonProperty("date") |
38 | - private Object date; | 38 | + private String date; |
39 | @JsonIgnore | 39 | @JsonIgnore |
40 | private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | 40 | private Map<String, Object> additionalProperties = new HashMap<String, Object>(); |
41 | 41 | ||
@@ -85,7 +85,7 @@ public class UpdateEvenementByIdRequest { | @@ -85,7 +85,7 @@ public class UpdateEvenementByIdRequest { | ||
85 | * The date | 85 | * The date |
86 | */ | 86 | */ |
87 | @JsonProperty("date") | 87 | @JsonProperty("date") |
88 | - public Object getDate() { | 88 | + public String getDate() { |
89 | return date; | 89 | return date; |
90 | } | 90 | } |
91 | 91 | ||
@@ -95,7 +95,7 @@ public class UpdateEvenementByIdRequest { | @@ -95,7 +95,7 @@ public class UpdateEvenementByIdRequest { | ||
95 | * The date | 95 | * The date |
96 | */ | 96 | */ |
97 | @JsonProperty("date") | 97 | @JsonProperty("date") |
98 | - public void setDate(Object date) { | 98 | + public void setDate(String date) { |
99 | this.date = date; | 99 | this.date = date; |
100 | } | 100 | } |
101 | 101 |
src/main/java/etunicorn/generated/model/UpdatePersonneByIdRequest.java
@@ -31,7 +31,7 @@ public class UpdatePersonneByIdRequest { | @@ -31,7 +31,7 @@ public class UpdatePersonneByIdRequest { | ||
31 | * | 31 | * |
32 | */ | 32 | */ |
33 | @JsonProperty("naissance") | 33 | @JsonProperty("naissance") |
34 | - private Object naissance; | 34 | + private String naissance; |
35 | /** | 35 | /** |
36 | * | 36 | * |
37 | */ | 37 | */ |
@@ -71,7 +71,7 @@ public class UpdatePersonneByIdRequest { | @@ -71,7 +71,7 @@ public class UpdatePersonneByIdRequest { | ||
71 | * The naissance | 71 | * The naissance |
72 | */ | 72 | */ |
73 | @JsonProperty("naissance") | 73 | @JsonProperty("naissance") |
74 | - public Object getNaissance() { | 74 | + public String getNaissance() { |
75 | return naissance; | 75 | return naissance; |
76 | } | 76 | } |
77 | 77 | ||
@@ -81,7 +81,7 @@ public class UpdatePersonneByIdRequest { | @@ -81,7 +81,7 @@ public class UpdatePersonneByIdRequest { | ||
81 | * The naissance | 81 | * The naissance |
82 | */ | 82 | */ |
83 | @JsonProperty("naissance") | 83 | @JsonProperty("naissance") |
84 | - public void setNaissance(Object naissance) { | 84 | + public void setNaissance(String naissance) { |
85 | this.naissance = naissance; | 85 | this.naissance = naissance; |
86 | } | 86 | } |
87 | 87 |
src/main/java/etunicorn/generated/model/UpdatePersonneRequest.java
@@ -27,7 +27,7 @@ public class UpdatePersonneRequest { | @@ -27,7 +27,7 @@ public class UpdatePersonneRequest { | ||
27 | * | 27 | * |
28 | */ | 28 | */ |
29 | @JsonProperty("naissance") | 29 | @JsonProperty("naissance") |
30 | - private Object naissance; | 30 | + private String naissance; |
31 | /** | 31 | /** |
32 | * | 32 | * |
33 | */ | 33 | */ |
@@ -67,7 +67,7 @@ public class UpdatePersonneRequest { | @@ -67,7 +67,7 @@ public class UpdatePersonneRequest { | ||
67 | * The naissance | 67 | * The naissance |
68 | */ | 68 | */ |
69 | @JsonProperty("naissance") | 69 | @JsonProperty("naissance") |
70 | - public Object getNaissance() { | 70 | + public String getNaissance() { |
71 | return naissance; | 71 | return naissance; |
72 | } | 72 | } |
73 | 73 | ||
@@ -77,7 +77,7 @@ public class UpdatePersonneRequest { | @@ -77,7 +77,7 @@ public class UpdatePersonneRequest { | ||
77 | * The naissance | 77 | * The naissance |
78 | */ | 78 | */ |
79 | @JsonProperty("naissance") | 79 | @JsonProperty("naissance") |
80 | - public void setNaissance(Object naissance) { | 80 | + public void setNaissance(String naissance) { |
81 | this.naissance = naissance; | 81 | this.naissance = naissance; |
82 | } | 82 | } |
83 | 83 |