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
  • multipart/form-data
Form Parameters
file
Type: file
Required: true
The RAML descriptor file to upload.

Response

Supported Media Types
  • application/json
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.
Nested Schema : apiShort
Type: object
The short API definition representation.
Nested Schema : apiPreviewRamlValidation-allOf[1]
Nested Schema : assetGet
Type: object
The asset representation for GET requests.
Nested Schema : apiShort-allOf[1]
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Nested Schema : assetIdEtag
Type: object
The asset ID and entity tag (ETag) values.
Nested Schema : trash
Type: object
Indicator of whether the asset is in the trash.
Nested Schema : assetGet-allOf[3]
Nested Schema : entityLinksArray
Type: array
Minimum Number of Items: 0
An array of links for an entity's metadata.
Nested Schema : items
Type: object
Link to the entity's metadata.
Nested Schema : icon
Type: object
Information about the icon that's associated with the API or connector.
Nested Schema : ramlValidationReport
Type: object
The result of the RAML validation.
Nested Schema : validationResults
Type: array
Minimum Number of Items: 0
400 Response
RAML file content is missing.
Body
Root Schema : error
Type: object
Nested Schema : errorDetails
Type: object