# OpenAPI\Client\DefaultApi

All URIs are relative to http://localhost, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**apiDangerZonesGet()**](DefaultApi.md#apiDangerZonesGet) | **GET** /api/danger_zones | Retrieve all danger zones |
| [**apiPlayerIdGet()**](DefaultApi.md#apiPlayerIdGet) | **GET** /api/player/{id} | Retrieve a specific player by ID |
| [**apiPlayersGet()**](DefaultApi.md#apiPlayersGet) | **GET** /api/players | Retrieve all players |


## `apiDangerZonesGet()`

```php
apiDangerZonesGet(): \OpenAPI\Client\Model\ApiDangerZonesGet200ResponseInner[]
```

Retrieve all danger zones

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->apiDangerZonesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->apiDangerZonesGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**\OpenAPI\Client\Model\ApiDangerZonesGet200ResponseInner[]**](../Model/ApiDangerZonesGet200ResponseInner.md)

### Authorization

No authorization required

### HTTP request headers

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

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

## `apiPlayerIdGet()`

```php
apiPlayerIdGet($id): \OpenAPI\Client\Model\ApiPlayersGet200ResponseInner
```

Retrieve a specific player by ID

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = 56; // int | The player's ID

try {
    $result = $apiInstance->apiPlayerIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->apiPlayerIdGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **int**| The player&#39;s ID | |

### Return type

[**\OpenAPI\Client\Model\ApiPlayersGet200ResponseInner**](../Model/ApiPlayersGet200ResponseInner.md)

### Authorization

No authorization required

### HTTP request headers

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

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

## `apiPlayersGet()`

```php
apiPlayersGet(): \OpenAPI\Client\Model\ApiPlayersGet200ResponseInner[]
```

Retrieve all players

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->apiPlayersGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->apiPlayersGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**\OpenAPI\Client\Model\ApiPlayersGet200ResponseInner[]**](../Model/ApiPlayersGet200ResponseInner.md)

### Authorization

No authorization required

### HTTP request headers

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

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