Fixed API resource and test with HTTP rule integration.