json - header value : application/vnd. api+json

标签 json rest

谁能解释一下:

application/vnd.api+json

application/json

最佳答案

媒体类型application/vnd.api+json指的是JSON API。你可以阅读它in great detail here .

简而言之,JSON API 是一种自以为是且有充分理由的:

…specification for how a client should request that resources be fetched or modified, and how a server should respond to those requests.

供应商前缀 (vnd.) 表示它是为此供应商定制的。 +json 表示可以解析为 JSON,但媒体类型应在 JSON 之上定义更多语义。

关于json - header value : application/vnd. api+json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28055526/

相关文章:

json - 浏览器缓存: Json response

python - 使用 App Engine 和 Webapp 休息 Web 服务

c# - PayPal Rest API - 更新计费计划返回 URL

PHP:如何将无穷大或 NaN 数字编码为 JSON?

php - "JSON text did not start with array or object and option to allow fragments not set."

javascript - 在 MVC View 中检索 json 值的可能方法有哪些?

javascript - 计算 JSONPath

rest - 在Spring REST应用程序中使用自定义消息处理通用HTTP异常

java - 如何使用 Security and Session Spring 和 RestTemplate 为 android 创建登录和 session 管理

java - jSONArray.toJSONString() 没有给出有效的字符串