Content-Length: 259922 | pFad | http://github.com/gogs/gogs/pull/7810

D6 feat(markup): add Swagger JSON file support and Swagger UI integration by ch3nnn · Pull Request #7810 · gogs/gogs · GitHub
Skip to content

feat(markup): add Swagger JSON file support and Swagger UI integration #7810

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ch3nnn
Copy link

@ch3nnn ch3nnn commented Sep 14, 2024

Describe the pull request

A clear and concise description of what the pull request is about, i.e. what problem should be fixed?

Link to the issue:

  • Recognize and handle JSON files in the markup detection logic.
  • Integrate Swagger UI for JSON files that are identified as Swagger JSON.
  • Add a new helper function to validate Swagger JSON files.
  • Include necessary CSS and JavaScript for Swagger UI in the file template.

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan.

Test plan

- Recognize and handle JSON files in the markup detection logic.
- Integrate Swagger UI for JSON files that are identified as Swagger JSON.
- Add a new helper function to validate Swagger JSON files.
- Include necessary CSS and JavaScript for Swagger UI in the file template.
@ch3nnn ch3nnn requested a review from unknwon as a code owner September 14, 2024 10:08
@ch3nnn
Copy link
Author

ch3nnn commented Sep 14, 2024

example:

support swagger.json to display Swagger UI.

image

Copy link

@Ghous73ys Ghous73ys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gogs

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/gogs/gogs/pull/7810

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy