Rename PATH_PARAMS to ROUTE_PARAMS.
Refactor Request and added tests.
Refactor tests of Endpoint.