Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Yes, stop! Models are responsible for working with relationships. REST is about controller and actions. You create a REST action (like adding a new blog post) that processes the REST controller and passes control to the model. And now this model determines how to work with connections.
Those. "working with relationships" is no different from the standard
www.yiiframework.com/doc-2.0/guide-db-active-recor...
Perhaps what you are looking for is called HAL stateless.co/hal_specification.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question