1.2.0 • Published 7 months ago

qansigliere-axios-utils v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Qansigliere Axios Utils

This library is based on Javascript and it will contain some functions to make Rest API requests (GET / POST / PUT / PATCH / DELETE)

Author

https://www.youtube.com/@QANSIGLIERE/

Support the project

https://buymeacoffee.com/qansigliere

Installation

Using npm npm i qansigliere-axios-utils

How to use it

GET Method

get(baseURL, additionalPath, headers, returnAll = false, ignoreIssues = false)

  • baseURL - The consistent part or the root of your website's address, example: "https://YourDomain.com"
  • additionalPath - Path to a specific API resource
  • headers - request headers
  • returnAll - if it is true, the request will return an object with response status, headers and server response. if it is false, the request will return only the server response
  • ignoreIssues - if it is true, then any response with status code >= 400 and <=502 will not be passed as exception

POST Method

PUT Method

PATCH Method

DELETE Method

Improvements & Suggestions

https://forms.gle/GZbS9hw42tSYJxKL7

1.2.0

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

0.9.3

10 months ago

0.9.2

10 months ago

0.9.1

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.7.0

11 months ago

0.6.0

11 months ago

0.5.0

11 months ago

0.4.0

11 months ago

0.3.0

11 months ago

0.2.0

11 months ago

0.1.0

11 months ago