Given the class:
Choose the URL path that would result in a call to getToken()? (Choose one)
A.
/id
B.
/resource/id
C.
/resource/id/token
D.
/resource/token
Given the class:
Choose the URL path that would result in a call to getToken()? (Choose one)
A.
/id
B.
/resource/id
C.
/resource/id/token
D.
/resource/token
The question is very similar to 21-st.
But the answers are different. An error??
exam point:
path = :////
@Path(“/resource”)
class Resource{
@GET
@Path(“/id/{idValue}”)
@Produce(“APPICATION_XML”)
public String getToken(@PathParam(“idValue”) String idValue){
}
correct answer is : http://myService/resource/id/123345