Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.5.0
Div
Classe2e-refDiv

Otp
Floatingfalse

Rp

Children Display

The E2E xUML REST Importer imports OpenAPI 2.0 Specification service descriptors encoded in YAML (Swagger) and creates UML model elements corresponding to the definitions.
Additionally, the importer can generate classes and activity diagrams enabling the modeler to execute the imported services immediately.

...

Services are defined using the following elements:

       
Element  


Supported
by
Importer
DescriptionMore Information at ...
swagger (tick)Specifies the Swagger specification version being used. The importer only supports Swagger 2.0. 
info
(tick)Provides metadata about the API. 

 title(tick)The title is used as name for the <<RESTInterface>>. 
description(tick)The description is used as documentation for the <<RESTInterface>>. 
version(tick)The version is only set in the <<RESTPortType>> if a new model is created with the import. 
host(tick)The host (name or IP) serving the API. This must be the host only and does not include the scheme nor sub-paths. It may include a port, though. host and port are set in the <<RESTAlias>> template. 
basePath(tick)The base path on which the API is served. basePath is relative to the host. If it is not included, the API is served directly under host. The basePath is set in the <<RESTAlias>> template.
schemes(tick)

A list of transfer protocols of the API. The first scheme is set as protocol in the <<RESTAlias>> template.

Note
iconfalse

The REST adapter only supports HTTP and HTTPS.


consumes(error)

A list of MIME types the APIs can consume.

Note
iconfalse

The REST adapter only parses JSON and XML.

 
produces(error)

A list of MIME types the APIs can produce.

Note
iconfalse

The REST adapter only parses JSON and XML .

 
paths 
(tick)The available paths and operations for the API. <<RESTResource>> classes are created to reproduce each paths structure. 

 $ref(error)Allows for an external definition of this path item. 
methods
(tick)The http methods defined for this path. A <<REST>> operation is created for each methods. 

tags(tick)A list of tags for API documentation control. An Usage is created from the operation to the corresponding <<RESTOperationTag>> for each tags. 
summary(tick)A short summary of what the operation does. If the description if empty, the summary is used as documentation for the operation. 
description(tick)A verbose explanation of the operation behavior. The description is used as documentation for the operation. 
externalDocs(error)Additional external documentation for this operation. 
operationId(error)Unique string used to identify the operation. 
consumes(tick)A list of MIME types the operation can consume. As the REST adapter only support JSON and XML if consumes is defined and none of these are in the list the parameters are ignored. 
produces (tick)A list of MIME types the operation can produce. As the REST adapter only support JSON and XML if produces is defined and none of these are in the list the responses are ignored. 
parameters(tick)A list of parameters of parameter reference that are applicable for this operation. A <<RESTParameter>> is created for each parameter object.Parameter Object
responses
(tick)The list of possible responses as they are returned from executing this operation. An output parameter is created for the default response status code (201 for POST, 200 for the others). For other response status codes a <<RESTResponseDefinition>> usage is created from the operation to the corresponding class. If the status code is < 400 or default, the <<RESTResponse>> stereotype is added to the class. If the status code is >= 400 or default the <<RESTError>> stereotype is added to the class. 


 description(tick)A short description of the response. The description is used as a documentation for the parameter or the usage. 
schema(tick)

A definition or definition reference of the response structure.

Note
iconfalse

The adapter does not support primitives as response therefore a responses of these types are ignored.

Schema Object
headers(error)A list of headers that are sent with the response. 
examples(error)An example of the response message.
 

schemes (error)The transfer protocol for the operation. 
deprecated (error)Declares this operation to be deprecated.  
security (error)A declaration of which security schemes are applied to this operation. 
parameters(error)A list of parameters that are applicable to all the operations described under this path. 
definitions(tick)A list to hold data types produced and consumed by operations. A class is created for each schema object.Schema Object
parameters(tick)A list to hold parameters that can be used across operations.Parameter Object
responses(error)An list to hold responses that can be used across operations. 
securityDefinitions(error)Security scheme definitions that can be used across the specification. 
security(error)A declaration of which security schemes are applied for the API as a whole. 
tags 
(tick)A list of tags used by the specification with additional metadata. A <<RESTOperationTag>> class is created for each tag definition. 

 name(tick)The name of the tag is used as name for the class. 
description(tick)A short description for the tag. The description is used as documentation for the operation. 
externalDocs(tick)Additional external documentation for this tag. The external documentation is set to the tagged values of the <<RESTOperationTag>>. 
externalDocs(error)Additional external documentation.  

When importing an OpenAPI description, the importer will generate a package structure from the OpenAPI definitions. The definitions section corresponds to the Types package, the paths section corresponds to the Services package within the imported service.