Skip to content

Commit

Permalink
deleted /ingestion/relationships API. Relationship now part of dataEn…
Browse files Browse the repository at this point in the history
…tity (#75)
  • Loading branch information
Vladysl authored Jan 25, 2024
1 parent e7f4406 commit 3ced251
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 54 deletions.
62 changes: 25 additions & 37 deletions specification/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ components:
$ref: '#/components/schemas/DataConsumer'
data_entity_group:
$ref: '#/components/schemas/DataEntityGroup'
data_entity_relationship:
$ref: '#/components/schemas/Relationship'
required:
- type

Expand All @@ -72,25 +74,6 @@ components:
required:
- data_source_oddrn

RelationshipList:
type: object
properties:
data_source_oddrn:
type: string
example: //aws/glue/123456789010/
relationship_type:
type: string
enum:
- ERD
- GRAPH
items:
type: array
items:
$ref: '#/components/schemas/Relationship'
required:
- data_source_oddrn
- relationship_type

DatasetStatisticsList:
type: object
properties:
Expand Down Expand Up @@ -125,24 +108,28 @@ components:
- field_list

Relationship:
allOf:
- $ref: '#/components/schemas/BaseObject'
- type: object
properties:
source_dataset_oddrn:
type: string
target_dataset_oddrn:
type: string
details:
oneOf:
- $ref: '#/components/schemas/ERDRelationship'
- $ref: '#/components/schemas/GraphRelationship'
discriminator:
propertyName: relationship_entity_name
required:
- source_dataset_oddrn
- target_dataset_oddrn
- details
type: object
properties:
relationship_type:
type: string
enum:
- ERD
- GRAPH
source_dataset_oddrn:
type: string
target_dataset_oddrn:
type: string
details:
oneOf:
- $ref: '#/components/schemas/ERDRelationship'
- $ref: '#/components/schemas/GraphRelationship'
discriminator:
propertyName: relationship_entity_name
required:
- relationship_type
- source_dataset_oddrn
- target_dataset_oddrn
- details

ERDRelationship:
type: object
Expand Down Expand Up @@ -626,6 +613,7 @@ components:
- API_SERVICE
- KAFKA_SERVICE
- VECTOR_STORE
- RELATIONSHIP

MetadataExtension:
type: object
Expand Down
17 changes: 0 additions & 17 deletions specification/odd_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@ paths:
'201':
description: Created

/ingestion/relationships:
post:
summary: Ingests list of relationships
description: Ingests list of relationships
operationId: postRelationshipList
tags:
- OpenDataDiscoveryIngestion
requestBody:
required: true
content:
application/json:
schema:
$ref: './entities.yaml/#/components/schemas/RelationshipList'
responses:
'201':
description: Created

/ingestion/entities/datasets/stats:
post:
summary: Ingests list of stats for data sets
Expand Down

0 comments on commit 3ced251

Please sign in to comment.