Commit 09db76a66e705da59dcdafce6f8ef448d43d66d7
1 parent
aaf8ab01
Et on génère tout automatiquement parce qu'on est une feignassse
Showing
5 changed files
with
190 additions
and
36 deletions
Show diff stats
.idea/compiler.xml
... | ... | @@ -6,11 +6,11 @@ |
6 | 6 | <sourceOutputDir name="target/generated-sources/annotations" /> |
7 | 7 | <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> |
8 | 8 | <outputRelativeToContentRoot value="true" /> |
9 | - <module name="gs-rest-service" /> | |
9 | + <module name="etunicorn-server" /> | |
10 | 10 | </profile> |
11 | 11 | </annotationProcessing> |
12 | 12 | <bytecodeTargetLevel> |
13 | - <module name="gs-rest-service" target="1.8" /> | |
13 | + <module name="etunicorn-server" target="1.8" /> | |
14 | 14 | </bytecodeTargetLevel> |
15 | 15 | </component> |
16 | 16 | </project> |
17 | 17 | \ No newline at end of file | ... | ... |
.idea/modules.xml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <project version="4"> |
3 | 3 | <component name="ProjectModuleManager"> |
4 | 4 | <modules> |
5 | - <module fileurl="file://$PROJECT_DIR$/gs-rest-service.iml" filepath="$PROJECT_DIR$/gs-rest-service.iml" /> | |
5 | + <module fileurl="file://$PROJECT_DIR$/etunicorn-server.iml" filepath="$PROJECT_DIR$/etunicorn-server.iml" /> | |
6 | 6 | <module fileurl="file://$PROJECT_DIR$/src/main/main.iml" filepath="$PROJECT_DIR$/src/main/main.iml" /> |
7 | 7 | </modules> |
8 | 8 | </component> | ... | ... |
... | ... | @@ -0,0 +1,124 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="Palette2"> | |
4 | + <group name="Swing"> | |
5 | + <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
6 | + <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" /> | |
7 | + </item> | |
8 | + <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
9 | + <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" /> | |
10 | + </item> | |
11 | + <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
12 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" /> | |
13 | + </item> | |
14 | + <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true"> | |
15 | + <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" /> | |
16 | + </item> | |
17 | + <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
18 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" /> | |
19 | + <initial-values> | |
20 | + <property name="text" value="Button" /> | |
21 | + </initial-values> | |
22 | + </item> | |
23 | + <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
24 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | |
25 | + <initial-values> | |
26 | + <property name="text" value="RadioButton" /> | |
27 | + </initial-values> | |
28 | + </item> | |
29 | + <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
30 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | |
31 | + <initial-values> | |
32 | + <property name="text" value="CheckBox" /> | |
33 | + </initial-values> | |
34 | + </item> | |
35 | + <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
36 | + <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" /> | |
37 | + <initial-values> | |
38 | + <property name="text" value="Label" /> | |
39 | + </initial-values> | |
40 | + </item> | |
41 | + <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
42 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
43 | + <preferred-size width="150" height="-1" /> | |
44 | + </default-constraints> | |
45 | + </item> | |
46 | + <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
47 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
48 | + <preferred-size width="150" height="-1" /> | |
49 | + </default-constraints> | |
50 | + </item> | |
51 | + <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
52 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
53 | + <preferred-size width="150" height="-1" /> | |
54 | + </default-constraints> | |
55 | + </item> | |
56 | + <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
57 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
58 | + <preferred-size width="150" height="50" /> | |
59 | + </default-constraints> | |
60 | + </item> | |
61 | + <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
62 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
63 | + <preferred-size width="150" height="50" /> | |
64 | + </default-constraints> | |
65 | + </item> | |
66 | + <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
67 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
68 | + <preferred-size width="150" height="50" /> | |
69 | + </default-constraints> | |
70 | + </item> | |
71 | + <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
72 | + <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" /> | |
73 | + </item> | |
74 | + <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
75 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
76 | + <preferred-size width="150" height="50" /> | |
77 | + </default-constraints> | |
78 | + </item> | |
79 | + <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
80 | + <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3"> | |
81 | + <preferred-size width="150" height="50" /> | |
82 | + </default-constraints> | |
83 | + </item> | |
84 | + <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
85 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
86 | + <preferred-size width="150" height="50" /> | |
87 | + </default-constraints> | |
88 | + </item> | |
89 | + <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
90 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | |
91 | + <preferred-size width="200" height="200" /> | |
92 | + </default-constraints> | |
93 | + </item> | |
94 | + <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
95 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | |
96 | + <preferred-size width="200" height="200" /> | |
97 | + </default-constraints> | |
98 | + </item> | |
99 | + <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
100 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | |
101 | + </item> | |
102 | + <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
103 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | |
104 | + </item> | |
105 | + <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
106 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" /> | |
107 | + </item> | |
108 | + <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
109 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" /> | |
110 | + </item> | |
111 | + <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
112 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1"> | |
113 | + <preferred-size width="-1" height="20" /> | |
114 | + </default-constraints> | |
115 | + </item> | |
116 | + <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
117 | + <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" /> | |
118 | + </item> | |
119 | + <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
120 | + <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" /> | |
121 | + </item> | |
122 | + </group> | |
123 | + </component> | |
124 | +</project> | |
0 | 125 | \ No newline at end of file | ... | ... |
api.raml
... | ... | @@ -5,6 +5,7 @@ version: v1 |
5 | 5 | |
6 | 6 | securitySchemes: |
7 | 7 | - oauth_2_0: |
8 | + settings: | |
8 | 9 | description: Il faut un token OAuth 2.0 pour utiliser cette API |
9 | 10 | type: OAuth 2.0 |
10 | 11 | describedBy: |
... | ... | @@ -594,37 +595,37 @@ securitySchemes: |
594 | 595 | } |
595 | 596 | ] |
596 | 597 | /consomation: |
597 | - post: | |
598 | - description: Permet de faire payer ou de crediter un Compte. >0 la personne a crediter de l'argent. <0 la personne a été débité. | |
599 | - queryParameters: | |
600 | - participant: | |
601 | - type: integer | |
602 | - required: true | |
603 | - description: L'identifiant de la personne qui utilise son compte | |
604 | - id: | |
605 | - type: integer | |
606 | - required: true | |
607 | - description: l'indentification de la consomation qui vient d'être payé | |
608 | - responses: | |
609 | - 201: | |
610 | - description: La consomation a été bien payé | |
611 | - /evenement: | |
612 | - post: | |
613 | - description: | |
614 | - queryParameters: | |
615 | - participant: | |
616 | - type: integer | |
617 | - required: true | |
618 | - description: L'identifiant de la personne qui utilise son compte | |
619 | - id: | |
620 | - type: integer | |
621 | - required: true | |
622 | - description: l'identifiant de l'evenement | |
623 | - responses: | |
624 | - 201: | |
625 | - description: L'evenement a bien été payé | |
598 | + post: | |
599 | + description: Permet de faire payer ou de crediter un Compte. >0 la personne a crediter de l'argent. <0 la personne a été débité. | |
600 | + queryParameters: | |
601 | + participant: | |
602 | + type: integer | |
603 | + required: true | |
604 | + description: L'identifiant de la personne qui utilise son compte | |
605 | + id: | |
606 | + type: integer | |
607 | + required: true | |
608 | + description: l'indentification de la consomation qui vient d'être payé | |
609 | + responses: | |
610 | + 201: | |
611 | + description: La consomation a été bien payé | |
612 | + /evenement: | |
613 | + post: | |
614 | + description: | |
615 | + queryParameters: | |
616 | + participant: | |
617 | + type: integer | |
618 | + required: true | |
619 | + description: L'identifiant de la personne qui utilise son compte | |
620 | + id: | |
621 | + type: integer | |
622 | + required: true | |
623 | + description: l'identifiant de l'evenement | |
624 | + responses: | |
625 | + 201: | |
626 | + description: L'evenement a bien été payé | |
626 | 627 | /credit: |
627 | - post: | |
628 | + post: | |
628 | 629 | description: Permet de recharger un compte |
629 | 630 | queryParameters: |
630 | 631 | participant: |
... | ... | @@ -706,4 +707,4 @@ securitySchemes: |
706 | 707 | "date": "2003-12-01", |
707 | 708 | "prix": -25.23 |
708 | 709 | } |
709 | 710 | - ] |
711 | + ] | |
710 | 712 | \ No newline at end of file | ... | ... |
pom.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 | |
6 | 6 | <groupId>org.springframework</groupId> |
7 | - <artifactId>gs-rest-service</artifactId> | |
7 | + <artifactId>etunicorn-server</artifactId> | |
8 | 8 | <version>0.1.0</version> |
9 | 9 | |
10 | 10 | <parent> |
... | ... | @@ -41,6 +41,35 @@ |
41 | 41 | <groupId>org.springframework.boot</groupId> |
42 | 42 | <artifactId>spring-boot-maven-plugin</artifactId> |
43 | 43 | </plugin> |
44 | + <plugin> | |
45 | + <groupId>com.phoenixnap.oss</groupId> | |
46 | + <artifactId>springmvc-raml-plugin</artifactId> | |
47 | + <version>0.8.9</version> | |
48 | + <configuration> | |
49 | + <ramlPath>api.raml</ramlPath> | |
50 | + <outputRelativePath>/src/main/java</outputRelativePath> | |
51 | + <addTimestampFolder>false</addTimestampFolder> | |
52 | + <basePackage>etunicorn</basePackage> | |
53 | + <baseUri>/v1</baseUri> | |
54 | + <generateUnreferencedSchemas>true</generateUnreferencedSchemas> | |
55 | + <generationConfig> | |
56 | + <includeAdditionalProperties>true</includeAdditionalProperties> | |
57 | + </generationConfig> | |
58 | + <seperateMethodsByContentType>false</seperateMethodsByContentType> | |
59 | + <rule>com.phoenixnap.oss.ramlapisync.generation.rule.Spring4ControllerStubRule</rule> | |
60 | + <ruleConfiguration> | |
61 | + </ruleConfiguration> | |
62 | + </configuration> | |
63 | + <executions> | |
64 | + <execution> | |
65 | + <id>generate-springmvc-endpoints</id> | |
66 | + <phase>compile</phase> | |
67 | + <goals> | |
68 | + <goal>generate-springmvc-endpoints</goal> | |
69 | + </goals> | |
70 | + </execution> | |
71 | + </executions> | |
72 | + </plugin> | |
44 | 73 | </plugins> |
45 | 74 | </build> |
46 | 75 | ... | ... |