Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI v3 with drf-spectacular #1779

Merged
merged 1 commit into from Jul 24, 2020
Merged

OpenAPI v3 with drf-spectacular #1779

merged 1 commit into from Jul 24, 2020

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Jul 20, 2020

Required PR: pulp/pulpcore#785
[noissue]

@pulpbot
Copy link
Member

pulpbot commented Jul 20, 2020

WARNING!!! This PR is not attached to an issue. In most cases this is not advisable. Please see our PR docs for more information about how to attach this PR to an issue.

@fao89 fao89 force-pushed the spectacular branch 2 times, most recently from 28e1843 to 41d5dd5 Compare July 21, 2020 14:44
@@ -78,7 +78,7 @@ def test_sync_with_retention(self):
# Set the retention policy to retain only 1 version of each package
repo_data = repo.to_dict()
repo_data.update({'retain_package_versions': 1})
self.repo_api.update(repo.pulp_href, data=repo_data)
self.repo_api.update(repo.pulp_href, repo_data)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drf-yasg (OpenAPI v2):

class RepositoriesRpmApi(object):
    """NOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client

    def create(self, data, **kwargs):  # noqa: E501
        """Create a rpm repository  # noqa: E501

drf-spectacular (OpenAPI v3):

class RepositoriesRpmApi(object):
    """NOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client

    def create(self, rpm_rpm_repository, **kwargs):  # noqa: E501
        """create  # noqa: E501

fao89 added a commit to fao89/pulp-2to3-migration that referenced this pull request Jul 22, 2020
fao89 added a commit to fao89/pulp-2to3-migration that referenced this pull request Jul 22, 2020
Required PR: pulp/pulpcore#785
[noissue]
[nocoverage]
@fao89 fao89 merged commit 377c59d into pulp:master Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants