Adding 'distinct' endpoint to return a list of unique values for a given key.