open-index/open-npm huggingface dataset:
npm package: @gcgov/apiservice
Description: Extendable class that provides default rest API methods built upon Axios
Author: Andrew Sauder
Latest version: 2.3.8

# Api Service

## Installation
`npm install @gcgov/apiservice`

## Example Usage
```js
//MyApiService.js
import {ApiService,ApiConfig} from "@gcgov/apiservice"

const config = new ApiConfig(
	'https://www.myapi.com/',      //base url for the api
	'XDEBUG_SESSION=PHPSTORM',     //url parameters to be added to every request
	true,                          //api requires authentication
	async () => {                  //method to get and auto refresh the api access token
		return await yourGetAccessTokenFn();
	}
)

class MyApiService extends ApiService {

	//add custom methods here, if required
    
}

export default new MyApiService( config )
```
npm package: @gci/csapi
Description: GCI PowerApps Content Server API
Author: Pierre Nocera
Latest version: 0.0.1

# Csapi

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.6.

## Code scaffolding

Run `ng generate component component-name --project csapi` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project csapi`.
> Note: Don't forget to add `--project csapi` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build csapi` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build csapi`, go to the dist folder `cd dist/csapi` and run `npm publish`.

## Running unit tests

Run `ng test csapi` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).