You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/07/15 10:46:56 UTC
[GitHub] [airflow] mik-laj opened a new issue #9829: Add code-snippets to REST API Reference
mik-laj opened a new issue #9829:
URL: https://github.com/apache/airflow/issues/9829
Hello,
We have a reference API based on [redoc](https://github.com/Redocly/redoc).
https://airflow.readthedocs.io/en/latest/stable-rest-api/redoc.html
It has possibility to add code samples of using the API in different languages thanks to the x-codesamples extension. This will facilitate the use of this API and will also provide ready documentation for these clients. Less duplicate documentation.

We can think about generating code samples automatically using ready-made tools (If possible)
https://github.com/ErikWittern/openapi-snippet
https://github.com/richardkabiling/openapi-snippet-cli/blob/master/src/index.ts
https://github.com/cdwv/oas3-api-snippet-enricher
Best regards,
Kamil Breguła
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [airflow] Melodie97 commented on issue #9829: Add code-snippets to REST API Reference
Posted by GitBox <gi...@apache.org>.
Melodie97 commented on issue #9829:
URL: https://github.com/apache/airflow/issues/9829#issuecomment-1047278155
Hi @potiuk for this issue, I'd like to know if the v1.yaml file in the open-api folder is the schema used by redoc?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #9829: Add code-snippets to REST API Reference
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #9829:
URL: https://github.com/apache/airflow/issues/9829#issuecomment-658698102
<3
The power of using Open-API :)
J.
On Wed, Jul 15, 2020 at 12:47 PM Kamil Breguła <no...@github.com>
wrote:
> Hello,
>
> We have a reference API based on redoc <https://github.com/Redocly/redoc>.
> https://airflow.readthedocs.io/en/latest/stable-rest-api/redoc.html
> It has possibility to add code samples of using the API in different
> languages thanks to the x-codesamples extension. This will facilitate the
> use of this API and will also provide ready documentation for these
> clients. Less duplicate documentation.
> [image: image]
> <https://github.com/Redocly/redoc/raw/master/docs/images/code-samples-demo.gif>
>
> We can think about generating code samples automatically using ready-made
> tools (If possible)
> https://github.com/ErikWittern/openapi-snippet
>
> https://github.com/richardkabiling/openapi-snippet-cli/blob/master/src/index.ts
> https://github.com/cdwv/oas3-api-snippet-enricher
>
> Best regards,
> Kamil Breguła
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/airflow/issues/9829>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAERMI44OIYDJZ7BFDXQLC3R3WCKLANCNFSM4O2NBSKA>
> .
>
--
Jarek Potiuk
Polidea <https://www.polidea.com/> | Principal Software Engineer
M: +48 660 796 129 <+48660796129>
[image: Polidea] <https://www.polidea.com/>
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [airflow] kaxil commented on issue #9829: Add code-snippets to REST API Reference
Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #9829:
URL: https://github.com/apache/airflow/issues/9829#issuecomment-658699048
Yup definitely
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [airflow] Melodie97 commented on issue #9829: Add code-snippets to REST API Reference
Posted by GitBox <gi...@apache.org>.
Melodie97 commented on issue #9829:
URL: https://github.com/apache/airflow/issues/9829#issuecomment-1053567834
@potiuk the three cli tools recommended seem to not be compatible with the
api version, like the api version is higher
On Sun, 27 Feb 2022 at 12:03 AM, Jarek Potiuk ***@***.***>
wrote:
> I think so @Melodie97 <https://github.com/Melodie97>
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/airflow/issues/9829#issuecomment-1052755587>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ASWQCXHNRVPOP7OXBA3T2XTU5FL4XANCNFSM4O2NBSKA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #9829: Add code-snippets to REST API Reference
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #9829:
URL: https://github.com/apache/airflow/issues/9829#issuecomment-1052755587
I think so @Melodie97
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org