register_endpoint#
- eclypse.remote.communication.rest.interface.register_endpoint(endpoint, method)[source]#
Decorator to register an endpoint in a service.
- Parameters:
endpoint (str) – The endpoint to register.
method (HTTPMethod | HTTPMethodLiteral) – The method allowed for the endpoint.
- Returns:
The decorated function.
- Return type:
Callable