Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API Blueprint - Avoid repeating authorization blocks

Tags:

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?

like image 639
Drew Baker Avatar asked Sep 17 '16 05:09

Drew Baker


1 Answers

Unfortunately API Blueprint has not such feature (yet)

On the other hand, I can tell you that authentication\authorisation framework is being worked - so it's possible that in a not so far future this issue will be solved for you.

Cheers!

like image 131
Vincenzo Avatar answered Oct 13 '22 10:10

Vincenzo