@@ -51,6 +51,70 @@ async def get_user_list(
5151 raise ApiResponseError (response = response )
5252
5353
54+ async def get_basic_list_of_strings (* , client : Client ,) -> List [str ]:
55+
56+ """ Get a list of strings """
57+ url = "{}/tests/basic_lists/strings" .format (client .base_url ,)
58+
59+ headers : Dict [str , Any ] = client .get_headers ()
60+
61+ async with httpx .AsyncClient () as _client :
62+ response = await _client .get (url = url , headers = headers ,)
63+
64+ if response .status_code == 200 :
65+ return [str (item ) for item in cast (List [str ], response .json ())]
66+ else :
67+ raise ApiResponseError (response = response )
68+
69+
70+ async def get_basic_list_of_integers (* , client : Client ,) -> List [int ]:
71+
72+ """ Get a list of integers """
73+ url = "{}/tests/basic_lists/integers" .format (client .base_url ,)
74+
75+ headers : Dict [str , Any ] = client .get_headers ()
76+
77+ async with httpx .AsyncClient () as _client :
78+ response = await _client .get (url = url , headers = headers ,)
79+
80+ if response .status_code == 200 :
81+ return [int (item ) for item in cast (List [int ], response .json ())]
82+ else :
83+ raise ApiResponseError (response = response )
84+
85+
86+ async def get_basic_list_of_floats (* , client : Client ,) -> List [float ]:
87+
88+ """ Get a list of floats """
89+ url = "{}/tests/basic_lists/floats" .format (client .base_url ,)
90+
91+ headers : Dict [str , Any ] = client .get_headers ()
92+
93+ async with httpx .AsyncClient () as _client :
94+ response = await _client .get (url = url , headers = headers ,)
95+
96+ if response .status_code == 200 :
97+ return [float (item ) for item in cast (List [float ], response .json ())]
98+ else :
99+ raise ApiResponseError (response = response )
100+
101+
102+ async def get_basic_list_of_booleans (* , client : Client ,) -> List [bool ]:
103+
104+ """ Get a list of booleans """
105+ url = "{}/tests/basic_lists/booleans" .format (client .base_url ,)
106+
107+ headers : Dict [str , Any ] = client .get_headers ()
108+
109+ async with httpx .AsyncClient () as _client :
110+ response = await _client .get (url = url , headers = headers ,)
111+
112+ if response .status_code == 200 :
113+ return [bool (item ) for item in cast (List [bool ], response .json ())]
114+ else :
115+ raise ApiResponseError (response = response )
116+
117+
54118async def upload_file_tests_upload_post (
55119 * , client : Client , multipart_data : BodyUploadFileTestsUploadPost , keep_alive : Optional [bool ] = None ,
56120) -> Union [
0 commit comments