Fix so that ID params are not filtered out if an extension is specified

Fixed a bug where ID param path params were getting filtered out of the swagger docs because of confusion the path.

Eg.  the path would be /resources/{:id.json}
which wouldn't match:
{:id}