mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-13 00:22:23 +00:00
Enhance TypeResource API documentation to clarify custom property definitions. Updated descriptions for managing custom properties and creating property templates using existing OpenMetadata data types. (#22883)
This commit is contained in:
parent
2525e40db1
commit
76bd3d2ba4
@ -76,8 +76,10 @@ import org.openmetadata.service.util.SchemaFieldExtractor;
|
||||
@Tag(
|
||||
name = "Metadata",
|
||||
description =
|
||||
"These APIs are for adding new `Types` to OpenMetadata and use those `Types` to "
|
||||
+ "extend the metadata of an entity with custom properties.")
|
||||
"These APIs are for managing custom property definitions in OpenMetadata. Use these APIs to "
|
||||
+ "create custom properties with predefined data types (String, Integer, Date, etc.) that "
|
||||
+ "extend entity metadata. Note: This does not support creating new custom data types - "
|
||||
+ "only custom properties using existing OpenMetadata data types.")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Collection(name = "types")
|
||||
@ -311,12 +313,17 @@ public class TypeResource extends EntityResource<Type, TypeRepository> {
|
||||
@POST
|
||||
@Operation(
|
||||
operationId = "createType",
|
||||
summary = "Create a type",
|
||||
description = "Create a new type.",
|
||||
summary = "Create a custom property definition",
|
||||
description =
|
||||
"Create a new custom property definition that can be applied to entities. "
|
||||
+ "This creates a property template using existing OpenMetadata data types "
|
||||
+ "(String, Integer, Date, Enum, etc.). The created property can then be used to "
|
||||
+ "extend metadata for data assets like tables, dashboards, and pipelines. "
|
||||
+ "Note: This does not create new data types - only custom property definitions.",
|
||||
responses = {
|
||||
@ApiResponse(
|
||||
responseCode = "200",
|
||||
description = "The type",
|
||||
description = "The custom property definition",
|
||||
content =
|
||||
@Content(
|
||||
mediaType = "application/json",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user