chappe icon indicating copy to clipboard operation
chappe copied to clipboard

Support for headers on request

Open arturo-ojeda opened this issue 3 years ago • 4 comments

Hi

Does Chappe support request headers?

I tried adding them in different ways but could not make it work

One example: https://cln.sh/AZKicvAzGw7f9QsWWpR0

They are supported by API Blueprint but not working for Chappe.

I'll be glad to add them as a contribution but first I want to make sure

Thanks

arturo-ojeda avatar Mar 30 '22 14:03 arturo-ojeda

Hey Arturo!

You're right, we don't support them yet. I'm open for PRs on this!

All Blueprint parsing is done from there: https://github.com/crisp-oss/chappe/blob/master/res/plugins/gulp/jade-templates.js#L491 (during the Gulp build).

You're looking to debug the output of the Blueprint parser, and assign the parsed Headers from the raw Blueprint parser output to the template data object.

Thanks!

valeriansaliou avatar Mar 30 '22 14:03 valeriansaliou

Awesome, thanks for providing additional details. Will work on it 👋🏻

arturo-ojeda avatar Mar 30 '22 14:03 arturo-ojeda

This would actually be super helpful! @arturo-ojeda, were you able to implement this feature?

Bruno-Meowtel avatar Jun 22 '22 22:06 Bruno-Meowtel

I started doing it but got stuck and had to finish other things. I may continue with this in the next weeks 😅

arturo-ojeda avatar Jun 23 '22 10:06 arturo-ojeda