This is my index.html. can you tell me what to add in index.html to pass 
user id in headers.

<https://lh3.googleusercontent.com/-DmtGb0i3I-E/WTM5h0WnKsI/AAAAAAAAA6U/DZTYUnRUav8MhufNMg8ZSIxhGtAqH7wPQCLcB/s1600/test.JPG>



window.onload = function() {
   // Build a system
  const ui = SwaggerUIBundle({
 
    //url: "http://petstore.swagger.io/v2/swagger.json";,
    url: "http://localhost:8080/restgreetings/webapi/swagger.json";,
 dom_id: '#swagger-ui',
    presets: [
      SwaggerUIBundle.presets.apis,
      SwaggerUIStandalonePreset
    ],
    plugins: [
      SwaggerUIBundle.plugins.DownloadUrl
    ],
    layout: "StandaloneLayout"
  })

  window.ui = ui


}


On Friday, June 2, 2017 at 4:34:37 PM UTC-4, tony tam wrote:
>
> Use the security definition type apiKey in header
>
> On Jun 2, 2017, at 1:27 PM, Veera <[email protected] <javascript:>> 
> wrote:
>
> Team,
>
> My REST application is expecting to pass user_id from header and then only 
> it will allows me to return response. I am able to achieve this by passing 
> user_id under header field from POSTMAN client.
>
> How do I achieve this by using Swagger UI.
>
>
> Thanks,
> Veera
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to