What to do when you need more verbs in REST

前端 未结 4 752
无人共我
无人共我 2021-01-30 11:32

There is another similar question to mine, but the discussion veered away from the problem I\'m encounting.

Say I have a system that deals with expense reports (ER). Yo

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-30 12:03

    What to do when you need more verbs in REST

    You have 3 options:

    • create a new resource and use the available HTTP methods with it to describe what you want
    • check the standard, maybe you are missing an already existing method
    • send a new RFC about your desired method to ietf maybe they accept it

    In your case you just missed the RFC of the PATCH method by a month or two.

提交回复
热议问题