Skip to content

Commit ab21766

Browse files
committedApr 30, 2022
edit README
1 parent 5708b11 commit ab21766

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed
 

‎README.md

+3-39
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,4 @@
1-
# prefcards_api
1+
# issue reproduction
22

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.

0 commit comments

Comments
 (0)
Please sign in to comment.