Lock & API REST
Lock technique
Lock fonctionnel
vs
Mechanism to provide exclusive access to a shared resource.

Lock fonctionnel - acquire

Lock fonctionnel - blocked
Optimistic locking vs Pessimistic locking
Architecture REST & Lock
Method HTTP
https://webconcepts.info/specs/IETF/RFC/4918

Ressource REST
GET /users/{uuid}/lock
POST /users/{uuid}/lock
PUT /users/{uuid}/lock
DELETE /users/{uuid}/lock
API Platform
/**
* Creates a resource metadata value object.
*
* @author Kévin Dunglas <dunglas@gmail.com>
*/
interface ResourceMetadataFactoryInterface
{
/**
* Creates a resource metadata.
*
* @throws ResourceClassNotFoundException
*/
public function create(string $resourceClass): ResourceMetadata;
}
Code

Open API


Json-LD

With a NormalizerInterface
deck
By skigun
deck
- 245