How one is supposed to describe endpoint for a html form which posts multipart/form-data? It seems that the endpoint.Body() func is meant to be used to describe the fields but I can't figure out what the first parameter should be. Say I have a form which posts an file and a string field...
How one is supposed to describe endpoint for a html form which posts
multipart/form-data
? It seems that theendpoint.Body()
func is meant to be used to describe the fields but I can't figure out what the first parameter should be. Say I have a form which posts an file and a string field...As a workaround, following seems to work:
the
parameter
func is one fromendpoint/buider.go
.If there is better way please document it (in some example or as a code snippet in readme).