-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Group requests by parent endpoint #498
Comments
Hey @GitVitor I love the idea and I think it is extremely useful! Specially when the API has lots of requests and endpoints. Some points that crossed my mind:
Thanks!! |
@camilamaia thanks to answer.
I thought that is not a good experience collapse one inside another; Maybe all collapse could be at the same level.
I'm not sure if a really understand what do you mean with that. Basically it's an option in .yaml file? Then if it's true, the Reporter provide a flat report without any collapse option? This last option that i mention require an upgrade in report, build the report using something like preact No build tool + Jinja2. |
About point 1:
I agree 100% with you. So let's leave the max of 1 level of collapse. If there is any nested endpoint, we can leave everything at the same parent level. For example, let's say that contact in a nested endpoint of account, the groups in the report should render like this (we will not have a new group
About point 2: Yes, I was suggesting having an option in the CLI / configuration file to render the report in a flat format. For example: $ scanapi run --flat-report But I don't really think this is necessary, I was more brainstorming haha let's skip it for now, what do you think? |
@camilamaia I thought report could present in following format:
I like two suggestion, this last that i reffer and yours. About point 2: |
@GitVitor +1 for your suggestion. Even better! Let's go with it :) |
Feature request
Description the feature
I thought that the report HTML could group requests by endpoint;
Using httpbin example.
There we find multiples endpoints, http-methods and images;
Maybe the report HTML could toggle each endpoint request inside a Collapse element;
Bootstrap collapse example
Content to be inside Collapse element;
Is your feature request related to a problem?
Not necessarily a technical problem, but we could see it as an usability problem.
Do you have any suggestions on how to add this feature in scanapi ?
For each request, attach an prop that refer parent endpoint name, with that prop we could build a collapse, following bellow structure.
And for UI development we could follow Bootstrap collapse example:
Bootstrap collapse example
The text was updated successfully, but these errors were encountered: