cancel
Showing results for 
Search instead for 
Did you mean: 

Access SwaggerHub via API

SOLVED
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.

View solution in original post

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.

View solution in original post

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

Highlighted
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.
New Here?
Join us and watch the welcome video:
Watch the new Interview