add root path
This commit is contained in:
parent
34f38a81ae
commit
dabcd87485
@ -0,0 +1,9 @@
|
||||
package com.covas.ApplicationScoped;
|
||||
|
||||
import javax.ws.rs.ApplicationPath;
|
||||
import javax.ws.rs.core.Application;
|
||||
|
||||
@ApplicationPath("/api")
|
||||
public class ApplicationRoot extends Application {
|
||||
|
||||
}
|
@ -13,7 +13,7 @@ import org.jboss.logging.Logger;
|
||||
|
||||
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Path("/api/users")
|
||||
@Path("users")
|
||||
public class UsersRessources {
|
||||
private static final Logger LOGGER = Logger.getLogger(UsersRessources.class);
|
||||
@GET
|
||||
|
@ -12,7 +12,7 @@ public class GreetingResourceTest {
|
||||
@Test
|
||||
public void testHelloEndpoint() {
|
||||
given()
|
||||
.when().get("/hello")
|
||||
.when().get("/api/hello")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body(is("Hello RESTEasy"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user