If there is no endpoint that will expose these for tutors, it should be possible to differentiate between tutors and instructors, so that the score-stats tool will not crash for tutors (the results for the text exercises would be missing, like the current behavior).
Some endpoints to investigate:
I think there is another one that will fetch all text submissions with their results
or one that only fetches the results for a specific submission
as a last resort, one could use the openAssessment method, which might work for tutors as well?
From what I can tell, the endpoint that returns all text submissions, does not add the results to the list.
Like with programming submissions, it seems there are cases where you have to fetch them manually.
Ideally this would use an endpoint that tutors can access too. The main use-case for this would be the https://github.com/kit-sdq/programming-lecture-artemis-score-stats tool.
If there is no endpoint that will expose these for tutors, it should be possible to differentiate between tutors and instructors, so that the score-stats tool will not crash for tutors (the results for the text exercises would be missing, like the current behavior).
Some endpoints to investigate: