Swagger UI: multipart / form-data support

Document ID : KB000015514
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

This document will explain that there is an error in documentation:

   * Swagger UI does not support multipart form data.

   * Chrome Postman does not support multipart form data.

Question:

Will Swagger UI support multipart form data?

 

Environment:
Test Data Manager 4.2
Answer:

The API  /TDMModelService/api/ca/v1/objects for registering objects accepts multipart/form-data as the request body.

Each request part (body, files) are of different content-type. Swagger UI does not support providing this kind of request body nor does the Chrome Postman.

There is an another tool, Soap UI which can be used for this.