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

前端 未结 9 2513
日久生厌
日久生厌 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:06

    Let's assume GET /foos/createForm is invoked to get form fields values for which must be provided when we go to create POST /foos . Now this particular URL i.e the 1 used to create foos should be mentioned within the response for GET /foos/createForm as a submit action link according to Fielding's proposition, right ?
    Then what is the benefit of mapping actions to well-known Http verbs to actions, "convention over code/config" thing is nullified.

提交回复
热议问题