added method api/new/* for creating entities