Difference between pathparam and QueryParam in Rest.
Pathparam : used get the part of the string from URL.
ex: @Pathparam("id")
ex : http://localhost:8080/voice{id}
QueryParam : using this we are able to access the key,value after from URL after "?"
ex: @QueryParam("id")
ex : http://localhost:8080/voice?id=1009
Pathparam : used get the part of the string from URL.
ex: @Pathparam("id")
ex : http://localhost:8080/voice{id}
QueryParam : using this we are able to access the key,value after from URL after "?"
ex: @QueryParam("id")
ex : http://localhost:8080/voice?id=1009
No comments:
Post a Comment