Giter Club home page Giter Club logo

Comments (6)

codewode avatar codewode commented on June 15, 2024 1

Hi @MicheleRezk
many thanks for your effort in confirming that, for some reasons, we have decided not to use custom api-gateway, but to call commercetools directly.

So this is no longer an issue, nevertheless like you have mentioned there shouldn't be a problem as the URL's are not written.

from commercetools-dotnet-core-sdk-v2.

MicheleRezk avatar MicheleRezk commented on June 15, 2024

Hello @theburhan,As per documentation, you would select Api Url based on the host Region, so I'm just wondering why would you do a custom API gateway like your example?

from commercetools-dotnet-core-sdk-v2.

codewode avatar codewode commented on June 15, 2024

Hi @MicheleRezk, I actually want to decouple dotnet service from CT via custom API gateway for two reasons, first, so that in future if for any reason I want to decommission some services from CT in favour of another external system, then dotnet service won't be affected, I will only have to update the APIM with a different target URL, so APIM here is only treated as proxy call.

Also, I will be using mock server for e2e integration tests, where I want to avoid making calls to CT. So, in the config on our test env, APIM will be making proxy calls to stubs.

I already tested that flow with SDK1, where it was working fine. Is that really a defect in SDK2 that overwrites the ApiBaseUrl or do you think it is done on purpose because having a custom APIM in this use-case is not a good practice?

from commercetools-dotnet-core-sdk-v2.

codewode avatar codewode commented on June 15, 2024

and the second case is, my service will be deployed in VNET which has no access to the internet. So, I want to make proxy call.

from commercetools-dotnet-core-sdk-v2.

MicheleRezk avatar MicheleRezk commented on June 15, 2024

Hi @theburhan,
I already checked the issue and found that we're not replacing the BaseAddress in the client, it will be same as configured in the appsettings.json, please check attached screenshot while debugging it.

BaseAddress-SDK-V2

from commercetools-dotnet-core-sdk-v2.

MicheleRezk avatar MicheleRezk commented on June 15, 2024

Hi @theburhan ,

Do you still having an issue or should I close it?

from commercetools-dotnet-core-sdk-v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.