This extension provides a convenient way to find, navigate, and copy all Spring endpoints in your project within VS Code.
Features
Find Endpoints
Search for all Spring endpoints in your project, including both class-level and method-level mappings.
Quickly navigate to the endpoint definition in your code by selecting it from the search results.
Copy API URL
Right-click on a line in your code and select "Copy API URL" to copy the API path of the endpoint defined on that line.
This feature is especially useful for quickly testing endpoints or sharing them with others.
Usage
Find Endpoints
Open the Command Palette in VS Code by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).
Type "Find Endpoints" and select "Spring Find Endpoints: Search Endpoints" from the dropdown list.
A list of all found endpoints will be displayed. Select an endpoint to navigate to its definition in your code.
You can also trigger the search by pressing Ctrl+\ (Windows/Linux) or Cmd+\ (macOS).
Copy API URL
Open a Java file in VS Code.
Right-click on a line in the file where an endpoint is defined.
Select "Copy API URL" from the context menu.
The API path of the endpoint will be copied to your clipboard.
Configuration
This extension does not require any configuration. It will automatically search for Spring endpoints in your project based on the standard Spring annotation patterns.
Known Issues
This extension currently only supports Java projects.
It may not work correctly with complex or non-standard Spring configurations.
Contributing
If you'd like to contribute to this extension, please fork the repository and submit a pull request. Your contributions are welcome!