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

MPP-3799: Set tag group order in browsable API #4685

Merged
merged 1 commit into from
May 7, 2024

Conversation

jwhitlock
Copy link
Member

Use a custom SORT_OPERATIONS sort key function to organize the API endpoints by tag first.

How to test:

Run this branch, go to http://127.0.0.1:8000/api/v1/docs/. The tag order is:

  • privaterelay
  • emails
  • phones (if enabled)
  • phones: Twilio (if enabled)
  • phones: Inteliquent (if enabled)
  • phones: Outbound (if enabled)

@jwhitlock jwhitlock requested a review from groovecoder May 7, 2024 19:35
Copy link
Member

@groovecoder groovecoder left a comment

Choose a reason for hiding this comment

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

Nice! Works for Redocly docs too!
image

@groovecoder groovecoder added this pull request to the merge queue May 7, 2024
Merged via the queue into main with commit 47da312 May 7, 2024
28 checks passed
@groovecoder groovecoder deleted the sort-api-by-tags-mpp-3799 branch May 7, 2024 19:58
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