Skip to content

Commit af7cbe0

Browse files
committed
More doc updates
1 parent e45f690 commit af7cbe0

File tree

2 files changed

+87
-5
lines changed

2 files changed

+87
-5
lines changed

docs/README.md

Lines changed: 87 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,91 @@ steps for each consumer.
6060

6161
## 4. Consuming the wsl4cc service
6262

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:
109+
110+
```javascript
111+
{
112+
"status": "OK",
113+
"message": null,
114+
"output": {
115+
"ECHOTEXT": "Request Text",
116+
"RESPTEXT": "SAP R/3 Rel. 740 Sysid: ABA Date: 20180521 Time: 235932 Logon_Data: 800/IDADMIN/E"
117+
},
118+
"tables": null
119+
}
120+
```
121+
122+
2. The expected output for employee data is an HTTP 200 status and the following body (truncated for brevity):
123+
124+
```javascript
125+
{
126+
"status": "OK",
127+
"message": null,
128+
"output": {
129+
"RETURN": {
130+
"TYPE": "",
131+
"CODE": "",
132+
"MESSAGE": "",
133+
"LOG_NO": "",
134+
"LOG_MSG_NO": "000000",
135+
"MESSAGE_V1": "",
136+
"MESSAGE_V2": "",
137+
"MESSAGE_V3": "",
138+
"MESSAGE_V4": ""
139+
}
140+
},
141+
"tables": {
142+
"ARCHIVELINK": [ ... ],
143+
"INTERNAL_CONTROL": [ ... ],
144+
"PERSONAL_DATA": [ ... ],
145+
"ORG_ASSIGNMENT": [ ... ],
146+
"COMMUNICATION": [ ... ]
147+
}
148+
}
149+
```
68150

docs/images/configure-postman.png

75.5 KB
Loading

0 commit comments

Comments
 (0)