Refactoring of responses. Added /api context.