Json api: the Chinese version of the Standard Guide for building APIs using JSON, jsonapi

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.