Json api: the Chinese version of the Standard Guide for building APIs using JSON, jsonapi
Https://github.com/justjavac/json-api-zh_CN.
If you and your team have argued about how to build a reasonable JSON response format, json api is your anti-bikeshedding weapon.
By following common conventions, you can improve development efficiency and use more common tools. You can focus more on development: your program.
Json api-based clients can also make full use of the cache to improve performance, and sometimes even do not need network requests.
The following is an example of using the json api to send a response (response:
{ "links": { "posts.author": { "href": "http://example.com/people/{posts.author}", "type": "people" }, "posts.comments": { "href": "http://example.com/comments/{posts.comments}", "type": "comments" } }, "posts": [{ "id": "1", "title": "Rails is Omakase", "links": { "author": "9", "comments": [ "5", "12", "17", "20" ] } }]}
The top-level "links" section is optional. Except for the "links" section, this response looks very close to a response built using an existing API.
JSON APIs can be used not only to build responses, but also to create and update resources.
Status quo
This document is an ongoing task and will change in its implementation process. For more information, see the status page.
MIME Type
The json api has been registered with the IANA organization. Its MIME type is application/vnd. api + json.
Format
Before using the json api, check the json api format document.
Update history
- : Draft of the original version.
- : The media type has been registered in IANA.
You can use the RSS reader to subscribe to the changes in this feed.
Will XP make full use of hardware than 98, so that the game runs smoothly?
As a system that has served for more than ten years, it has ushered in its own home. Now, netizens around the world can't help but respect this tenacious system that exists in microsoft for more than 10 years. Only by constantly exploring, trying, and innovating can we make the system operation more humane. This is not comparable to XP 7 and 8.1.
What are the badminton venues in Beijing?
If you think that learning is nothing more than reading books and doing exercises, then you are wrong.
Learning is a process of gradual and continuous self-improvement, which needs to be done with our heart.