Create an endpoint

Creates a new endpoint for an API.