Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20230403
Overview
Overview
Details
Activity
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
Patryk Czarnik
20230403
Commits
6698bfb2
Commit
6698bfb2
authored
May 25, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adres /hello
parent
614aaa6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
AplikacjaRestowa.java
...RestSerwer/src/main/java/sklep/rest/AplikacjaRestowa.java
+8
-0
Hello.java
PC33-RestSerwer/src/main/java/sklep/rest/Hello.java
+1
-1
No files found.
PC33-RestSerwer/src/main/java/sklep/rest/AplikacjaRestowa.java
View file @
6698bfb2
...
...
@@ -7,3 +7,11 @@ import jakarta.ws.rs.core.Application;
public
class
AplikacjaRestowa
extends
Application
{
}
// W tej wersji cały projekt jest "jedną wielką usługą REST".
// Ale czasami może być być tak, że jest to aplikacja webowa, a tylko jej część działa na asadzie REST.
// stronka.html
// a JS z tej stronki wywołuje zaoytania RESTOWe, aby w formacie JSON pobierać sobie dane
// obsługa zapytań RESTowych może być umieszczona w podkatalogu, np. /api
// → wtedy miałoby sens napisać @ApplicationPath("/api")
PC33-RestSerwer/src/main/java/sklep/rest/Hello.java
View file @
6698bfb2
...
...
@@ -5,7 +5,7 @@ import jakarta.ws.rs.Path;
// Technologia JAX-RS, część Java EE (Jakarata EE)
// Obsługa zapytań HTTP w taki sposób, aby wygodnie realizowało się usługi typu REST.
@Path
(
""
)
@Path
(
"
/hello
"
)
public
class
Hello
{
@GET
...
...
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