bagisto / rest-api

Bagisto REST API provides powerful and flexible endpoints to manage e-commerce operations, including products, orders, customers, and more.
21 stars 25 forks source link

cant access the documentation for the api #256

Closed AHMED-GAMAL-AG closed 5 months ago

AHMED-GAMAL-AG commented 6 months ago

cant access http://localhost/public/api/shop/documentation or http://localhost/public/api/admin/documentation

i get 404 when accessing http://bagisto.test/public/api/admin/documentation

image

when i remove the public from the url i get an empty page

image

i have set in the .env SANCTUM_STATEFUL_DOMAINS=http://bagisto.test/public

shivendra-webkul commented 6 months ago

Hi @AHMED-GAMAL-AG, Thank you for your response. I appreciate your cooperation. I've checked, but the issue isn't appearing on my end either. Regarding the generation of Swagger documentation, please run the command "php artisan bagisto-rest-api:install". This will allow you to generate the Swagger documentation. After running the command, you can access the Swagger documentation using the following path: [APP_URL]/api/shop/documentation. If you have any further questions or need assistance, feel free to ask. Thank you!