Skip to content

Group does not work for endpoints without classes #26

Closed
@fizaashraf37

Description

@fizaashraf37

If endpoints are defined inside a class as in below example. Then proper tag is assigned to endpoint for grouping.

class TestView(BaseApi):
        @app.route('/objects/<int:object_id>', methods=['PUT'])
        def update_object(object_id):
                return jsonify({'id': 1, 'name': 'test_object_name'}), 201

In this case Tag "TestView" is assigned to '/objects/int:object_id' route.

But if the endpoint is defined without any class, then no Tag is assigned to the endpoint. It comes under None category. In this case user should have the option to define tag for the route.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions