Luracast / Restler

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and/or RESTful API
http://luracast.com/products/restler/
GNU Lesser General Public License v2.1
1.36k stars 315 forks source link

Swagger issue locally #678

Open mfonsatti opened 2 years ago

mfonsatti commented 2 years ago

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 commented 2 years ago

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 ?