mik-laj commented on a change in pull request #17839:
URL: https://github.com/apache/airflow/pull/17839#discussion_r700825889



##########
File path: airflow/api_connexion/openapi/v1.yaml
##########
@@ -604,6 +604,40 @@ paths:
         '404':
           $ref: '#/components/responses/NotFound'
 
+  /dags/{dag_id}/dagRuns/{dag_run_id}/state:
+    parameters:
+      - $ref: '#/components/parameters/DAGID'
+      - $ref: '#/components/parameters/DAGRunID'
+
+    post:

Review comment:
       ```suggestion
     /dags/{dag_id}/dagRuns/{dag_run_id}:
       parameters:
         - $ref: '#/components/parameters/DAGID'
         - $ref: '#/components/parameters/DAGRunID'
   
       patch:
   ```
   This endpoint modifies an existing object, so according to the REST 
convention, we should not create a new endpoint, but change the method type to 
PATCH.




-- 
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