TMS XData Swagger endpoint should not show methods when they have been explictly blocked

When changing permissions on an entity, say by doing something like:
Module.SetEntitySetPermissions('MyEntity', EntitySetPermissionsNone);
the swagger endpoint should not show the POST/GET/... methods as the result would be 'forbidden' in anycase.
However, any 'service operations' which may use the MyEntity class should still be visible.