步骤 2:使用新的输出类型链接路由
步骤3:在视图中添加新的输出类型支持。
接下来,定义一种新的 JSON 输出类型( 清单 22)
We saw, associated with that primitive data, we have ways of taking data in and creating new kinds of data out, or new versions of data out, so we have operations.
我们可以取得输入的数据然后,创建新的类型的输出数据,或者新的版本的输出数据,这就是我们说的操作。
应用推荐