Given the class:
Choose the URL path that would result in a call to getToken()? (Choose one)
A.
/id/value
B.
/resource/id
C.
/resource/id/name
D.
/resource/id/value/token
Given the class:
Choose the URL path that would result in a call to getToken()? (Choose one)
A.
/id/value
B.
/resource/id
C.
/resource/id/name
D.
/resource/id/value/token
I think that the correct answer here is B, not C
Yes you are on right
Correct answer c. It is: @Path(“id/{value}”) @Get
Thanks for the tip Rock I love you
But there is “@Path(“id”)” in the question, not a “@Path(“id/{value}”)”.
I think too, B is correct.
B is correct
not a good question, the exam point is the correct PathParam, the annotation looks like below, otherwise Path(“/resource/id/nameValue”) doesn’t make sense.
@Path(“/resource”)
class Resource{
@GET
@Path(“/id”)
@Produce(“APPICATION_XML”)
public String getToken(@PathParam String nameValue){
}