Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
alx_java2b_20250412
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
alx_java2b_20250412
Commits
8e47d6d0
Commit
8e47d6d0
authored
May 11, 2025
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RestSerwer - początek
parent
99e96b34
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
0 deletions
+100
-0
.gitignore
PC26-RestSerwer/.gitignore
+33
-0
pom.xml
PC26-RestSerwer/pom.xml
+39
-0
AplikacjaRestowa.java
PC26-RestSerwer/src/main/java/rest/AplikacjaRestowa.java
+9
-0
HelloResource.java
PC26-RestSerwer/src/main/java/rest/HelloResource.java
+19
-0
No files found.
PC26-RestSerwer/.gitignore
0 → 100644
View file @
8e47d6d0
/target/
/.mvn/
/mvnw
mvnw.cmd
### IntelliJ IDEA ###
.idea/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings/
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
PC26-RestSerwer/pom.xml
0 → 100644
View file @
8e47d6d0
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
pl.alx.kjava
</groupId>
<artifactId>
PC26-RestSerwer
</artifactId>
<version>
1.0
</version>
<packaging>
war
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.target>
21
</maven.compiler.target>
<maven.compiler.source>
21
</maven.compiler.source>
</properties>
<dependencies>
<dependency>
<groupId>
jakarta.platform
</groupId>
<artifactId>
jakarta.jakartaee-web-api
</artifactId>
<version>
10.0.0
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<build>
<finalName>
${project.artifactId}
</finalName>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
3.4.0
</version>
<configuration>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
PC26-RestSerwer/src/main/java/rest/AplikacjaRestowa.java
0 → 100644
View file @
8e47d6d0
package
rest
;
import
jakarta.ws.rs.ApplicationPath
;
import
jakarta.ws.rs.core.Application
;
@ApplicationPath
(
"/"
)
public
class
AplikacjaRestowa
extends
Application
{
}
PC26-RestSerwer/src/main/java/rest/HelloResource.java
0 → 100644
View file @
8e47d6d0
package
rest
;
import
jakarta.ws.rs.GET
;
import
jakarta.ws.rs.Path
;
@Path
(
"/hello"
)
public
class
HelloResource
{
@GET
public
String
helloWorld
()
{
return
"Hello world"
;
}
@GET
@Path
(
"/x"
)
public
String
helloX
()
{
return
"Hello X"
;
}
}
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