anchor.diff:  
   image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-import-openapi-link.png[Import from definition link, 300]
   
  -==== How the context-path is determined
  -
  +.How the context-path is determined
   |===
  -|Specification version |Definition |Example |Context-path
  +|Descriptor version |Definition |Example |Context-path
   
   .2+|Swagger (V2)
  -|`basePath` field, if it exists.
  +|`basePath` field, if exists.
   a|
   [source,json]
   ----
  
positive.code: | /swaggerpetstore
  
  .2+|OpenAPI (V3)
  |Path of the first `servers.url`, if it exists, without "/". +
  a|
  [source,yaml]
  ----
  
negative.code: You can also choose to activate policies that will be configured using the OpenAPI specification.
  
  JSON Validation::
  For each operation, if a `application/json` request body exists, then a JSON schema is computed from this body to configure an JSON Validation policy. +
  REQUEST only +
  More information is available link:/apim/3.x/apim_policies_json_validation.html[here].
  
  REST to SOAP transformer::
  For each operation, if the definition contains some specific vendor extensions, a REST to SOAP policy can be configured. +
  These extensions are:
  - x-graviteeio-soap-envelope: contains the SOAP envelope
  - x-graviteeio-soap-action: contains the SOAP action
  
  REQUEST only +
  More information is available link:/apim/3.x/apim_policies_rest2soap.html[here]
  
  
  Mock::
  For each operation, a mock policy is configured, based on the `example` field if it exists, or by generating a random value for the type of the attribute to mock. +
  REQUEST only +
  More info link:/apim/3.x/apim_policies_mock.html[here]
  
  Validation Request::
  For each operation, `NOT__ __NULL` rules are created with query parameters and headers. +
  REQUEST only +
  More info link:/apim/3.x/apim_policies_request_validation.html[here]
  
  XML Validation::
  For each operation, if a `application/xml` request body exists, then a XSD schema is computed from this body to configure an XML Validation policy. +
  REQUEST only +
  More info link:/apim/3.x/apim_policies_xml_validation.html[here]
  
  === Import a WSDL
  
  APIM can import a WSDL to create an API. This means you do not have to declare all the route and policies to interact with your service.
  
  To import an API from a WSDL:
  
  * If the WSDL is a file, select *IMPORT FILE* and browse your file system to select it.
  * If the WSDL is a link, select `*MPORT FROM LINK*, choose `WSDL` and enter the definition URL.
  
  image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-import-wsdl-rest-to-soap-options.png[Import from WSDL link]
  
  If you have selected the option `'Apply Rest to SOAP Transformer policy'` in addition to the option `'Create policies on path'` in the import form, a REST-To-SOAP policy will be generated for each path. These policies will provide a SOAP envelop for each method with sample data that you can change using expression language. An XML-to-JSON policy will also be generated in order to convert the entire SOAP response to JSON format.
  
  image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-import-wsdl-rest-to-soap-policy.png[WSDL REST to SOAP policy]
  
  
  == Organize your APIs with CATEGORIES
  You can create `Categories` to group APIs. The only purpose of categories is to sort APIs so consumers can easily find the APIs they need in APIM Portal.
  
  image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-manage-apis-categories-1.png[]
  
  To describe a category, you can add:
  
  - a name
  - a description
  - a picture
  - a markdown page as documentation
  
  image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-manage-apis-categories-2.png[]
  
  Once you have finished, you just need to select all the APIs you want.
  
  image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-manage-apis-categories-3.png[]
  
  You can also decide to highlight one API. This API will be located at the top of the Category page.
  
  image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-manage-apis-categories-4.png[]
  image::apim/3.x/api-publisher-guide/manage-apis/graviteeio-manage-apis-categories-4.png[]
  