p7-projekt / api-backend

Backend API
MIT License
0 stars 0 forks source link

[FEATURE] - Anonymous users can validate their solution. #25

Closed JMyrtue closed 1 week ago

JMyrtue commented 1 month ago

Reference Issues

No response

Summary

Anonymous users connected to a session must be able to trial their proposed solution to an exercise.

This requires that the correct information is send to the API, which passes it on to k3s/the pod, depending on how communication flow will be. Furthermore, it will fetch the testcases associated to the exercise in the database, and send these along with the anonymous users solution proposal. Finally, the information received from the k3s/pod must be sent back to the frontend.

This issue further entails validating the data received from the frontend before passing it on. Also, it must be ensured that all possible responses from the pod is handled.

Unresolved questions

How the communication flow between the api and k3s requires clarification for this issue.

How the format of information returned to the frontend will be.

Definition of Done

When an endpoint is available that:

As part of this issue it should be ensured that all possible return values from the pod is managed.