1.0.2 • Published 2 years ago
axios-wrapper-with-constant-url v1.0.2
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
}
Name | Values | Description |
---|---|---|
url | url | url with https or http is passed |
name | constant url name | ur name in constant url file should be passed |
params | params | params can be send through params |
data | payload | payload should be passed through data |
headers | headers | headers can be sent through headers |
method | method | all method can be passed through method |
requiredToken | Boolean | default false |
urlList | url object | constant url object passed |