Creating an API by Importing an API from a File
You must have the API Gateway's manage APIs or activate/deactivate APIs functional privilege assigned to perform this task.
![*](icon_task_xpe.png)
To create an API by importing an API from a file
1. Click APIs in the title navigation bar.
A list of available APIs appears.
2. Click Create API.
3. Select Import API from file.
4. Click Browse to select a file.
5. Select the required file and click Open.
The Swagger parser is a self-contained file with no external references and can be uploaded as is. If the RESTful API Modeling Language (RAML) file to be imported contains external references, the entire set of files must be uploaded as a ZIP file with a structure as referenced by the RAML file.
6. Type a name for the API name in the Name field.
![*](chapterTOC_bullet.png)
If you provide an API name, this overwrites the API name mentioned in the uploaded file and the API is displayed with the name provided.
![*](chapterTOC_bullet.png)
If you do not provide an API name, the API name mentioned in the uploaded file is picked up and the API is displayed with that name.
![*](chapterTOC_bullet.png)
If you do not provide an API name and the uploaded file does not have an API name mentioned, then the API is displayed as Untitled.
7. Select the required type.
The available types are RAML, Swagger, and Web Services Description Language WSDL.
8. Provide a version for the API in the Version field.
9. Click Create.