description |
---|
Learn how to import APIs onto your Gravitee Gateway |
Gravitee supports importing APIs as:
- Files (YML, YAML, JSON, WSDL, XML)
- Swagger/OpenAPI spec (URL)
- API definition (URL)
- WSDL (URL)
To import your API:
-
Log in to your API Console
-
Select APIs from the left nav
-
Select + Add API
-
In the Import an API definition tile, click Import
-
Choose and configure an import option:
- Upload a file: Import a YML, YAML, JSON, WSDL, or XML file
- Swagger / OpenAPI:
- Provide a Swagger descriptor URL
- Create documentation: Overwrites existing documentation or create it if it does not exist
- Create the path mapping for analytics: Overwrites all of the path-mappings
- Create policies on paths: Overwrites all of the policies. Policies that you can create upon import include JSON Validation, Mock, Request Validation, REST to SOAP, and XML Validation.
- API definition: Provide a URL that links to your API definition
- WSDL:
- Provide a WSDL descriptor URL
- Create documentation: Overwrites existing documentation or create it if it does not exist
- Create the path mapping for analytics: Overwrites all of the path-mappings
- Create policies on paths: Overwrites all of the policies. Policies that you can create upon import include JSON Validation, Mock, Request Validation, REST to SOAP, and XML Validation.
-
Click Import
{% hint style="success" %} Once you've imported your API, it will be created as a private API and you will be brought to the API menu and details page. {% endhint %}