About 87 results
Open links in new tab
  1. java - When to use @QueryParam vs @PathParam - Stack Overflow

    Jul 19, 2012 · Ver 4 has been approved as an OASIS standard and libraries exists for oData for various languages including Java via Apache Olingo. Don't let the fact that it's a spawn from …

  2. json - How to use @PathParam? - Stack Overflow

    Oct 22, 2012 · A @PathParam is not a @QueryParam. Its name is derived from its position in the query path, not by a give name like empno=1. Since your @Path is …

  3. java - REST API, when to use @PathParam, @QueryParam, …

    Jul 12, 2018 · 1. @PathParam. PathParam is generally used to get to a Resource using it's id. Eg. /employees/{emp_id} Usually it's a HTTP response code 404 if you don't find an Resource by …

  4. What is the difference between @PathParam and @PathVariable

    Sep 3, 2015 · @PathVariable and @PathParam both are used for accessing parameters from URI Template. Differences: As you mention @PathVariable is from spring and @PathParam is …

  5. java - @RequestParam vs @PathVariable - Stack Overflow

    Since Java 8 it also works without ... @PathParam works only if there is a placeholder in the uri ...

  6. java - How to use Custom type for @PathParam? - Stack Overflow

    Mar 23, 2015 · The thing is path parameters come in String form. As per the specification, if we want the have a custom type be injected as a @PathParam, the custom class, should have …

  7. rest - Java RESTful services - What is the difference between ...

    May 2, 2012 · @PathParam binds the value of a URI template parameter or a path segment containing the template parameter to a resource method parameter, resource class field, or …

  8. java - Store @PathParam values from REST call in a list or array ...

    Nov 18, 2014 · Might be a good opportunity to rethink this design. By using /s, we are in a way signifying, with each / that we are trying to locate a different resource.

  9. java - When to use pathParams or QueryParams - Stack Overflow

    Sep 18, 2012 · Is there a rule of thumb as to when one should use path parameters for a URL versus when you should use query parameters? Say I've got a table Invoice with the fields …

  10. java - How to use instance PathParam to create an object - Stack …

    Quoting the @PathParam documentation: The type of the annotated parameter, field or property must either: Be PathSegment, the value will be the final segment of the matching part of the …

Refresh