cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the September Hub-bub

We are inviting you to join our exciting online event where you can learn a lot of useful information, share your knowledge and have fun. Each week, we will reward the best posters with free gift cards .

Just pick any topic you like in the SwaggerHub Community, or create your own to dive into the wonderful September Hub-bub.

Event duration: September 2-27. More information.

This Week Top Contributors:

We will decide the winners next Monday

Access SwaggerHub via API

SOLVED
Highlighted
New Member

Access SwaggerHub via API

Hello,

 

we are currently evaluating SwaggerHub.

We were wondering if SwaggerHub provides its own API/ SDK which could be used e.g. to upload and manipulate definitions via an authenticated client. 

This way we would be able to register new APIs automatically without manual intervention on the UI itself. 

 

Regards,

Christian

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: Access SwaggerHub via API

Hi Christian,

 

Yes, SwaggerHub has an API:

https://api.swaggerhub.com

 

as well as plugins for Maven and Gradle:

https://github.com/swagger-api/swaggerhub-maven-plugin/

https://github.com/swagger-api/swaggerhub-gradle-plugin/


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.

Join the September Hub-bub to show off, learn and win
3 REPLIES 3
Moderator

Re: Access SwaggerHub via API

Hi Christian,

 

Yes, SwaggerHub has an API:

https://api.swaggerhub.com

 

as well as plugins for Maven and Gradle:

https://github.com/swagger-api/swaggerhub-maven-plugin/

https://github.com/swagger-api/swaggerhub-gradle-plugin/


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.

Join the September Hub-bub to show off, learn and win
Occasional Visitor

Re: Access SwaggerHub via API

SwaggerHub Team

is the SwaggerHub API accessible from a on-premise installation? If so, what would the equivalent URLs be?

Rudie B

Moderator

Re: Access SwaggerHub via API

Hi @goggatjie,

 

In SwaggerHub On-Premise, the OpenAPI definition of the Registry API can be found at:

 

http(s)://SERVER/v1/swagger.yaml   (YAML version)

http(s)://SERVER/v1/swagger.json    (JSON version)

 

You can import it as an API into your On-Premise instance to browse the API docs and test the API calls.

 

Additionally, SwaggerHub Maven plugin also supports On-Premise installations.


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.

Join the September Hub-bub to show off, learn and win
New Here?
Join us and watch the welcome video:
SeptemberNews
Join the September Hub-bub to show off, learn and win