You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Swagger to document a Laravel API, I got to the point of documenting a route with two path params. However, I can't pass both parameters in the Swagger url in any way, only the first one comes out.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using Swagger to document a Laravel API, I got to the point of documenting a route with two path params. However, I can't pass both parameters in the Swagger url in any way, only the first one comes out.
Route:
Route::get('to_apply_or_unapply/{vacancy_id}/{action}', [Applications::class, 'toApplyOrUnapply'])->name('api.vacancies_user.to_apply_or_unapply');
Docs:
But when executing the request, it comes out with:
http://127.0.0.1:8000/api/vacancies_user/to_apply_or_unapply/2/{action} (the "2" was the first parameter entered).
I appreciate any help
Beta Was this translation helpful? Give feedback.
All reactions