# OpenAPI\Server\Api\DefaultApiInterface

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

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


## Service Declaration
```yaml
# config/services.yaml
services:
    # ...
    Acme\MyBundle\Api\DefaultApi:
        tags:
            - { name: "open_api_server.api", api: "default" }
    # ...
```

## **apiDangerZonesGet**
> OpenAPI\Server\Model\ApiDangerZonesGet200ResponseInner apiDangerZonesGet()

Retrieve all danger zones

### Example Implementation
```php
<?php
// src/Acme/MyBundle/Api/DefaultApiInterface.php

namespace Acme\MyBundle\Api;

use OpenAPI\Server\Api\DefaultApiInterface;

class DefaultApi implements DefaultApiInterface
{

    // ...

    /**
     * Implementation of DefaultApiInterface#apiDangerZonesGet
     */
    public function apiDangerZonesGet(int &$responseCode, array &$responseHeaders): array|object|null
    {
        // Implement the operation ...
    }

    // ...
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**OpenAPI\Server\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#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

## **apiPlayerIdGet**
> OpenAPI\Server\Model\ApiPlayersGet200ResponseInner apiPlayerIdGet($id)

Retrieve a specific player by ID

### Example Implementation
```php
<?php
// src/Acme/MyBundle/Api/DefaultApiInterface.php

namespace Acme\MyBundle\Api;

use OpenAPI\Server\Api\DefaultApiInterface;

class DefaultApi implements DefaultApiInterface
{

    // ...

    /**
     * Implementation of DefaultApiInterface#apiPlayerIdGet
     */
    public function apiPlayerIdGet(int $id, int &$responseCode, array &$responseHeaders): array|object|null
    {
        // Implement the operation ...
    }

    // ...
}
```

### Parameters

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

### Return type

[**OpenAPI\Server\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#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

## **apiPlayersGet**
> OpenAPI\Server\Model\ApiPlayersGet200ResponseInner apiPlayersGet()

Retrieve all players

### Example Implementation
```php
<?php
// src/Acme/MyBundle/Api/DefaultApiInterface.php

namespace Acme\MyBundle\Api;

use OpenAPI\Server\Api\DefaultApiInterface;

class DefaultApi implements DefaultApiInterface
{

    // ...

    /**
     * Implementation of DefaultApiInterface#apiPlayersGet
     */
    public function apiPlayersGet(int &$responseCode, array &$responseHeaders): array|object|null
    {
        // Implement the operation ...
    }

    // ...
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**OpenAPI\Server\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#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

