Skip to content

Commit

Permalink
created new ingestion/relationships API (#72)
Browse files Browse the repository at this point in the history
* created new ingestion/relationships API

* created new ingestion/relationships API

* created new ingestion/relationships API
  • Loading branch information
Vladysl authored Jan 19, 2024
1 parent e97e85c commit a240fb7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
17 changes: 13 additions & 4 deletions specification/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ components:
required:
- data_source_oddrn

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

DatasetStatisticsList:
type: object
properties:
Expand Down Expand Up @@ -102,10 +115,6 @@ components:
type: array
items:
$ref: '#/components/schemas/DataSetField'
relationships_list:
type: array
items:
$ref: '#/components/schemas/Relationship'
required:
- field_list

Expand Down
17 changes: 17 additions & 0 deletions specification/odd_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ 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 a240fb7

Please sign in to comment.