Commit 67b84e3a authored by Gabriele Civitarese's avatar Gabriele Civitarese

Adding helloworld

parent 87d1d8cd
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="e6692560-0b5d-4330-a8d0-384142cc3c13" name="Default" comment="" /> <list default="true" id="e6692560-0b5d-4330-a8d0-384142cc3c13" name="Default" comment="">
<change afterPath="$PROJECT_DIR$/services/HelloWorld.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/EsercizioRest/services/UsersService.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/EsercizioRest/services/UsersService.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/services/UsersService.java" beforeDir="false" afterPath="$PROJECT_DIR$/services/UsersService.java" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" /> <ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" /> <option name="TRACKING_ENABLED" value="true" />
...@@ -33,11 +38,27 @@ ...@@ -33,11 +38,27 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="UsersService.java" pinned="false" current-in-tab="true"> <file leaf-file-name="UsersService.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/services/UsersService.java"> <entry file="file://$PROJECT_DIR$/services/UsersService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140"> <state relative-caret-position="126">
<caret line="33" column="28" selection-start-line="33" selection-start-column="28" selection-end-line="33" selection-end-column="28" /> <caret line="16" selection-start-line="16" selection-end-line="16" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="HelloWorld.java" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/services/HelloWorld.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="414">
<caret line="23" column="17" selection-start-line="23" selection-start-column="17" selection-end-line="23" selection-end-column="17" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#333#334#0" expanded="true" />
<element signature="e#357#358#0" expanded="true" />
<element signature="e#463#464#0" expanded="true" />
<element signature="e#488#489#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -53,10 +74,21 @@ ...@@ -53,10 +74,21 @@
</file> </file>
</leaf> </leaf>
</component> </component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Class" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory"> <component name="IdeDocumentHistory">
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/services/UsersService.java" /> <option value="$PROJECT_DIR$/services/UsersService.java" />
<option value="$PROJECT_DIR$/services/HelloWorld.java" />
</list> </list>
</option> </option>
</component> </component>
...@@ -71,6 +103,7 @@ ...@@ -71,6 +103,7 @@
<option name="width" value="1264" /> <option name="width" value="1264" />
<option name="height" value="798" /> <option name="height" value="798" />
</component> </component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView"> <component name="ProjectView">
<navigator proportions="" version="1"> <navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" /> <foldersAlwaysOnTop value="true" />
...@@ -223,12 +256,12 @@ ...@@ -223,12 +256,12 @@
<option name="number" value="Default" /> <option name="number" value="Default" />
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1525364520924</updated> <updated>1525364520924</updated>
<workItem from="1525364522466" duration="530000" /> <workItem from="1525364522466" duration="1369000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="530000" /> <option name="totallyTimeSpent" value="1369000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-1" y="24" width="1922" height="1033" extended-state="6" /> <frame x="-1" y="24" width="1922" height="1033" extended-state="6" />
...@@ -244,12 +277,12 @@ ...@@ -244,12 +277,12 @@
<window_info anchor="bottom" id="Event Log" side_tool="true" /> <window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="right" id="Maven Projects" /> <window_info anchor="right" id="Maven Projects" />
<window_info anchor="bottom" id="Database Changes" show_stripe_button="false" /> <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32890365" /> <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32963374" />
<window_info anchor="bottom" id="Version Control" show_stripe_button="false" /> <window_info anchor="bottom" id="Version Control" />
<window_info anchor="bottom" id="Terminal" /> <window_info anchor="bottom" id="Terminal" />
<window_info id="Capture Tool" /> <window_info id="Capture Tool" />
<window_info id="Designer" /> <window_info id="Designer" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2497332" /> <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2497332" />
<window_info anchor="right" id="Database" /> <window_info anchor="right" id="Database" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" /> <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
...@@ -299,8 +332,22 @@ ...@@ -299,8 +332,22 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/services/UsersService.java"> <entry file="file://$PROJECT_DIR$/services/UsersService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140"> <state relative-caret-position="126">
<caret line="33" column="28" selection-start-line="33" selection-start-column="28" selection-end-line="33" selection-end-column="28" /> <caret line="16" selection-start-line="16" selection-end-line="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/services/HelloWorld.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="414">
<caret line="23" column="17" selection-start-line="23" selection-start-column="17" selection-end-line="23" selection-end-column="17" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#333#334#0" expanded="true" />
<element signature="e#357#358#0" expanded="true" />
<element signature="e#463#464#0" expanded="true" />
<element signature="e#488#489#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
......
package services;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path("/helloworld")
public class HelloWorld {
@GET
@Produces("text/plain")
public String helloWorld(){
return "Hello world!";
}
@GET
@Produces("application/json")
public String helloWorld2(){
return "{\"message\": \"helloWorld\"}";
}
@Path("/inner")
@GET
@Produces("text/plain")
public String innerHello(){
return "Inner Hello!";
}
}
...@@ -15,8 +15,6 @@ import javax.ws.rs.core.Response; ...@@ -15,8 +15,6 @@ import javax.ws.rs.core.Response;
@Path("users") @Path("users")
public class UsersService { public class UsersService {
private Users userslist;
//restituisce la lista di utenti //restituisce la lista di utenti
@GET @GET
@Produces({"application/json", "application/xml"}) @Produces({"application/json", "application/xml"})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment