OptionalcreateMapped to POST /{pathName}.
Used to create a new resource. The request body (req.body) is the
intended source for creation data.
OptionaldeleteMapped to DELETE /{pathName}/:{idParam}.
Used to delete a specific resource by its ID.
OptionalgetMapped to GET /{pathName}/:{idParam}.
Used to retrieve a single resource by its ID. The ID will be available
in req.params.
OptionallistMapped to GET /{pathName}.
Used to list a collection of resources. Schema validation typically applies
to req.query for filtering and pagination.
OptionalpatchMapped to PATCH /{pathName}/:{idParam}.
Used to partially update an existing resource. The request body (req.body)
should contain only the fields to be updated.
OptionalupdateMapped to PUT /{pathName}/:{idParam}.
Used to completely replace an existing resource. The request body (req.body)
should contain the full resource representation.
Defines the structure for a resource repository managed by GatEX. By implementing this interface, GatEX can automatically map its methods to standard RESTful HTTP routes.
Example