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

drf-spectacular in lms #35869

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

drf-spectacular in lms #35869

wants to merge 7 commits into from

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Nov 18, 2024

Steps to run this PR.

  1. pip install drf-spectacular ( already added into requirements)
  2. Generate schema file using this command from shell python manage.py lms spectacular --file schema.yaml
  3. In case generate schema with json python manage.py lms spectacular --format openapi-json > schema.json
  4. Access the schema via url http://localhost:18000/lms-api/ui/
  5. Get this docker file from here
  6. Run the commend to generate a client using yaml docker run --rm -v /Users/awais.qureshi/Documents/devstack/todo/schema.yaml:/local/schema.yaml -v /Users/awais.qureshi/Documents/devstack/todo/newclient:/local/out openapitools/openapi-generator-cli generate -i /local/schema.yaml -g python -o /local/out

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.

1 participant