Receiving error message ‘application/Json not supported’ in the TDM Portal
search cancel

Receiving error message ‘application/Json not supported’ in the TDM Portal

book

Article ID: 7690

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

While attempting to run APIs with Postman (form-data) and swagger (JSON format), the following errors are encountered:

  postman - 415 error:           "errorCode":  "415"

                                             "errorMsg": "Content-type '<application>' not supported"

  swagger - 415 error:            "status": 415

                                             "errorCode": "415"

                                             "errorMsg": "Content -type '<application>' not supported",

Environment

CA Test Data Manager (TDM)- Portal

Cause

The documentation had an error in https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/test-data-management/4-10/reference/rest-api-reference.html

Resolution

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 Chrome Postman. There is another tool, SoapUI, which can be used to accomplish this.

Additional Information

If you experience any further issues, please open a support case by going to https://support.broadcom.com.