Can someone review this commit, please ?
This commit is contained in:
16
src/main/java/com/example/Example.java
Normal file
16
src/main/java/com/example/Example.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.example;
|
||||
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
@Path("/hello")
|
||||
public class Example {
|
||||
|
||||
@GET
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public String hello() {
|
||||
return "Hello from Quarkus REST";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user