Choose the URL path that would result in a call to getToken()? (Choose one)

Given the class:

Choose the URL path that would result in a call to getToken()? (Choose one)

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



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Evgen

Evgen

The question is very similar to 21-st.
But the answers are different. An error??

leo yu

leo yu

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