Answer the question
In order to leave comments, you need to log in
Have a few questions about the RESTful API in Yii2?
Hello!
I'm making my admin in Yii2 and Vuejs2 and now I have to create an API (I'm still new to this). There are several questions about the API.
I read this article and understood how REST works in Yii2 and even tried it, everything works,
but ... the question is how can I get to edit or delete data according to my condition?
for example, when I add posts to the database, when adding a post, I still need to add data in other tables according to some condition, when deleting and editing it is also the same ... how can I implement this? if not difficult to explain in detail what to do.
And another question about authorization, how to implement authorization in the API?
(thanks in advance for the replies and sorry for the mistakes)
Answer the question
In order to leave comments, you need to log in
1) Write your own actions to add / change data
2) Authorization
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question