• Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

Comments (1)

1 localhost commented Permalink

In the "pure" version I think you'd want ToDoItems.GET to return an array of ToDoItem rather than ToDo and simlarly POST to also return a ToDoItem. Also I'd drop the id parameter in the ToDoItem methods since a particular instance of a ToDoItem can represent a unique item. Thus:

public interface ToDoItems { public ToDoItem[] GET(); public ToDoItem POST(ToDo item);}
public interface ToDoItem extends { public ToDo GET(); public ToDoItem PUT(ToDo item); public void DELETE();}

Add a Comment Add a Comment