Added details on endpoint.json and registering custom endpoints