1.0.0 • Published 12 months ago

@ty-ras/endpoint-prefix v1.0.0

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

Typesafe REST API Specification - Server Endpoint Prefixing

Coverage

This folder contains library which provides a way to group several AppEndpoints exposed by endpoint library into one AppEndpoint which is served behind a given URL prefix. It is common practice to have REST APIs with URL like /v1/data, /v1/user, etc. This library can be used to define endpoints with a prefix-agnostic URL, and then later group them by single prefix.

Notice that the prefixed grouped AppEndpoints still produce one RegExp to use to match them. This RegExp match information, using named groups, will provide enough data for the prefixed grouped AppEndpoint to delegate its functionality to the actual downstream endpoint. This yields significant performance increases in the implementation of HTTP server using prefixed AppEndpoints.

1.0.0

12 months ago

0.13.0

1 year ago

0.13.1

1 year ago

0.10.0

2 years ago

0.11.0

2 years ago

0.10.1

2 years ago

0.12.0

2 years ago

0.11.1

2 years ago

0.12.1

2 years ago

0.11.2

2 years ago

0.12.2

2 years ago

0.12.3

2 years ago

0.9.0

2 years ago