Find Out Which Pages Use an API

Hi All,
I'm doing a bit of a cleanup - suggested by the impressive Wappler AI Manager. There are a few APIs Id like to remove but tracing them back to find out which pages use them is a bit of a challenge.

Despite having a logical folder list, and decent naming conventions, it's still going to be a bit time consuming finding out which pages use which APIs (theres a lot of them). Ideally, the best option would be having a button that once pressed would list all pages that use the API that will be removed, I tried the AI Assistant but it wasnt very accurate and took a fair while to even go through a few pages.

I'm almost certain there was a feature request for this ages ago but cant find it. Any idea on how this could be achieved?

Hi Tom,

To find usage of APIs in the project files, I search by the API name. This displays a list of all the pages and any APIs where this name has been used.

To narrow the search down, you can even add the folder name in the search criteria. E.g. instead of searching for logged_in_user, search for Users/logged_in_user.

This requires searching for each API individually. However, it is still much quicker than trying to find the API by reviewing each page.

3 Likes

that's very handy to know, thanks for pitching in..!

1 Like

What search functionality are you talking about?

I tried in the Site Manager tab, the Search field to find pages that use a certain server action, it didn't find anything

This is the search functionality I'm using:


(pages are redacted from the screenshot)

Try the search panel:

1 Like

I use the Search Manager option as highlighted by Teodor in his post. This option can be used to find and replace content within files.

2 Likes