[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857950 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384856658 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384862117 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384861657 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857164 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384858436 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384861786 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857987 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384856838 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384859684 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384856515 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384858064 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857515 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857666 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384861947 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384859731 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384859944 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857857 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857379 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384856706 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry Review comment: ```suggestion summary: Get all conneciton entries ``` 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384857338 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384861695 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384862032 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384859585 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384864143 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384866226 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: Review comment: ```suggestion /connections: ``` I recommend drop trailing slash in all endpoints. This is how the official OpenAPI specification presents paths, although it is not clear about such a requirement. 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384866895 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384867240 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384867477 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384868067 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384868395 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384868668 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384868963 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r384866895 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r389101039 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: +get: + summary: Get all conneciton entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of connection entry + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/ConnectionCollection' + - $ref: '#/components/schemas/CollectionInfo' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + +post: + summary: Create conneciton entry + tags: [Connection] + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /connections/{connection_id}: +parameters: + - $ref: '#/components/parameters/ConnectionID' + +get: + summary: Get connection entry + tags: [Connection] + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +patch: + summary: Update a connection entry + tags: [Connection] + parameters: +- $ref: '#/components/parameters/UpdateMask' + requestBody: +required: true +content: + application/json: +schema: + $ref: '#/components/schemas/Connection' + + responses: +'200': + description: Successfull response + content: +application/json: + schema: +$ref: '#/components/schemas/Connection' +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' +'404': + $ref: '#/components/responses/NotFound' + +delete: + summary: Delete connection entry + tags: [Connection] + responses: +'204': + description: No content +'400': + $ref: '#/components/responses/BadRequest' +'401': + $ref: '#/components/responses/Unauthenticated' +'403': + $ref: '#/components/responses/PermissionDenied' + + /dags/: +get: + summary: Get all DAGs + tags: [DAG] + parameters: +- $ref: '#/components/parameters/PageLimit' +- $ref: '#/components/parameters/PageOffset' + responses: +'200': + description: List of DAGs + content: +application/json: + schema: +allOf: + - $ref: '#/components/schemas/DAGCollection' + - $ref: '#/components/schem
[GitHub] [airflow] ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec
ad-m commented on a change in pull request #7549: [AIRFLOW-6929][DONT-MERGE] Add OpenAPI spec URL: https://github.com/apache/airflow/pull/7549#discussion_r389103575 ## File path: openapi.yaml ## @@ -0,0 +1,2094 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +--- +openapi: 3.0.3 + +info: + title: "Airflow API (Stable)" + description: | +Apache Airflow management API + version: '1.0.0' + license: +name: Apache 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.html + +servers: + - url: /api/v1 +description: Airfow Stable API + +paths: + # Database entities + /connections/: Review comment: Thank you. 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services