kotcich
(kotcich)
1
If i set that URL: back…ru-rest-some_id, i’ll get user with some_id.
But, how can i get user with name = (some name) in URL
back.ru/rest/?name=Maxim
(or something like that)?
P.S.
First url seems strange, because form validation doesn’t allow that url(i dont know why)
evstevemd
(Stefano Mtangoo)
2
What is your current ActiveRecord code?
bpanatta
(Bruno Panatta)
3
Hi kotcich, remember that Yii2 rest works with fields: Rest Resources - Fields
Also review how the action parameters works: Action Parameters
bpanatta
(Bruno Panatta)
4
Also, the URL is always defined by your routing configuration: Rest Routing