SwaggerHub is an API development and documentation platform.
Questions tagged [swaggerhub]
54 questions
0
votes
0 answers
How do I fetch from certain paths from an yaml file?
I have a create-react-app small project and I am trying to fetch from an yaml downloaded from SwaggerHubfile and I can't figure it out.
The structure of the project is as in the image:
I am trying to acces something that looks like this:
paths:
…

code_dude
- 951
- 2
- 15
- 28
0
votes
0 answers
How to access the application in azure managed kubernetes service
I am very new in a kubernetes world and learning things. I have some situation where i have installed a application(SwaggerHub) in a azure kubernetes service. I follow the installation instructions from swaggerHub documentation. Everything work…

user565
- 871
- 1
- 22
- 47
0
votes
1 answer
Swagger (hub) how to write certain type
I'm on the swaggerhub website and i need to do an API documentation.
I'm trying to define an object with multiple elements, most of which are basic, but one of the properties is another object, NOT ARRAY, but that child object can contain one or…

alex4482
- 7
- 4
0
votes
1 answer
API Documentation using XML Comments in SwaggerHub
I am trying to update API documentation for REST APIs.
Currently, I have a C# Asp.net Web API code and Swashbuckle.AspNetCore.
I am editing and adding XML comments in C# using Visual Studio to update the API documentation.
Is there a way I can do…
0
votes
1 answer
How do I include my Swagger Hub API definition in a project deployed on Heroku?
I have written the logic for a backend e-commerce REST API, and I have documented it here:
https://app.swaggerhub.com/apis-docs/chris-larham-1983/e-Commerce_Registration_Customers_Addresses_Orders/0.1#/. I would like to include this specification in…

Chris Larham
- 11
- 3
0
votes
0 answers
Fail while publishing API to swaggerhub
As part of our CI we publish API to swaggerhub via swaggerhub-cli using swaggerhub api:publish. We have several microservices and for some of them it works fine and we can see the log like Published API ****/service_name/version. But for some…
0
votes
1 answer
Why does SwaggerHub return error 403 when I test my OpenAPI definition?
I have the following OpenAPI definition hosted on SwaggerHub:
https://app.swaggerhub.com/apis/MyFirstAPI/1.0.1-oas3
openapi: 3.0.0
servers:
- url: http://api.myfirstapi.com/
info:
version: 1.0.1-oas3
title: Equ API
paths:
/query:
get:
…
user16873052
0
votes
1 answer
Swaggerhub returns predefined response, but server stub doesn't
I have API yaml specification that defines what should be the response from each endpoint, e.g. I want that /version returns version1.0 as defined:
openapi: "3.0.3"
info:
title: "TITLE"
description: "DESCRIPTION"
version: "1.0.0"
paths:
…

sassassins
- 23
- 4
0
votes
1 answer
JWT token is not working for AWS API gateway
We have around 10 .net microservices hosted on EC2,all the services are authorized using JWT token, each microservice is hosted on one port like 35.xx.xx.xx:8080 , 35.xx.xx.xx:8081 and so on. now I want to integrate these microservices to AWS API…

DJ Reddy
- 45
- 7
0
votes
1 answer
How does one refer to an API on Swaggerhub within another API?
When referencing a domain, you would use the following to get the CommonSchema model from the CommonDomain domain
$ref: 'https://api.swaggerhub.com/domains/CompanyName/CommonDomain/1.0.0#/components/schemas/CommonSchema'
How can you make a reference…

jdonn95
- 56
- 4
0
votes
1 answer
Swagger JSON - How could I fix a response render error?
I have been trying to fix an error where the Swagger would not render my JSON response - here is an attached picture of it.
The console does not show any errors so I am struggling to allocate from where the issue could be coming - here is the…

Chefoy12
- 11
- 2
0
votes
0 answers
What does the "Failed to download" error mean when importing an API into SwaggerHub?
I'm trying to import my OpenAPI JSON file, http://...../swagger/v2/swagger.json, into SwaggerHub but the import fails with this error:
The "Show Details" link shows:
Details:
Status: 403
I don't know where the error comes from because the URL is…

Lina
- 553
- 10
- 34
0
votes
1 answer
How to define an array with a fixed set of valid values?
I'm having trouble defining this field in OpenAPI. I've got a schema with a field that can hold an array of zero or more strings,
like this { "daysOfWeek": ["Monday", "Wednesday", "Friday"] }
or this { "daysOfWeek": ["Sunday", "Monday", "Tuesday",…

Michael
- 347
- 2
- 13
0
votes
2 answers
How to record api calls to mock in SwaggerHub?
I want to mock api calls from my application, and host the mock, so my tests can work without calls to real api. There is a service called restbird which does exactly that, but it is far from ideal for me. If you want to collaborate you have to host…

Simon Moshenko
- 2,028
- 1
- 15
- 36
0
votes
1 answer
How use ref example with another ref example?
I am trying to understand how to nest ref inside a ref..
I have 2 objects, ResponseObject and LastUpdatedAt:
ResponseObject:
type: object
properties:
code:
type: integer
format: int32s
minimum: 100
maximum: 600
…

JozeRi
- 3,219
- 6
- 27
- 45