Questions tagged [servicestack-openapi]
8 questions
7
votes
1 answer
How to use bearer authentication in openapi-codegen generated python code
I am using the OpenApi 3.0 specification to document my API. It is basically a REST API which requires a valid Bearer token for each request except for the login request. The OpenAPI spec looks like this:
---
openapi: 3.0.0
info:
title: MyTitle
…

Daniel
- 1,398
- 4
- 20
- 47
2
votes
0 answers
ServiceStack: OpenApi import in Azure Api Management Gateway
We are running a Dotnet Core 2.2 service using ServiceStack 5.7, and need to throttle it. So we want to put it behind a Azure Api Management Gateway (apim) - it runs in a Azure App Service.
We have enabled OpenApi feature using
self.Plugins.Add(new…

Markus Foss
- 335
- 4
- 14
2
votes
1 answer
Defining OpenApi response schemas - particularly the example field - with ServiceStack.Api.OpenApi
When I generate an API spec on SwaggerHub, I can declare the schemas, including user-friendly examples, as follows:
components:
schemas:
Job:
type: object
required:
- position
- department
- startDate
…

Jeff Rosenberg
- 3,522
- 1
- 18
- 38
2
votes
1 answer
ServiceStack OpenAPI TagAttribute
Does anyone know where ServiceStack is referencing TagAttribute from. According to ServiceStack's OpenAPI documentation a route can be marked as [Tag("Core Requests")] to categorize the routes but I cannot locate where TagAttribute is actually…

Mayank
- 8,777
- 4
- 35
- 60
1
vote
1 answer
1
vote
1 answer
How to set basepath for openapi with servicestack?
The REST endpoints of my application all start with /api/. The swagger-ui lists all REST pathes under /api/, which is a mess. I want to set the basepath to /api/, so that only the REST endpoints are shown.
According to…

MichaelP
- 13
- 3
1
vote
1 answer
ServiceStack OpenAPI Route/Tag Description
I've upgraded my project to use the latest version of ServiceStack and to use the OpenApiFeature instead of the SwaggerFeature.
The descriptions I specified in the RouteSummary used to display in Swagger, but under OpenApi they don't seem to be…

Connor
- 807
- 1
- 10
- 20
0
votes
1 answer
OpenAPI throws exception in ServiceStack .NET Core - Swagger 2.0 does not support null types
I recently added OpenApi to my service and when I run it and nativate to swagger-ui in the metadata page I get a page with the message loading resources... please wait and nothing happens. Opening the developer console in Chrome I see this error:…

vincent nyanga
- 386
- 1
- 2
- 6