Return-Path: X-Original-To: apmail-incubator-ace-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ace-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CFA27F6C for ; Thu, 3 Nov 2011 16:18:32 +0000 (UTC) Received: (qmail 27003 invoked by uid 500); 3 Nov 2011 16:18:32 -0000 Delivered-To: apmail-incubator-ace-dev-archive@incubator.apache.org Received: (qmail 26947 invoked by uid 500); 3 Nov 2011 16:18:32 -0000 Mailing-List: contact ace-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ace-dev@incubator.apache.org Delivered-To: mailing list ace-dev@incubator.apache.org Received: (qmail 26939 invoked by uid 99); 3 Nov 2011 16:18:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 16:18:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bdekruijff@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vx0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 16:18:26 +0000 Received: by vcbf1 with SMTP id f1so1338073vcb.6 for ; Thu, 03 Nov 2011 09:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=urV5FulWCc3TCKd5ETjUNzoPJYsnzoOYh7+eLkdA+YA=; b=rTiOvNq7q7BblF3oBsJiR1no7FSxN3UjNZEvWeqqEfLHdq/AIVVKaaDKS31nEQHqHT DdVPaCgQ1q4ZvSJE/H906dLNTcWa42iE6Wf4tuG77NGpFNVPmUxOEa4c4BdPS4d+Sq2F BOxOC0gz5DS0oCm6zOyowOeiqluoFCFpU82zA= MIME-Version: 1.0 Received: by 10.52.66.39 with SMTP id c7mr10638885vdt.26.1320337085322; Thu, 03 Nov 2011 09:18:05 -0700 (PDT) Received: by 10.52.116.5 with HTTP; Thu, 3 Nov 2011 09:18:05 -0700 (PDT) In-Reply-To: <20111102120245.3D7C.60BA733C@jeremias-maerki.ch> References: <20111102120245.3D7C.60BA733C@jeremias-maerki.ch> Date: Thu, 3 Nov 2011 17:18:05 +0100 Message-ID: Subject: Re: Client REST API From: Bram de Kruijff To: ace-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Jeremias, On Wed, Nov 2, 2011 at 12:02 PM, Jeremias Maerki wrote: > I'm currently experimenting with the Client REST API. I've pretty much > deciphered the API from the code now, but running some experiments with > curl, I don't get any results. Here's what I did: > > 1. Uploaded a couple of artifacts using the Vaadin interface and created > a feature with the two artifacts added to it. Clicked "Store". > > 2. POST http://localhost:8180/client/work > > -> Returns the session ID: Location: http://localhost:8180/client/work/rest-4 > > 3. GET http://localhost:8180/client/work/rest-4/artifact > > -> Returns "[]" > (same for all other entity types) > > 4. DELETE http://localhost:8180/client/work/rest-4 > > What am I missing? Assuming the "Store" worked and thus a "Retrieve" yields the same state this should work. I just tried this against current trunk and it does work for me. Something fishy is going on... happy hunting! Bram > Thanks, > Jeremias Maerki > >