Ember Octane 在模型上调用保存时默认接受和 content-type headers 是什么?
Ember Octane when calling a save on the model what is the default accept and content-type headers?
在EmberOctane中,调用模型保存时调用保存到back-end(.NET CORE 3.1),默认是什么accept
和 content-type
headers?我试过在线查找,但我似乎无法在文档中找到任何内容。
是application/json
还是application/vnd.api+json
?
这取决于你使用的适配器,默认的是json-api,
最新的 JSON API 规范说
Clients MUST send all JSON:API data in request documents with the
header Content-Type: application/vnd.api+json without any media type
parameters
在EmberOctane中,调用模型保存时调用保存到back-end(.NET CORE 3.1),默认是什么accept
和 content-type
headers?我试过在线查找,但我似乎无法在文档中找到任何内容。
是application/json
还是application/vnd.api+json
?
这取决于你使用的适配器,默认的是json-api, 最新的 JSON API 规范说
Clients MUST send all JSON:API data in request documents with the header Content-Type: application/vnd.api+json without any media type parameters