create REST endpoints to view list of products/categories.

- view a list of categories.
- view a list of products of a given category.