Skip to content

Commit

Permalink
Document mqtt-credentials endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
fracz committed Jan 30, 2025
1 parent 053c2e0 commit 7b64971
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/SuplaBundle/Controller/Api/MqttSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;
use OpenApi\Annotations as OA;

class MqttSettingsController extends RestController {
use Transactional;
Expand All @@ -43,6 +44,18 @@ public function __construct(ContainerInterface $container, ApiClientAuthorizatio
}

/**
* @OA\Post(
* path="/integrations/mqtt-credentials", operationId="createMqttBrokerCredentials",
* summary="Creates MQTT Broker credentials for the OAuth Client.", tags={"Integrations"},
* @OA\Response(response="200", description="Success", @OA\JsonContent(
* @OA\Property(property="host", type="string"),
* @OA\Property(property="protocol", type="string"),
* @OA\Property(property="port", type="integer"),
* @OA\Property(property="tls", type="string"),
* @OA\Property(property="username", type="string"),
* @OA\Property(property="password", type="string"),
* ))
* )
* @Post("/integrations/mqtt-credentials")
* @Security("is_granted('ROLE_MQTT_BROKER')")
*/
Expand Down

0 comments on commit 7b64971

Please sign in to comment.