Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
Swagger order inner http methods

quite new to this... I'm trying to order a swagger.json nodeJS file by tags and inside by HTTP verbs.

In the example below I have a tag called Animals and under it three verbs: get, post, get because the first two are under the same path.

In my case, I want to see in Swagger preview as: get, get, post.

I tried to add an additional tag but it duplicated the code. I also see there is some kind of sort method that may help but I only see it for ASP.net and not for Nodejs.

"api/animals/elephant": {
  "get": {
    "tags": ["Animals"],
  },
  "post": {
    "tags": ["Animals"],
  }
}
"api/animals/dog": {
  "get": {
    "tags": ["Animals"],
  }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!