Reputation: 14430
In API Blueprint, how do I avoid using the same request Authorization header block over and over for every endpoint?
+ Request (application/json)
+ Headers
Authorization: Bearer jsonWebToken
Is there a way to template this in a data structure perhaps?
Upvotes: 5
Views: 867
Reputation: 3693
Vincenzo answer is correct. The issue planned to address this is Authentication and MSON Parameters and Headers.
In the mean time. One work-around would be to use Hercule to split your blueprint into multiple parts and transclude the auth headers.
Upvotes: 1