Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have reached a bit of confusion when creating my Services. I have a User table and Company table in the database. these tables are exposed via services to the client.
My question is which of the following ways do i use to expose the company name to the client?
IUserService
{
string GetComanyName(stirng username);
}
IComanyService
{
string GetComanyName(stirng username);
}
I would use the second method for exposing the web service, simply because it is more logical. You use the company object to get the company's name and not a user object to get a company's name.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
working in a vehicle protection association and I need to identify which of our associates are uber drivers, is this possible to be done using the api?
Taking a look at the documentation, there are only these endpoints https://developer.uber.com/docs/drivers/references/api#endpoints.
And I think none of them solves the problem.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
If i have two services, lets say IPrinterService and ILoggerService, should I inject ILoggerService into my implementation of IPrinterService and log exceptions from my implementation, or should i inject both services into my ViewModel and if IPrinterService throws exception then log this using injected ILoggerService?
My opinion is that you should do whatever will create the least number of dependencies in your code. This usually (but not always) means injecting the logger service into the printer service.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Are there any known best practices for web service REST API bulk naming?
Some suggestions for user resource :
/api/users-bulk
/api/bulk/users
/api/users/bulk
/api/users/_bulk
There is no rules, you can use any routes, but I prefer 3rd /api/users/bulk in case bulk is additional functionality for users (like get all users /api/users, get user by id /api/users/:id, ...). In this case all user related operations are under /api/user/.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to allow my meteor app to have siloed organizations/teams that essentially have separate databases. They can only see their own content/users.
What is the most efficient way for me to set this up?
Options that I can think of:
Every user & piece of content has an associated organization ID
Each org has a separate instance of the app with its own separate DB
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to display the resources and associated subresources of a restful API I am working with (https://api.lendingclub.com/api/investor//). If resources aren't documented, is there any way to find them?
There presently is not a standard way to discover restful API operations like there is with WSDL based soap web services.
Documentation from the API provider is the best way to learn.