Skip to content

Conversation

@shixiong2333
Copy link

This problem was found in the following scenarios
Show header parameters in Swagger UI

Now it can be displayed normally ~

        ENDPOINT_INFO(hello) {
            info->addTag("hello");
            info->summary = "Root endpoint with 'Hello World!!!' message";
            info->addResponse<Object<HelloDTO>>(
                Status::CODE_200,
                "application/json"
            );
            info->headers.add<String>("abc");
        }
        ENDPOINT("GET", "/hello", hello, REQUEST(std::shared_ptr<IncomingRequest>, request))

image

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.

1 participant