Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger issue locally #678

Open
mfonsatti opened this issue Feb 28, 2022 · 1 comment
Open

Swagger issue locally #678

mfonsatti opened this issue Feb 28, 2022 · 1 comment

Comments

@mfonsatti
Copy link

Restler V3.0.0

I inherited a legacy project based on Restler V3.0.0
I start the project with the command php -S localhost:<PORT> -t public ...

but If I go to localhost:<PORT>/docs the Swagger interface has problems because of not loaded resources
image

How can I solve this?

@mfonsatti
Copy link
Author

mfonsatti commented Feb 28, 2022

seems that the Swagger files are inside the folder docs that is inside the public folder at the root of the project.
So, I just added /docs as prefix of each lib/css requested into the HTML part of swagger to fix the previous problem ...

Now the situation running my project locally localhost:<PORT>/docs is the one below

image

The resource.json that is missing is not present in the project.
Is this something that I have to create manually ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant