Skip to content

Commit

Permalink
✨ Introduce delete data product docs (#2495)
Browse files Browse the repository at this point in the history
* ✨ Introduce delete data product docs

* 🔖 Update changelog and version file to v1.0.14
  • Loading branch information
mitchdawson1982 authored Nov 23, 2023
1 parent 6a4e90f commit 5b47681
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 3 deletions.
6 changes: 6 additions & 0 deletions containers/daap-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.14] 2023-11-23

## Added

- Delete data product documentation

## [1.0.13] 2023-11-14

- Fix parameter names for /preview endpoint
Expand Down
2 changes: 1 addition & 1 deletion containers/daap-docs/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "daap-docs",
"version": "1.0.13",
"version": "1.0.14",
"registry": "ecr",
"ecr": {
"role": "arn:aws:iam::013433889002:role/modernisation-platform-oidc-cicd",
Expand Down
69 changes: 67 additions & 2 deletions containers/daap-docs/src/var/task/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,65 @@
"authorizationToken": []
}
]
},
"delete": {
"tags": [
"data product"
],
"summary": "Delete an existing Data Product.",
"description": "Deletes an existing Data Product.",
"operationId": "deleteDataProduct",
"parameters": [
{
"in": "header",
"name": "authorizationToken",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true
},
{
"in": "path",
"name": "data-product-name",
"required": true,
"example": "my_data_product",
"schema": {
"type": "string",
"minimum": 1
},
"description": "The name of the data product you want to delete."
}
],
"responses": {
"200": {
"description": "successfully updated",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"version"
],
"properties": {
"message": {
"type": "string",
"example": "Successfully removed data product 'data_product_name'."
}
},
"example": {
"message": "Successfully removed data product 'data_product_name'."
}
}
}
}
}
},
"security": [
{
"authorizationToken": []
}
]
}
},
"/data-product/{data-product-name}/table/{table-name}/schema": {
Expand Down Expand Up @@ -880,7 +939,11 @@
"status": {
"type": "string",
"description": "this is an enum representing the status of this version of the Data Product. Allowed values are: [draft|published|retired]. This is a metadata that communicates the overall status of the Data Product but is not reflected to the actual deployment status.",
"enum": ["draft", "published", "retired"]
"enum": [
"draft",
"published",
"retired"
]
},
"dpiaRequired": {
"type": "boolean",
Expand All @@ -899,7 +962,9 @@
"tags": {
"type": "object",
"description": "Additional tags to add.",
"example": { "sandbox": true }
"example": {
"sandbox": true
}
}
},
"additionalProperties": false
Expand Down

0 comments on commit 5b47681

Please sign in to comment.