Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
@sap-ux/axios-extension
Advanced tools
Extension of the Axios module adding convinience methods to interact with SAP systems especially with OData services.
The @sap-ux/axios-extension
module is an extension of the axios framework adding convenience methods to interact with SAP systems especially with OData services..
The module offers factory functions allowing to generate ServiceProvider
instances.
The base service provider extends the class Axios
abstracting whether it is running in SAP Business Application Studio or locally.
It offers convenience methods to simplify the handling of:
It exposes the service(path)
method that creates a new Axios instance for the requested service. It will reuse authentication details and cookies from the provider.
Another extension of the base provider handling specifics for ABAP based backend systems. It offers simplified access to the catalog services as well as the UI5 ABAP repository service.
The generic OData service simplifies the access to the service metadata as well as the access to response data. It is used as base class for
Simplified consumption of the SAP catalog service useful for fetching annotations.
Allows deployment of applications to the UI5 ABAP Repository as well as checking deployed applications.
A class respresenting the app index service allowing to search applications deployed on an ABAP system.
Allows deployment of adaptation projects.
Usage:
import { createForAbap } from '@sap-ux/axios-extension';
const provider = createForAbap({
baseURL: 'https://sap.example',
params: { 'sap-client': client }
});
const service = provider.layeredRepository();
await service.deploy('./dist/my-variant-webapp.zip', {
namespace: 'apps/my.base.app/appVariants/customer.variant/',
package: 'MY_PACKAGE',
transport: 'ABC123'
});
Npm
npm install --save @sap-ux/axios-extension
Yarn
yarn add @sap-ux/axios-extension
Pnpm
pnpm add @sap-ux/axios-extension
import { createForAbap } from '@sap-ux/axios-extension';
const provider = createForAbap({
baseURL: 'https://sap.example',
params: { 'sap-client': client }
});
const service = provider.service('/ns/my_service');
const metadata = await service.metadata();
See more examples in /test/factory.test.ts
FAQs
Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.
The npm package @sap-ux/axios-extension receives a total of 124,626 weekly downloads. As such, @sap-ux/axios-extension popularity was classified as popular.
We found that @sap-ux/axios-extension demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.