Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script to generate latest api specs file #1374

Merged

Conversation

jerryfletcher21
Copy link
Contributor

What does this PR do?

Right now docs/assets/schemas/api-latest.yaml is updated just when running the tests in tests/test_api.py if python3 manage.py runserver is running. The tests can be run without the django server python3 manage.py runserver running, but api-latest.yaml will not be updated.
This script adds a way to update api-latest.yaml from a running django server without having to run the tests.

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.

@jerryfletcher21 jerryfletcher21 force-pushed the script-api-specs-update branch from c7025ea to 6f36932 Compare July 13, 2024 13:00
@Reckless-Satoshi
Copy link
Collaborator

This is veery useful! Thanks a lot @jerryfletcher21

@Reckless-Satoshi Reckless-Satoshi merged commit d07c491 into RoboSats:main Sep 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants