The spec itself doesn’t really support ‘unnamed’ parameters.

 

 

 

From: <[email protected]> on behalf of Andrew Campbell 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Thursday, 4 August 2016 at 03:27
To: Swagger <[email protected]>
Subject: Editing field names in Swagger UI

 

Can field names be editable in Swagger UI?

 

The curl to upload a file to my API looks something like this:

 

curl -i -X POST \

-H "Authorization: $AUTH" \

-H "Accept: application/json" \

-H "Content-Type: multipart/form-data" \

-F "$CHECKSUM=@$FILE" \

$HOST/api/fileupload

 

The problem is the -F "$CHECKSUM=@$FILE" line. $CHECKSUM is a checksum for the 
file being uploaded, so naturally it varies from one file to another.

 

My options are

Make the field name editable
Provide a file with a known checksum for using with the console
Any thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to