OCLOperators RestPost
Hans Karlsen (talk | contribs) (Created page with "RestPost and RestGet and RestDownload are all operators on the selfVM variable only available in ViewModels. These operators enables you to get or put information into extern...") |
Hans Karlsen (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
See further description here [[Rest Services In MDriven]] | See further description here [[Rest Services In MDriven]] | ||
These operators work by giving a ViewModel Nesting that has data and additional Headers. | |||
If the nesting has columns starting with : | |||
* FILENAME_xxx then the value if used as filename in a MultipartFormDataContent expecting a xxx column with byte data for the file content | |||
* HEADER_xxx then the value is added to the content as Headers.Add(xxx,value) | |||
* DEFAULTREQUESTHEADER_xxx then the value is added to the request as client.DefaultRequestHeaders.Add(xxx,value) | |||
* DEFAULTREQUESTHEADERMINUS_xxx then the value is added to the request as client.DefaultRequestHeaders.Add(xxx.Replace('_','-'),value) - this is so that headers with '-' can be entered | |||
* HEADERMINUS_xxx then the value is added to the content as Headers.Add(xxx.Replace('_','-'),value) |
Revision as of 07:57, 29 September 2017
RestPost and RestGet and RestDownload are all operators on the selfVM variable only available in ViewModels.
These operators enables you to get or put information into external REST based services.
See further description here Rest Services In MDriven
These operators work by giving a ViewModel Nesting that has data and additional Headers.
If the nesting has columns starting with :
- FILENAME_xxx then the value if used as filename in a MultipartFormDataContent expecting a xxx column with byte data for the file content
- HEADER_xxx then the value is added to the content as Headers.Add(xxx,value)
- DEFAULTREQUESTHEADER_xxx then the value is added to the request as client.DefaultRequestHeaders.Add(xxx,value)
- DEFAULTREQUESTHEADERMINUS_xxx then the value is added to the request as client.DefaultRequestHeaders.Add(xxx.Replace('_','-'),value) - this is so that headers with '-' can be entered
- HEADERMINUS_xxx then the value is added to the content as Headers.Add(xxx.Replace('_','-'),value)
This page was edited more than 8 months ago on 06/04/2024. What links here