api rest object entity