RESTFul中的基本概念

RESRFul中的基本概念

Resources 资源

可以说这是RESTFul中最基本的概念了。

A resource is an object with a type, associated data, relationships to other resources, and a set of methods that operate on it. It is similar to an object instance in an object-oriented programming language, with the important difference that only a few standard methods are defined for the resource (corresponding to the standard HTTP GET, POST, PUT and DELETE methods), while an object instance typically has many methods.

资源是一个对象(拥有类型,相关联的数据,关系到其他资源,和一组在其上进行操作的方法)。
资源很类是与面向对象语言中的对象实例,但是资源只有几个方法可以使用。

Resource Data

Application Data

REST Metadata

Other Data

Representations 代表

Content-Type

坚持技术分享,您的支持将鼓励我继续创作!