1.1.6 • Published 3 years ago

inforapipackage v1.1.6

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

inforapipackage

this package is meant to handle ionapi file of type backend service

Installation

npm install inforapipackage

it is composed by 5 functions

  • InitializeApiFile(filename)
  • Status()
  • Message()
  • RetunrTokenObj()
  • GetBaseURL()

InitializeApiFile(filename)

this function analyzes the filename checking if it is of type ionapi and if it is of type backend service if all checks are passed, set the Status to 'OK' and the Message with the text 'All checks passed', on the contrary if there are errors, it set the Status to 'KO' and the Message to the error message

Status()

this function return the status setted by the InitializeApiFile function

values:

  • OK : all checks passed
  • KO : errors

Message()

this function print the message setted by the InitializeApiFile function if the check of the file fail, then the Message function print the error message if the check of the file pass, then the Message function print the text 'All checks passed'

ReturnTokenObj()

this function return an object that contains the token you can use in an async function or as a promise

image

GetBaseURL()

this function return the baseurl used for invoking infor ion api in the ionapi file it is the property (iu) image

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago