make json api for entries to connect to angular