You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+87-5Lines changed: 87 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,91 @@ steps for each consumer.
60
60
61
61
## 4. Consuming the wsl4cc service
62
62
63
-
With a valid OAuth token, the client may finally invoke the wsl4cc service to interact with the SAP ERP backend system through the Cloud Connector. There is really only one endpoint to call.
64
-
65
-
POST https://hostname/wsl4cc/destinations/{dest}/rfc
66
-
BODY
67
-
63
+
With a valid OAuth token, the client may finally invoke the wsl4cc service to interact with the SAP ERP backend system through the Cloud Connector.
64
+
65
+
The main REST endpoint is the following:
66
+
67
+
POST https://<hostname>/wsl4cc/destinations/<dest>/rfc
68
+
69
+
where <hostname> is your application URL hostname and <dest> is your RFC destination name.
70
+
71
+
HEADERS
72
+
-------
73
+
Content-Type: application/json
74
+
Accept: application/json
75
+
Authorization: Bearer token generated by OAuth
76
+
77
+
INPUT BODY
78
+
----------
79
+
80
+
Here are some sample inputs to this endpoint:
81
+
82
+
1. Input JSON to execute STFC_CONNECTION:
83
+
84
+
```javascript
85
+
{
86
+
"name":"STFC_CONNECTION",
87
+
"input": {
88
+
"REQUTEXT":"Request Text"
89
+
}
90
+
}
91
+
```
92
+
93
+
2. Input JSON to get list of employees whose last name is Smith:
94
+
95
+
```javascript
96
+
{
97
+
"name":"BAPI_EMPLOYEE_GETDATA",
98
+
"input": {
99
+
"DATE":"2018-05-21",
100
+
"LASTNAME_M":"Smith"
101
+
}
102
+
}
103
+
```
104
+
105
+
EXPECTED OUTPUT
106
+
---------------
107
+
108
+
1. The expected output for STFC_CONNECTION invocation is an HTTP 200 status and the following body:
0 commit comments