code4romania / teacher-workout-backend

Teacher Workout backend (API for mobile apps & for the web client)
Mozilla Public License 2.0
7 stars 34 forks source link

[57] singleUpload mutation uploads file to the database #83

Closed nicolaes closed 7 months ago

nicolaes commented 7 months ago

What does it fix?

Closes #57

How has it been tested?

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: Screenshot 2023-11-30 at 15 32 20

Migration tested with:

nicolaes commented 7 months ago

Contents of this PR already merged in #84