1.0.2 • Published 2 years ago

axios-wrapper-with-constant-url v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Getting Started

npm

npm install axios-wrapper-with-constant-url

Requirements

Url Sample

export default const urlObject = {
	"home":"/home",
	"id":"/home/:uuid",
	"slug":"/home/:slug"
}

Config Sample

config={
	name:"home",
	method:"get",
	urlList: urlObject
}
NameValuesDescription
urlurlurl with https or http is passed
nameconstant url nameur name in constant url file should be passed
paramsparamsparams can be send through params
datapayloadpayload should be passed through data
headersheadersheaders can be sent through headers
methodmethodall method can be passed through method
requiredTokenBooleandefault false
urlListurl objectconstant url object passed
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago