KB Article #177535

"Unknown API definition format: rest" error when importing API export

Problem

* When an API created by "Import API From Topology" is exported and then imported on another environment, you receive the error "Unknown API definition format: rest" like the following -


Resolution

-- This is caused by a known bug in the export process and fixes are scheduled for 7.4.1 SP1. Existing exports that cause this error will need to be fixed manually. The previously exported API collections can be fixed by editing the exported JSON and changing the backend blob type from "rest" to "swagger11ex" as shown below:


"backend" : {

"apiBlobs" : [{

"id" : "02d9fa94-f4f7-4970-ae31-fd653706d1fd",

"type" : "rest", =====> "type": "swagger11ex",


SP1 for 7.4.1 is available for download from the Downloads section once logged into the Sphere support portal.