# How to import swagger file to API store

#### Login API publisher [https://api.lion.mlabs.dpc.hu:9443/publisher](https://api.lion.mlabs.dpc.hu:9443/publisher/site/pages/login.jag?requestedPage=/publisher/)

![API Publisher login page](https://1303323730-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_J6oxfkTjM9Go4YNSW%2F-Llfk8-loYDC1ka7bFgB%2F-LlfkPgZTxzX11TBGd0X%2FScreenshot%20from%202019-08-07%2013-05-30.png?alt=media\&token=91816a1d-cf5c-421a-8914-78233048d377)

#### Add new API

![Click to "ADD NEW API"](https://1303323730-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_J6oxfkTjM9Go4YNSW%2F-Llfk8-loYDC1ka7bFgB%2F-Llfkqu8Iz0EWwnSBbSN%2FScreenshot%20from%202019-08-07%2013-07-12.png?alt=media\&token=b231bd9e-055b-4de0-bf10-1fcd9c96fa81)

#### Choose "I Have an Existing API"

![](https://1303323730-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_J6oxfkTjM9Go4YNSW%2F-Llfk8-loYDC1ka7bFgB%2F-LlflkZuzKosjsqDaPbO%2FScreenshot%20from%202019-08-07%2013-11-28.png?alt=media\&token=575d8f4b-cd56-461f-941d-9ac984cd160f)

Select "Swagger File" option and browse the required Swagger YAML file.\
After click "Start Creating" button.

#### WSO2 import and parsing Swagger file, after show the next screen.

![Design API screen after import Swagger file](https://1303323730-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_J6oxfkTjM9Go4YNSW%2F-Llfk8-loYDC1ka7bFgB%2F-LlfmpG1HBIboXI0v0C7%2FFireShot%20Capture%20001%20-%20API%20Publisher%20-%20Add%20REST%20API%20-%20api.lion.mlabs.dpc.hu.png?alt=media\&token=3a35ef07-9dda-4983-9841-a224cddfd19c)

Unfortunately the "Name" field doesn't contains space. You must review this field.

* Name
* Context
* Version
* Access Control
* Visibility on Store
* Description
* Tags
* Thumbnail Image

**We use the following settings in this demo.**

**Demo section**

| Field               | Value  |
| ------------------- | ------ |
| Access Control      | All    |
| Visibility on Store | Public |

**Implement section**

| Field                               | Value              |
| ----------------------------------- | ------------------ |
| Endpoint type                       | HTTP/REST Endpoint |
| Load Balanced                       | unchecked          |
| Failover                            | unchecked          |
| Endpoint Security Scheme            | Not Secured        |
| Enable Message Mediation            | unchecked          |
| Enable API based CORS Configuration | unchecked          |

**Manage section**

| Group                | Field                         | Value              |
| -------------------- | ----------------------------- | ------------------ |
| Configurations       | Make this the Default version | unchecked          |
|                      | Transports                    | HTTPS, HTTP        |
|                      | Response Caching              | Disabled           |
|                      | Authorization Header          | (empty)            |
| Throttling Settings  | Maximum Backend Throughput    | Unlimited          |
|                      | Subscription Tiers            | Unlimited          |
|                      | Advanced Throttling Policies  | Apply per Resource |
| API Gateways         | Production and Sandbox        | checked            |
| Business Information | (we not used)                 |                    |
| API Properties       | (we not used)                 |                    |
