rest - How To Define API Blueprint X-Auth-Token Header -
i have number of services require x-auth-token header sent similar below:
x-auth-token: 2e5db4a3-c80f-4cfe-ad35-7e781928f7a2
i able specify in api documentation following api blueprint standard. however, can tell api blueprint headers section definition, can specify literal values (e.g. accept-charset: utf-8
) , not schema header should (e.g. x-auth-token (string)
).
i impression traits might problem it's little on head @ moment. can tell me how specify requests given action (or set of actions) require x-auth-token header?
you right not being able define schema headers. unfortunately, api blueprint doesn't support yet.
until supported, can use literal value header following:
+ headers x-auth-token: 2e5db4a3-c80f-4cfe-ad35-7e781928f7a2
api blueprint not support traits
currently. afraid might have been confused reading other feature requests.
Comments
Post a Comment