Class OpenApiUtil

java.lang.Object
org.apache.ofbiz.ws.rs.util.OpenApiUtil

public final class OpenApiUtil extends Object
  • Method Details

    • getStandardApiResponses

      public static Map<String,io.swagger.v3.oas.models.responses.ApiResponse> getStandardApiResponses()
    • getStandardApiResponseSchemas

      public static Map<String,io.swagger.v3.oas.models.media.Schema<?>> getStandardApiResponseSchemas()
    • getOpenApiTypeForAttributeType

      public static Class<?> getOpenApiTypeForAttributeType(String attributeType)
    • getOpenApiTypeForFieldType

      public static Class<?> getOpenApiTypeForFieldType(String fieldType)
    • getInSchema

      public static io.swagger.v3.oas.models.media.Schema<Object> getInSchema(ModelService service)
    • getAttributeSchema

      public static io.swagger.v3.oas.models.media.Schema<?> getAttributeSchema(ModelService service, ModelParam param)
    • getOutSchema

      public static io.swagger.v3.oas.models.media.Schema<Object> getOutSchema(ModelService service)
    • buildSuccessResponse

      public static io.swagger.v3.oas.models.responses.ApiResponse buildSuccessResponse(ModelService service)