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",

Cause

The documentation had an error in https://docops.ca.com/ca-test-data-manager/4-2/en/reference/rest-api-reference

Environment

CA Test Data Manager (TDM)- Portal

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.ca.com/us.html