Refactored HTTP API annotations config and added additional testcases.