[api] Better static support. Added tests for resource param parsing.