You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/purview/tutorial-custom-types.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@ description: This tutorial will explain what type definitions are, how to create
4
4
author: adinastoll
5
5
ms.author: adnegrau
6
6
ms.service: purview
7
-
ms.topic: tutorial
7
+
ms.topic: how-to
8
8
ms.date: 03/08/2023
9
9
---
10
10
11
11
12
-
# Tutorial: Type definitions and how to create custom types
12
+
# Type definitions and how to create custom types
13
13
14
14
This tutorial will explain what type definitions are, how to create custom types, and how to initialize assets of custom types in Microsoft Purview.
15
15
@@ -57,7 +57,7 @@ Essentially, a *Type* can be seen as a *Class* from Object Oriented Programming
57
57
58
58
You can see all type definitions in your Microsoft Purview account by sending a `GET` request to the [All Type Definitions](/rest/api/purview/catalogdataplane/types/get-all-type-definitions) endpoint:
59
59
60
-
```
60
+
```http
61
61
GET https://{{ENDPOINT}}/catalog/api/atlas/v2/types/typedefs
62
62
```
63
63
@@ -81,7 +81,7 @@ To better understand the Type system, let's look at an example and see how an **
81
81
82
82
You can get the complete type definition by sending a `GET` request to the Type Definition [endpoint](/rest/api/purview/catalogdataplane/types/get-type-definition-by-name):
83
83
84
-
```
84
+
```http
85
85
GET https://{{ENDPOINT}}/catalog/api/atlas/v2/types/typedef/name/{name}
86
86
```
87
87
@@ -182,7 +182,7 @@ In the previous example, *azure_sql_table_columns* was the name of the relations
182
182
183
183
For the full definition, you can do make a `GET` request to the following [endpoint](/rest/api/purview/catalogdataplane/types/get-type-definition-by-name) using *azure_sql_table_columns* as the name:
184
184
185
-
```
185
+
```http
186
186
GET https://{{ENDPOINT}}/catalog/api/atlas/v2/types/typedef/name/azure_sql_table_columns
187
187
```
188
188
@@ -259,7 +259,7 @@ The question is, how did Microsoft Purview select the *data_tye* property from t
259
259
260
260
You can get the type definition of an Azure SQL Column by making a `GET` request to the [endpoint](/rest/api/purview/catalogdataplane/types/get-type-definition-by-name):
261
261
262
-
```
262
+
```http
263
263
GET https://{{ENDPOINT}}/catalog/api/atlas/v2/types/typedef/name/{name}
264
264
```
265
265
@@ -336,7 +336,7 @@ They should be linked together through a 1:n relationship.
336
336
337
337
1. Create the *custom_type_parent* type definition by making a `Post` request to:
338
338
339
-
```
339
+
```http
340
340
POST https://{{ENDPOINT}}.purview.azure.com/catalog/api/atlas/v2/types/typedefs
341
341
```
342
342
@@ -367,7 +367,7 @@ They should be linked together through a 1:n relationship.
367
367
368
368
1. Create the *custom_type_child* type definition by making a `POST` request to:
369
369
370
-
```
370
+
```http
371
371
POST https://{{ENDPOINT}}.purview.azure.com/catalog/api/atlas/v2/types/typedefs
372
372
```
373
373
@@ -398,7 +398,7 @@ They should be linked together through a 1:n relationship.
398
398
399
399
1. Create a custom type relationship definition by making a `POST` request to:
400
400
401
-
```
401
+
```http
402
402
POST https://{{ENDPOINT}}.purview.azure.com/catalog/api/atlas/v2/types/typedefs
403
403
```
404
404
@@ -433,7 +433,7 @@ They should be linked together through a 1:n relationship.
433
433
434
434
1. Initialize a new asset of type *custom_type_parent* by making a `POST` request to:
435
435
436
-
```
436
+
```http
437
437
POST https://{{ENDPOINT}}.purview.azure.com/catalog/api/atlas/v2/entity
438
438
```
439
439
@@ -460,7 +460,7 @@ They should be linked together through a 1:n relationship.
460
460
461
461
1. Initialize a new asset of type *custom_type_child* by making a `POST` request to:
462
462
463
-
```
463
+
```http
464
464
POST https://{{ENDPOINT}}.purview.azure.com/catalog/api/atlas/v2/entity
465
465
```
466
466
@@ -485,7 +485,7 @@ They should be linked together through a 1:n relationship.
485
485
486
486
1. Initialize a new relationship of type *custom_parent_child_relationship* by making a `POST` request to:
487
487
488
-
```
488
+
```http
489
489
POST https://{{ENDPOINT}}.purview.azure.com/catalog/api/atlas/v2/relationship/
0 commit comments