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

updated the swagger page's endpoints' names to more meaningful names #77

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

waterflow80
Copy link
Collaborator

Description

Currently the endpoints in the swagger page are named the same as the controller name. So we propose to change the endpoint names in the swagger ui to a more meaningful names.
Fixes #76

Swagger UI before and after the change

Before

Screenshot from 2024-01-22 16-20-10

After

Screenshot from 2024-01-22 16-12-46

Finally

I would really like to hear your feedback on the naming of the endpoints, in order to have the best meaningful names.

Copy link
Member

@tcezard tcezard left a comment

Choose a reason for hiding this comment

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

Good initiative. It makes the swagger page looks better.

@@ -23,6 +24,7 @@

@RestController
@RequestMapping("/comparison")
@Tag(name = "Comparison endpoints")
Copy link
Member

Choose a reason for hiding this comment

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

Technically, these are also under the seqcol specification so they should be called Seqcol as well.
I would actually prefer if they are in the same section.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Technically, these are also under the seqcol specification so they should be called Seqcol as well. I would actually prefer if they are in the same section.

Yeah that makes sense, I've made the update in commit 470c68c. Now it looks like this:
Screenshot from 2024-01-23 16-14-30

Copy link
Contributor

Choose a reason for hiding this comment

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

This looks good, my nitpicks:

  • I wonder if we can at least get the two comparison endpoints to sit next to each other in the same section?
  • There's a typo in the tag name, should be Seqcol!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done !
Thanks April

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now it looks like this:
Screenshot from 2024-01-29 17-24-46

@@ -25,6 +26,7 @@

@RestController
@RequestMapping("/")
@Tag(name = "Secqol endpoint")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@Tag(name = "Secqol endpoint")
@Tag(name = "Secqol endpoints")

@waterflow80 waterflow80 merged commit a2387cf into EBIvariation:main Jan 29, 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.

change the endpoints' names in the swagger page
4 participants