Endpoint module is a framework which allows Drupal acts as a light endpoint.
The module was designed specifically for REST API. It contains a router that allows to follow REST style in your URLs. Here is an example: