Add id parameter in data REST resource

- Add id parameter in data REST resource
- Fix candidate bug that includes null in returned results