Specify acceptable media types using the accept header.
使用accept头指定可接受的媒体类型。
They can use other media types that do not have schema languages.
它们可以使用其他没有模式语言的媒体类型。
Subbu Allamaraju, revisits one of the recurring debates in the REST community; the standard media types vs. custom media types and tries to determine the best practices when using them.
SubbuAllamaraju在博客中重温了REST社区中的 久辩不衰的话题(标準媒体类型和定制媒体类型的比较)并试图寻找使用他们的最佳实践。
If the media types are described using an XML schema, grab that schema and generate classes that can parse or generate XML.
如果媒体类型是用XML模式描述的,那么就获取这个模式,生成能够解析或者生成xml的类。
Per this line of thinking, a media type is an identifier for message semantics, and message recipients use media types to trigger processing code.
按照这种思路,媒体类型是一种消息语义标识符,消息接收者可使用该媒体类型触发处理代码。
In order for machines to effectively exploit information, every unique schema of information needs to be standardised in a media type and for those media types to be individually identified.
为使计算机有效地挖掘信息以及多媒体类型能够被个性化地标识,多媒体类型信息中的任何唯一的格式都应该标準化。
The only difference is that the post string itself is passed in as a method parameter to the resource.post method after specifying the request and response media types and the response entity type.
唯一的不同在于,指定请求和响应媒体以及响应实体类型之后,post字符串本身作为方法参数传递到resource .post方法。
Opinion 1: Web services must use standard media types to be RESTful.
观点1:web服务必须要使用标準媒体类型才符合RESTful。
Produces: This annotation specifies the MIME media types that the methods in the resource can produce and return to the client.
Produces:该注解用于标识MIME媒体类型,这样资源中的方法就会生成该类型的内容并返回给客户端。
The number of media types grows as machines become more dominant in a distributed computing environment and as the number of distinct environments increases.
随着计算机在分布式计算环境中的地位越来越重要,加上独特计算环境的数目的增长,多媒体类型的数量也随之增长。
Similarly, the JSON test case (Listing 3) lists a set of media types that should return JSON; namely, application/json.
类似地,JSON测试用例(清单3)列出一组应返回JSON(即application/json)的媒体类型。
For example, an HTTP GET request might contain a list of media types supported by the client in the Accept header.
例如,HTTPGET请求可以在Accept标头中包含一个受该客户端支持的媒体类型列表。
Check that the media types of representations are predefined.
检查表示的媒体类型是否是预定义的。
Table 2 lists some of the media types you might encounter.
表2列出了可能遇到的一些媒体类型。
The Accept request header is used to specify which media types are appropriate for the response.
接受请求头用于指定什么媒体类型对响应是合适的。