mchades commented on code in PR #13571:
URL: https://github.com/apache/gravitino/pull/13571#discussion_r4133512674
##########
server/src/main/java/org/apache/gravitino/server/web/rest/SemanticModelOperations.java:
##########
@@ -116,6 +115,53 @@ public Response createSemanticModel(
}
}
+ /**
+ * Imports a standalone Apache Ossie YAML or JSON document as a Semantic
Model.
+ *
+ * @param metalake The metalake name.
+ * @param catalog The catalog name.
+ * @param schema The schema name.
+ * @param document The standalone Ossie document.
+ * @return A native response containing the created Semantic Model.
+ */
+ @POST
+ @Path("ossie")
+ @Consumes({MediaType.APPLICATION_JSON, OSSIE_YAML_MEDIA_TYPE,
OSSIE_X_YAML_MEDIA_TYPE})
+ @Produces(VND_GRAVITINO_V1_JSON)
Review Comment:
Semantic Model authorization is outside the scope of this PR and is being
implemented in #12867 and #13512. This endpoint reuses the existing Semantic
Model create path, whose REST authorization is not yet available on the current
base. The Ossie endpoint should be covered together with the other Semantic
Model REST endpoints when #13512 is updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]