public class SwaggerResourceMapper extends Object
Constructor and Description |
---|
SwaggerResourceMapper() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,io.swagger.models.Path> |
convertResourcesToOperations(org.ballerinalang.model.Resource[] resources)
This method will convert ballerina resource to swagger path objects.
|
io.swagger.models.Operation |
getOperation()
Get Swagger operation object associated with current resource
|
org.ballerinalang.model.Resource |
getResource()
Get Ballerina Resource object associated with current resource
|
void |
setOperation(io.swagger.models.Operation operation)
Set Swagger operation object associated with current resource
|
void |
setResource(org.ballerinalang.model.Resource resource)
Set Ballerina Resource object associated with current resource
|
public io.swagger.models.Operation getOperation()
public void setOperation(io.swagger.models.Operation operation)
operation
- Swagger operation object associated with current resourcepublic org.ballerinalang.model.Resource getResource()
public void setResource(org.ballerinalang.model.Resource resource)
resource
- Ballerina Resource object associated with current resourceprotected Map<String,io.swagger.models.Path> convertResourcesToOperations(org.ballerinalang.model.Resource[] resources)
resources
- Resource array to be convert.Copyright © 2017 WSO2. All rights reserved.