2.4.1 • Published 9 months ago

@janiscommerce/app-request v2.4.1

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

@janiscommerce/app-request

janis-logo

This package is intended to help to do requests at Janis Apps.

Installation

npm i @janiscommerce/app-request

Usage

import Request from '@janiscommerce/app-request'
import {JANIS_ENV} from 'env.json'


const request = new Request({JANIS_ENV})

// GET to a janis service
const sessionData = await request.get({service: 'picking', namespace: 'session', id: '123'});


// GET (list) to a janis service
const sessionList = await request.list({
				namespace: 'session',
				service: 'picking',
				headers: {page: 3},
				queryParams: {
					filters: {sessionOwnershipVisibility, pickingPointId: activeWarehouseId},
					sort: sessionSortingCriteria,
				},
			})


// GET to an external endpoint

const data = await request.get({endpoint: 'https://url.external/userdata/123'})
2.4.1

9 months ago

2.4.0

10 months ago

2.3.0

10 months ago

2.3.2

10 months ago

2.3.1

10 months ago

2.3.0-beta.3

11 months ago

2.3.0-beta.1

11 months ago

2.3.0-beta.2

11 months ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago