420
Views
3
Comments
Consuming REST API using Bearer token
Question

Hi,

I am trying to do a simple test - consuming a REST API using Bearer token.  Works well using Postman but unsuccessful in Outsystems.  Screen shot below.  Appreciate any advice.  Thanks!

Regards

WS

2023-02-17 17-17-22
Miguel Amaro

Wei Siong Ho wrote:

Hi,

I am trying to do a simple test - consuming a REST API using Bearer token.  Works well using Postman but unsuccessful in Outsystems.  Screen shot below.  Appreciate any advice.  Thanks!


Regards

WS


Hi Wei Siong Ho,

Did you tried with Post instead of Get?
Also check your date input type because the API may not be expecting the value you are sending.

The Bad Request is normaly associated with wrong data types or unexpected inputs.

Regards,
Miguel Amaro 

UserImage.jpg
Wei Siong Ho

Miguel Amaro wrote:

Wei Siong Ho wrote:

Hi,

I am trying to do a simple test - consuming a REST API using Bearer token.  Works well using Postman but unsuccessful in Outsystems.  Screen shot below.  Appreciate any advice.  Thanks!


Regards

WS


Hi Wei Siong Ho,

Did you tried with Post instead of Get?
Also check your date input type because the API may not be expecting the value you are sending.

The Bad Request is normaly associated with wrong data types or unexpected inputs.

Regards,
Miguel Amaro 

Thanks Miguel.  It is a GET method.  Just pulling some simple information.  Date input type is certainly correct. Used GET method and the same Date input type in Postman and it worked, but not in Outsystems.


Regards

WS


2020-06-26 04-04-00
Jun Marcial

Have you found the answer to this?

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