-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APi End point : Display a Table schema #1659
APi End point : Display a Table schema #1659
Comments
Dependency on create a table schema #1194 |
I'm going to start mocking up the lambda & unit tests while I wait for #1194 This could be delivered in parallel, it's just we need example schemas in the bucket to be able to test it properly. |
Swagger config will be something like this: "/data-product/{data-product-name}/table/{table-name}/schema": {
"get": {
"tags": [
"get_schema"
],
"summary": "Get the latest schema for a table.",
"description": "Returns a json object describing the table.",
"operationId": "getSchema",
"parameters": [
{
"in": "path",
"name": "data-product-name",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "table-name",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "header",
"name": "authorizationToken",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true
}
],
"responses": {
"200": {
"description": "successful operation, response format https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/glue/client/get_table.html",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"404": {
"description": "Data product or table schema not found"
}
}
}
}, might want to provide an example of the success response as well |
WIP branch with empty lambda: https://github.com/ministryofjustice/data-platform/compare/dpl-1659-display-schema-lambda?expand=1 PR for new ECR repo: ministryofjustice/modernisation-platform#5155 |
Note: when the new endpoint is deployed, we can remove the get glue data endpoint. |
* resolves #1659 * add format_table_schema function to base schema * get_schema lambda returns reformatted schema * tweak get_schema tests * Update data_product_metadata.py * remove owner and retention from original schema format * update docs with get schema endpoint * rename table schema component
The scope of the ticket would be to create a api end point for display table schema with path parameter based on the document below
https://dsdmoj.atlassian.net/wiki/spaces/DataPlatform/pages/4511991882/Initial+APIs
The end point should be
/{data-product-name}/{table-schema-name}/see API doc aboveChecklist
Definition of Done
The text was updated successfully, but these errors were encountered: