Difference between revisions of "RESTPost (Activity)"
(Created page with "This activity verifies login information and retrieves an Authentication Object using the UBIK USAM Service. <!-- DO NOT REMOVE THIS -->{{Template:Activity/Begin}}<!-- DO NOT...") |
|||
(30 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | This activity | + | This activity is used to create a new resource on a server and performs an "Post" operation using any web service. |
<!-- DO NOT REMOVE THIS -->{{Template:Activity/Begin}}<!-- DO NOT REMOVE THIS --> | <!-- DO NOT REMOVE THIS -->{{Template:Activity/Begin}}<!-- DO NOT REMOVE THIS --> | ||
Line 5: | Line 5: | ||
= Description = | = Description = | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
− | | title = | + | | title = RESTPost |
− | | name = | + | | name = RESTPost |
| image = | | image = | ||
− | | imagecaption = Activity | + | | imagecaption = Activity RESTPost |
− | | purpose = | + | | purpose = Create a new resource on a server using the UBIK USAM Service |
| category = UBIK Web | | category = UBIK Web | ||
| returns = true if successful | | returns = true if successful | ||
− | | version = 3.5 | + | | version = 3.5.0+ |
}} | }} | ||
Line 20: | Line 20: | ||
! Argument !! Type !! Direction !! Purpose | ! Argument !! Type !! Direction !! Purpose | ||
|- align="left" | |- align="left" | ||
− | | | + | | Body || {{String}} || In || Contains information wich is sent to the server |
|- align="left" | |- align="left" | ||
− | | | + | | DisplayName || {{String}} || || Display's the name |
|- align="left" | |- align="left" | ||
− | | | + | | Error || {{String}} || Out || Display's error message, appears when something is wrong with your request |
|- align="left" | |- align="left" | ||
− | | | + | | Headers || Dictionary<{{String}}, {{String}}> || In || Authentication and providing information |
|- align="left" | |- align="left" | ||
− | | | + | | MethodName || {{String}} || In || Name of the method |
|- align="left" | |- align="left" | ||
− | | | + | | Parameter || String[] || In || Refers to one of the pieces of data provided as input |
|- align="left" | |- align="left" | ||
− | | | + | | Response || {{String}} || Out || Data sent back to you |
|- align="left" | |- align="left" | ||
− | | | + | | Result || {{String}} || Out || Result data sent back to you |
|- align="left" | |- align="left" | ||
− | | | + | | Url || {{String}} || In || Specified Url |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- align="left" | |- align="left" | ||
|} | |} | ||
Line 52: | Line 42: | ||
===Usage=== | ===Usage=== | ||
− | Use this activity to | + | Use this activity to create a new "Post" resource on any server using the UBIK Content service. |
+ | |||
+ | |||
=Example= | =Example= | ||
− | Exemplary values to get | + | Exemplary values using RESTPost to get Hierarchy details from UBIK Content service. |
− | + | ||
{| class="wikitable" | width = "50%" | {| class="wikitable" | width = "50%" | ||
|- | |- | ||
− | ! | + | ! A+B Assign !! Value |
|- align="left" | |- align="left" | ||
− | | | + | | DisplayName || Assign |
|- align="left" | |- align="left" | ||
− | | | + | | To || args |
|- align="left" | |- align="left" | ||
− | | | + | | Value || New UBIK.Service.DTO.V211.HierarchyDeltaArguments() |
|- align="left" | |- align="left" | ||
− | | | + | |} |
+ | |||
+ | {| class="wikitable" | width = "50%" | ||
+ | |- | ||
+ | ! A+B Assign !! Value | ||
|- align="left" | |- align="left" | ||
− | | | + | | DisplayName || Assign |
|- align="left" | |- align="left" | ||
− | | | + | | To || args.StartingPoint |
|- align="left" | |- align="left" | ||
− | | | + | | Value || New UBIK.Service.DTO.V211.HierarchyRoot() |
|- align="left" | |- align="left" | ||
− | | | + | |} |
+ | |||
+ | {| class="wikitable" | width = "50%" | ||
+ | |- | ||
+ | ! A+B Assign !! Value | ||
|- align="left" | |- align="left" | ||
− | | | + | | DisplayName || Assign |
|- align="left" | |- align="left" | ||
− | | | + | | To || args.ChildrenDepth |
|- align="left" | |- align="left" | ||
− | | | + | | Value || 1 |
|- align="left" | |- align="left" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | + | {| class="wikitable" | width = "50%" | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {| class="wikitable | + | |
|- | |- | ||
− | ! | + | ! A+B Assign !! Value |
|- align="left" | |- align="left" | ||
− | | | + | | DisplayName || Assign |
|- align="left" | |- align="left" | ||
− | | | + | | To || authToken |
|- align="left" | |- align="left" | ||
− | | | + | | Value || "e1191c36-2081-4ffe-8d8e-4b798d4523a1" |
|- align="left" | |- align="left" | ||
− | | | + | |} |
+ | |||
+ | {| class="wikitable" | width = "50%" | ||
+ | |- | ||
+ | ! RESTPost!! Value | ||
|- align="left" | |- align="left" | ||
− | | | + | | Body || args |
|- align="left" | |- align="left" | ||
− | | | + | | DisplayName || RESTPost<BCHierarchyDeltaShipments,HierarchyDeltaArguments> |
|- align="left" | |- align="left" | ||
− | | | + | | Error || |
|- align="left" | |- align="left" | ||
− | | | + | | Headers || |
|- align="left" | |- align="left" | ||
− | | | + | | MethodName || "GetHierarchyDeltasV212" |
|- align="left" | |- align="left" | ||
− | | | + | | Parameter || New String(){"APP_MT","CXT_MT",authToken,"264"} |
|- align="left" | |- align="left" | ||
− | | | + | | Response || |
|- align="left" | |- align="left" | ||
− | | | + | | Result|| result |
|- align="left" | |- align="left" | ||
− | | | + | | Url || "https://81.10.184.186:888/UBIK/DBG/AUG/MT/TEMPLATE/Content/UbikContent.svc" |
− | + | ||
− | + | ||
|- align="left" | |- align="left" | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- DO NOT REMOVE THIS -->{{Template:Activity/End}}<!-- DO NOT REMOVE THIS --> | <!-- DO NOT REMOVE THIS -->{{Template:Activity/End}}<!-- DO NOT REMOVE THIS --> | ||
Line 191: | Line 129: | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | + | ||
+ | |||
+ | ==Useful Links [What is REST Service]== | ||
+ | * https://www.sitepoint.com/developers-rest-api/ | ||
+ | * https://mlsdev.com/blog/81-a-beginner-s-tutorial-for-understanding-restful-api | ||
+ | * https://www.smashingmagazine.com/2018/01/understanding-using-rest-api/ | ||
+ | |||
+ | <!-- DO NOT REMOVE THIS -->{{Template:Activity/Begin}}<!-- DO NOT REMOVE THIS --> |
Latest revision as of 08:55, 14 April 2020
This activity is used to create a new resource on a server and performs an "Post" operation using any web service.
See also
Useful Links [What is REST Service]
- https://www.sitepoint.com/developers-rest-api/
- https://mlsdev.com/blog/81-a-beginner-s-tutorial-for-understanding-restful-api
- https://www.smashingmagazine.com/2018/01/understanding-using-rest-api/