Element | Supported by Connector | Description | More Information at ... |
---|
swagger | | Specifies the Swagger specification version being used. The importer only supports Swagger 2.0. |
|
info | | Provides metadata about the API. |
|
| title | | The title is used as name for the REST interface. |
|
description | | The description is used as documentation for the REST interface. |
|
host | | 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 REST alias. |
|
basePath | | 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 REST alias. |
|
schemes | | A list of transfer protocols of the API. The first scheme is set as protocol in the REST alias. Info |
---|
The REST adapter only supports HTTP and HTTPS. |
|
|
consumes | | A list of MIME types the APIs can consume. Info |
---|
The REST adapter only parses JSON and XML. |
|
|
produces | | A list of MIME types the APIs can produce. Info |
---|
The REST adapter only parses JSON and XML . |
|
|
paths | | The available paths and operations for the API. REST resource classes are created to reproduce each paths structure. |
|
| $ref | | Allows for an external definition of this path item. |
|
methods | | The http methods defined for this path. A REST operation is created for each methods. |
|
| tags | | A list of tags for API documentation control. A usage is created from the operation to the corresponding RESTOperationTag for each tag. |
|
summary | | A short summary of what the operation does. If the description if empty, the summary is used as documentation for the operation. |
|
description | | A verbose explanation of the operation behavior. The description is used as documentation for the operation. |
|
externalDocs | | Additional external documentation for this operation. |
|
operationId | | Unique string used to identify the operation. |
|
consumes | | 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 | | 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 | | A list of parameters of parameter reference that are applicable for this operation. A REST parameter is created for each parameter object. | Parameter Object |
responses |
| | 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). 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 | | A short description of the response. The description is used as a documentation for the parameter or the usage. |
|
schema | | A definition or definition reference of the response structure. Info |
---|
The adapter does not support primitives as response therefore a responses of these types are ignored. |
| Schema Object |
headers | | A list of headers that are sent with the response. |
|
examples | | An example of the response message.
|
|
schemes | | The transfer protocol for the operation. |
|
deprecated | | Declares this operation to be deprecated. |
|
security | | A declaration of which security schemes are applied to this operation. |
|
parameters | | A list of parameters that are applicable to all the operations described under this path. |
|
definitions | | A list to hold data types produced and consumed by operations. A class is created for each schema object. | Schema Object |
parameters | | A list to hold parameters that can be used across operations. | Parameter Object |
responses | | An list to hold responses that can be used across operations. |
|
securityDefinitions | | Security scheme definitions that can be used across the specification. |
|
security | | A declaration of which security schemes are applied for the API as a whole. |
|
tags | | A list of tags used by the specification with additional metadata. A RESTOperationTag class is created for each tag definition. |
|
| name | | The name of the tag is used as name for the class. |
|
description | | A short description for the tag. The description is used as documentation for the operation. |
|
externalDocs | | Additional external documentation for this tag. The external documentation is set to the tagged values of the RESTOperationTag. |
|
externalDocs | | Additional external documentation. |
|