Saturday
Hi,
I am trying to simulate the REST API call with OAuth inside BAS but i always get an 401 error. It seems that the token is not being fetch before accessing the actual Endpoint.
My JS.
RomnickJohn_0-1763208381547.png
default-env.json
RomnickJohn_1-1763208548709.png
package.json
RomnickJohn_2-1763208604551.png
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to add the following configuration to package.json:
"cds": {
"requires": {
"TES_CWT_H_DEST": {
"kind": "rest",
"credentials": {
"destination": "TES_CWT_H_DEST"
}
}
}Also, execute the following command to bind the destination service:
cds bind 2 <destinationServiceInstance>Then, execute the service in hybrid mode:
cds watch --profile hybrid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, @MioYasutake. I am able to access the REST api via hybrid setup.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |