Endpoint creation & use in Angular Service

For better coding structure, You should create endpoint.ts file for all of APIs in application like the following way.