endpoint for retrieving all entries with json format