0.3.2 • Published 3 years ago

typedapi-server v0.3.2

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

TypedAPI Server library

WebsiteDocumentation

TypedAPI is set of libraries for creating client-server APIs for applications written in typescript.

About this library

Server functionality for TypedAPI.

  • http
    • HttpProxyClient.ts: need to process Api request on other service, when you use TypedApi as set of microservices. Used only on intrance backend.
    • HttpServer.ts: HTTP server with polling support for events
    • HttpTrustServer.ts: Trust server for using in microservices.
  • ApiMap.ts: interface of map with api`s methods and events. For fast access.
  • auth.ts: authorization data interfaces
  • buildMap.ts: function for building ApiMap object from Api realization and reflection
  • clientDataReflections.ts: reflections to validate some user`s input data
  • decorators.ts: Decorators that can be added to Api methods
  • events.ts: Events implementations for server
  • EventsProxy.ts: Proxy for events. Hold events subscriptions, and signaling to server when need to notify client
  • filter.ts: filtering input/output data
  • log.ts: Base logger interface for TypedAPI classes and text implementation for console
  • MethodProxy.ts: Proxy for methods. Receive method name and raw data, validate it, call api method and return response
  • ObjectProxy.ts: Serializer/restorer for objects that can be sent between client and server
  • session.ts: SessionProvider interface that used in many configs, and mamory provider that using for testing purposes
  • validation.ts: validators for input data
0.3.2

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.1

3 years ago