core: entity mapping - support void return type on resource endpoints

Defining a resource endpoints with void return type will not break at compilation time any more, it will rather return a 204 status with empty response body.