We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have got option to add token as per below image
and my yml file looks like this version: 0.0.1
securityDefinitions: bearer: type: "apiKey" name: "Authorization" in: "header"
When I request the API after adding token it doesn't pass token in header.
Am I missing any configuration?
I am using version as below
"typescript-rest-swagger": "^1.0.3"
The text was updated successfully, but these errors were encountered:
@Gautam2010 You have to add @Security to it works
@Security
Example:
import { Security } from "typescript-rest"; ... @Security("Admin", "bearer") getProducts(): string { return "OK"; }
Sorry, something went wrong.
No branches or pull requests
I have got option to add token as per below image
and my yml file looks like this
version: 0.0.1
When I request the API after adding token it doesn't pass token in header.
Am I missing any configuration?
I am using version as below
"typescript-rest-swagger": "^1.0.3"
The text was updated successfully, but these errors were encountered: