I actually use the cornice-swagger package. I can send integration code if needed...
Best regards, Thierry Le mer. 11 sept. 2024, 18:51, Theron Luhn <[email protected]> a écrit : > How do you get OpenAPI/Swagger from Cornice? I looked into it a while ago > and wasn’t able to find anything. > > — Theron > > > > On Sep 11, 2024, at 9:46 AM, Thierry Florac <[email protected]> wrote: > > Hi Laurent, > > I'm actually using Cornice (also with services definitions only), with > Colander for schemas definitions and validation, which allows you to get > Swagger API definitions very easily, and it works really fine! > > Best regards, > Thierry > -- > https://www.ulthar.net -- http://pyams.readthedocs.io > > > Le mer. 11 sept. 2024 à 16:11, Laurent Daverio <[email protected]> a > écrit : > >> Hello List, >> >> I would like to ask about recommended packages for writing API routes in >> Pyramid. I mostly know two ways of doing it: >> >> - using Pyramid views with a JSON renderer >> - using Cornice >> >> At one time, I was using `pyramid_openapi3` on tope of it, but I decided >> to stop, due to having lots of issues with it (but that's another story). >> >> I generally prefer Cornice, however there a lot of features I don't use, >> like validations, and "resources" (I only use "services", as "resources" >> are not flexible enough for my needs). >> >> So, at this point, my question is: if you were to recommend something >> "better" than Cornice ("better" meaning essentially "lighter"), what would >> it be? >> >> Thanks in advance, >> >> Laurent. >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "pylons-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pylons-discuss/CAB7cU6xtNQdj%3Dby9WjeJwJZkpV4-GOmDeyaq1XqyJZ_dGC%3D%2B0w%40mail.gmail.com >> <https://groups.google.com/d/msgid/pylons-discuss/CAB7cU6xtNQdj%3Dby9WjeJwJZkpV4-GOmDeyaq1XqyJZ_dGC%3D%2B0w%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWDRhNUwXrC5Dxcx7Bg5qJWHb%3DUPsB_eQMKOZFYiUQZ0yw%40mail.gmail.com > <https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWDRhNUwXrC5Dxcx7Bg5qJWHb%3DUPsB_eQMKOZFYiUQZ0yw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/852EEE1C-A50F-41C0-B73D-7548F30B37FA%40luhn.com > <https://groups.google.com/d/msgid/pylons-discuss/852EEE1C-A50F-41C0-B73D-7548F30B37FA%40luhn.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWDWPOG2oHwz8AGdm%2BLgFKR%3D03S5g5ED3E7FaaaJ5PGuOQ%40mail.gmail.com.
