What is the difference between resource and endpoint?

后端 未结 6 1060
死守一世寂寞
死守一世寂寞 2021-01-29 18:02

I have heard both \"resource\" and \"endpoint\" to refer to the same thing. It seems that resource is a newer term.

What is the difference between them? Does \"resource\

6条回答
  •  有刺的猬
    2021-01-29 18:36

    According https://apiblueprint.org/documentation/examples/13-named-endpoints.html is a resource a "general" place of storage of the given entity - e.g. /customers/30654/orders, whereas an endpoint is the concrete action (HTTP Method) over the given resource. So one resource can have multiple endpoints.

提交回复
热议问题