fliptoo / swagger-express

Swagger + Express = {swagger-express}

Home Page:http://fliptoo.github.io/swagger-express/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to specify paramType as header

hiteshgupta9193 opened this issue · comments

I have specified my api doc as below but in this app-x-tk is being sent as query param instead of header

/**

  • @Swagger
  • path: /v1/api/getDetails
  • operations:
    • httpMethod: GET
  • summary: Get details
  • responseClass: resClass
  • nickname: getDetails
  • consumes:
  • - application/json
    
  • produces:
  • - application/json
    
  • parameters:
    • name: id
  • paramType: query
    
  • required: true
    
  • dataType: string
    
    • name: app-x-tk
  • paramType: header
    
  • required: true
    
  • dataType: string
    

*/