swagger-ui Questions

1

could not derive type of path parameter "id" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. int:id) or annotating the para...
Paulettepauley asked 20/6, 2023 at 7:7

24

Solved

Following the instructions here: http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api I added these dependencies to my project: compile "io.springfox:springfox-swagger2:2.7.0" com...
Clovah asked 11/9, 2017 at 8:45

2

I am using Swagger 2 with Springfox. When you click on an endpoint, is there any way to have the Try-it-out mode activated by default, without having to click this button:
Marionmarionette asked 3/5, 2019 at 8:4

9

I have a Web API (ASP.NET Core) and I am trying to adjust the swagger to make the calls from it. The calls must contains the Authorization header and I am using Bearer authentication. The calls fro...
Therewithal asked 17/4, 2017 at 8:11

16

Solved

My project has Spring Security. Main issue: Not able to access swagger URL at http://localhost:8080/api/v2/api-docs. It says Missing or invalid Authorization header. Screenshot of the browser win...
Paradox asked 7/6, 2016 at 5:25

2

I am trying to add multiple examples for an Object property. The Swagger-Ui and Editor version that I am using are '{"swaggerEditor":"3.6.31/g10642b3c-dirty","swaggerUi&quo...
Lientery asked 14/9, 2022 at 9:47

5

I'm having an issue with swagger ui after upgrading to spring boot 3. The swagger-ui doesn't work anymore and I got a 404 and "White Label" page as response. After taking a closer look, I...
Accustom asked 14/3, 2023 at 11:52

2

I am trying to get OAuth code flow with PCKE to work with Swashbuckle (6.2.3) and swagger ui in .NET 6. There are a few things that happen successfully: In swagger UI I can click on "Authoriz...
Lashing asked 21/12, 2021 at 23:3

2

Solved

I am building a Spring Boot application and documenting it using a Swagger UI using the Springfox Swagger UI. I've got everything documented, but want to customize the title and description but can...
Jerrilyn asked 9/11, 2017 at 19:20

2

I am using Swagger in a .NET COre API project. Is there a way to apply JWT Authentication in Swagger UI only for some endpoints? I put [Authorize] Attribute only on a few calls (also have tried p...
Procryptic asked 3/12, 2019 at 13:35

16

Solved

I have some endpoints in the API - /user/login, /products. In Swagger UI I post email and password to /user/login and as a response I receive a token string. Then, I can copy the token from the r...
Woodley asked 16/12, 2016 at 9:1

4

I am trying to install Swagger API in my ASP.NET WEB API 2 project. I have installed the swashbuckle ( v5.4.0 ) nuget package. I then debug the project and got to URL/swagger/ui/index where I get ...
Realpolitik asked 30/8, 2016 at 6:29

5

I am building a ASP.NET CORE Web API and using Swagger for the documentation. I have not been able to change the favicon. I have a swagger-ui directory under wwwroot where I have placed my favicon ...

1

I can generate swagger UI on my Spring boot application from @Api @ApiOperation, @ApiResponses annotations. These annotations makes code a bit dirty. I wonder, how I can generate swagger document...
Septima asked 27/6, 2019 at 9:42

1

Take this for example: [Obsolete("Please use /Auth/Register instead")] Swaggers UI shows its Obsolte but doesnt show the message, so is it possible to have the message inside the attribu...
Junette asked 1/4, 2022 at 1:21

20

Solved

I'm trying to open my self generated swagger specification file my.json with swagger-ui on my local computer. So I downloaded the latest tag v2.1.8-M1 and extracted the zip. Then I went inside the...
Barong asked 22/5, 2015 at 15:22

8

Solved

I need Swagger generate API documentation include UI to test operations. When use ASP.NET in my project, deps XML files are generated, everything is OK, look like this: But when I use ASP.NET C...
Spinner asked 20/6, 2017 at 3:4

12

Solved

I searched for possible ways to add a request header parameter that would be added automatically to every method in my web-api but i couldn't find a clear one. While searching i found that the me...
Pollen asked 5/1, 2017 at 19:28

2

Solved

I'm using Spring Boot and I want to send MultipartFile with json using Swagger UI but I receive the error 'application/octet-stream' error not supported,if I use Postman work very well. @ResponseBo...
Caprine asked 12/8, 2020 at 0:6

8

Solved

Application was working with Springfox Swagger 3.0 few days back. Suddenly it is stopped working. The Jar file which was created before a week is still working but now when we try to build a new Ja...
Morganmorgana asked 7/7, 2020 at 10:28

3

I'm new to Swagger. I'm using OpenAPI 3.0.2. When I run Swagger UI, Authorization buttons appear, both on top and for each API but they don't work. When I click them, I can enter any text in the ap...
Cheshire asked 25/6, 2021 at 22:16

8

I am using springdoc-openapi-ui for spring boot API documentation and facing the following issue - I have added all the necessary configuration as follows - The maven dependency - <dependency...

9

Solved

Swagger UI is not loading, Json is loading as expected but issue exists with supported js, css files.
Towland asked 9/1, 2019 at 10:23

2

I am following the FastAPI tutorial, specifically the part about displaying multiple examples: https://fastapi.tiangolo.com/tutorial/schema-extra-example/. I copied the code: from typing import Opt...
Complicacy asked 6/1, 2022 at 4:1

10

Solved

When I build my swagger.json file I do not know which host to use. However I can work it out when my page that hosts swaggerui loads (in fact I might want to offer the user a choice). I hoped to se...
Palawan asked 19/6, 2015 at 0:14

© 2022 - 2024 — McMap. All rights reserved.