Layer responsible for all networking of the application.
In this project, we use Edamam API for some reasons:
- Unlimited requests
- Provides a large amount of information and data
We have two structures conforming for EndpointProtocol
protocol
public protocol EndpointProtocol
An endpoint is an access to a route by a separate HTTP method. The endpoint performs a specific task, accepts parameters and returns data to the client.
public struct Endpoint: EndpointProtocol
Endpoint with custom url provided in initializer.
public struct URLEndpoint: EndpointProtocol
For more details, read GitHub Wiki documentation