How to create entries with many-to-one relationship through API?

You can access those related fields with a get call at http://localhost:1337/api/favorites?populate=%2A