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

route:list & swagger #120

Closed
garenk02 opened this issue Apr 27, 2016 · 6 comments

Comments

Projects
None yet
2 participants
@garenk02
Copy link

commented Apr 27, 2016

Hi, I have 2 questions:

  1. Why my API generated not show/working when I do 'php artisan route:list'
    [ReflectionException]
    Class App\Http\Controllers\PlacesAPIController does not exist
  2. How to automatically generate the swagger api docs?

mitulgolakiya added a commit that referenced this issue Apr 27, 2016

@mitulgolakiya

This comment has been minimized.

Copy link
Member

commented Apr 27, 2016

@garenk02 I think you have generated files then run rollback command. There was one minor bug which was not deleting routes. And also composer dump-autoload was not run.

I fixed that. Get the latest code and check again.

For swagger docs, here is the doc for that.

@garenk02

This comment has been minimized.

Copy link
Author

commented Apr 27, 2016

Hi, thanks for the fast respond
Actually, I'm very exciting with this package.
One thing that i still confuse is about the swagger, how this package generate the swagger documentation?
I'm using this package for generate/create API, when i'm done generate one API using 'php artisan infyom:api MyExampleController', is it automatically generate the swagger documentation?
If yes, how do (where) I check the documentation result?

Why, when I browse http://localhost:8000/api/docs it's show error:

ErrorException in C:\xampp\htdocs\www\api-generator\vendor\zircote\swagger-php\src\Logger.php line 38:
[Semantical Error] Couldn't find constant category_name, C:\xampp\htdocs\www\api-generator/app\Models\DiscountCategories.php on line 8.

@garenk02

This comment has been minimized.

Copy link
Author

commented May 6, 2016

Hi @mitulgolakiya
Can u help me to explain how the swagger generate di REST API documentation?
Because it's not working in my local development (after generate the api)

Many thank's

@mitulgolakiya

This comment has been minimized.

Copy link
Member

commented May 6, 2016

@garenk02 can you post your model details of saved JSON Schema files ? And all generated files ?

@garenk02

This comment has been minimized.

Copy link
Author

commented May 9, 2016

Hi @mitulgolakiya

Now when i access:

it's already working, but why it always re-generate to default state (empty paths & definitions)

Really need help.

Many thank's

@mitulgolakiya

This comment has been minimized.

Copy link
Member

commented May 19, 2016

@garenk02 what do you mean by "default state (empty paths & definitions)" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.