46
Views
2
Comments
Bitbucket API works in postman but not in Outsystems
Question

Hi,

I want to consume this Bitbucket API which is to create a commit by uploading files in Outsystems.

When I am testing the request body input in Postman, it works perfectly fine, with my content type in the header being:

and my text body being:

I then try to replicate this in outsystems:

Even though the response is a 201, the changes to my Bitbucket repo does not reflect the expected at all. For example, stipulating a branch like this:

does not actually make sure the changes are reflected in that particular branch. Rather, everything is in the main branch and strange enough a text file called "branch" gets created instead, amongst other errors:

this is a snippet of what i see in my bitbucket repo.


Again, I didn't have this problem in postman though all inputs are the same.


Any help on this will be greatly appreciated, along with anyone who can share successful demos on consuming this API in outsystems. Thank you!

2018-09-11 21-09-40
Helena Lameiro
 
MVP

Hi Ng OUtsystems has a limitation on rest request with multipart/form. 

take at look at this article https://www.outsystems.com/blog/posts/consuming-multipart-form-data-rest-method/

and maybe this component of Kilian can also help on your implementation https://www.outsystems.com/forge/component-overview/4026/multipart-form-data

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Ng,

Like Helena wrote, at this moment, OutSystems does not natively support multipart/form-data as part of REST (though that may change in the future). For now, you'll need to use my Multipart/form-data Forge component.

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