How to design and implement restful bookmark service based on UML model

Source: Internet
Author: User
Keywords RESTFUL UML model design bookmark service
Tags aliyun based bookmark service create design development how to html

This model approach makes it easier for you to explain your project to others. It can also be part of the user's documentation.

REST (representational state transfer) is an architectural form that supports the development of loosely coupled systems using HTTP protocols. Traditionally, the REST service (or http://www.aliyun.com/zixun/aggregation/14172.html) is described in the URI, resource, and HTTP methods supported by each resource and their representatives >restful WEB Services. This type of description is typically published as a document to support the implementation of the service and to support client identification and use of the Web service. Because of the lack of formal annotations, such descriptions always appear in the form of text and tables in the design document, which poses some challenges to this approach:

How do I design RESTful Web services? How do I implement this design? How do I publish the RESTful service to make it available to users? How to develop this design and implementation?

Ibm®rational®software Architect Version 8.0.3 uses RESTful WEB Service modeling and implementation support to address these challenges in the model-driven development paradigm. Modeling support allows you to create UML models for Web services to describe Web services. The same UML model is also used as a source for generating documents for people who use your Web service. On the implementation side, you can generate Java code to generate a Web service using the Java API for RESTful Web Services or Jax.

For this reason, let's take a look at the REST modeling features of Rational Software Architect. At the end of this article, you will be able to design and implement the RESTful bookmark service based on the UML model shown in Figure 1.

Figure 1. RESTful Bookmark Web Service Model

Designing Web Services

RESTful Web Service design begins with the UML model. The Rational Software Architect contains the two template models that are based on your design (as shown in Figure 2).

Figure 2. REST Model Templates

If the final implementation of the RESTful service will be based on Jax, select the Jax Services Model template. If you have not yet considered implementation or do not want to use Jax, you can choose the REST Service Model template. These model templates preset the various panels and libraries that the modeling service requires.

When you create a model, you typically see the main diagram of the model. In this diagram, you can see the rest panel on the left side (you can use this panel to create rest elements), and on the right you see the panel that selects the model element.

Figure 3. Main and REST panels

You can use this panel to create the various elements that make up the RESTful Web service.

Related Article

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.