Forum Discussion

cjweisman's avatar
cjweisman
New Contributor
3 years ago
Solved

Want to change "default" in SwaggerHub UI

When using SwaggerHub, at the top of the list of resources, it places the word default. Is there a way to change this to something more meaningful like services?

  • Hi cjweisman 

     

    The word "default" is for operations that have no tags. I'm not aware of whether that can be changed, but one way is to add tags to your operations.

    Here is an example

     

    openapi: 3.0.3
    info:
      version: v1
      title: Example 
    paths:
      /dog:
        get: 
          description: ok
          tags:
          - Pets
          responses:
            default: 
              description: ok
      

     

     

  • Thanks so much. This totally worked for me.

2 Replies

  • Hi cjweisman 

     

    The word "default" is for operations that have no tags. I'm not aware of whether that can be changed, but one way is to add tags to your operations.

    Here is an example

     

    openapi: 3.0.3
    info:
      version: v1
      title: Example 
    paths:
      /dog:
        get: 
          description: ok
          tags:
          - Pets
          responses:
            default: 
              description: ok
      

     

     

    • cjweisman's avatar
      cjweisman
      New Contributor

      Thanks so much. This totally worked for me.