s-kostyuk / everpl

The Everthing Platfrom source code
https://everpl.readthedocs.io/
MIT License
0 stars 1 forks source link

Separate RestApi provider into separate views (subapps) #40

Closed s-kostyuk closed 6 years ago

s-kostyuk commented 6 years ago

For now a single class called RestApi contains an implementation of all request handling logic. It is connected directly to a god object called ApiGateway and uses its interface to process requests, return and alter data in the system.

The better approach is to have several views, when each of them will use exactly one Service class for its needs and will be responsible exactly for one set of resources like all /things/ or all /placements/