I would like to GET JSON data from drupal 8 custom entity. I am using ubuntu 14.04 and vagrant. For that i have done these steps.
I have taken reference to Create drupal 8 custom entity from this link.
Enable this modules:
- HAL - Core module
- HTTP Basic Authentication -Core module
- RESTful Web Services - Core module
- Serialization - Core module
- Restui - Contributed module
- redirect to admin/config/services/rest
- Enable content_entity_example_contact entity
Above steps i have done to GET JSON from custom entity but getting error in postman. Any suggestion or starting point will help for me.
Interestingly when i perform similar steps for drupal 8 node entity i am able to GET JSON data.