Ember.js & REST API

前端 未结 4 556
Happy的楠姐
Happy的楠姐 2021-02-02 11:38

From all the various examples of Ember.js, I have not been able to figure out if there is a default method in Ember.js to do REST AJAX calls. Many examples build their own inter

4条回答
  •  终归单人心
    2021-02-02 11:55

    Ember.js can work nicely with Ember Data. That said, there is a specific format of REST to follow. When followed, you can streamline the process of connecting API with Ember and have so much less work.

    In case you use custom REST, the place to adjust is:

    • adapter - to inform from where you like to get data
    • serializer - how data should be adjusted for custom REST API

提交回复
热议问题