-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes
32 lines (27 loc) · 900 Bytes
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@request_mapping("/queryparams")
class QueryParametersResource(Resource):
@query_parameter("param1", type=int, description="chasjdhasd", required=False, default=1)
@query_parameter("param1", type=List[int], description="chasjdhasd")
# ?parma1=[1,2,3,4]
# ?param1=1¶m1=2
@response(
200, content_type={
"application/json": {
"schema": QueryParameterSchema(),
},
"text/html": None
},
description="adkjsdka"
)
@response()
@request_body(
content_types={
},
required=True
)
def get(self, request: Request) -> Response:
return Response(request.query_parameters)
---
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'
'gzip, deflate, br'
'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7'