rest initial version

Problems: list and detail different view