ephraimbuddy commented on code in PR #29433:
URL: https://github.com/apache/airflow/pull/29433#discussion_r1101047172


##########
airflow/api_connexion/openapi/v1.yaml:
##########
@@ -1919,6 +1919,32 @@ paths:
           $ref: '#/components/responses/PermissionDenied'
         '404':
           $ref: '#/components/responses/NotFound'
+    post:
+      summary: Post dataset event
+      description: Post dataset events
+      x-openapi-router-controller: 
airflow.api_connexion.endpoints.dataset_endpoint
+      operationId: post_dataset_event
+      tags: [ Dataset ]

Review Comment:
   ```suggestion
         tags: [Dataset]
   ```



##########
airflow/api_connexion/endpoints/dataset_endpoint.py:
##########
@@ -120,3 +128,29 @@ def get_dataset_events(
     return dataset_event_collection_schema.dump(
         DatasetEventCollection(dataset_events=events, 
total_entries=total_entries)
     )
+
+
[email protected]_access([(permissions.ACTION_CAN_CREATE, 
permissions.RESOURCE_DATASET)])
+@provide_session
+def post_dataset_event(session: Session = NEW_SESSION) -> APIResponse:
+    """Create connection entry."""

Review Comment:
   ```suggestion
       """Create a dataset event"""
   ```



##########
airflow/api_connexion/openapi/v1.yaml:
##########
@@ -1919,6 +1919,32 @@ paths:
           $ref: '#/components/responses/PermissionDenied'
         '404':
           $ref: '#/components/responses/NotFound'
+    post:
+      summary: Post dataset event
+      description: Post dataset events

Review Comment:
   ```suggestion
         description: Post dataset event
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to