cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the virtserver.swaggerhub.com username url?

SOLVED
Highlighted
Occasional Contributor

How to change the virtserver.swaggerhub.com username url?

Hello,

I am a first time user of app.swaggerhub.com.

Apologies if the question has been asked and answered before - I just did not find the answer yet.

 

SwaggerHub created an URL for me - Thank you.

Schemata : virtserver.swaggerhub.com/$username/$something-else/$version

Well, how can I set $username without having me to change my name in SwaggerHub.

I rather like to promote swaggerhub with the name of a colleague, client, employer, product, campaign - etc.

Just not with my username.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: How to change the virtserver.swaggerhub.com username url?

The "owner" value is either your username (for personal APIs) or your organization name (for organization-owned APIs). To change the owner you'll need to either change your username, or rename your organization, or create a new organization with the desired name.


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

3 REPLIES 3
Highlighted
Moderator

Re: How to change the virtserver.swaggerhub.com username url?

Hi @srgmat,

 

"virtserver.swaggerhub.com/{owner}/{api_name}/{version}" is the mock server created for the given API version. You can read more about API mocking here:

https://app.swaggerhub.com/help/integrations/api-auto-mocking


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

Re: How to change the virtserver.swaggerhub.com username url?

Thanks for the link.

Then let me ask more specific - how can I change the Owner manually later on?

 

You can create a mock automatically when you create a new API in SwaggerHub, or you can add it manually any time later. The base path for mock service calls is:

 

I guess deleting my existing API and creating a new one with another owner is also a valid option?

https://virtserver.swaggerhub.com/{owner}/{api}/{version}

 

Highlighted
Moderator

Re: How to change the virtserver.swaggerhub.com username url?

The "owner" value is either your username (for personal APIs) or your organization name (for organization-owned APIs). To change the owner you'll need to either change your username, or rename your organization, or create a new organization with the desired name.


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Read the Latest News
JuneSCNJ
Top Kudoed Authors