Forum Discussion

paulyk1983's avatar
paulyk1983
New Contributor
6 years ago
Solved

Not able to reference a domain

I am a bit confused. Not sure if it is something I am doing wrong, or something wrong with SwaggerHub but I am having an issue referencing a domain.   Link to API: https://app.swaggerhub.com/apis...
  • RonRatovsky's avatar
    RonRatovsky
    6 years ago

    Sometime, one character breaks everything. Took me a long time to figure it out as well.

     

    When referencing domains, make sure the beginning of the referenced URL is api.swaggerhub.com and not app.swaggerhub.com.

     

    So, in your case, the URL should be:

    https://api.swaggerhub.com/domains/bosch/DX-UserModel/1#/definitions/User

     

    The difference being giving the URL of the application, or giving the URL of the Domain itself. This is where our auto-complete feature comes in handy. It will automatically populate your reference options with relevant definitions, whether from the same file, or from Domains within your organization.

     

    You can find all sorts of useful keyboard shortcuts (including the auto-complete) at https://app.swaggerhub.com/help/ui/editor.