# SourceApi

All URIs are relative to *http://../..*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**listSources**](SourceApi.md#listsources) | **GET** /sources/available | Get all sources |



## listSources

> Array&lt;SourceSchema&gt; listSources()

Get all sources

### Example

```ts
import {
  Configuration,
  SourceApi,
} from '@equisoft/ucx-proxy-sdk-typescript';
import type { ListSourcesRequest } from '@equisoft/ucx-proxy-sdk-typescript';

async function example() {
  console.log("🚀 Testing @equisoft/ucx-proxy-sdk-typescript SDK...");
  const config = new Configuration({ 
    // To configure OAuth2 access token for authorization: default accessCode
    accessToken: "YOUR ACCESS TOKEN",
  });
  const api = new SourceApi(config);

  try {
    const data = await api.listSources();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**Array&lt;SourceSchema&gt;**](SourceSchema.md)

### Authorization

[default accessCode](../README.md#default-accessCode)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Success |  -  |
| **500** | An unexpected error happened. |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)

