Introducing New Supported Formats: RAML 1.0, Postman 2.0

Faria Rehman
APIMATIC
Published in
3 min readNov 25, 2016

The wait is over! We have added RAML 1.0 and Postman 2.0 to our list of supported formats. So grab your RAML 1.0 or Postman 2.0 APIs and start converting them to other formats of your choice or convert your existing APIs to these new formats. Unlike before, you can now also convert your APIs to Postman 1.0.

For this blog, we will be using the APIMATIC Calculator API description file as an example. You can grab this file when you export this API Entity from the My APIs page to APIMATIC format.

Export API Description

RAML 1.0

You can import your RAML 1.0 APIs from the My APIs page or you can use our Transformer to convert RAML 1.0 files to other supported formats. You can even generate RAML 1.0 files from APIs in other formats using the Transformer.

Navigate to the Transformer and using the Calculator API convert it to RAML 1.0 as follows:

API Conversion

After successful conversion, you will get your converted file in RAML 1.0 format.

API Transformer
#%RAML 1.0title: APIMATIC Calculatorversion: 1.0baseUri: http://examples.apimatic.io/apps/calculatordocumentation:- title: APIMATIC Calculatorcontent: Simple calculator API hosted on APIMATIC/{operation}:get: displayName: Calculate description: Calculates the expression using the specified  
operation.
queryParameters: x: required: true displayName: x description: The LHS value type: number format: double y: required: true displayName: y description: The RHS value type: number format: double responses: 200: description: Success body: text/plain: displayName: response type: number format: double uriParameters: operation: required: true displayName: operation description: The operator to apply on the variables type: string enum: - SUM - SUBTRACT - MULTIPLY - DIVIDE

You can also convert from RAML 1.0 back to other formats as required.

Postman

You can now convert back and forth from Postman 2.0 files. Support for converting from Postman 1.0 to other formats has been there for a while. But now we offer support for Postman 1.0 export as well. You can import your Postman 2.0 APIs from the My APIs page or you can use our Transformer to convert Postman 2.0 files to other supported formats.

Go to Transformer and convert your Calculator API to Postman 1.0 or Postman 2.0 as per your choice. For our example we will be converting to Postman 2.0.

API Conversion

After successful conversion, you will get your converted file in Postman 2.0 format

{“info”: {  “name”: “APIMATIC Calculator”,  “_postman_id”: “a2022ecc-bc18–42bc-9fd4-ccd964606911”,  “description”: “Simple calculator API hosted on APIMATIC”,  “schema”: “https://schema.getpostman.com/json/collection/v2.0.0/"},“item”: [  {   “name”: “Simple Calculator”,   “item”: [   {    “id”: “e95fc07e-85eb-40f3-a59a-99e57a808c0e”,    “name”: “Calculate”,    “request”: {     “url”: {      “protocol”: “http”,      “host”: “examples.apimatic.io”,      “path”: [       “apps”,       “calculator”,       “:operation”      ],      “port”: “80”,      “query”: [       {        “key”: “x”,        “value”: “undefined”       },        {        “key”: “y”,        “value”: “undefined”       }      ],      “variable”: [       {        “id”: “operation”,        “value”: “”        }       ]      },      “method”: “GET”,      “body”: {       “mode”: “raw”      }     },      “response”: [       {        “code”: 200        }      ]    }   ]  } ]}

You can directly import this file into your Postman app.

Postman App

After successful conversion, you will get your converted file in RAML 1.0 format.

Postman App

Do you have an APIMATIC API Description that also includes test cases? Good news! Exporting to Postman will create completely ready-to-test collection of requests.

--

--