15
Views
2
Comments
Solved
[Comsuming Rest API Method] Error during the test to copy results to body
Question

Informations:

Platform Version: 11.0.606.0

Service Studio Version: 11.6.13

Application: Web

Problem: Hello. When I was trying to consume a REST API Method (GET), I tested the method to copy the results to body tab, but the result test was totally wrong. Can somebody tell me if have already seen the problem and what is the solution? I'm sending some images to show the problem.


Testing de API Method:


The same test using Postman


Thanks.


2025-01-29 16-21-53
Luiz Alberto de Oliveira Júnior
Solution

Hi, Artur.


You could use "?format=html" at the end of the URL that will work.


Before:

https://servicodados.ibge.gov.br/api/v1/localidades/estados


After:

https://servicodados.ibge.gov.br/api/v1/localidades/estados?format=html


Result:

2020-12-21 13-32-59
Artur A Moura

Thanks Luiz Alberto.


It worked perfectly!


See you!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.