File tree 1 file changed +3
-39
lines changed
1 file changed +3
-39
lines changed Original file line number Diff line number Diff line change 1
- # prefcards_api
1
+ # issue reproduction
2
2
3
- auto-generate PREFcards API from ` livedata-openapi.yaml ` (OpenAPI 3.0.1 Schema) via https://github.com/openapi-generators/openapi-python-client
4
-
5
- ## new version from PREFcards or rebuild
6
-
7
- ``` cmd
8
- .venv\scripts\activate
9
- rd /q /s prefcards-api-client
10
- python materialize_parameters.py
11
- generate.cmd
12
- ```
13
- ## NOTE
14
-
15
- fix prefcards-api-client\prefcards_api_client\client.py
16
-
17
- change:
18
-
19
- ``` python
20
- return {" Authorization" : f " Bearer { self .token} " , ** self .headers}
21
- ```
22
- to:
23
-
24
- ``` python
25
- return {" Auth" : f " { self .token} " , ** self .headers}
26
- ```
27
-
28
- Update ` prefcards_api_client/pyproject.toml ` version to track .yaml version
29
-
30
-
31
- ``` cmd
32
- cd prefcards-api-client
33
- poetry shell
34
- poetry update
35
- poetry install
36
- poetry build
37
- poetry publish -r ld
38
-
39
- git push
40
- ```
3
+ run ` generate.cmd ` to build api. ` ref-issue-demo-client\ref_issue_demo_client\api\default\get_test.py ` should have
4
+ an optional ` page ` parameter.
You can’t perform that action at this time.
0 commit comments