Questions tagged [swaggerhub]

SwaggerHub is an API development and documentation platform.

54 questions
1
vote
1 answer

Add an API to a specific project inside a SwaggerHub organisation

It's easy to upload an API to an organisation via SwaggerHub CLI: swaggerhub api:create OWNER/API_NAME/[VERSION] But I need to upload an API under some project inside an organisation. In all examples from…
Bohdan Kaminskyi
  • 134
  • 1
  • 11
1
vote
0 answers

How to add AWS Auth to open api spec?

I am writing API specs for a service that requires AWS auth. But I can't find any information as to how to add this authentication in the specs. ( What I did find was this:…
1
vote
1 answer

SwaggerHub mock always returns the same id - is this expected?

I created a very simple OpenAPI docs as I have just started learning about it. This is the link: https://app.swaggerhub.com/apis-docs/srki.coric/Shopping_Cart/1.0.0 There is a mock server however, my expectation was that if I do a POST request with…
SrdjaNo1
  • 755
  • 3
  • 8
  • 18
1
vote
1 answer

Swagger hub return 504 when api is tried

The application I am documenting is accessible on a VPN, I defined the api on swagger-hub, and added the server url. But when I try to execute it, swagger-hub returns 504, My understanding is because the url is not accessible on internet,…
Vikash
  • 2,046
  • 3
  • 23
  • 30
1
vote
0 answers

How to Generate Java Pojo from Swaggerhub Api during Gradle build?

My application publishes data to an application owned by another person. The model for the object is owned by that other person but they provide an API hosted in Swaggerhub for that same model. I want to automate the process of the model creation,…
1
vote
1 answer

Swaggerhub integration in spring boot

I am new to swaggerhub so please explain me from basics. In our project we are using springfox swagger and need to generate swaggerhub api specification. How can I achieve this? Please let me know in detail or share reference links.
Rupesh Patil
  • 109
  • 2
  • 10
1
vote
1 answer

API (Spring Boot - SwaggerHub Generated) results with 404, despite being mapped properly

I was using SwaggerHub recently and tried to upgrade the spring-boot version (1.5.22.RELEASE to 2.3.3.RELEASE) in the generated Spring-Boot api, because of the access management (Keycloak). Upgrading spring-boot version to 2.0.1.RELEASE does fix the…
Sercan Samet Savran
  • 755
  • 1
  • 9
  • 20
1
vote
1 answer

Integrating Swagger-UI with Angular-8 Application

I want to integrate my Angular8 (8.2.0) Application with Swagger-UI (3.24.0) and I'm getting the below error: _stream_writable.js:57 Uncaught ReferenceError: process is not defined at Object../node_modules/readable-stream/lib/_stream_writable.js…
Jayanth
  • 111
  • 1
  • 1
  • 4
1
vote
1 answer

SwaggerHub's generated spring boot server stub gives 404's when ran

I created a sample OpenAPI spec using SwaggerHub: https://app.swaggerhub.com/apis/Leejjon/Example/1.0.0 Then I generate a server stub via Export -> Server Stub -> Spring (you can do the same via the url above to get my full code) I am running on…
Leejjon
  • 680
  • 2
  • 7
  • 24
1
vote
1 answer

Reference multiple schema in a single schema

In swaggerhub I am trying to build a restful API. For which I have created n number of POJOs for request. I would like to represent them as references in other POJO example: ClientInformation: type: object schema: $ref:…
Raghuveer
  • 2,859
  • 7
  • 34
  • 66
1
vote
1 answer

Referencing remote 'response's and 'parameter's on $ref open api 3.0

I am creating a well-organized OAS3 swagger documentation on swaggerhub. For every endpoint i am writing all possible answers like 200, 201, 204, 400, 401, 403, 404, 500 etc. In addition all methods have default parameters like X-Language-Code…
darcane
  • 473
  • 3
  • 14
1
vote
1 answer

How to define headers in a swagger domain

I'm trying to define some reusable elements in a SwaggerHub domain but can't figure out how to define headers. I've tried a few things but they all produce errors, such as: $refs cannot match any of the following:…
batwad
  • 3,588
  • 1
  • 24
  • 38
1
vote
2 answers

How to add a Swagger definition for WSO2 API Manager from SwaggerHub?

In my case, I'm using WSO2 API Manager version 1.7. This version allows loading an externally published Swagger definition and importing it via a URL. I designed a Swagger definition on SwaggerHub and published on there. But I couldn't load that…
Anushka Ekanayake
  • 977
  • 2
  • 13
  • 33
0
votes
0 answers

How to automatically update API documentation in SwaggerHub?

I'm using .NET Core app and want to automatically generate OpenAPI documentation in SwaggerHub whenever I push code to a branch in GitHub, so that I can share it across teams. Manually I can run the project, open the Swagger link in a browser, copy…
Srikanth
  • 63
  • 1
  • 5
0
votes
1 answer

How to fix the "duplicate mapping key" error in the SwaggerHub editor?

When I paste my OpenAPI definition into the SwaggerHub editor, it shows the "duplicate mapping key" error. If I add some spaces, then an indentation error is shown. How to fix these errors? Here is my OpenAPI YAML code: paths: …
Muhammad Arif
  • 1,014
  • 3
  • 22
  • 56