Hi, I am trying to configure a consumed REST API service from a Swagger file. Nearly everything worked fine, except the JSON request and response body were not adopted. However, this is not a big issue, as it makes sense to test the request and use the response to create the non-persistent entities. This is where my problem began. A Bearer token is necessary for the request, and it's also no big deal to add an authorization parameter to the header. However, I am now struggling with the test function. I created a new valid Bearer token, added the string into the test parameter field, triggered the test function, and got a 401 status code. Upon checking, I noticed the Bearer token string is automatically truncated, with the last characters replaced by three dots. Is there a workaround available to switch off this behavior of the input field or any further ideas to solve this issue? Thanks and regards, Ingo
asked
Ingo Bernsdorf
2 answers
1
Hi Ingo,
What you can try to do is to add the bearer token as a parameter.
- Make the value of the Authorization header: Bearer {paramName}
- Give the parameter the bearer token value in the parameter grid.
Hope this works.
answered
Martin de Rooij
0
how did you create the token? Did you add it manually via copy it by mistake with the 3 dots at the end?