typescript-rest icon indicating copy to clipboard operation
typescript-rest copied to clipboard

This is a lightweight annotation-based expressjs extension for typescript.

Results 78 typescript-rest issues
Sort by recently updated
recently updated
newest added
trafficstars

Hello, There is a syntax error / typo in the Wiki page. Page: https://github.com/thiagobustamante/typescript-rest/wiki/Server Issue: there is closing square bracket without opening bracket in "base folder for the patterns" Pic...

Allows the following behavior: ``` const authMiddleware = async (req, res, next) => { const userId: string = await authenticateRequestAndReturnCurrentUserId(...); req.userId = userId; next(); } ... @ Path('people') class PeopleService...

When a query parameter is an Array, but the query contains just one element (for example `/path?words=foo` as opposed to `/path?words=foo&words=bar`) then at run-time the parameter passed to the controller...

Update for issue #99 Greetings! I stumbled upon your repository last night while looking for interesting projects for #hacktoberfest. I will admit, I love this approach to building RESTful services....

Hello, My current use case is that I have a service that provides two separate APIs. However even though these APIs are using different express routers and path prefixes typescript-rest...

I see references to creating our own ServiceFactory for using other IoC containers like Inversify. I've been working with this for several hours now and can not figure out how...

When using controller directory have subdicrectory. #### directory example ``` src ├── controller │ └── host │ └── host-first-controller.ts │ └── host-second-controller.ts │ └── guest │ └── guest-first-controller.ts │ └──...

So, not sure if I'm doing something incorrectly, but here, I use this code: ```ts @Path('/test') @POST async test() { throw new Errors.NotFoundError('Not Found'); } ``` Then I generate swagger....

when I define my own interface, for example: **FileList** 。it is not my own interface。 it will refer to this: typescript global interface [FileList](https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.filelist.html ) after I debug the code,...

When using `cls-hooked` to store a request context, it does not work if the body parser is used. I made a small example project to reproduce the issue: [mwe.zip](https://github.com/thiagobustamante/typescript-rest/files/3658666/mwe.zip) Ignoring...