dotX12 / fastapi-gateway

⚙️ FastAPI gateway for microservices.
MIT License
107 stars 26 forks source link

I would like to request pull by putting the mock server function in this library. Is it possible? #9

Closed uk1996 closed 1 year ago

uk1996 commented 1 year ago

Hello, I am a developer who is developing a gateway using the fastapi_gateway library. But when the service to connect to the gateway was not developed, I wanted to use the gateway as a mock server. Therefore, by adding the bool type mock parameter of the route decoder, I will distinguish whether the corresponding API of the gateway is connected to the service, and if the mock is True, I will respond to the sample data added to the responses parameter. Is this effective in your opinion? If you think it's efficient, Is it okay if I develop the function and make a pull request?

dotX12 commented 1 year ago

@uk1996, hello! It seems to me that this is clearly not the task of the gateway, but you need to mock the answer on the final server.

dotX12 commented 1 year ago

image

uk1996 commented 1 year ago

I understand, thank you for taking the time to reply!