# OpenAPIServer
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This [Symfony](https://symfony.com/) bundle is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PhpSymfonyServerCodegen

## Requirements

PHP 8.0 and later

## Installation & Usage

To install the dependencies via [Composer](http://getcomposer.org/), add the following repository to `composer.json` of your Symfony project:

```json
{
    "repositories": [{
        "type": "path",
        "url": "//Path to your generated openapi bundle"
    }],
}
```

Then run:

```
composer require GIT_USER_ID/GIT_REPO_ID:dev-master
```

to add the generated openapi bundle as a dependency.

## Tests

To run the unit tests for the generated bundle, first navigate to the directory containing the code, then run the following commands:

```
composer install
./vendor/bin/phpunit
```


## Getting Started

Step 1: Please follow the [installation procedure](#installation--usage) first.

Step 2: Enable the bundle in the bundle configuration:

```php
// app/config/bundles.php
return [
    // ...
    OpenAPI\Server\OpenAPIServerBundle::class => ['all' => true],
];
```

Step 3: Register the routes:

```yaml
# app/config/routes.yaml
open_api_server:
    resource: "@OpenAPIServerBundle/Resources/config/routing.yaml"
```

Step 4: Implement the API calls:

```php
<?php
// src/Acme/MyBundle/Api/DefaultApi.php

namespace Acme\MyBundle\Api;

use OpenAPI\Server\Api\DefaultApiInterface;

class DefaultApi implements DefaultApiInterface // An interface is autogenerated
{

    // Other operation methods ...
}
```

Step 5: Tag your API implementation:

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

Now you can start using the bundle!


## Documentation for API Endpoints

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

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


## Documentation For Models

 - [ApiDangerZonesGet200ResponseInner](docs/Model/ApiDangerZonesGet200ResponseInner.md)
 - [ApiPlayersGet200ResponseInner](docs/Model/ApiPlayersGet200ResponseInner.md)


## Documentation For Authorization

Endpoints do not require authorization.


## Author



