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

put 'POST', 'GET', 'PUT', 'DELETE' in one file #551

Open
SincerelyUnique opened this issue Nov 8, 2022 · 0 comments
Open

put 'POST', 'GET', 'PUT', 'DELETE' in one file #551

SincerelyUnique opened this issue Nov 8, 2022 · 0 comments

Comments

@SincerelyUnique
Copy link

@api.route('/release', methods=['POST', 'GET', 'PUT', 'DELETE'])
@swag_from('../swagger/release.yml')
def api_mop():
    if request.method == 'POST':
        pass
    if request.method == 'GET':
        pass
     if request.method == 'PUT':
        pass
     if request.method == 'DELETE':
        pass

Hi Team, thanks for your plugin, it is a great tool!!
And I have a question, can you share how to write release.yml about this request, I don't know how to write it

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

No branches or pull requests

1 participant