typescript-rest
typescript-rest copied to clipboard
This is a lightweight annotation-based expressjs extension for typescript.
Hi, I have a question. I try to implement MyAuthentificator. I made the class implements ServiceAuthenticator, but I don't know how to make body method "initialize". Can you help me?...
The standard Express syntax already specifies the HTTP method... i.e. ```router.get('/foo', () => { ... })``` Can't we introspect the HTTP method (in this case `GET`) from the code, rather...
Hi, Just after some advice on how to return jsonp responses and protobuf with typescript-rest. Is the only way to extend the return types? thanks
I'm trying to implement object-oriented style for my endpoints, but I end up having issues with `@Path()` because of that. Example: ```ts // users.endpoint.ts @Path('users') class UsersEndpoint extends CRUD {...
I find myself quite often needing to reference the currently authenticated user, meaning you need to ensure you have a ServiceContext so that you can do context.request.user.xyz It seems that...
Recently I created abstract classes (Controller, Service and Repository) for CRUD operations using typescript-rest (look: [robbyson-abstract-framework](https://github.com/lucasalvesteixeira/robbyson-abstract-framework)). When I extend these classes, swagger exposes all routes normally, however, when creating an...
Hi, Using the brand new 2.0.0 release, the abstract class HttpError seems not to be exported by default. I have to implement : ``` import { Errors } from 'typescript-rest';...
Hi get error on parameter which should not be documented try to use on GET request @GET getData(@Parama(x) x, @Parama(y) y, @mycustomParam() myCustom) { } throw new Error("Error generate parameter...
@thiagobustamante Is there any way to raise two swagger servers with different configurations? I have tried it and it raises me two servers but only uses the configuration of the...
Hi, Is there a support for client implementation ? I would like to be able to declare an interface, annotated for the declaration of the REST API and then :...