0.8.2 • Published 5 years ago

@skazska/abstract-service-model v0.8.2

Weekly downloads
51
License
MIT
Repository
github
Last release
5 years ago

abstract-service-model

Concept

  1. request -> io.handler invocation
  2. io.handler invokes sequentaly:

    • authenticator.identify with extracted tokens, (abstract method authTokens should implement auth tokens extraction from Input data) if authenticator is provided for io
    • executable.run with extracted data (abstract method data should implement data extraction from Input data)
    • return Promise with fail method result if identify or run method return error, success method success otherwise
  3. executable.run invokes:

    • _authenticate method if identity is provided for run where identity gets asked to check for realm and operation configured for executable (_authenticate method could be reimplemented)
    • _execute method - abstract, should implement actual logic.
0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago