python-rest-client-codegen 1.7.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_rest_client_codegen-1.7.5/MANIFEST.in +4 -0
- python_rest_client_codegen-1.7.5/PKG-INFO +13 -0
- python_rest_client_codegen-1.7.5/README.md +70 -0
- python_rest_client_codegen-1.7.5/ghost_package/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/ghost_package/codegen.py +80 -0
- python_rest_client_codegen-1.7.5/pom.xml +164 -0
- python_rest_client_codegen-1.7.5/python_rest_client_codegen.egg-info/PKG-INFO +13 -0
- python_rest_client_codegen-1.7.5/python_rest_client_codegen.egg-info/SOURCES.txt +364 -0
- python_rest_client_codegen-1.7.5/python_rest_client_codegen.egg-info/dependency_links.txt +1 -0
- python_rest_client_codegen-1.7.5/python_rest_client_codegen.egg-info/requires.txt +1 -0
- python_rest_client_codegen-1.7.5/python_rest_client_codegen.egg-info/top_level.txt +1 -0
- python_rest_client_codegen-1.7.5/setup.cfg +7 -0
- python_rest_client_codegen-1.7.5/setup.py +60 -0
- python_rest_client_codegen-1.7.5/src/main/java/fr/lcdp/codegen/PythonRestClientCodegen.java +111 -0
- python_rest_client_codegen-1.7.5/src/main/resources/META-INF/services/org.openapitools.codegen.CodegenConfig +1 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/__init__api.mustache +5 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/__init__package.mustache +35 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/api.mustache +231 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/api_client.mustache +807 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/api_client_utils.mustache +153 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/configuration_builder.mustache +84 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/model.mustache +14 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/model_generic.mustache +400 -0
- python_rest_client_codegen-1.7.5/src/main/resources/python/lcdp/partial_api.mustache +52 -0
- python_rest_client_codegen-1.7.5/src/test/java/DirectoryUtils.java +149 -0
- python_rest_client_codegen-1.7.5/src/test/java/PythonRestClientCodegenTest.java +86 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/__init__.py +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/api_client_utils.py +155 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/configuration.py +497 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/controllers/manage_rfi_api.py +275 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/docs/ManageRfiApi.md +93 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/models/__init__.py +17 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/apiKey/gen/client/test/test_manage_rfi_api.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/__init__.py +35 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/api_client_utils.py +129 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/configuration.py +451 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/controllers/search_sale_offer_api.py +558 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/docs/SaleOfferStatus.md +23 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/docs/SearchSaleOfferApi.md +145 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/models/__init__.py +18 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/models/sale_offer_status.py +43 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/test/test_sale_offer_status.py +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/arrayOfReferencedEnum/gen/client/test/test_search_sale_offer_api.py +46 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/__init__.py +40 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/api_client_utils.py +128 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/configuration.py +451 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/controllers/notification_api.py +341 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/docs/Ad.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/docs/AdNotificationSending.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/docs/LOrder.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/docs/LOrderNotificationSending.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/docs/Notification.md +33 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/docs/NotificationApi.md +84 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/docs/NotificationSending.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/models/__init__.py +23 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/models/ad.py +92 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/models/ad_notification_sending.py +102 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/models/l_order.py +92 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/models/l_order_notification_sending.py +102 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/models/notification.py +120 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/models/notification_sending.py +98 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/test_ad.py +52 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/test_ad_notification_sending.py +66 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/test_l_order.py +52 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/test_l_order_notification_sending.py +66 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/test_notification.py +66 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/test_notification_api.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/codeWithInheritance/gen/client/test/test_notification_sending.py +59 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/__init__.py +35 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/api_client_utils.py +128 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/configuration.py +451 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/controllers/search_sale_offer_api.py +291 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/docs/SaleOfferStatus.md +23 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/docs/SearchSaleOfferApi.md +75 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/models/__init__.py +18 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/models/sale_offer_status.py +43 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/test/test_sale_offer_status.py +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/enumPathParam/gen/client/test/test_search_sale_offer_api.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/__init__.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/api_client.py +790 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/api_client_utils.py +128 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/configuration.py +450 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/configuration_builder.py +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/controllers/default_api.py +276 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/docs/AnyIdentifiedMode.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/docs/AnyMode.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/docs/DefaultApi.md +70 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/docs/Mode.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/docs/ModeA.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/docs/ModeB.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/docs/ModeC.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/exceptions.py +199 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/models/__init__.py +22 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/models/any_identified_mode.py +165 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/models/any_mode.py +165 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/models/mode.py +99 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/models/mode_a.py +101 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/models/mode_b.py +101 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/models/mode_c.py +101 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/rest.py +257 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/test_any_identified_mode.py +56 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/test_any_mode.py +56 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/test_default_api.py +37 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/test_mode.py +52 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/test_mode_a.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/test_mode_b.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/multipleOneOfWithDiscriminator/gen/client/test/test_mode_c.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/__init__.py +36 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/api_client_utils.py +128 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/configuration.py +451 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/controllers/auth_api.py +278 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/docs/AuthApi.md +70 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/docs/Session.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/docs/User.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/models/__init__.py +19 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/models/session.py +101 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/models/user.py +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/test/test_auth_api.py +38 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/test/test_session.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/nullableRef/gen/client/test/test_user.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/__init__.py +38 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/api_client_utils.py +128 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/configuration.py +451 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/controllers/auth_api.py +303 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/docs/AnyAuthenticationCredential.md +32 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/docs/AuthApi.md +75 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/docs/AuthenticationCredential.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/docs/LoginCredential.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/docs/RefreshSessionCredential.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/models/__init__.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/models/any_authentication_credential.py +166 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/models/authentication_credential.py +100 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/models/login_credential.py +104 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/models/refresh_session_credential.py +102 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/test/test_any_authentication_credential.py +59 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/test/test_auth_api.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/test/test_authentication_credential.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/test/test_login_credential.py +57 -0
- python_rest_client_codegen-1.7.5/src/test/resources/oneOfWithDiscriminator/gen/client/test/test_refresh_session_credential.py +55 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/__init__.py +35 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/api_client_utils.py +158 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/configuration.py +451 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/controllers/__init__.py +6 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/controllers/search_user_api.py +292 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/controllers/search_user_feature_api.py +272 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/docs/SearchUserApi.md +75 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/docs/SearchUserFeatureApi.md +69 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/models/__init__.py +17 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/test/test_search_user_api.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/orderedTags/gen/client/test/test_search_user_feature_api.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/__init__.py +35 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/api_client.py +790 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/api_client_utils.py +130 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/configuration.py +450 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/configuration_builder.py +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/controllers/pets_api.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/docs/Error.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/docs/Pet.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/docs/PetsApi.md +205 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/exceptions.py +199 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/models/__init__.py +18 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/models/error.py +93 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/models/pet.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/rest.py +257 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/test/test_error.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/test/test_pet.py +55 -0
- python_rest_client_codegen-1.7.5/src/test/resources/petStore/gen/client/test/test_pets_api.py +52 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/__init__.py +63 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/api_client_utils.py +327 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/configuration.py +472 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/__init__.py +11 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/manage_product_api.py +915 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/manage_product_image_api.py +602 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/manage_product_proscription_api.py +620 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/search_product_api.py +962 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/search_product_image_api.py +585 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/search_product_metadata_api.py +533 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/controllers/search_product_proscription_api.py +356 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/Barcodes.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/HttpLink.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/Image.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ImageVersions.md +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/LaboratoryLink.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ManageProductApi.md +257 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ManageProductImageApi.md +167 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ManageProductProscriptionApi.md +173 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/PaginatedObject.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/PaginatedProductProscriptions.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/PaginatedProducts.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/PagingMetadata.md +33 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/Product.md +55 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductCreationOrUpdateParameters.md +49 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductDispensationPlace.md +12 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductMarketStatus.md +20 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductProscription.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductProscriptionCreationParameters.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductSecondaryType.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductStatus.md +16 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/ProductType.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/RestError.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/SearchProductApi.md +247 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/SearchProductImageApi.md +170 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/SearchProductMetadataApi.md +158 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/SearchProductProscriptionApi.md +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/Statistics.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/UpdateVidalPackageParameters.md +29 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/Vat.md +31 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/docs/VidalPackageLink.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/__init__.py +40 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/barcodes.py +111 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/http_link.py +92 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/image.py +100 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/image_versions.py +102 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/laboratory_link.py +96 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/paginated_object.py +96 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/paginated_product_proscriptions.py +106 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/paginated_products.py +106 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/paging_metadata.py +99 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product.py +269 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_creation_or_update_parameters.py +220 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_dispensation_place.py +38 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_market_status.py +42 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_proscription.py +97 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_proscription_creation_parameters.py +92 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_secondary_type.py +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_status.py +40 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/product_type.py +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/rest_error.py +108 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/statistics.py +92 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/update_vidal_package_parameters.py +92 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/vat.py +96 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/models/vidal_package_link.py +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_barcodes.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_http_link.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_image.py +60 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_image_versions.py +57 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_laboratory_link.py +55 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_manage_product_api.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_manage_product_image_api.py +46 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_manage_product_proscription_api.py +46 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_paginated_object.py +61 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_paginated_product_proscriptions.py +73 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_paginated_products.py +133 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_paging_metadata.py +59 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product.py +91 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_creation_or_update_parameters.py +75 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_dispensation_place.py +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_market_status.py +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_proscription.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_proscription_creation_parameters.py +52 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_secondary_type.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_status.py +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_product_type.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_rest_error.py +55 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_search_product_api.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_search_product_image_api.py +46 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_search_product_metadata_api.py +46 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_search_product_proscription_api.py +39 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_statistics.py +52 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_update_vidal_package_parameters.py +52 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_vat.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/productApi/gen/client/test/test_vidal_package_link.py +54 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/__init__.py +35 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/api_client_utils.py +129 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/configuration.py +451 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/controllers/auth_api.py +583 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/docs/AuthApi.md +147 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/docs/Credential.md +30 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/models/__init__.py +18 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/models/credential.py +94 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/test/test_auth_api.py +46 -0
- python_rest_client_codegen-1.7.5/src/test/resources/simpleCode/gen/client/test/test_credential.py +53 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/__init__.py +34 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/api_client.py +791 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/api_client_utils.py +141 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/api_response.py +21 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/configuration.py +460 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/configuration_builder.py +95 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/controllers/__init__.py +5 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/controllers/auth_api.py +771 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/docs/AuthApi.md +231 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/exceptions.py +200 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/models/__init__.py +17 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/rest.py +258 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/test/__init__.py +0 -0
- python_rest_client_codegen-1.7.5/src/test/resources/xRestrict/gen/client/test/test_auth_api.py +53 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: python_rest_client_codegen
|
|
3
|
+
Version: 1.7.5
|
|
4
|
+
Summary: Python rest client codegen for Le Comptoir Des Pharmacies
|
|
5
|
+
Home-page: https://bitbucket.org/lecomptoirdespharmacies/lcdp-openapi-codegen
|
|
6
|
+
Author: Le Comptoir Des Pharmacies
|
|
7
|
+
Author-email: g.thrasibule@lecomptoirdespharmacies.fr
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Keywords: openapi,python-rest-client-codegen,openapi3
|
|
10
|
+
Platform: UNKNOWN
|
|
11
|
+
|
|
12
|
+
Python rest client codegen for Le Comptoir Des Pharmacies
|
|
13
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# OpenAPI Generator for the python-rest-client-codegen library
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This is a boiler-plate project to generate your own project derived from an OpenAPI specification.
|
|
5
|
+
|
|
6
|
+
## What's OpenAPI
|
|
7
|
+
The goal of OpenAPI is to define a standard, language-agnostic interface to REST APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection.
|
|
8
|
+
When properly described with OpenAPI, a consumer can understand and interact with the remote service with a minimal amount of implementation logic.
|
|
9
|
+
Similar to what interfaces have done for lower-level programming, OpenAPI removes the guesswork in calling the service.
|
|
10
|
+
|
|
11
|
+
Check out [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) for additional information about the OpenAPI project, including additional libraries with support for other languages and more.
|
|
12
|
+
|
|
13
|
+
## How do I use this?
|
|
14
|
+
At this point, you've likely generated a client setup. It will include something along these lines:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
.
|
|
18
|
+
|- README.md // this file
|
|
19
|
+
|- pom.xml // build script
|
|
20
|
+
|-- src
|
|
21
|
+
|--- main
|
|
22
|
+
|---- java
|
|
23
|
+
|----- fr.lcdp.codegen.PythonRestClientCodegen.java // generator file
|
|
24
|
+
|---- resources
|
|
25
|
+
|----- python.lcdp // template files
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Templates in this folder:
|
|
30
|
+
|
|
31
|
+
`src/main/resources/python/lcdp`
|
|
32
|
+
|
|
33
|
+
Once modified, you can run this:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
mvn package
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
In your generator project. A single jar file will be produced in `target`. You can now use that with [OpenAPI Generator](https://openapi-generator.tech):
|
|
40
|
+
|
|
41
|
+
For mac/linux:
|
|
42
|
+
```
|
|
43
|
+
java -cp /path/to/openapi-generator-cli.jar:/path/to/your.jar org.openapitools.codegen.OpenAPIGenerator generate -g python-rest-client-codegen -i /path/to/openapi.yaml -o ./test
|
|
44
|
+
```
|
|
45
|
+
(Do not forget to replace the values `/path/to/openapi-generator-cli.jar`, `/path/to/your.jar` and `/path/to/openapi.yaml` in the previous command)
|
|
46
|
+
|
|
47
|
+
For Windows users, you will need to use `;` instead of `:` in the classpath, e.g.
|
|
48
|
+
```
|
|
49
|
+
java -cp /path/to/openapi-generator-cli.jar;/path/to/your.jar org.openapitools.codegen.OpenAPIGenerator generate -g python-rest-client-codegen -i /path/to/openapi.yaml -o ./test
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Now your templates are available to the client generator and you can write output values
|
|
53
|
+
|
|
54
|
+
## Debugging
|
|
55
|
+
|
|
56
|
+
You can execute the `java` command from above while passing different debug flags to show
|
|
57
|
+
the object you have available during client generation:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
# The following additional debug options are available for all codegen targets:
|
|
61
|
+
# -DdebugOpenAPI prints the OpenAPI Specification as interpreted by the codegen
|
|
62
|
+
# -DdebugModels prints models passed to the template engine
|
|
63
|
+
# -DdebugOperations prints operations passed to the template engine
|
|
64
|
+
# -DdebugSupportingFiles prints additional data passed to the template engine
|
|
65
|
+
|
|
66
|
+
java -DdebugOperations -cp /path/to/openapi-generator-cli.jar:/path/to/your.jar org.openapitools.codegen.OpenAPIGenerator generate -g python-rest-client-codegen -i /path/to/openapi.yaml -o ./test
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Will, for example, output the debug info for operations.
|
|
70
|
+
You can use this info in the `api.mustache` file.
|
|
File without changes
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import subprocess
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
import lcdp_api.rest
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import importlib.resources as pkg_resources
|
|
9
|
+
except ImportError:
|
|
10
|
+
# Try backported to PY<37 `importlib_resources`.
|
|
11
|
+
import importlib_resources as pkg_resources
|
|
12
|
+
|
|
13
|
+
# Get current script dir
|
|
14
|
+
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
|
|
15
|
+
|
|
16
|
+
# Codegen command constants
|
|
17
|
+
OPENAPI_CODEGEN_CLASS = "org.openapitools.codegen.OpenAPIGenerator"
|
|
18
|
+
|
|
19
|
+
def get_api_path(api_filename):
|
|
20
|
+
return pkg_resources.path(lcdp_api.rest, api_filename)
|
|
21
|
+
|
|
22
|
+
def get_codegen_cli_path():
|
|
23
|
+
return pkg_resources.path(__package__, "openapi-generator-cli.jar")
|
|
24
|
+
|
|
25
|
+
def get_codegen_path():
|
|
26
|
+
return pkg_resources.path(__package__, "python-rest-client-codegen.jar")
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def generate_consumer(api_spec_file_name, out_dir):
|
|
30
|
+
with get_api_path(api_spec_file_name) as api_spec_file_path:
|
|
31
|
+
api_name = get_api_name_from_spec_file_path(api_spec_file_path)
|
|
32
|
+
|
|
33
|
+
api_spec_file_abs_path = os.path.join(CURRENT_DIR, "..", api_spec_file_path)
|
|
34
|
+
|
|
35
|
+
# Compute generator path
|
|
36
|
+
with get_codegen_path() as client_codegen_jar_path, get_codegen_cli_path() as cli_jar_path:
|
|
37
|
+
openapi_codegen_java_classpath = compute_codegen_java_classpath(cli_jar_path, client_codegen_jar_path)
|
|
38
|
+
|
|
39
|
+
execute_consumer_codegen(openapi_codegen_java_classpath, client_codegen_jar_path.stem, api_spec_file_abs_path,
|
|
40
|
+
out_dir, "api.consume.gen", api_name)
|
|
41
|
+
|
|
42
|
+
def get_api_name_from_spec_file_path(api_spec_file_path):
|
|
43
|
+
api_name = os.path.basename(api_spec_file_path).split(".")[0]
|
|
44
|
+
return api_name.replace("-", "_")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def compute_codegen_java_classpath(cli_jar_path, codegen_jar_path):
|
|
48
|
+
sep = ";" if os.name == "nt" else ":"
|
|
49
|
+
return sep.join([str(cli_jar_path), str(codegen_jar_path)])
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def execute_consumer_codegen(openapi_codegen_java_classpath, codegen_name,
|
|
53
|
+
api_spec_file_path, outdir,
|
|
54
|
+
package_name, api_name):
|
|
55
|
+
"""
|
|
56
|
+
Consumer is generated in leaf
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
properties = [
|
|
60
|
+
"--package-name", package_name + '.' + api_name,
|
|
61
|
+
"--model-package", 'models',
|
|
62
|
+
"--api-package", 'controllers',
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
additional_properties = [
|
|
66
|
+
"generateSourceCodeOnly=true", # Used on client generation to not build setup.py, etc...
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
execute_codegen_command(openapi_codegen_java_classpath, codegen_name, api_spec_file_path, outdir, properties,
|
|
70
|
+
additional_properties)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def execute_codegen_command(openapi_codegen_java_classpath, codegen_name, api_spec_file_path, outdir, properties,
|
|
74
|
+
additional_properties):
|
|
75
|
+
subprocess.check_call(["java", "-cp", openapi_codegen_java_classpath, OPENAPI_CODEGEN_CLASS, "generate", "-g",
|
|
76
|
+
codegen_name, "-i", api_spec_file_path, "-o", outdir] +
|
|
77
|
+
properties +
|
|
78
|
+
# controllerPackage is used by server codegen
|
|
79
|
+
["--additional-properties=" + ",".join(additional_properties)
|
|
80
|
+
])
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
2
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
|
4
|
+
<groupId>fr.lcdp</groupId>
|
|
5
|
+
<artifactId>python-rest-client-codegen</artifactId>
|
|
6
|
+
<packaging>jar</packaging>
|
|
7
|
+
<version>0</version>
|
|
8
|
+
|
|
9
|
+
<properties>
|
|
10
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
11
|
+
<maven.compiler.source>11</maven.compiler.source>
|
|
12
|
+
<maven.compiler.target>11</maven.compiler.target>
|
|
13
|
+
<maven.compiler.version>3.8.1</maven.compiler.version>
|
|
14
|
+
<openapi-generator-version>7.8.0</openapi-generator-version>
|
|
15
|
+
</properties>
|
|
16
|
+
|
|
17
|
+
<build>
|
|
18
|
+
<finalName>python-rest-client-codegen</finalName>
|
|
19
|
+
<plugins>
|
|
20
|
+
<plugin>
|
|
21
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
22
|
+
<artifactId>maven-enforcer-plugin</artifactId>
|
|
23
|
+
<version>3.0.0-M1</version>
|
|
24
|
+
<executions>
|
|
25
|
+
<execution>
|
|
26
|
+
<id>enforce-maven</id>
|
|
27
|
+
<goals>
|
|
28
|
+
<goal>enforce</goal>
|
|
29
|
+
</goals>
|
|
30
|
+
<configuration>
|
|
31
|
+
<rules>
|
|
32
|
+
<requireMavenVersion>
|
|
33
|
+
<version>2.2.0</version>
|
|
34
|
+
</requireMavenVersion>
|
|
35
|
+
</rules>
|
|
36
|
+
</configuration>
|
|
37
|
+
</execution>
|
|
38
|
+
</executions>
|
|
39
|
+
</plugin>
|
|
40
|
+
<plugin>
|
|
41
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
42
|
+
<artifactId>maven-surefire-plugin</artifactId>
|
|
43
|
+
<version>2.12</version>
|
|
44
|
+
<configuration>
|
|
45
|
+
<systemProperties>
|
|
46
|
+
<property>
|
|
47
|
+
<name>loggerPath</name>
|
|
48
|
+
<value>conf/log4j.properties</value>
|
|
49
|
+
</property>
|
|
50
|
+
</systemProperties>
|
|
51
|
+
<argLine>-Xms512m -Xmx1500m</argLine>
|
|
52
|
+
<parallel>methods</parallel>
|
|
53
|
+
<forkMode>pertest</forkMode>
|
|
54
|
+
</configuration>
|
|
55
|
+
</plugin>
|
|
56
|
+
|
|
57
|
+
<!-- attach test jar -->
|
|
58
|
+
<plugin>
|
|
59
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
60
|
+
<artifactId>maven-jar-plugin</artifactId>
|
|
61
|
+
<version>2.2</version>
|
|
62
|
+
<executions>
|
|
63
|
+
<execution>
|
|
64
|
+
<goals>
|
|
65
|
+
<goal>jar</goal>
|
|
66
|
+
<goal>test-jar</goal>
|
|
67
|
+
</goals>
|
|
68
|
+
</execution>
|
|
69
|
+
</executions>
|
|
70
|
+
<configuration>
|
|
71
|
+
</configuration>
|
|
72
|
+
</plugin>
|
|
73
|
+
|
|
74
|
+
<plugin>
|
|
75
|
+
<groupId>org.codehaus.mojo</groupId>
|
|
76
|
+
<artifactId>build-helper-maven-plugin</artifactId>
|
|
77
|
+
<version>3.0.0</version>
|
|
78
|
+
<executions>
|
|
79
|
+
<execution>
|
|
80
|
+
<id>add_sources</id>
|
|
81
|
+
<phase>generate-sources</phase>
|
|
82
|
+
<goals>
|
|
83
|
+
<goal>add-source</goal>
|
|
84
|
+
</goals>
|
|
85
|
+
<configuration>
|
|
86
|
+
<sources>
|
|
87
|
+
<source>
|
|
88
|
+
src/main/java</source>
|
|
89
|
+
</sources>
|
|
90
|
+
</configuration>
|
|
91
|
+
</execution>
|
|
92
|
+
<execution>
|
|
93
|
+
<id>add_test_sources</id>
|
|
94
|
+
<phase>generate-test-sources</phase>
|
|
95
|
+
<goals>
|
|
96
|
+
<goal>add-test-source</goal>
|
|
97
|
+
</goals>
|
|
98
|
+
<configuration>
|
|
99
|
+
<sources>
|
|
100
|
+
<source>
|
|
101
|
+
src/test/java</source>
|
|
102
|
+
</sources>
|
|
103
|
+
</configuration>
|
|
104
|
+
</execution>
|
|
105
|
+
</executions>
|
|
106
|
+
</plugin>
|
|
107
|
+
<plugin>
|
|
108
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
109
|
+
<artifactId>maven-compiler-plugin</artifactId>
|
|
110
|
+
<version>${maven.compiler.version}</version>
|
|
111
|
+
</plugin>
|
|
112
|
+
</plugins>
|
|
113
|
+
|
|
114
|
+
<extensions>
|
|
115
|
+
<extension>
|
|
116
|
+
<groupId>ar.com.synergian</groupId>
|
|
117
|
+
<artifactId>wagon-git</artifactId>
|
|
118
|
+
<version>0.2.5</version>
|
|
119
|
+
</extension>
|
|
120
|
+
</extensions>
|
|
121
|
+
</build>
|
|
122
|
+
<dependencies>
|
|
123
|
+
<dependency>
|
|
124
|
+
<groupId>org.openapitools</groupId>
|
|
125
|
+
<artifactId>openapi-generator</artifactId>
|
|
126
|
+
<version>${openapi-generator-version}</version>
|
|
127
|
+
<scope>provided</scope>
|
|
128
|
+
</dependency>
|
|
129
|
+
<dependency>
|
|
130
|
+
<groupId>org.openapitools</groupId>
|
|
131
|
+
<artifactId>openapi-generator</artifactId>
|
|
132
|
+
<version>${openapi-generator-version}</version>
|
|
133
|
+
<type>test-jar</type>
|
|
134
|
+
<scope>test</scope>
|
|
135
|
+
</dependency>
|
|
136
|
+
<dependency>
|
|
137
|
+
<groupId>junit</groupId>
|
|
138
|
+
<artifactId>junit</artifactId>
|
|
139
|
+
<version>4.11</version>
|
|
140
|
+
<scope>test</scope>
|
|
141
|
+
</dependency>
|
|
142
|
+
</dependencies>
|
|
143
|
+
|
|
144
|
+
<!-- Delivery -->
|
|
145
|
+
<pluginRepositories>
|
|
146
|
+
<pluginRepository>
|
|
147
|
+
<id>synergian-repo</id>
|
|
148
|
+
<url>https://raw.github.com/synergian/wagon-git/releases</url>
|
|
149
|
+
</pluginRepository>
|
|
150
|
+
</pluginRepositories>
|
|
151
|
+
|
|
152
|
+
<distributionManagement>
|
|
153
|
+
<repository>
|
|
154
|
+
<id>lecomptoirdespharmacies.repo</id>
|
|
155
|
+
<name>Le Comptoir Des Pharmacies Repository</name>
|
|
156
|
+
<url>git:releases://git@bitbucket.org:lecomptoirdespharmacies/maven_repository.git</url>
|
|
157
|
+
</repository>
|
|
158
|
+
<snapshotRepository>
|
|
159
|
+
<id>lecomptoirdespharmacies.repo</id>
|
|
160
|
+
<name>Le Comptoir Des Pharmacies Repository</name>
|
|
161
|
+
<url>git:snapshots://git@bitbucket.org:lecomptoirdespharmacies/maven_repository.git</url>
|
|
162
|
+
</snapshotRepository>
|
|
163
|
+
</distributionManagement>
|
|
164
|
+
</project>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: python-rest-client-codegen
|
|
3
|
+
Version: 1.7.5
|
|
4
|
+
Summary: Python rest client codegen for Le Comptoir Des Pharmacies
|
|
5
|
+
Home-page: https://bitbucket.org/lecomptoirdespharmacies/lcdp-openapi-codegen
|
|
6
|
+
Author: Le Comptoir Des Pharmacies
|
|
7
|
+
Author-email: g.thrasibule@lecomptoirdespharmacies.fr
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Keywords: openapi,python-rest-client-codegen,openapi3
|
|
10
|
+
Platform: UNKNOWN
|
|
11
|
+
|
|
12
|
+
Python rest client codegen for Le Comptoir Des Pharmacies
|
|
13
|
+
|