appointer / swaggervel

Swagger for Laravel
70 stars 40 forks source link

Suggestion: Add the $apiKey to the input_apiKey value #5

Closed w0rd-driven closed 7 years ago

w0rd-driven commented 7 years ago

On line 154 in my view I've added value="{!! $apiKey !!}" which sets the value to the config("swaggervel.api-key"). As a side effect, line 119 gets set on page load and I can test routes immediately without the need to click the Explore button.

In Chrome, the placeholder immediately goes away as I start typing so using an actual key instead of auth_key is difficult to deal with.

I have no problem continuing to use my custom behavior but I thought it would be beneficial to the project.

fgreinus commented 7 years ago

I guess that already is the current default. Maybe you have not yet published the newest version of the view files :).