event-gateway icon indicating copy to clipboard operation
event-gateway copied to clipboard

Status endpoint on Events API

Open rupakg opened this issue 7 years ago • 1 comments

This endpoint can be used to make sure that the event-gateway is up. Currently, I override the port from 4000 to 8055, but when I call it from the FDK, I cannot connect.

This will make it easier to debug where the problem lies.

rupakg avatar Aug 07 '17 15:08 rupakg

Workaround right now is to register dummy function & HTTP subscription that will always return 200 OK.

Other solution would be to add another type of built-in subscription http-status:

{
    "event": "http-status",
    "path": "/status",
    "method": "GET",
    "statusCode": 200
  }

That subscription is not backed by a function. It's handled by the EG and always returns a status code defined in statusCode field.

mthenw avatar Aug 17 '17 10:08 mthenw