/*
 * Copyright 2015, Yahoo Inc.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */
package com.yahoo.gondola.demo;

import javax.inject.Inject;
import javax.ws.rs.*;

@Produces("application/json")
@Consumes("application/json")
@Path("/entries/{entryId}")
public class DemoResources {
    @Inject DemoService service;

    @GET
    public Node getEntry(@PathParam("nodeId") String entryId) {
        return service.getEntry(entryId);
    }

    @PUT
    public void putEntry(Entry entry, @PathParam("entryId") String entryId) {
        service.putEntry(entryId, node);
    }
}

@@ -216,68 +216,8 @@
 *;%0A%0A
-@Produces(%22application/json%22)%0A@Consumes(%22application/json%22)%0A
 @Pat
@@ -327,12 +327,14 @@
 lic 
-Node
+String
  get
@@ -351,20 +351,21 @@
 hParam(%22
-node
+entry
 Id%22) Str
@@ -419,16 +419,27 @@
 entryId)
+.getValue()
 ;%0A    %7D%0A
@@ -477,19 +477,20 @@
 try(
-Entry entry
+String value
 , @P
@@ -519,32 +519,129 @@
 ring entryId) %7B%0A
+        Entry entry = new Entry();%0A        entry.setKey(entryId);%0A        entry.setValue(value);%0A
         service.
@@ -662,12 +662,13 @@
 Id, 
-node
+entry
 );%0A 

Make demo compile