knuckleswtf / scribe

Generate API documentation for humans from your Laravel codebase.✍
https://scribe.knuckles.wtf/laravel/
MIT License
1.58k stars 280 forks source link

Missing 'Accept' => 'application/json' #856

Open Forsakenrox opened 3 weeks ago

Forsakenrox commented 3 weeks ago

Scribe version

4.36

Your question

I have this in my config file: image But "Accept" header is missing in result output: image Did i do something wrong ? i need to add default header to all my requests.

Docs

shalvah commented 2 weeks ago

Hmmm, that's not right. Do you also have the config key 'routes' => 'apply'?

emaadali commented 2 weeks ago

I am running into this issue as well. I have set routes.apply but I still have the issue.

shalvah commented 2 weeks ago

You actually shouldn't set routes.apply.

emaadali commented 2 weeks ago

Still running into the issue, the headers overrides aren't applied

shalvah commented 1 week ago

Weird. I added a test, but I can't reproduce this. Both ways work. https://github.com/knuckleswtf/scribe/commit/a1cb38e76f1e67b198348293768ba872d633e298