Formulardaten und Datei-Uploads
Formulardaten: Datei-Uploads per multipart/form-data, mit CRUD über die Datensätze der hochgeladenen Dateien.
Dein Konto schaltet diese Endpunkte frei. Nutze Try it auf der Seite jedes Endpunkts, um Requests zu senden.
Diese Endpunkte brauchen ein kostenloses Konto. Leg eins an oder melde dich an, um ihre Details zu sehen und sie hier auszuprobieren.
- 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.
Beispiel-Request
List all uploaded file records. Vollständige Referenz und Send-Button (auf Englisch).
cURL
curl -X GET "https://api.testingapis.com/api/formdata/all"Antwort · 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"
]Melde dich an, um die Details zu sehen
Die Parameter, die Beispiele für Request und Antwort und das Live-Panel Try it für diese Endpunkte sind für angemeldete Mitglieder. Konten sind kostenlos und in wenigen Sekunden angelegt.