package org.dynaresume.services.rest;

import java.util.ArrayList;
import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import org.dynaresume.domain.hr.Resume;

@Path("/resume/")
public class ResumeServiceRest {
	
	
	
	
	@GET
	@Path("findAll")
	@Produces("application/json")
	public Iterable<Resume> findAll(){
		
		List<Resume> resumes=new ArrayList<Resume>();
		resumes.add(new Resume());
		return resumes;
	}
	
	
	@GET
	@Path("findById/{resumeId}")
	@Produces("application/json")
	public Resume findById(@PathParam("resumeId") long resumeId){
		Resume result= new Resume();
		result.setId(resumeId);
		result.setTitle("test");
		return result;
	}

	public Resume save(Resume resume){
		return resume;
	}
}

@@ -103,18 +103,72 @@
 x.ws.rs.
-GE
+Consumes;%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.POS
 T;%0Aimpor
@@ -341,22 +341,16 @@
 est %7B%0A%09%0A
-%09%0A%09%0A%09%0A
 %09@GET%0A%09@
@@ -772,16 +772,54 @@
 lt;%0A%09%7D%0A%0A
+%09@POST%0A%09@Consumes(%22application/json%22)%0A
 %09public 

prepare save method