Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
example_rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriele Civitarese
example_rest
Commits
67b84e3a
Commit
67b84e3a
authored
May 03, 2018
by
Gabriele Civitarese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding helloworld
parent
87d1d8cd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
13 deletions
+89
-13
workspace.xml
.idea/workspace.xml
+58
-11
UsersService.class
out/production/EsercizioRest/services/UsersService.class
+0
-0
HelloWorld.java
services/HelloWorld.java
+31
-0
UsersService.java
services/UsersService.java
+0
-2
No files found.
.idea/workspace.xml
View file @
67b84e3a
<?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=
"
tru
e"
>
<file
leaf-file-name=
"UsersService.java"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<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=
"
530
000"
/>
<workItem
from=
"1525364522466"
duration=
"
1369
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
530
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
1369
000"
/>
</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
a
nchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true"
weight=
"0.32890365
"
/>
<window_info
a
ctive=
"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>
...
...
out/production/EsercizioRest/services/UsersService.class
View file @
67b84e3a
No preview for this file type
services/HelloWorld.java
0 → 100644
View file @
67b84e3a
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!"
;
}
}
services/UsersService.java
View file @
67b84e3a
...
@@ -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"
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment