Posted: 5 Feb 2021 9:10 EST Last activity: 17 Mar 2021 16:06 EDT
HTTP API integration issue
I'm have consumed a GET HTTP API but when I test it in wizard it tells me the response data is not in json or XML format. Its working in Postman where I could get a proper response.
So the opened the google developer console in Designer Studio page and ran the Postman JS code to test the APIs. (see attachments). I got the following error message the request has been blocked and content must be served over HTTPS.
Any Pega environment DSS needs to be edited to allow HTTP or how is it?
***Edited by Moderator Marissa to update Content Type from Discussion to Question***
@AkhilK26 To use HTTP, you need to switch the service package (records/integration-resources/service package) "api" to use Basic authentication without TLS (uncheck). If you want to use HTTPS, then "api" needs to be "OAuth 2.0" and you will need a client registration id. React, Angular and Vue starter packs have recently been updated to show an example of using OAuth 2.0. Documentation in the starter packs discuss OAuth 2.0.