Questions tagged [swaggerhub]

SwaggerHub is an API development and documentation platform.

54 questions
0
votes
1 answer

How to get rid of "API must not have local definitions (i.e. only $refs are allowed)" Swaggerhub standardization error with Springfox

I have swagger api-docs.json definition generated by SpringFox. Below minimal-reproducible-example: { "swagger": "2.0", "info": { "description": "Example REST API.", "version": "15.11.02", "title": "Example REST API", "contact":…
snieguu
  • 2,073
  • 2
  • 20
  • 39
0
votes
0 answers

How can I return the sum of lon and lat (swaggerhub)?

I have written a POST method for the input of 2 integers lon and lat. How can I calculate the sum of lon and lat and return it? openapi: 3.0.0 info: version: '1.0.0' title: '' description: '' paths: /coordinates: post: responses: …
AlexM88
  • 1
  • 2
0
votes
1 answer

Create hashmap using swaggerhub

My requirement is to create a dynamic set of fields so that they can be contained in a hashmap for further process of restful request. As suggested in link : MyBean: type: object additionalProperties: true The code that is generated is…
Raghuveer
  • 2,859
  • 7
  • 34
  • 66
0
votes
0 answers

SwaggerHub error 500 during update API definitions

I tried to update my API's swagger definition on SwaggerHub mock server. For test i download swagger file from https://petstore.swagger.io/v2/swagger.json. And try to send POST request to swaggerhub.com/apis/was_mock/uber_private. Where {owner} =…
T_E_M_A
  • 560
  • 1
  • 11
  • 28
0
votes
1 answer

SwaggerHub shows API response as [null] instead of array

I have an OpenAPI 3.0 definition in SwaggerHub at https://app.swaggerhub.com/apis/PHP-Point-Of-Sale/PHP-Point-Of-Sale/1.0#/customers/get_customers The example response is [null] when I believe it should show example values based on how I setup the…
Chris Muench
  • 17,444
  • 70
  • 209
  • 362
0
votes
2 answers

Why don't the array examples appear for my mocked Swagger 2 API on SwaggerHub?

Here is the snippet of code: /getappsettings: get: summary: Gets the collection of app settings. responses: 200: description: The successful get app settings response. schema: type: array …
dodgy_coder
  • 12,407
  • 10
  • 54
  • 67
0
votes
1 answer

Error testing API with Swagger response header 405

So I'm fairly new to creating API documentation and I'm having some difficulty creating a new entry via the swagger UI. I keep getting a 405 response. I have no idea what the issue is, I've become code blind. The link to the API is below. Any…
Sharper
  • 327
  • 3
  • 17
-1
votes
1 answer

How to import an existing OpenAPI definition to SwaggerHub?

Is there a way to import an existing OpenAPI (Swagger) definition to SwaggerHub by providing a link to the corresponding Swagger UI page? I tried importing the WEBLOC file link that I have, but SwaggerHub does not seem to be able to access it.
-3
votes
1 answer

How to Send Lead Form Data to swaggerhub Api using php?

I have a Swagger API on which, I had to send Lead Form Data From my Web Page. I Can't Get much data From internet. Form is Already Created on Swagger HUB on Which ,I can manually insert data and it's Working But I had to send data From my Webpage ,…
Code Chef
  • 31
  • 1
  • 7
1 2 3
4