フォームデータとファイルのアップロード
フォームデータ。multipart/form-data でのファイルアップロードと、アップロードされたファイルのレコードに対する CRUD。
あなたのアカウントでこれらのエンドポイントが使えます。各エンドポイントのページの Try it でリクエストを送れます。
- GET
https://api.testingapis.com/api/formdata/{id}Get a file record by IDGet a file record by ID. - GET
https://api.testingapis.com/api/formdata/allList all uploaded file recordsList all uploaded file records. - DELETE
https://api.testingapis.com/api/formdata/delete/{id}Delete a file recordDelete a file record. - PUT
https://api.testingapis.com/api/formdata/update/{id}Update a record's file name and/or descriptionUpdate a record's file name and/or description. - POST
https://api.testingapis.com/api/formdata/uploadUpload a file with an optional descriptionUpload a file with an optional description.
リクエストの例
List all uploaded file records. 完全なリファレンスと Send ボタン(英語).
cURL
curl -X GET "https://api.testingapis.com/api/formdata/all"レスポンス · 200 OK
[
{"id": 1, "fileName": "john_resume.pdf", "description": "Resume of John"},
{"id": 2, "fileName": "maria_photo.png", "description": "Profile photo of Maria"},
"… 2 more items"
]サインインして詳細を見る
これらのエンドポイントのパラメータ、リクエストとレスポンスの例、ライブの Try it パネルは、サインインしたメンバー向けです。アカウントは無料で、数秒で作成できます。