adding functionality for POST, refactoring templates for GET JSON structure from documentation