public class SwaggerApiProducer extends Object implements ApiProducer<io.swagger.models.Swagger>
| Constructor and Description |
|---|
SwaggerApiProducer(io.swagger.models.Info info)
Create a new API Description Producer with null as basePath, host and no scheme.
|
SwaggerApiProducer(io.swagger.models.Info info,
String basePath,
String host,
List<io.swagger.models.Scheme> schemes)
Create a new API Description Producer.
|
SwaggerApiProducer(io.swagger.models.Info info,
String basePath,
String host,
io.swagger.models.Scheme... schemes)
Create a new API Description Producer.
|
| Modifier and Type | Method and Description |
|---|---|
io.swagger.models.Swagger |
addApiInfo(io.swagger.models.Swagger swagger)
Add common API Info to the descriptor.
|
io.swagger.models.Swagger |
merge(List<io.swagger.models.Swagger> descriptors)
Merge the provided descriptors into a single descriptor.
|
ApiProducer<io.swagger.models.Swagger> |
newChildProducer(String subPath)
Create a child producer with the same type, but with the extra ID fragment.
|
io.swagger.models.Swagger |
withPath(io.swagger.models.Swagger descriptor,
String parentPath)
Mutate the provided descriptor to add the specified path.
|
io.swagger.models.Swagger |
withVersion(io.swagger.models.Swagger descriptor,
Version version)
Mutate the provided descriptor to add the specified version.
|
public SwaggerApiProducer(io.swagger.models.Info info)
info - The Swagger Info instance to add to all OpenAPI descriptors.public SwaggerApiProducer(io.swagger.models.Info info,
String basePath,
String host,
io.swagger.models.Scheme... schemes)
info - The Swagger Info instance to add to all OpenAPI descriptors.basePath - The base path.host - The host, if known at construction time, otherwise null.schemes - The supported schemes.public SwaggerApiProducer(io.swagger.models.Info info,
String basePath,
String host,
List<io.swagger.models.Scheme> schemes)
info - The Swagger Info instance to add to all OpenAPI descriptors.basePath - The base path.host - The host, if known at construction time, otherwise null.schemes - The supported schemes.public io.swagger.models.Swagger withPath(io.swagger.models.Swagger descriptor,
String parentPath)
ApiProducerwithPath in interface ApiProducer<io.swagger.models.Swagger>descriptor - The descriptor to be mutated.parentPath - The path to add to the descriptor.public io.swagger.models.Swagger withVersion(io.swagger.models.Swagger descriptor,
Version version)
ApiProducerwithVersion in interface ApiProducer<io.swagger.models.Swagger>descriptor - The descriptor to be mutated.version - The version to apply to the resource.public io.swagger.models.Swagger merge(List<io.swagger.models.Swagger> descriptors)
ApiProducermerge in interface ApiProducer<io.swagger.models.Swagger>descriptors - The descriptors to be merged.public io.swagger.models.Swagger addApiInfo(io.swagger.models.Swagger swagger)
ApiProduceraddApiInfo in interface ApiProducer<io.swagger.models.Swagger>swagger - The descriptor.public ApiProducer<io.swagger.models.Swagger> newChildProducer(String subPath)
ApiProducernewChildProducer in interface ApiProducer<io.swagger.models.Swagger>subPath - The fragment of the ID for this producer.Copyright © 2025 Open Identity Platform Community. All rights reserved.