Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@sap/service-provider-apis
Advanced tools
**service-provider-apis** is an npm package that provides the APIs necessary for exposing services using the 'SAP Service Center'.
service-provider-apis is an npm package that provides the APIs necessary for exposing services using the 'SAP Service Center'.
To add this package as a dependency in your package.json file, under the "dependencies" section, add the following dependency: "@sap/service-provider-apis": [Version]
This object exposes APIs for the exploration of SAP systems and services.
This API retrieves a list of services from a specific provider system.
getServices(options?: Record<string, any>): Promise<Service[]>;
options (this is optional): The following parameters are optional:
credentials (this is optional): for services that require authentication.
filter (this is optional): used to filter for relevant services.
throws ServiceProviderError: If there is an error, this throws a "ServiceProviderError" error message.
This API retrieves the metadata of a specific service.
getMetadata( service: Service, encoding: EncodingMode, options?: Record<string, any>, relativeUrl?: string, credentials?: Authentication ): Promise<ServiceMetadata>;
service: Defines the service from which the metadata will be retrieved.
encoding: Defines the required encoding requested by the consumer.
options (this is optional): The following parameters are optional:
credentials (this is optional): for services that require authentication.
filter (this is optional): used to filter for relevant services.
relativeUrl (this is optional)*: for a non-full URL - provides the relative URL to the service.
throws ServiceProviderError: If there is an error, this throws a "ServiceProviderError" error message.
This API retrieves the annotations of a specific service.
getAnnotations(service: Service, options?: Record<string, any>): Promise<Annotation[]>
service: Defines the service from which the metadata will be retrieved.
options (this is optional): The following parameters are optional:
credentials (this is optional): for services that require authentication.
throws ServiceProviderError: If there is an error, this throws a "ServiceProviderError" error message.
This API retrieves data for a specific service's entity.
getJsonLiveData(service: Service, entity: string, options?: Record<string, any>): Promise<ServiceCommon>
service: The service for which to return the entity's data.
entity: The name of the entity for which we are retrieving the data.
options (this is optional): The following are optional:
credentials: For services that require authentication.
relativeUrl: The relative path to the service (used in a non-full URL service).
filter: A map of OData request parameters that affect the data response for the entity.
for example: new Filter(new Map([["$top", ["2"]]]]))
returns only the two top data rows.
throws ServiceProviderError: If there is an error, this throws a "ServiceProviderError" error type.
Create credentials object - used to access a system or service that requires authentication
const credentials = getCredentialsObject("username", "password");
Create a filter object - used to filter for needed services
const filter = getNewFilter("protocol", ["odatav2"]);
git checkout -b my-local-branch-name
git branch -m my-local-branch-name
.git fetch; git merge
.npm install
to install dependencies.npm run test
to compile the TypeScript code to JavaScript and run tests.git push origin my-local-branch-name
commit amend
. You should create a new commit and push to the same feature branch again. This will add an extra commit to your pull request and retrigger the voters.npm run test
to run the unit tests written in Mocha and the coverage test.Bump the version in the "package.json" GitHub file.
Notes: Make sure to follow this versioning concept:
FAQs
**service-provider-apis** is an npm package that provides the APIs necessary for exposing services using the 'SAP Service Center'.
We found that @sap/service-provider-apis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.