refactor requests related dto with pydantic
This commit is contained in:
5
app.py
5
app.py
@ -1,7 +1,6 @@
|
||||
from dotenv import load_dotenv
|
||||
from flask import Flask
|
||||
|
||||
from dto.requests import GameStartRequest
|
||||
from dto.requests import GameStartRequestDTO
|
||||
from services.julius_baer_api_client import JuliusBaerApiClient
|
||||
|
||||
app = Flask(__name__)
|
||||
@ -14,7 +13,7 @@ def hello_world(): # put application's code here
|
||||
|
||||
if __name__ == '__main__':
|
||||
jb_client = JuliusBaerApiClient()
|
||||
game_start_request = GameStartRequest("Welch")
|
||||
game_start_request = GameStartRequestDTO(player_name="Welch")
|
||||
res = jb_client.start_game(game_start_request)
|
||||
print(res)
|
||||
|
||||
|
Reference in New Issue
Block a user