Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 073A318728 for ; Mon, 4 Jan 2016 15:56:40 +0000 (UTC) Received: (qmail 94732 invoked by uid 500); 4 Jan 2016 15:56:39 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 94687 invoked by uid 500); 4 Jan 2016 15:56:39 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 94671 invoked by uid 99); 4 Jan 2016 15:56:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2016 15:56:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C6D1C2C1F56 for ; Mon, 4 Jan 2016 15:56:39 +0000 (UTC) Date: Mon, 4 Jan 2016 15:56:39 +0000 (UTC) From: "Mariano Gonzalez (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CAMEL-9312) Rest DSL should support defaulting values for path parameters and query strings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15081290#comment-15081290 ] Mariano Gonzalez edited comment on CAMEL-9312 at 1/4/16 3:55 PM: ----------------------------------------------------------------- If we take the following JAX-RS endpoint: {code:java} @GET @Path("{cardNumber}") public String getAccountDetails(@PathParam("cardNumber") final String cardNumber, @DefaultValue("mdm") @QueryParam("houseHoldProvider") final String houseHoldProvider ) { .... } {code} We are able to default query parameter {{houseHoldProvider=mdm}} 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. was (Author: eschizoid): If we take the following JAX-RS endpoint: {code:java} @GET @Path("{cardNumber}") public String getAccountDetails(@PathParam("cardNumber") final String cardNumber, @DefaultValue("mdm") @QueryParam("houseHoldProvider") final String houseHoldProvider ) { .... } {code} We are able to default query parameter `houseHoldProvider=mdm` 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)