Skip to content

iCookbook/Networking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Networking

Layer responsible for all networking of the application.

API

In this project, we use Edamam API for some reasons:

  • Unlimited requests
  • Provides a large amount of information and data

Endpoints

We have two structures conforming for EndpointProtocol protocol

public protocol EndpointProtocol

Endpoint

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

URLEndpoint

Endpoint with custom url provided in initializer.

public struct URLEndpoint: EndpointProtocol

For more details, read GitHub Wiki documentation