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

add api search feature #257

Closed
DophinL opened this issue Feb 7, 2020 · 9 comments · Fixed by #444
Closed

add api search feature #257

DophinL opened this issue Feb 7, 2020 · 9 comments · Fixed by #444
Assignees
Labels
feature New feature request

Comments

@DophinL
Copy link

DophinL commented Feb 7, 2020

Is your feature request related to a problem? Please describe.
if I have over 100 api, find one is difficult.

Describe the solution you'd like
can you add search feature to search apis?

Describe alternatives you've considered

Additional context

@deciomontanhani
Copy link

I'm facing this issue as well. Some tags to categorize by features would be nice.

@255kb 255kb added the feature New feature request label Mar 11, 2020
@sotcha
Copy link
Contributor

sotcha commented Mar 29, 2020

Hi @255kb Can I help with this? Seems a really nice feature.

@255kb
Copy link
Member

255kb commented Apr 22, 2020

@sotcha Sure you can. If possible, I would prefer to finish #264 with you as I also have some WIP on my side. I would like to avoid having too many things dealt with at once, as my time is quite limited :)

Concerning the implementation of this, I was thinking about a small search box (input) on the right of the + button that adds a route. Simply entering text in it would filter what is shown in the menu with a simple RxJS filter on the routes list, searching in the paths, methods, or documentation. And then a small X to reset the filter. I think it could be quite straightforward.
What do you guys think?

@monobasic
Copy link

@sotcha Sure you can. If possible, I would prefer to finish #264 with you as I also have some WIP on my side. I would like to avoid having too many things dealt with at once, as my time is quite limited :)

Concerning the implementation of this, I was thinking about a small search box (input) on the right of the + button that adds a route. Simply entering text in it would filter what is shown in the menu with a simple RxJS filter on the routes list, searching in the paths, methods, or documentation. And then a small X to reset the filter. I think it could be quite straightforward.
What do you guys think?

Would be great! This is the only feature I am missing currently.

@255kb 255kb self-assigned this Sep 11, 2020
sotcha added a commit to sotcha/mockoon that referenced this issue Dec 26, 2020
Add a seach button which, on click, expands a search field.
The search field filters the routes which match to the search field text.

Add seach route functionality (mockoon#257)

Add a seach button which, on click, expands a search field.
The search field filters the routes which match to the search field
text.
sotcha added a commit to sotcha/mockoon that referenced this issue Dec 27, 2020
Add a seach button which, on click, expands a search field.
The search field filters the routes which match to the search field
text.
sotcha added a commit to sotcha/mockoon that referenced this issue Dec 27, 2020
Add a seach button which, on click, expands a search field.
The search field filters the routes which match to the search field
text.

Add tests for routes search.
@sotcha
Copy link
Contributor

sotcha commented Dec 27, 2020

Hi guys, I have been developed this feature for personal usage since I found this useful. But unfortunately, I didn't manage to create a pull request.

The solution is similar to @255kb proposal.

The functionality is:

  1. A button opens filtering input filed
  2. The filtering is applied while typing in the routes paths
  3. Close button or escape key will reset and close the filter

recording-search-routes2

If you like it I have ready a branch for this and I can create a pull request.

@255kb
Copy link
Member

255kb commented Dec 28, 2020

hi @sotcha Thank you for the suggestion and proposal. But I already have something working on a branch. Same behavior, but different UI. I am glad we are aligned on this 😄
I just didn't have time to finish it since we were really busy on the CLI.

It will be in the next release.

@255kb 255kb assigned fabhoarau and unassigned 255kb Jan 4, 2021
fabhoarau added a commit that referenced this issue Mar 16, 2021
fabhoarau added a commit that referenced this issue Mar 16, 2021
fabhoarau added a commit that referenced this issue Mar 18, 2021
@fabhoarau fabhoarau mentioned this issue Mar 18, 2021
1 task
fabhoarau added a commit that referenced this issue Mar 18, 2021
fabhoarau added a commit that referenced this issue Apr 12, 2021
255kb pushed a commit that referenced this issue Apr 14, 2021
- Filter routes by path or documentation
Closes #257
@Luckey-Elijah
Copy link

Is this feature in the current release(v1.12.0)? And if so how do I use it?

@255kb
Copy link
Member

255kb commented Apr 16, 2021

@Luckey-Elijah this has been merged and will be available in the next release (next Tuesday if everything goes right 🙂)

@Luckey-Elijah
Copy link

@255kb okay, great! Thanks 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

7 participants