cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between HTTP Client and Rest Api(get,post....) snaps

Pretty
New Contributor III

Hi All,
I am exploring the HTTP Client snap, I wanted to know what is difference between HTTP Client and Rest API methods (get,post…) snaps.

Can any one please help to know about the below highlighted Entity Type in the snip.

image

and also can we get the output as xml from the HTTP Client snap ? if yes, how?

Thanks in advance

@dmiller can you please help me

4 REPLIES 4

dmiller
Former Employee

I’m asking around for someone with more knowledge of the HTTP Snaps to assist you.


Diane Miller

ddellsperger
Moderator
Moderator

Hi there, the biggest difference you’ll see is more capability in debugging your outputs and views in the HTTP Client snap, we mostly see it as a replacement for the REST Post/Get/etc snaps and will likely set those for deprecation once a few more things are added to the HTTP Client snap. The HTTP Entity (which you’ve highlighted) is the body content that you plan to send to the endpoint, this supports multipart and form data with multipart (which we previously supported in the REST snap pack), but now also supports x-www-form-urlencoded data as well as raw and binary data being send to the endpoint. When you select the entity type, you’ll see the UI dynamically change to show the inputs for those entity types, but that’s more likely to be useful in the REST Post/Put/Patch than Get.

Much of this has been pulled from the enhancements we’ve previously made to the REST Snap pack, but the goal with HTTP Client is to have it all in a single snap. We’ve also updated the accounts (yes, you’ll have to re-set them up) to better align with what we see as the most common accounts and make that process easier to use (including a generic Headers account for any headers that you wish to use for authorization).

Product Management also says this is helpful to reference


Diane Miller

Pretty
New Contributor III

Thank you for response @dmiller @ddellsperger