4.3.0 • Published 7 months ago

@amag-ch/sap_cap_common_http v4.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

npm version npm downloads

Wrapper for communication with external http services

Table of Contents

Installing

Using npm:

$ npm install @amag-ch/sap_cap_common_http

Using yarn:

$ yarn add @amag-ch/sap_cap_common_http

Configuration

Simple configuration over cds requires

{
    "cds": {
        "requires": {
           "remote-service": {
               "kind": "odata-v4",
               "credentials": {
                   "destination": "remote-service-destination"
               }
           } 
        }
    }
}

Read configuration in implementation

const remoteService = await cds.connect.to('remote-service')

const baseUrl = await remoteService.getBaseUrl()
const configuration = await remoteService.getConfiguration()

Implementation

const remoteService = await cds.connect.to('remote-service')

const response = await remoteService.get('/Ressource')

License

MIT

4.3.0

7 months ago

2.9.0

2 years ago

3.3.0

2 years ago

4.2.0

2 years ago

4.1.0

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

4.0.1

2 years ago

2.7.0

3 years ago

2.6.1

3 years ago

2.6.0

3 years ago

2.8.0

3 years ago

3.1.0

3 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.0.3

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.0.2

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago