Entity Field types, Data types
(BaseFieldDefinition::create types)
Active modules:
HAL (hal)
RESTful Web Services (rest)
HTTP Basic Authentication (basic_auth)
Download and active contrib modules:
REST UI (restui)
Once created your entity as Basic Entity or Full Entity, you can add a custom views handler.