<commit_before>API Import Export
=================

This tool is used to import and export APIs from WSO2 API Manager.

Main functionality of API Export is to retrieve all the required meta information and registry
resources for the requested API and generate a zipped archive.

Zipped archive consists of the following structure

    <APIName>-<version>
    |_ Meta Information
       |_ api.json
       |_ swagger.json
    |_ Documents
       |_ docs.json
       |_ documents with type 'file'
    |_ Image
       |_ icon.<extension>
    |_ WSDL
       |_ <ApiName>-<version>.wsdl
    |_ Sequences
       |_ In Sequence
          |_<Sequence Name>.xml
       |_ Out Sequence
          |_<Sequence Name>.xml
       |_ Fault Sequence
          |_<Sequence Name>.xml

API Import accepts the exported zipped archive and creates an API in the imported environment.

This feature has been implemented as a RESTful API.

RESTful API is protected with basic authentication.

Usage
-----


A WAR(Web Archive) can be generated by building this source.

### API Import Export among cross tenants


Place the api-import-export.war under repository -> deployment -> server -> webapps in WSO2 APi Manager 1.9.0 .

### API Import Export for a single tenant


Log in to API Management console for the required tenant domain and deploy the WAR file.

* Once the web archive is deployed, API Import and Export can be done via invoking RESTful apis.<commit_msg>Updated api-import-export README<commit_after>API Import Export
=================

This tool is used to import and export APIs from WSO2 API Manager.

Main functionality of API Export is to retrieve all the required meta information and registry
resources for the requested API and generate a zipped archive.

Zipped archive consists of the following structure

    <APIName>-<version>
    |_ Meta Information
       |_ api.json
       |_ swagger.json
    |_ Documents
       |_ docs.json
       |_ documents with type 'file'
    |_ Image
       |_ icon.<extension>
    |_ WSDL
       |_ <ApiName>-<version>.wsdl
    |_ Sequences
       |_ In Sequence
          |_<Sequence Name>.xml
       |_ Out Sequence
          |_<Sequence Name>.xml
       |_ Fault Sequence
          |_<Sequence Name>.xml

API Import accepts the exported zipped archive and creates an API in the imported environment.

This feature has been implemented as a RESTful API.

RESTful API is protected with basic authentication.

Usage
-----


A WAR(Web Archive) can be generated by building this source.

### API Import Export among cross tenants


Place the api-import-export.war under <APIM_HOME>/repository/deployment/server/webapps.

### API Import Export for a single tenant


Log in to API Management console for the required tenant domain and deploy the WAR file.

* Once the web archive is deployed, API Import and Export can be done via invoking RESTful apis.
{'fraction_non_alphanumeric': 0.06942034015966678, 'fraction_numerical': 0.0020826102047900035, 'mean_word_length': 2.9916897506925206, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7131789', 'n_tokens_mistral': 791, 'n_tokens_neox': 705, 'n_words': 347}