mrak / stubby4node

A configurable server for mocking/stubbing external systems during development.
266 stars 62 forks source link

How do you define global or default headers/settings? #66

Open jennasalau opened 7 years ago

jennasalau commented 7 years ago

Our YAML file is getting really bloated because we have to repeat common headers

For example every endpoint has the following defined:

content-type: application/json
server: stubbedServer/4.2

How can I tell stubby to use these headers for ALL endpoints?

mrak commented 7 years ago

At the moment there is no way to do this, other than modifying each endpoint.