I'm using Swift to define which endpoint my network manager communicates with.

I'm unsure whether to let my struct Enddpoint inc the offset for my pages.

This comes down to a definition of endpoint.

Is the endpoint

http://api.example.com/resources?offset=0&limit=25

The same end point as

http://api.example.com/resources?offset=10&limit=25

with different parameters?

If so, are the two:

http://api.example.com/resources

http://api.example.com/games

different endpoints too?

0 Answers