Validate RAML and Prepare Payload

post

/mobile/tools/1.0/apis/raml

Validates the RAML descriptor file and prepares the payload for API creation. This operation doesn't create the API.

Request

Supported Media Types
Form Parameters

Response

Supported Media Types

200 Response

The RAML file was uploaded and validated, and the API metadata preview and validation report were returned.
Body ()
The API definition representation preview with the RAML descriptor and the RAML-validation result.
Root Schema : apiPreviewRamlValidation
Type: object
The API definition representation preview with the RAML descriptor and the RAML-validation result.
Match All
Show Source
Nested Schema : apiShort
Type: object
The short API definition representation.
Match All
Show Source
Nested Schema : apiPreviewRamlValidation-allOf[1]
Type: object
Show Source
Nested Schema : assetGet
Type: object
The asset representation for GET requests.
Match All
Show Source
Nested Schema : apiShort-allOf[1]
Type: object
Show Source
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Show Source
Nested Schema : assetIdEtag
Type: object
The asset ID and entity tag (ETag) values.
Show Source
Nested Schema : trash
Type: object
Indicator of whether the asset is in the trash.
Show Source
Nested Schema : assetGet-allOf[3]
Type: object
Show Source
Nested Schema : entityLinksArray
Type: array
Minimum Number of Items: 0
An array of links for an entity's metadata.
Show Source
Nested Schema : items
Type: object
Link to the entity's metadata.
Show Source
Nested Schema : icon
Type: object
Information about the icon that's associated with the API or connector.
Show Source
Nested Schema : ramlValidationReport
Type: object
The result of the RAML validation.
Show Source
Nested Schema : validationResults
Type: array
Minimum Number of Items: 0
Show Source

400 Response

RAML file content is missing.
Body ()
Root Schema : error
Type: object
Show Source
Nested Schema : errorDetails
Type: object
Show Source