Open sunlight0602 opened 1 week ago
ths api spec is mensioned in #13
how to use 12-feat-uploadprocess-to-mariadb feature branch
curl -X POST http://localhost:8000/apiv1/exam \
-H "Content-Type: multipart/form-data" \
-F "file=@/path/to/your/file.xlsx"
remark:
curl --help
-X POST: Specifies that we're making a POST request.
http://localhost:8000/apiv1/exam: The URL of your API endpoint.
-H "Content-Type: multipart/form-data": Sets the content type for file upload.
-F "file=@/path/to/your/file.xlsx": Specifies the file to upload. The @ symbol tells curl to read the file from disk.