public class BallerinaPath extends Object implements BallerinaOpenAPIObject<BallerinaPath,io.swagger.v3.oas.models.PathItem>
PathItem from swagger models to provide an iterable object model
for operations.| Constructor and Description |
|---|
BallerinaPath() |
| Modifier and Type | Method and Description |
|---|---|
BallerinaPath |
buildContext(io.swagger.v3.oas.models.PathItem item)
Build the Ballerina context model
C for Open APIDetailedDTO definition/component in D. |
BallerinaPath |
buildContext(io.swagger.v3.oas.models.PathItem item,
ExtendedAPI api)
Build the Ballerina context model
C for Open APIDetailedDTO definition/component in D. |
BallerinaPath |
buildContext(io.swagger.v3.oas.models.PathItem item,
ExtendedAPI api,
Boolean generateApiFaultResponses) |
BallerinaPath |
buildContextForNotFound(ExtendedAPI api) |
BallerinaPath |
getDefaultValue()
Retrieve the default value for this type.
|
Set<Map.Entry<String,BallerinaOperation>> |
getOperations() |
boolean |
isAddMethodNotFoundService() |
boolean |
isGenerateApiFaultResponses() |
void |
setAddMethodNotFoundService(boolean addMethodNotFoundService) |
void |
setGenerateApiFaultResponses(boolean generateApiFaultResponses) |
public BallerinaPath buildContext(io.swagger.v3.oas.models.PathItem item, ExtendedAPI api) throws BallerinaServiceGenException, CLICompileTimeException
BallerinaOpenAPIObjectC for Open APIDetailedDTO definition/component in D.
OpenAPI definition openApi can be used to access the parent context
helpful for building the current context
buildContext in interface BallerinaOpenAPIObject<BallerinaPath,io.swagger.v3.oas.models.PathItem>item - Swagger Api definition or componentapi - openApi object modelC of Open Api definition/component DBallerinaServiceGenException - on error when parsing the Open Api definitionCLICompileTimeExceptionpublic BallerinaPath buildContext(io.swagger.v3.oas.models.PathItem item) throws BallerinaServiceGenException, CLICompileTimeException
BallerinaOpenAPIObjectC for Open APIDetailedDTO definition/component in D.buildContext in interface BallerinaOpenAPIObject<BallerinaPath,io.swagger.v3.oas.models.PathItem>item - Open Api definition or componentC of Open Api definition/component DBallerinaServiceGenException - on error when parsing the Open Api definitionCLICompileTimeExceptionpublic BallerinaPath buildContext(io.swagger.v3.oas.models.PathItem item, ExtendedAPI api, Boolean generateApiFaultResponses) throws BallerinaServiceGenException, CLICompileTimeException
public BallerinaPath buildContextForNotFound(ExtendedAPI api) throws BallerinaServiceGenException, CLICompileTimeException
public BallerinaPath getDefaultValue()
BallerinaOpenAPIObjectgetDefaultValue in interface BallerinaOpenAPIObject<BallerinaPath,io.swagger.v3.oas.models.PathItem>public Set<Map.Entry<String,BallerinaOperation>> getOperations()
public boolean isGenerateApiFaultResponses()
public void setGenerateApiFaultResponses(boolean generateApiFaultResponses)
public boolean isAddMethodNotFoundService()
public void setAddMethodNotFoundService(boolean addMethodNotFoundService)
Copyright © 2023 WSO2. All rights reserved.