Is That REST API Really RPC? Roy Fielding Seems to Think So

前端 未结 9 2498
日久生厌
日久生厌 2020-12-02 04:00

A large amount of what I thought I knew about REST is apparently wrong - and I\'m not alone. This question has a long lead-in, but it seems to be necessary because the infor

9条回答
  •  隐瞒了意图╮
    2020-12-02 05:00

    I have been looking for a good example of an API written following the HATEOAS and had trouble finding one (I found both the SunCloud API and AtomPub stuff difficult to apply to a "normal" API situation). So I tried making a realistic example on my blog that followed Roy Fieldings advice on what it means to be a proper REST implementation. I found it very difficult to come up with the example, despite the fact that it is fairly simple in principle (just confusing when working with an API as opposed to a webpage). I get what Roy was taking issue with and agree, it is just a shift in mindset to implement properly for an API.

    Have a look: API Example using Rest

提交回复
热议问题