goby-ao opened a new pull request, #4197:
URL: https://github.com/apache/streampark/pull/4197

   <!--
   Thank you for contributing to StreamPark! Please make sure that your code 
changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   ## Contribution Checklist
   
     - If this is your first time, please read our contributor guidelines: 
[Submit Code](https://streampark.apache.org/community/submit_guide/submit_code).
   
     - Make sure that the pull request corresponds to a [GITHUB 
issue](https://github.com/apache/streampark/issues).
   
     - Name the pull request in the form "[Feature] Title of the pull request", 
where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Fill out the template below to describe the changes contributed by the 
pull request. That will give reviewers the context they need to do the review.
   
     - If the PR is unfinished, add `[WIP]` in your PR title, e.g., 
`[WIP][Feature] Title of the pull request`.
   
   -->
   
   ## What changes were proposed in this pull request
   <!--(For example: This pull request proposed to add checkstyle plugin).-->
   If adding context-path config as follow,an error occurs when clicking the 
cURL copy button.
   ```
     servlet:
       context-path: /streampark
   ```
   
   
![Xnip2025-03-03_16-49-27](https://github.com/user-attachments/assets/78b957c3-339b-4793-9193-321cee905997)
   
   
   This pull request fixes an inconsistency in the `Api` enum by adding a 
missing leading slash to the `CHECK` endpoint. The change ensures that all 
endpoints follow the same pattern, preventing potential routing issues. 
Additionally, I updated the related unit tests to reflect this change.
   
   ## Brief change log
   
   <!--*(for example:)*
   - *Add maven-checkstyle-plugin to root pom.xml*
   -->
   This commit adds the
   missing slash to maintain consistency across all API path definitions
   and prevent potential routing issues.
   
   ## Verifying this change
   
   <!--*(Please pick either of the following options)*-->
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   <!--*(example:)*
   - *Added integration tests for end-to-end.*
   - *Added *Test to verify the change.*
   - *Manually verified the change by testing locally.* -->
   
   ## Does this pull request potentially affect one of the following parts
    - Dependencies (does it add or upgrade a dependency): (no)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to