Introduction to the rest Modeling Language raml

Source: Internet
Author: User

What is raml? Raml is a simple restful API descriptive language. It is built based on public standards such as yaml and JSON. Through raml definition, you can generate the client call code and server code structure, and create API instructions. We know that the Web Service has a corresponding WSDL to describe its schema. The WSDL is equivalent to a description of the current service, and the client can generate the corresponding proxy Code accordingly, therefore, WSDL can help clients consume services more easily. For restful APIs, there is no corresponding "Rest WSDL". In this case, raml came into being and can provide a complete description of our APIs, whether for humans or machines, can be used in a relatively friendly way. What does raml help us do? Raml can help you organize: 1. Basic information. Describes the key points of a restful API, such as the name, title, and path. 2. User documentation. Describes the technical support documentation to help users consume APIs more conveniently. You can use the document builder to create PDF or HTML. 3. Resources. Describes how to standardize restful resources, resource methods and schemas, and interactions between resources.
How to Use raml to design APIs? Online designer: plugin. Raml designer and parser are both GitHub's open-source projects. We can integrate them into our own products. The document above is generated using the raml parser. It is a Javascript file about KB after compression and can be loaded to a browser or node. run in JS. The parser can load the specified raml file to generate HTML documents. Where are raml-related tools and resources?   Official Website: http://raml.org specifications Documentation:

Introduction to the rest Modeling Language raml

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.