This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: test API Blueprint with multipart/form-data
- Loading branch information
1 parent
3c11b70
commit a6fd1a5
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FORMAT: 1A | ||
|
||
# Sanbox 'multipart/form-data' API | ||
|
||
# POST /data | ||
|
||
+ Request (multipart/form-data; boundary=CUSTOM-BOUNDARY) | ||
|
||
+ Body | ||
|
||
--CUSTOM-BOUNDARY | ||
Content-Disposition: form-data; name="text" | ||
Content-Type: text/plain | ||
|
||
test equals to 42 | ||
--CUSTOM-BOUNDARY | ||
Content-Disposition: form-data; name="json" | ||
Content-Type: application/json | ||
|
||
{"test": 42} | ||
|
||
--CUSTOM-BOUNDARY-- | ||
|
||
+ Response 200 (multipart/form-data; boundary=CUSTOM-BOUNDARY) | ||
|
||
+ Body | ||
|
||
--CUSTOM-BOUNDARY | ||
Content-Disposition: form-data; name="text" | ||
Content-Type: text/plain | ||
|
||
test equals to 42 | ||
--CUSTOM-BOUNDARY | ||
Content-Disposition: form-data; name="json" | ||
Content-Type: application/json | ||
|
||
{"test": 42} | ||
|
||
--CUSTOM-BOUNDARY-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters