Closed nicolaes closed 7 months ago
Closes #57
API tested with:
curl https://localhost:5001/graphql -k \ -F operations='{"query": "mutation($file: Upload!) { singleUpload(file: $file) { fileBlobId } }", "variables": { "file": null }}' \ -F map='{ "0": ["variables.file"] }' \ -F 0=@room_sm.png
Or from Postman:
Migration tested with:
dotnet ef database update --startup-project TeacherWorkout.Api/ --project TeacherWorkout.Data/
dotnet ef database update AddImagesRelation --startup-project TeacherWorkout.Api/ --project TeacherWorkout.Data/
Contents of this PR already merged in #84
What does it fix?
Closes #57
How has it been tested?
API tested with:
Or from Postman:![Screenshot 2023-11-30 at 15 32 20](https://github.com/code4romania/teacher-workout-backend/assets/516929/e5d00839-06e1-411c-9827-a517e98dd5b3)
Migration tested with:
dotnet ef database update --startup-project TeacherWorkout.Api/ --project TeacherWorkout.Data/
dotnet ef database update AddImagesRelation --startup-project TeacherWorkout.Api/ --project TeacherWorkout.Data/