Fix formatting of APIEndpoint