In my honest opinion, the performance impact from the additional infrastructure code is minimal. At the same time, you probably don't want to mix things if they are responsible for different things because of SRP. Refactoring and maintaining code is much easier when code is layered.
So I can't agree with that.
Also, if you're working in a team, you probably work with the code some other developer had written. You would be surprised if you will find the UserServiceAPI class with all the logic inside. Especially if you only need to get a user using id.
SOLID principles were formed by reasons and to solve problems.
If you're sure that things won't change and you won't need to change them - it's fine.
If there are several developers which use the same public API, you probably want things to work the same for everything to keep the style it a good state.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The prosess is too long to get data from api.
It's can do it easily by merge api and services and same class
In my honest opinion, the performance impact from the additional infrastructure code is minimal. At the same time, you probably don't want to mix things if they are responsible for different things because of SRP. Refactoring and maintaining code is much easier when code is layered.
So I can't agree with that.
Also, if you're working in a team, you probably work with the code some other developer had written. You would be surprised if you will find the
UserServiceAPI
class with all the logic inside. Especially if you only need to get a user using id.SOLID principles were formed by reasons and to solve problems.
Good point, but still too long in opinion usually i used ServiceApi directly from the controller to have full control of data.
If you're sure that things won't change and you won't need to change them - it's fine.
If there are several developers which use the same public API, you probably want things to work the same for everything to keep the style it a good state.