You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Mariano Gonzalez (JIRA)" <ji...@apache.org> on 2016/01/04 16:53:39 UTC

[jira] [Commented] (CAMEL-9312) Rest DSL should support defaulting values for path parameters and query strings

    [ https://issues.apache.org/jira/browse/CAMEL-9312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15081290#comment-15081290 ] 

Mariano Gonzalez commented on CAMEL-9312:
-----------------------------------------

If we take the following JAX-RS endpoint:

````
@GET
@Path("{cardNumber}")
@Description( value = "Get Account Details for provided card number.", target = DocTarget.METHOD )
public String getAccountDetails(@PathParam("cardNumber") final String cardNumber,
						   @DefaultValue("mdm") @QueryParam("hhid") final String houseHoldProvider ) {
	....
}
````

We are able to default query parameters in case the client side does not send it. It will be great if `camel-rest-dsl` allows this same behavior.

Please let me know if I make myself clear.

> Rest DSL should support defaulting values for path parameters and query strings
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-9312
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9312
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core, rest
>    Affects Versions: 2.16.0
>            Reporter: Mariano Gonzalez
>            Priority: Minor
>              Labels: features
>
> Popular restful implementations such as plain JAX-RS or Spring MVC support defaulting values for path parameters and query strings. Camel rest DSL should support this same behavior in order to make easy it to use.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)