Is there a Request Headers Static Entity?

In the Logic/Integrations "Header/Auth" tab there is a selection box that is populated with common header names (Authorization, Content-Type, etc.). Is there a built in public Static Entity that represents these Request Headers types?

thanks

erik

Solution

Hi Erik,

I think that no exist any static entity, are suggestions of parameters that are often used in apis rest.

For more detail about these parameters, see this link. And this link from outsystems for customize Rest APIs

"Headers

The REST headers and parameters contain a wealth of information that can help you track down issues when you encounter them. HTTP Headers are an important part of the API request and response as they represent the meta-data associated with the API request and response. Headers carry information for:

  1. Request and Response Body
  2. Request Authorization
  3. Response Caching 
  4. Response Cookies

...

Authorization: Carries credentials containing the authentication information of the client for the resource being requested.

WWW-Authenticate: This is sent by the server if it needs a form of authentication before it can respond with the actual resource being requested. Often sent along with a response code of 401, which means ‘unauthorized’.

Accept-Charset: This is a header which is set with the request and tells the server about which character sets are acceptable by the client.

Content-Type:  Indicates the media type (text/html or text/JSON) of the response sent to the client by the server, this will help the client in processing the response body correctly.

Cache-Control: This is the cache policy defined by the server for this response, a cached response can be stored by the client and re-used till the time defined by the Cache-Control header."


Regards


Solution

Thanks for the confirmation.  I was hoping these would be public static entity so that I would not have to create my own static entity for them in order to avoid hard coding these keys everywhere..