5

我正在创建一个应用程序,我真的希望它遵循HATEOAS REST 要求,非常 RESTful。在前端,我正在考虑使用 Ember,因为它似乎与我喜欢构建前端应用程序的方式非常一致。不幸的是,内置的 REST 数据源适配器似乎不理解如何导航遵循 HATEOAS 的 API - 我必须根据 ID 指定数据,而不是通过 URL。

Google 没有帮助我 -有人知道支持 HATEOAS的数据适配器吗如果没有,我会尝试建造一个,但我不想浪费时间!

4

1 回答 1

0

Ember Data strives to follow the JSON API spec, which came out of the formats that the REST adapter follows.

There are two formats, and while the ID-based format requires the client to have the URLs hard-coded for the resources, the URL-based format works with URL templates to include the links in the representations directly.

于 2014-01-15T18:41:35.357 回答