0.2.0 • Published 8 months ago

@ruva-soft/services v0.2.0

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

@ruva-soft/services

The @ruva-soft/services package provides a set of reusable services to handle common tasks related to connection of API services using authentication such as token, oauth, jwt, saml and any custom authentication method. This can help to reduce duplication of code and improve code quality and maintainability across enterprise Angular projects.

Installation

To install the package, run the following command:

npm install @ruva-soft/services

Usage

The package provides the APIService which can be injected and used to perform HTTP requests with custom parameters such as tokens. Here is an example of how to use the APIService:

import { Injectable } from '@angular/core';
import { APIService } from '@ruva-soft/services';

@Injectable({
  providedIn: 'root'
})
export class MyService {
  constructor(private apiService: APIService) {}

  getData() {
    // Add custom parameters
    const params = {
      token: 'mytoken'
    };

    return this.apiService.getWithParams('/data', params);
  }
}

License

This package is open source and released under the MIT License. See the LICENSE file for details.

Credits

The @ruva-soft/services package is developed and maintained by Ruvasoft Solutions Inc.

0.2.0

8 months ago

0.1.3

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago