Questions tagged [swagger-2.0]

Swagger is a specification and framework implementation for describing, producing, consuming, and visualizing RESTful web services. Swagger 2.0 is the current generation of the spec and includes many improvements over 1.X. This specification is now known as Open API 2.0.

1 vote
0 answers
34 views

Why Swagger with Golang is not working in Vercel production?

I have a Golang project, deployed in vercel environment. Everything is working fine but swagger. Swagger implementation is working fine in dev environment but in the production same route doesn't work....
0 votes
0 answers
9 views

How to specify same path params at a single place for multiple endpoints in a swagger.yaml file [duplicate]

I have 3 end points start, stop, status that looked like this paths: /users: # other endpoint /containers/{vendorID}/{pluginID}/{artifactID}/start: parameters: - in: path ...
  • 1,765
0 votes
0 answers
14 views

How to embed URL in swagger response objects

I would like to embedd an URL(local defined in the same swagger.yaml) in one of the responses. Some thing very much similar to this. The response object from github's get request has many properties ...
  • 1,765
0 votes
1 answer
23 views

Why does swagger codegen generates createAll java method name as create_all_using_postIntValue in python instead of create_all_using_post?

While generating swagger client through CodeGen, it is appending 2 digits character at the end of the method name. For Ex: Java rest API HTTP POST /all is generating the method name in python client ...
0 votes
0 answers
16 views

Google API Gateway OpenApi Swaagger 2.0 to CloudRun Parameter configured for Path turns out in query instead of path

I'm testing an API Gateway setup on Google Cloud to access specific endpoints on a service deployed on Cloud Run. I'm following the steps shown here. We need to authenticate using an API Key, so the ...
0 votes
0 answers
20 views

Swagger: End point path depends on path variable

I have to document 2 rest endpoints which are mapped to the same controller based on some part of path but are actually separate APIs depending on path variable. REST APIs: HTTP POST to /user/create ...
1 vote
1 answer
44 views

Java Inheritance, How to achieve hierarchical inheritance in Java

Can we achieve hierarchical inheritence in java, I've a scenario something like this class Person { String name; int age; List<Address> addressList; // ... getters, ...
1 vote
0 answers
22 views

How define host flag of swagger with flask-restx?

I am using the Flask-RestX to generate an automatic swagger 2.0 documentation. But I can not find how I could define the flag "host" by RestX. I use this code to generate swagger.json ...
  • 303
0 votes
0 answers
33 views

LocalDateTime in swagger always defaults to 'yyyy-MM-ddTHH-mm-ss.ssZ' format

I have a java POJO which has a LocalDateTime property. The generated swagger always generates in "2016-01-08T22:34:22.337Z" format, but I don't need that format. Below is what I am trying in ...
  • 892
0 votes
0 answers
26 views

Swagger 2 with Spring Boot

I'm tryng integrate swagger 2 in spring boot through springfox dependency, but continuous returning 404 error. Here is my dependencies: <dependency> <groupId>io.springfox</...
0 votes
0 answers
26 views

Customize flask-restplus swagger page for custom login

What I want to do is automatically generate a JWT token when a user log in with their Username and Password. Based on my current research, swagger does not support this functionality natively (see How ...
  • 1
1 vote
1 answer
41 views

Is it possible to prefix all paths in an OpenAPI 2.0 spec?

I have Swagger specification for an API that looks something like this: swagger: '2.0' info: title: my-api description: My API version: v1 schemes: - https produces: - application/json paths:...
0 votes
1 answer
27 views

How to add default JSON object in body of post request swagger

I'd like to add JSON as the default to this swagger endpoint for the body of the POST request. I can not for the life of me figure out what this format is supposed to be to add a very large JSON ...
0 votes
0 answers
40 views

Difference between swagger ui and springfox swagger ui

Wanted to know the Difference between below two. Have the requirement to change due to css vulnerability in springfox. Please help me understand this. <dependency><groupId>io.springfox&...
  • 1
0 votes
0 answers
31 views

Use Swagger 2.0 to describe a single parameter of multiple types

I make some yamls by openapi3.0 as follow: - name: ip in: query schema: type: string oneOf: - format: ipv4 - format: ipv6 - name: ipv4 oneOf: - $ref: 'xxx/Ipv4Type' - type: ...
  • 1

15 30 50 per page
1
2 3 4 5
108