Compare commits
2 Commits
99a19a3688
...
dev
Author | SHA1 | Date | |
---|---|---|---|
4195edfcd2
|
|||
d76107222b
|
31
.vscode/tasks.json
vendored
31
.vscode/tasks.json
vendored
@@ -7,7 +7,10 @@
|
|||||||
"label": "Build",
|
"label": "Build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"linux": {
|
"linux": {
|
||||||
"command": "./.venv/bin/python -m build ./PhotosAPI_Client"
|
"command": "bash",
|
||||||
|
"args": [
|
||||||
|
"./.venv/bin/python -m build ./PhotosAPI_Client"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"windows": {
|
"windows": {
|
||||||
"command": ".\\.venv\\Scripts\\python -m build .\\PhotosAPI_Client"
|
"command": ".\\.venv\\Scripts\\python -m build .\\PhotosAPI_Client"
|
||||||
@@ -22,31 +25,29 @@
|
|||||||
"label": "Generate",
|
"label": "Generate",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"linux": {
|
"linux": {
|
||||||
"command": "./.venv/bin/openapi-python-client generate --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
"command": "bash",
|
||||||
|
"args": [
|
||||||
|
"./.venv/bin/activate && ./.venv/bin/openapi-python-client generate --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"windows": {
|
"windows": {
|
||||||
"command": ".\\.venv\\Scripts\\openapi-python-client generate --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
"command": ".\\.venv\\Scripts\\activate.ps1; .\\.venv\\Scripts\\openapi-python-client generate --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
||||||
},
|
},
|
||||||
"problemMatcher": [],
|
"problemMatcher": []
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Update",
|
"label": "Update",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"linux": {
|
"linux": {
|
||||||
"command": "./.venv/bin/openapi-python-client update --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
"command": "bash",
|
||||||
|
"args": [
|
||||||
|
"./.venv/bin/activate && ./.venv/bin/openapi-python-client update --config ./config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"windows": {
|
"windows": {
|
||||||
"command": ".\\.venv\\Scripts\\openapi-python-client update --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
"command": ".\\.venv\\Scripts\\activate.ps1; .\\.venv\\Scripts\\openapi-python-client update --config .\\config.yaml --url \"https://photos.end-play.xyz/openapi.json\""
|
||||||
},
|
},
|
||||||
"problemMatcher": [],
|
"problemMatcher": []
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@@ -22,7 +22,7 @@ This project is separated into to parts:
|
|||||||
3. Install the dependencies:
|
3. Install the dependencies:
|
||||||
`pip install -r requirements.txt`
|
`pip install -r requirements.txt`
|
||||||
4. Generate/update the client:
|
4. Generate/update the client:
|
||||||
* Generate: `.openapi-python-client generate --config config.yaml --url "OPENAPI_SPEC_URL"` (replace `OPENAPI_SPEC_URL` with your URL)
|
* Generate: `openapi-python-client generate --config config.yaml --url "OPENAPI_SPEC_URL"` (replace `OPENAPI_SPEC_URL` with your URL)
|
||||||
* Update: `openapi-python-client update --config config.yaml --url "OPENAPI_SPEC_URL"` (replace `OPENAPI_SPEC_URL` with your URL)
|
* Update: `openapi-python-client update --config config.yaml --url "OPENAPI_SPEC_URL"` (replace `OPENAPI_SPEC_URL` with your URL)
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
Reference in New Issue
Block a user