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
aba3dd67
Commit
aba3dd67
authored
Apr 06, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kasuję przykładowy kod
parent
b37ab4f2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
81 deletions
+0
-81
ApplicationConfig.java
...in/java/pl/alx/kjava/PC25_SklepWeb/ApplicationConfig.java
+0
-23
Hello.java
...main/java/pl/alx/kjava/PC25_SklepWeb/resources/Hello.java
+0
-28
RestResource.java
...va/pl/alx/kjava/PC25_SklepWeb/resources/RestResource.java
+0
-30
No files found.
PC25-SklepWeb/src/main/java/pl/alx/kjava/PC25_SklepWeb/ApplicationConfig.java
deleted
100644 → 0
View file @
b37ab4f2
/********************************************************************************
* Copyright (c) 10/19/2022 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
* v1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
********************************************************************************/
package
pl
.
alx
.
kjava
.
PC25_SklepWeb
;
import
jakarta.ws.rs.ApplicationPath
;
import
jakarta.ws.rs.core.Application
;
@ApplicationPath
(
""
)
public
class
ApplicationConfig
extends
Application
{
}
PC25-SklepWeb/src/main/java/pl/alx/kjava/PC25_SklepWeb/resources/Hello.java
deleted
100644 → 0
View file @
b37ab4f2
/********************************************************************************
* Copyright (c) 10/19/2022 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
* v1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
********************************************************************************/
package
pl
.
alx
.
kjava
.
PC25_SklepWeb
.
resources
;
public
class
Hello
{
private
final
String
text
;
public
Hello
(
String
text
)
{
this
.
text
=
text
;
}
public
String
getText
()
{
return
text
;
}
}
PC25-SklepWeb/src/main/java/pl/alx/kjava/PC25_SklepWeb/resources/RestResource.java
deleted
100644 → 0
View file @
b37ab4f2
/********************************************************************************
* Copyright (c) 10/19/2022 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
* v1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
********************************************************************************/
package
pl
.
alx
.
kjava
.
PC25_SklepWeb
.
resources
;
import
jakarta.ws.rs.GET
;
import
jakarta.ws.rs.core.MediaType
;
import
jakarta.ws.rs.Path
;
import
jakarta.ws.rs.Produces
;
@Path
(
"hello"
)
public
class
RestResource
{
@GET
@Produces
(
MediaType
.
APPLICATION_JSON
)
public
Hello
hello
(){
return
new
Hello
(
"Hello from Jakarta EE"
);
}
}
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