Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass the datastore to the XpoWebApiControllerBase inside the parameters class and not only in the headers #16

Open
egarim opened this issue Aug 10, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@egarim
Copy link
Owner

egarim commented Aug 10, 2020

in the classes

BIT.Xpo.Providers.WebApi.AspNetCore.XpoWebApiControllerBase

BIT.Xpo.Providers.WebApi.AspNet.XpoWebApiControllerBase

I get the DataStoreId from the request headers which is ok to have a human-readable value, but the value for the data store should actually come in the additional values of the parameter class

To pass the datastore id in every call we need to pass it to the class FunctionDataStore in the constructor and then use it on each of the calls to the idatastore like select data, modify data, update schema Etc

@egarim egarim added the enhancement New feature or request label Aug 10, 2020
@egarim egarim self-assigned this Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant