knuckleswtf / scribe

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

Scribe Try It Out Base URL setting being ignored when generated with laravel setting #708

Open Jamesking56 opened 10 months ago

Jamesking56 commented 10 months ago

Scribe version

4.2.2.0

PHP version

8.2.8

Framework

Laravel

Framework version

10.15.0

Scribe config

title => "<snip>"
base_url => "https://mysite.com/api"
type => "laravel"
laravel.docs_url => "/api/docs"
try_it_out.base_url => "http://google.com"
auth.enabled => true
auth.default => true
auth.name => "token"
auth.placeholder => "{YOUR_TOKEN}"

What happened?

When I run php artisan scribe:generate I am expecting the try it out base url to be http://google.com set by my config.

However, it is set to the site's app url instead.

Docs

shalvah commented 10 months ago

What do you mean? Can you provide a screenshot?

shalvah commented 10 months ago

I suspect you may be mixing up the displayed URL with the one Tri It Out requests are sent to.