BConnect POS - Reference PHP

GetUsersByPointOfSale extends AbstractController
in package

Exposes the list of active users attached to a given point of sale, consumed notably by the mobile application.

Attributes
#[AsController]

Table of Contents

Properties

$entityManager  : EntityManagerInterface
$serializer  : SerializerInterface

Methods

__construct()  : mixed
getUsersByPointOfSale()  : JsonResponse
Returns the non-archived users of the requested point of sale.

Properties

Methods

__construct()

public __construct(EntityManagerInterface $entityManager, SerializerInterface $serializer) : mixed
Parameters
$entityManager : EntityManagerInterface

Doctrine entity manager.

$serializer : SerializerInterface

Serializes the users to JSON.

getUsersByPointOfSale()

Returns the non-archived users of the requested point of sale.

public getUsersByPointOfSale(int $pointOfSale) : JsonResponse
Parameters
$pointOfSale : int

Point-of-sale identifier.

Attributes
#[Route]
$path: "/api/users/point_of_sale/{pointOfSale}"
$name: "api_get_user_point_of_sale"
$methods: ["GET"]
Return values
JsonResponse

Users serialized using the "user:read" group.

On this page

Search results