razum2um / lurker

📖 The ultimate tool for documenting and testing APIs in Rails
https://lurker.razum2um.me/lurker
MIT License
116 stars 22 forks source link

How to specify headers in Doc #115

Open igorkasyanchuk opened 8 years ago

igorkasyanchuk commented 8 years ago

Hello, Is it possible to have some form similar to parameters but for headers. We have an API app and all requests require to enter Token in headers. Thanks Igor

razum2um commented 8 years ago

@igorkasyanchuk Hi, I should admit, that the web form for testing is far from ideal, but I also won't turn it into a featured http client, so I'd think about replace it with something, which can declaratively render form from json-schema, so it's low priority for me.

Please, see https://github.com/razum2um/lurker/issues/67 & https://github.com/razum2um/lurker/issues/60 if you know something suitable, please, tell me.

But still, feel free to submit PR with xhr.setRequestHeader and other stuff :)

igorkasyanchuk commented 8 years ago

@razum2um ok, thank, I'll look what I can do