Hi,
- I use rest-service.xml for my API. Is there a way to define that a method only allows GET or POST requests?
- I tried to create a response by returning an entity (consumer) as shown in pet-clinic (PetServiceBean#findById).
When I return the entity I only get
{
“_entityName”: “consumer”,
“_instanceName”: “com.some.package.entity.Consumer-285b402c-0b72-8be9-6439-08aff33ca9ce [detached]”,
“id”: “285b402c-0b72-8be9-6439-08aff33ca9ce”
}
If I return a class which wraps the consumer entity than i get all values defined in the view loaded with dataManger…
What could be my failure that this doesn’t work as in pet-clinic shown?
Thank you!!!