swagger-2.0 Questions
2
Solved
I am having difficulty using a custom index.html and other assets with swashbuckle. Swashbuckle/Swagger do not seem to recognizing or using them at all. I do have app.UseDefaultFiles() and app.UseS...
Exonerate asked 1/3, 2018 at 14:42
2
I want to add default description in schema of documentation for all input parameters with DateTime type. So the clients will understand which formats we are using etc.
Can I create my custom impl...
Nonentity asked 8/7, 2019 at 13:52
7
I'm trying to break my API document up into multiple JSON files that can be edited independently. All the examples I've been able to find use the Swagger 1.2 schema which has a "api":{} object for ...
Joey asked 13/11, 2014 at 19:50
1
Solved
I am migrating from swagger 2 to OpenApi 3.
Swagger 2 Sample Code
@ApiOperation(value = "", nickname = "")
@GetMapping
public List<Employee> findEmployees(@Valid Dto dto) {
return empl...
Nephrosis asked 17/4, 2020 at 13:13
1
Solved
I want to split my paths (which are quite many) more easily into their own files.
Let's say I've got two major paths /user and /anotherPath with several subpaths. Now I've got an OpenApi spec file...
Whipsaw asked 21/4, 2020 at 10:4
0
I am very new to swagger. I have created a sample JAX-RS project in which I have integrated the swagger 2.0 documentation. After a lot of unsuccessful tries, I am still not able to figure out how w...
Myriammyriameter asked 12/4, 2020 at 3:4
2
@GetMapping(value = "/result")
public int addition(
@ApiParam(value = "FirstValue", required = true, type = "string", defaultValue = "0") @RequestParam(value = "firstValue", required = true) Inte...
Materi asked 26/6, 2019 at 10:14
2
I have working on the swagger-ui which use the swagger json file like:
...
...
...
host: example.com
basePath: /
schemes:
- https
swagger: "2.0"
...
...
...
Is there any way to not show the sche...
Anapest asked 4/3, 2020 at 8:28
4
Solved
I have a WebAPI controller that accepts binary packages and stores them somewhere. As these packages can become quite large, I don't want to load them into memory by adding a byte array parameter b...
Huberman asked 14/12, 2016 at 11:10
2
I googled a little bit to find a proper and easy to implement way to generate Swagger documentation for an existing Rails API app. To be short, there are 2 ways of implementation: either via contro...
Escribe asked 4/12, 2018 at 8:59
5
What is the best way of documenting OData endpoints?
Is there a way to use Swashbuckle for it?
Tiein asked 5/8, 2015 at 13:29
2
Solved
I am trying to deploy a spring boot , Java, Swagger application, everything is working fine except the swagger UI.
I am getting this below error.
File path not allowed: /swagger-ui.html
at com.a...
Hintze asked 3/9, 2018 at 20:30
5
I would like to post an array of strings like
[
"id1",
"id2"
]
to a Swagger based API. In my swagger file, I have those lines:
paths:
/some_url:
post:
parameters:
- name: ids
in: body
r...
Krebs asked 1/9, 2016 at 22:1
3
Solved
I have defined my swagger definition as shown below:
const swaggerDefinition = {
info: {
title: 'Node Swagger API',
version: '1.0.0',
description: 'Describing a RESTful API with Swagger',
},
...
Ptolemy asked 7/6, 2018 at 8:44
1
By default django-rest-swagger displays my views which do not require authentication(JWT Auth in this case).
I tried to override the default get_swagger_view shortcut by adding IsAuthenticated in t...
Viceroy asked 22/8, 2018 at 17:48
1
I scavenged the internet but didn't find anything to solve this problem.
Is it possible to add the lombok annotations in a swagger class UPON generation?
I have this swagger schema:
Product:
type...
Schmid asked 19/10, 2019 at 19:58
1
I created new project (nodeJS) inside root directory inside my workspace and after some time I wanted to separate client and server side of project. To do that I created two folders (server and cli...
Acedia asked 29/6, 2016 at 18:20
1
Solved
I am writing a new API and documenting it using Swagger/OpenAPI. It seems to be a good standard to document error responses, that the developer can expect to encounter.
But I cannot find any guide ...
Etherize asked 4/3, 2019 at 18:26
1
Is it Possible to expand and collapse responses in swagger hub. Only On clicking one type of response it should expand. Because too many responses are consuming lots of space in swagger hub documen...
Schistosome asked 3/10, 2019 at 6:9
1
Solved
In my spring boot projects I'm using spring security with jwt token.
How I'm integrated swagger 2.0 in my spring boot project
Tussah asked 20/9, 2019 at 10:8
1
Solved
Versions:
Project: ASP Net Core 2.1, Web API
Packages: Swashbuckle.AspNetCore (4.0.1)
Problem:
I have created one CheckIncludeForOperationFilter class, which inherits from Swashbuckle.AspNet...
Panoptic asked 17/9, 2019 at 13:45
4
Solved
I have a Spring Boot Project with springfox-swagger2 2.7.0 And I have the following controller:
@Api(tags = { "Some" }, description = "CRUD for Some Stuff")
@RestController
@RequestMapping(path = ...
Constitutionally asked 15/11, 2017 at 21:29
1
What is the difference between the global definitions section and the components section in Swagger 2.0?
I came across a Swagger definition YAML file which is marked as swagger: '2.0'.
It has one ...
Blunge asked 20/8, 2019 at 4:49
1
Solved
This is my code:
definitions:
User:
type: object
properties:
id:
type: integer
username:
type: string
first_name:
type: string
last_name:
type: string
password:
type: string
cr...
Leash asked 3/8, 2019 at 14:17
3
Solved
I'm using Swagger 2 for API UI. So, my gradle.build has:
compile "io.springfox:springfox-swagger2:${swaggerVersion}"
compile "io.springfox:springfox-swagger-ui:${swaggerVersion}"
I've configured...
Quadrennial asked 31/1, 2017 at 23:11
© 2022 - 2024 — McMap. All rights reserved.