Use Swagger UI to generate interactive API documentation that lets your users try out the API calls directly in the browser . Use the spec to connect API-related tools to your API. For example, import the spec to SoapUI to create automated tests for your API.