typescript-rest
typescript-rest copied to clipboard
This is a lightweight annotation-based expressjs extension for typescript.
```json "express": "^4.17.2", "typescript-rest": "^3.0.4", ``` I have a route in a service: ```typescript @GET @Path("/") @PreProcessor(restAuthorise(all)) getBulkConflictsForm(@HeaderParam("content-type") contentType = "") { return this.presenter.makeBulkConflictsForm(contentType === "application/json"); } ``` As you...
Consider the following code: ```typescript import express from 'express'; import { Server, Path, GET, PathParam } from 'typescript-rest'; @Path('/foo') class FooService { @Path('bar') @GET bar() { console.log('/foo/bar called'); return 'Bar';...
Library will set headers after they are sent to the client when using `Options` decorator: 
Request to upgrade & known timeline for the same would help. 1) cookie: upgrade to 0.4.1 (Has Fix maxAge option to reject invalid values. Link: https://github.com/jshttp/cookie/releases/tag/v0.4.1.) 2) util: upgrade to...
hello, my API is running on this beautiful library, but i am getting connection errors on busy hours. is there a true way to increase the connection limits of this...
This PR introduces the option that all @PostProcessor decorators can access the result of the controller method. This is useful as one could validate the returned result against a swagger...
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project. #### Changes included in this PR - Changes to the following...
Please add some info about how to contribute in this project.
When accessing the data directly from the ContextRequest, it is returning me a json with the wrong data types, example: ``` @Path("person") export class PersonService { @GET @Path(':id') public getPerson(@ContextRequest...
### Good to know: - Method of installation: npm - [email protected] └─┬ [email protected] └─┬ swagger-ui-dist [email protected] ### Description While running an application through a CI pipeline, a step that runs...