TXDataServerModule.HasEndpoint Method
Checks whether an automatic CRUD endpoint is published for an entity set.
Remarks
The endpoint exists when the entity set declares an authorization requirement for the operation, even if the current user would not pass it, or when the operation is included in the permissions given to the entity set.
Syntax
Unit: XData.Server.Module
function TXDataServerModule.HasEndpoint(Permission: TEntitySetPermission; EntitySet: TXDataEntitySet): Boolean;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Permission | TEntitySetPermission | The operation to check. | |
| EntitySet | TXDataEntitySet | The entity set to check. |
Returns
True when the endpoint exists; False when it is not published.