Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37EAE1805F for ; Fri, 5 Feb 2016 07:59:29 +0000 (UTC) Received: (qmail 26737 invoked by uid 500); 5 Feb 2016 07:59:28 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 26685 invoked by uid 500); 5 Feb 2016 07:59:28 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 26673 invoked by uid 99); 5 Feb 2016 07:59:28 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2016 07:59:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E1124C1571 for ; Fri, 5 Feb 2016 07:59:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.492 X-Spam-Level: X-Spam-Status: No, score=0.492 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fHC7GLvKW4zJ for ; Fri, 5 Feb 2016 07:59:25 +0000 (UTC) Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8FA78439ED for ; Fri, 5 Feb 2016 07:59:25 +0000 (UTC) Received: by mail-ig0-f174.google.com with SMTP id 5so8983494igt.0 for ; Thu, 04 Feb 2016 23:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=l1zCl+W9kGJnu6gSt0YnAyWWt0e8nrrLYlZxwXqM1GU=; b=e2KbseB+5+E4vy6j9CwHwgFwdISBCCYxFuSQ+KnwoCD/YTnfyGAvfeX+V7Wl9lja6I G0deB8M1M5ptdn2zXwALBYcNEi3P7BJhedlM7a31II3Llwq4ImAXxbZWlf0yx1lqN4fD fDUOAjrazlepVa4auuzMF816OXtEGfpEyZdKtDUYqmYAwM8cEKY7NTX6KateSpDl0I2A gNU4yr66oe2av8nvrCKIcl/jKzWwBO4luCjJlrZG4eVTk1D0oAGi3BhXsYpHzcRFzcf4 wvp9207CDnF53tGw5ru8SzseZ5zz1K2s5uhkE+EwyZyz1K/HqST5u23i+1JddkSWSBcc gTEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=l1zCl+W9kGJnu6gSt0YnAyWWt0e8nrrLYlZxwXqM1GU=; b=PMWrykCG1+TrCV3dB+APXAZwLyuguJurnNU+mqb3jHtAI2/FFCb6qM2n5GFBBYlNNR ozZhKzpjeQ7pTa4TOegoVCBfGKpAxZAd4znWDhj11Pw6BCoeeNknXSlXLC+SymCwieVV VXDa7YFW5cYpogaHgjrOjy1og34f2Oo4oNg9ppfNAxqGWZSu4ynLIB4l2MjJ3TBn58wT 4i1M3CNpTJIU/wYHnRkkfTK22CBL894nZSxHeFXXBipsugc4PibMqa3BLxcgs8kVk5qr 5eIalNw6MHqNIyoYWSgB/h0AWncHaakG/Vzrt6AqrccpVpY36poPkt3RluTqhY7K/ds2 9QcQ== X-Gm-Message-State: AG10YOT7motyjLtceQCd3UwZJ+affPcogmPta+wA5r0wj5LMWoDAaQz6hQs8S82uVCDJ0pYegeRbFRpIJAtohw== X-Received: by 10.50.114.197 with SMTP id ji5mr14631792igb.46.1454659165215; Thu, 04 Feb 2016 23:59:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.0.214 with HTTP; Thu, 4 Feb 2016 23:59:05 -0800 (PST) In-Reply-To: <1454658169329-5777255.post@n5.nabble.com> References: <1454658169329-5777255.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 5 Feb 2016 08:59:05 +0100 Message-ID: Subject: Re: Swagger not working To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 Can you try calling the api-doc with an ending slash? And what version of Camel and ServiceMix are you using? And have you installed camel-swagger-java in ServiceMix, you would need to install that also? On Fri, Feb 5, 2016 at 8:42 AM, Gohand wrote: > Hi all > > I'm an absolute newbie to Camel, so please forgive me, if I'm not seeing an > obvious solution. > > I tried using the Swagger component in combination with the Camel REST DSL > in ServiceMix. My Spring XML looks as follows: > host="localhost" port="8080" contextPath="/api" apiContextPath="/api-doc" > apiContextIdPattern="#name#"> > > > > > > > A REST service looks like this: > > Issues rest service > > Returns an single issue > > > > [...] > > The REST service itself works like a charm. I get the correct reply on > hitting http://localhost:8080/api/v1/issues/123 for example. > > If I now try to get the Swagger JSON on http://localhost:8080/api-doc, the > server replies with 404 - not found. There is no error when starting my > bundle or calling the URL. In my opinion, the configuration is exactly as > described in the video https://vimeo.com/140179426 by Claus Ibsen (except > for using Spring XML instead of Java). > > Do you have an idea, why Swagger isn't working? Any help is highly > appreciated. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Swagger-not-working-tp5777255.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2